/* ============================================================
   ETHEREAL — Global Stylesheet
   Design system: Antiquarian Botanical
   ============================================================ */

/* === TOKENS ===
   Palette: "Opulent Botanical Nocturne" — warm darkness, emerald velvet,
   gold & bronze, candlelight. Sampled from the built interior. See DESIGN_SYSTEM.md. */
:root {
  /* Foundation — warm near-black */
  --ink:          #0a0807;
  --shadow:       #050403;
  --char:         #161210;

  /* Emerald — the signature velvet material */
  --emerald:      #234a3f;
  --emerald-deep: #15302a;
  --emerald-lit:  #356457;

  /* Gold & bronze — the metal */
  --brass:        #c4a440;
  --brass-light:  #dcc06a;
  --brass-dark:   #8a6e28;
  --bronze:       #a87b4a;

  /* Warm accents */
  --terracotta:   #a3603c;
  --mosaic-teal:  #4f8a88;
  --mosaic-rust:  #9e6040;
  --blush:        #cf9ca0;
  --amber:        #e0a85a;

  /* Text & light */
  --ivory:        #f1e8d4;
  --ivory-dark:   #dccaa2;  /* brightened for legibility on near-black */

  /* Legacy aliases (kept so older rules resolve to the new world) */
  --sage:         var(--emerald);
  --sage-dark:    var(--emerald-deep);
  --teal:         var(--mosaic-teal);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --ease:         cubic-bezier(0.25, 0.1, 0.1, 1);
  --transition:   600ms cubic-bezier(0.25, 0.1, 0.1, 1);
  --transition-fast: 400ms cubic-bezier(0.25, 0.1, 0.1, 1);

  --container:    1320px;
  --nav-height:   72px;
  --section-v:    110px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
address { font-style: normal; }

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 2px;
  z-index: 9999;
  transition: top 200ms;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 1.5px solid var(--brass);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-v) 0;
}

/* Emerald velvet feature section — light falling across fabric */
.section--sage,
.section--emerald {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(53, 100, 87, 0.55) 0%, transparent 70%),
    linear-gradient(to bottom, var(--emerald) 0%, var(--emerald-deep) 100%);
  position: relative;
}

.section--deep {
  background: var(--shadow);
}

/* === TYPOGRAPHY UTILITIES === */
.label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brass-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.1rem;
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.08;
  color: var(--ivory);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--ivory);
}

.body-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ivory-dark);
}

/* === ORNAMENTAL DIVIDER === */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brass-dark);
}
/* Brand ornament — echoes the dotted "ė": a ringed dot with a tittle above */
.ornament-glyph {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
}
.ornament-glyph::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--brass);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  border-radius: 2px;
  transition: background var(--transition-fast), color var(--transition-fast),
              box-shadow var(--transition-fast);
  cursor: pointer;
}
.btn:hover {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 0 28px rgba(196, 164, 64, 0.28);
}
.btn--ghost {
  border-color: var(--brass-dark);
  color: var(--ivory-dark);
}
.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: transparent;
}
.btn--filled {
  background: var(--brass);
  color: var(--ink);
}
.btn--filled:hover {
  background: var(--brass-light);
  box-shadow: 0 0 32px rgba(220, 192, 106, 0.35);
}

/* === IMAGE PLACEHOLDER === */
.img-ph {
  background: rgba(196, 164, 64, 0.04);
  border: 1px solid var(--brass-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 240px;
}
.img-ph svg {
  opacity: 0.3;
  color: var(--brass);
}
.img-ph span {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--brass-dark);
  text-transform: uppercase;
}

/* === CONTENT PLACEHOLDER === */
.content-ph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ivory-dark);
  border-left: 2px solid var(--brass);
  padding: 0.3rem 0 0.3rem 1rem;
  margin: 0.75rem 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), border-color var(--transition);
}

#site-header.is-scrolled {
  background: rgba(13, 11, 9, 0.92);
  border-bottom: 1px solid var(--brass-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#site-header.nav-hidden {
  opacity: 0;
  pointer-events: none;
}

#site-header.nav-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 900ms var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo .logo-img {
  height: auto;
  width: clamp(160px, 18vw, 260px);
  display: block;
  mix-blend-mode: screen;
}

#nav-links {
  display: flex;
  align-items: center;
}

#nav-links ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#nav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dark);
  transition: color var(--transition-fast);
  position: relative;
}
#nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
#nav-links a:hover { color: var(--ivory); }
#nav-links a:hover::after { transform: scaleX(1); }

.nav-reserve {
  border: 1px solid var(--brass-dark);
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--brass) !important;
  transition: background var(--transition-fast), border-color var(--transition-fast) !important;
}
.nav-reserve:hover {
  background: var(--brass) !important;
  border-color: var(--brass) !important;
  color: var(--ink) !important;
}
.nav-reserve::after { display: none !important; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile fullscreen nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 3, 0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
#mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory-dark);
  transition: color var(--transition-fast);
  text-align: center;
}
#mobile-nav a:hover { color: var(--ivory); }
#mobile-nav .mobile-reserve {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-style: normal;
  color: var(--brass) !important;
  border: 1px solid var(--brass-dark);
  padding: 12px 32px;
  margin-top: 1rem;
}
#mobile-nav .mobile-reserve:hover {
  background: var(--brass);
  color: var(--ink) !important;
}

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 64px;
  text-align: center;
  border-bottom: 1px solid var(--brass-dark);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(138, 110, 40, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .label { justify-content: center; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--shadow);
  border-top: 1px solid var(--brass-dark);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: opacity var(--transition-fast);
}
.footer-logo:hover { opacity: 0.8; }
.footer-logo .logo-img {
  height: auto;
  width: clamp(180px, 20vw, 280px);
  display: block;
  mix-blend-mode: screen;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brass-dark);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}
.footer-social a:hover { color: var(--brass); }

.footer-nav h3,
.footer-visit h3,
.footer-contact h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--ivory-dark);
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--ivory); }

.footer-visit p,
.footer-contact p {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--ivory-dark);
  line-height: 1.75;
}
.footer-contact a {
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--brass); }

.footer-reserve-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass-dark);
  padding: 11px 22px;
  border-radius: 2px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.footer-reserve-link:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.footer-bottom {
  border-top: 1px solid rgba(138, 110, 40, 0.2);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--brass-dark);
  text-transform: uppercase;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1500px) {
  :root {
    --container:  1440px;
    --section-v:  128px;
    --nav-height: 80px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-v: 64px;
    --nav-height: 64px;
  }

  .nav-toggle { display: flex; }
  #nav-links { display: none; }
  #mobile-nav { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --section-v: 48px; }

  .container { padding: 0 1.25rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 40px;
  }
}
