/* Emerald Hotels — shared stylesheet for emerald-crown.com and emeraldsignature.com.
   The two sites differ only by the data-theme attribute on <html>. */

:root {
  --emerald: #14653a;
  --emerald-deep: #0c3f25;
  --gold: #bd9a70;
  --gold-soft: #d9c3a3;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

html[data-theme="signature"] {
  --bg: #faf7f1;
  --bg-alt: #f1ebdf;
  --panel: #ffffff;
  --text: #1d2a23;
  --muted: #5d6a62;
  --line: #e2d9c8;
  --accent: var(--emerald);
  --accent-text: #ffffff;
  --band: var(--emerald-deep);
  --band-text: #f4efe4;
}

html[data-theme="crown"] {
  --bg: #0e1613;
  --bg-alt: #131f1a;
  --panel: #18261f;
  --text: #efe9dc;
  --muted: #a9b3ab;
  --line: #2a3a31;
  --accent: var(--gold);
  --accent-text: #14110b;
  --band: #0a100d;
  --band-text: #efe9dc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.alt { background: var(--bg-alt); }

.eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
html[data-theme="signature"] .eyebrow { color: var(--emerald); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: 600 .82rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: #fff; color: #14110b; opacity: 1; }
.btn.outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn.outline:hover { border-color: var(--accent); opacity: 1; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.site-header.solid { background: var(--bg); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; font: 600 .56rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav .btn { padding: 11px 18px; opacity: 1; color: var(--accent-text); }
.nav .btn:hover { color: var(--accent-text); opacity: .88; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 0; display: flex; align-items: flex-end; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 10, .55) 0%, rgba(6, 14, 10, .1) 30%, rgba(6, 14, 10, .7) 62%, rgba(6, 14, 10, .9) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vw, 110px); }
html[data-theme] .hero .eyebrow, html[data-theme] .book .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); letter-spacing: -.01em; }
.hero p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 46ch; margin: 18px 0 30px; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stars { letter-spacing: .3em; }

/* Facts strip */
.facts { padding: 0; background: var(--band); color: var(--band-text); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 500 2.3rem/1 var(--serif); color: var(--gold-soft); margin-bottom: 8px; }
.fact span { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { color: var(--muted); }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.name-panel {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(189, 154, 112, .28), transparent 55%),
    linear-gradient(135deg, var(--emerald-deep), #0a2718);
  color: #f4efe4;
  border: 1px solid rgba(189, 154, 112, .35);
  outline: 1px solid rgba(189, 154, 112, .35);
  outline-offset: -14px;
}
.name-panel strong { display: block; font: 500 clamp(2rem, 4vw, 3rem)/1.1 var(--serif); }
.name-panel span { display: block; margin-top: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.tags li { border: 1px solid var(--line); padding: 6px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.room { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.room-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; }
.room-photos img { width: 100%; height: 100%; object-fit: cover; }
.room-photos a { display: block; overflow: hidden; }
.room-photos a:first-child { grid-row: span 2; aspect-ratio: 4 / 3; }
.room-photos.single { grid-template-columns: 1fr; }
.room-photos.single a:first-child { aspect-ratio: 16 / 9; }
.room-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[data-theme="signature"] .room-meta { color: var(--emerald); }
.room-body p { color: var(--muted); margin: 0; }
.room-body .btn { align-self: flex-start; margin-top: auto; }
.amenities { margin-top: clamp(40px, 6vw, 64px); padding: 34px; border: 1px solid var(--line); }
.amenities h3 { margin-bottom: 18px; }
.amenities ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.amenities li { position: relative; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Facility cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 30px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); margin: 0; }
.card .num { display: block; font: 500 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery a.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img, .room-photos img { transition: transform .5s; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:hover img, .room-photos a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 7, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; }
.lightbox figcaption { color: #d8d2c4; text-align: center; margin-top: 12px; font-size: .9rem; }
.lightbox figure { margin: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; padding: 14px 18px; cursor: pointer; }
.lightbox .lb-close { top: 6px; right: 10px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Location */
.location { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.location iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(.85); }
.contact-list { list-style: none; padding: 0; margin: 26px 0 30px; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { text-decoration: none; }
.contact-list .big { font: 500 1.7rem/1.2 var(--serif); }

/* Booking band */
.book { background: var(--band); color: var(--band-text); text-align: center; }
html[data-theme="crown"] .book { border-top: 1px solid var(--line); }
.book h2 { margin-bottom: 14px; }
.book p { max-width: 56ch; margin: 0 auto 28px; opacity: .85; }
.book .phone { display: block; font: 500 clamp(2.2rem, 6vw, 3.6rem)/1.1 var(--serif); color: var(--gold-soft); text-decoration: none; margin-bottom: 28px; }
.book .hero-actions { justify-content: center; }
.book .btn { background: var(--gold); border-color: var(--gold); color: #14110b; }

/* Footer */
.site-footer { background: #070b09; color: #b9c0b9; padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1c2620; font-size: .8rem; opacity: .75; }

/* Inner pages (no hero photo) */
.plain .site-header { background: var(--bg); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.plain main { padding-top: 76px; }
.menu-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.menu-pages a { display: block; border: 1px solid var(--line); }
.menu-pages img { width: 100%; }
.hours { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.hours li { text-align: center; }
.hours b { display: block; font: 500 1.5rem/1.2 var(--serif); }
.hours span { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .menu-pages { grid-template-columns: 1fr; } }

/* Phone call bar */
.call-bar { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--text);
    padding: 8px 20px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--accent); }
  .split, .location { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
  .rooms, .cards, .cards.two { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .amenities ul { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .call-bar {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    background: var(--accent);
    color: var(--accent-text);
    justify-content: center;
    padding: 15px;
    font: 600 .82rem/1 var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
  }
  body { padding-bottom: 46px; }
}

@media (max-width: 520px) {
  .amenities { padding: 24px; }
  .amenities ul { grid-template-columns: 1fr; }
  .room-body, .card-body { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
