/* =========================================================================
   Great Destination Hospitality — styles.css
   Classical cream design system — shared by all pages.
   Maps design-tokens.json → CSS custom properties.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* shared palette */
  --paper:        #FAF6EE;
  --paper-soft:   #F4EDDE;
  --paper-deep:   #EEE5CF;
  --ink:          #2A2823;
  --ink-soft:     #5A554C;
  --ink-mute:     #8F887C;
  --line:         #E3D9C3;
  --line-soft:    #ECE4D0;
  --blend:        #DDBC88;

  /* zone accents — MySpace */
  --ms:           #E8A582;
  --ms-pale:      #FBEDE3;
  --ms-deep:      #C17A54;

  /* zone accents — VIVIDUS */
  --vv:           #C8A968;
  --vv-pale:      #F1E8CE;
  --vv-deep:      #9D8345;

  /* fonts */
  --fd: 'Playfair Display', 'Times New Roman', serif;
  --fb: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fk: 'Noto Sans Kannada', 'Playfair Display', serif;

  /* type scale */
  --t-masthead:   clamp(20px, 1.5vw, 26px);
  --t-hero:       clamp(44px, 5.4vw, 84px);
  --t-section:    clamp(32px, 3.8vw, 52px);
  --t-card:       clamp(22px, 2.2vw, 28px);
  --t-body-lg:    clamp(17px, 1.2vw, 19px);
  --t-body:       16px;
  --t-sm:         14px;
  --t-label:      11px;

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section-y: 120px;
  --container: 1280px;
  --container-pad: 56px;

  /* radius & shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(42,40,35,.05), 0 4px 16px rgba(42,40,35,.06);
  --shadow-lift: 0 2px 6px rgba(42,40,35,.06), 0 12px 40px rgba(42,40,35,.09);

  /* motion */
  --m-fast: 180ms; --m-base: 360ms; --m-slow: 720ms;
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

@media (max-width: 768px) {
  :root { --section-y: 80px; --container-pad: 24px; }
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fb);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv02';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--fd);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-section); }
h3 { font-size: var(--t-card); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 var(--s4) 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--m-fast) var(--ease);
}
a:hover { color: var(--ms-deep); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--vv-pale); color: var(--ink); }

/* ---------- 3. Paper grain overlay (very subtle, classical) ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 4. Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-y) 0;
}
.section-tight { padding: calc(var(--section-y) * .6) 0; }

/* ---------- 5. Typography utilities ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--fb);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s4);
}

.quote {
  font-family: var(--fd);
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--s5) 0;
}

.italic-accent {
  font-family: var(--fd);
  font-style: italic;
  color: var(--ms-deep);
}

.lead {
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.body-soft  { color: var(--ink-soft); }
.body-mute  { color: var(--ink-mute); font-size: var(--t-sm); }

.rule {
  display: block;
  height: 1px;
  background: var(--line);
  margin: var(--s6) 0;
  border: 0;
}
.rule.thin { background: var(--line-soft); }
.rule.center { max-width: 80px; margin-left: auto; margin-right: auto; }

/* Classical ornament (very subtle) */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s4);
  padding: var(--s6) 0;
  color: var(--ink-mute);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1; max-width: 140px;
  height: 1px;
  background: var(--line);
}
.ornament .diamond {
  width: 6px; height: 6px;
  background: var(--blend);
  transform: rotate(45deg);
  opacity: .7;
}

/* ---------- 6. Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 14px 28px;
  font-family: var(--fb);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: all var(--m-base) var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ms-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--fb);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: all var(--m-base) var(--ease);
}
.arrow-link::after {
  content: "→";
  transition: transform var(--m-base) var(--ease);
}
.arrow-link:hover {
  color: var(--ms-deep);
  border-color: var(--ms-deep);
}
.arrow-link:hover::after { transform: translateX(5px); }

.arrow-link-vv:hover     { color: var(--vv-deep); border-color: var(--vv-deep); }
.arrow-link-vv:hover::after { transform: translateX(5px); }

/* ---------- 7. Masthead + Primary Nav ---------- */

.masthead {
  text-align: center;
  padding: 22px var(--container-pad) 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(250, 246, 238, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.masthead .wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.masthead .wordmark .line-1 {
  font-family: var(--fd);
  font-size: var(--t-masthead);
  letter-spacing: .04em;
  line-height: 1;
}
.masthead .wordmark .line-1 em {
  font-style: italic;
  color: var(--ms-deep);
  margin: 0 .04em;
}
.masthead .wordmark .line-2 {
  font-family: var(--fb);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Primary nav (horizontal rule + three items + index toggle) */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 238, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-base) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s5);
}

.nav-brand {
  font-family: var(--fd);
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ink);
  opacity: .78;
  text-decoration: none;
}
.nav-brand:hover { opacity: 1; color: var(--ms-deep); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-toggle-link {
  font-family: var(--fb);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .78;
  transition: opacity var(--m-fast) var(--ease), color var(--m-fast) var(--ease);
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-links a:hover, .nav-links button.nav-toggle-link:hover,
.nav-links a.is-active { opacity: 1; color: var(--ms-deep); }

/* Nav dropdown ("Our Brands") */
.nav-drop {
  position: relative;
}
.nav-drop .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  transform: translateY(-1px);
}
.nav-drop-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  margin-top: 6px;
  min-width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease);
  z-index: 50;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--fd);
  font-size: 22px;
  opacity: 1;
  color: var(--ink);
}
.nav-drop-menu a:last-child { border-bottom: 0; }
.nav-drop-menu a .d-tag {
  display: block;
  font-family: var(--fb);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.nav-drop-menu a:hover { background: var(--ms-pale); color: var(--ms-deep); }
.nav-drop-menu a:hover .d-tag { color: var(--ms-deep); opacity: .7; }
.nav-drop-menu a.is-vv:hover { background: var(--vv-pale); color: var(--vv-deep); }
.nav-drop-menu a.is-vv:hover .d-tag { color: var(--vv-deep); opacity: .7; }

/* Index toggle on the right */
.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fd);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  justify-self: end;
  transition: color var(--m-base) var(--ease);
}
.menu-trigger:hover { color: var(--ms-deep); }
.menu-trigger .t-word {
  display: inline-block;
  min-width: 3em;
  text-align: right;
  transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease);
}
.menu-trigger .t-word.t-close {
  position: absolute;
  right: 32px;
  opacity: 0;
  transform: translateY(6px);
}
.menu-trigger { position: relative; }
.menu-trigger .t-mark {
  position: relative;
  width: 22px; height: 14px;
  flex-shrink: 0;
}
.menu-trigger .t-mark .ln {
  position: absolute;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--m-base) var(--ease),
              width var(--m-base) var(--ease),
              top var(--m-base) var(--ease),
              opacity var(--m-base) var(--ease);
}
.menu-trigger .t-mark .ln:nth-child(1) { top: 2px;  width: 100%; }
.menu-trigger .t-mark .ln:nth-child(2) { top: 7px;  width: 72%; }
.menu-trigger .t-mark .ln:nth-child(3) { top: 12px; width: 88%; }

body.menu-open .menu-trigger .t-word.t-open { opacity: 0; transform: translateY(-6px); }
body.menu-open .menu-trigger .t-word.t-close { opacity: 1; transform: translateY(0); }
body.menu-open .menu-trigger .t-mark .ln:nth-child(1) { top: 7px; width: 100%; transform: rotate(45deg); }
body.menu-open .menu-trigger .t-mark .ln:nth-child(2) { opacity: 0; width: 0; }
body.menu-open .menu-trigger .t-mark .ln:nth-child(3) { top: 7px; width: 100%; transform: rotate(-45deg); }


/* ---------- Nav Reserve button — the conversion anchor in the navbar ----------
   Wrapped alongside .menu-trigger in a .nav-actions flex cluster so the pair
   sits aligned-right in the nav's third grid column. Visible on every page,
   every viewport. */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  justify-self: end;
}

.nav-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 180ms var(--ease),
    background 220ms var(--ease),
    box-shadow 220ms var(--ease),
    color 180ms var(--ease);
}
.nav-reserve:hover,
.nav-reserve:focus-visible {
  background: var(--ms-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(42, 40, 35, .22);
  outline: none;
}
.nav-reserve .nr-arrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0;
  transform: translateY(-0.5px);
  transition: transform 220ms var(--ease-out);
}
.nav-reserve:hover .nr-arrow,
.nav-reserve:focus-visible .nr-arrow { transform: translate(3px, -0.5px); }

/* On narrower viewports, tighten the pill but keep it visible */
@media (max-width: 720px) {
  .nav-reserve { padding: 8px 14px; font-size: 11px; letter-spacing: .18em; gap: 6px; }
  .nav-reserve .nr-arrow { font-size: 12px; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 480px) {
  .nav-reserve { padding: 7px 12px; }
}

/* Mobile nav collapse */
.nav-mobile-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 1px; background: currentColor;
  position: relative;
}
.nav-mobile-toggle span::before, .nav-mobile-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor;
}
.nav-mobile-toggle span::before { top: -7px; }
.nav-mobile-toggle span::after  { top:  7px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-brand { justify-self: start; }
  .nav-mobile-toggle { display: inline-flex; justify-self: center; }
  .menu-trigger { font-size: 16px; }
}

/* ---------- 8. Index overlay (full-screen classical menu) ---------- */

body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity 420ms var(--ease-out), clip-path 560ms var(--ease);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.menu-overlay::-webkit-scrollbar { width: 6px; }
.menu-overlay::-webkit-scrollbar-track { background: transparent; }
.menu-overlay::-webkit-scrollbar-thumb { background: rgba(42,40,35,.15); border-radius: 3px; }
body.menu-open .menu-overlay {
  opacity: 1; pointer-events: auto; clip-path: inset(0 0 0% 0);
}

.menu-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.4'/></svg>");
  mix-blend-mode: multiply;
  opacity: .2;
  pointer-events: none;
}

.menu-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--container-pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--fb);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: sticky; top: 0; z-index: 3;
  background: var(--paper);
}
.menu-topbar .tb-cent {
  font-family: var(--fd);
  font-style: normal;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink);
}
.menu-topbar .tb-cent em { font-style: italic; color: var(--ms-deep); }
.menu-topbar .tb-right { text-align: right; }

.menu-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 4vh, 60px) var(--container-pad);
  align-items: stretch;
  position: relative; z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .menu-body { grid-template-columns: 1fr; gap: var(--s7); padding: var(--s6) var(--container-pad); }
}

.menu-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; align-content: start; gap: clamp(4px, 0.6vh, 10px);
}

.menu-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--s5);
  align-items: baseline;
  padding: clamp(14px, 1.8vh, 26px) 0;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 520ms var(--ease-out),
              transform 520ms var(--ease-out),
              color var(--m-base) var(--ease);
}
body.menu-open .menu-item { opacity: 1; transform: translateX(0); }
body.menu-open .menu-item:nth-child(1) { transition-delay: 160ms; }
body.menu-open .menu-item:nth-child(2) { transition-delay: 230ms; }
body.menu-open .menu-item:nth-child(3) { transition-delay: 300ms; }
body.menu-open .menu-item:nth-child(4) { transition-delay: 370ms; }
body.menu-open .menu-item:nth-child(5) { transition-delay: 440ms; }
body.menu-open .menu-item:nth-child(6) { transition-delay: 510ms; }
body.menu-open .menu-item:nth-child(7) { transition-delay: 580ms; }

.menu-item::after {
  content: "";
  position: absolute;
  left: 48px; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transition: background var(--m-base) var(--ease);
}
.menu-item:last-child::after { background: transparent; }

.menu-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--ms-deep);
  transform: translateY(-50%);
  transition: height var(--m-base) var(--ease);
}
.menu-item:hover::before, .menu-item:focus-visible::before { height: 70%; }

.menu-item .m-num {
  font-family: var(--fd);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink); opacity: .45;
  font-variant-numeric: lining-nums;
  letter-spacing: .02em;
  transition: color var(--m-base) var(--ease), opacity var(--m-base) var(--ease);
}
.menu-item .m-main {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: var(--s5);
  align-items: baseline;
}
@media (max-width: 640px) {
  .menu-item .m-main { grid-template-columns: 1fr; gap: 2px; }
  .menu-item { grid-template-columns: 36px 1fr auto; }
}
.menu-item .m-title {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--m-base) var(--ease), transform var(--m-base) var(--ease);
}
.menu-item .m-tag {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(15px, 1.25vw, 20px);
  color: var(--ink); opacity: .62;
  line-height: 1.3;
  max-width: 38ch;
  transition: opacity var(--m-base) var(--ease), color var(--m-base) var(--ease);
}
.menu-item .m-arrow {
  font-family: var(--fd);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink); opacity: .35;
  transition: transform var(--m-base) var(--ease), color var(--m-base) var(--ease), opacity var(--m-base) var(--ease);
}

.menu-item:hover, .menu-item:focus-visible { outline: none; color: var(--ms-deep); }
.menu-item:hover .m-num,
.menu-item:focus-visible .m-num { color: var(--ms-deep); opacity: 1; }
.menu-item:hover .m-title,
.menu-item:focus-visible .m-title { color: var(--ms-deep); transform: translateX(8px); }
.menu-item:hover .m-tag,
.menu-item:focus-visible .m-tag { opacity: .9; color: var(--ms-deep); }
.menu-item:hover .m-arrow,
.menu-item:focus-visible .m-arrow { color: var(--ms-deep); opacity: 1; transform: translateX(10px); }
.menu-item:hover::after,
.menu-item:focus-visible::after { background: var(--ms-deep); }

/* Menu preview */
.menu-preview {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: var(--s6);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease-out) 300ms, transform 620ms var(--ease-out) 300ms;
}
body.menu-open .menu-preview { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .menu-preview { min-height: 240px; } }

.menu-preview .preview-stack { position: absolute; inset: 0; overflow: hidden; }
.menu-preview .preview-frame {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 500ms var(--ease);
  background-size: cover; background-position: center;
}
.menu-preview .preview-frame.is-active { opacity: 1; }
.menu-preview .preview-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,40,35,0) 55%, rgba(42,40,35,.45) 100%);
}

.menu-preview .preview-head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  color: rgba(250,246,238,.85);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.menu-preview .preview-caption {
  position: relative; z-index: 2;
  color: #F5EBDA;
}
.menu-preview .preview-caption .kn {
  font-family: var(--fk);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  display: block;
  color: var(--ms-pale);
  margin-bottom: var(--s4);
}
.menu-preview .preview-caption .quote {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  color: #F5EBDA;
  margin: 0 0 var(--s3) 0;
}
.menu-preview .preview-caption .meta {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 235, 218, .72);
}

.menu-bottombar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--container-pad);
  border-top: 1px solid var(--line);
  font-family: var(--fb);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative; z-index: 1;
  background: var(--paper);
  gap: var(--s5);
}
.menu-bottombar .bb-left { display: flex; align-items: center; gap: 16px; }
.menu-bottombar .bb-left::before {
  content: "CALL";
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}
.menu-bottombar .bb-left a {
  font-family: var(--fd);
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink);
}
.menu-bottombar .bb-cent {
  font-family: var(--fd);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink-mute);
}
.menu-bottombar .bb-right { text-align: right; }
.menu-bottombar .bb-right a {
  font-family: var(--fd);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ms-deep);
  border-bottom: 1px solid var(--ms-deep);
  padding-bottom: 2px;
}
@media (max-width: 720px) {
  .menu-bottombar { grid-template-columns: 1fr; justify-items: center; gap: var(--s3); text-align: center; }
  .menu-bottombar .bb-left, .menu-bottombar .bb-right { text-align: center; justify-content: center; }
}

/* ---------- 8a. Body-stack (for the reveal-footer peel) ---------- */

/* The body-stack wraps all scrolling page content above the footer.
   It sits on top of the fixed footer (z-index 2 over 1), has a cream
   background, and has a margin-bottom equal to --footer-height so the
   footer is revealed from behind as the user scrolls past it. */
body.has-reveal-footer { background: var(--ink); }

.body-stack {
  position: relative;
  z-index: 2;
  background: var(--paper);
  /* Default fallback — JS will overwrite --footer-height at runtime */
  margin-bottom: var(--footer-height, 520px);
}

/* ---------- 9. Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s10) 0 var(--s5);
  position: relative;
}

/* Reveal-footer variant — fixed to viewport, peels out from behind. */
.footer.is-reveal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  padding: clamp(64px, 9vh, 120px) 0 var(--s5);
  /* Subtle upward inner shadow so the seam feels intentional */
  box-shadow: inset 0 24px 40px -24px rgba(0,0,0,.35);
}
/* The peel edge: a thin gold hairline at the top of the fixed footer */
.footer.is-reveal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vv) 40%, var(--vv) 60%, transparent);
  opacity: .5;
}

/* Staggered slide-up+fade for footer children once the footer enters view */
.footer.is-reveal .footer-brand,
.footer.is-reveal .footer-grid > * ,
.footer.is-reveal .footer-bottom {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms cubic-bezier(.2, .7, 0, 1),
    transform 720ms cubic-bezier(.2, .7, 0, 1);
}
.footer.is-reveal.is-revealing .footer-brand          { opacity: 1; transform: none; transition-delay: 0ms; }
.footer.is-reveal.is-revealing .footer-grid > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 120ms; }
.footer.is-reveal.is-revealing .footer-grid > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 200ms; }
.footer.is-reveal.is-revealing .footer-grid > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 280ms; }
.footer.is-reveal.is-revealing .footer-grid > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 360ms; }
.footer.is-reveal.is-revealing .footer-bottom         { opacity: 1; transform: none; transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .footer.is-reveal .footer-brand,
  .footer.is-reveal .footer-grid > *,
  .footer.is-reveal .footer-bottom {
    opacity: 1; transform: none; transition: none;
  }
}

.footer-brand {
  text-align: center;
  margin-bottom: var(--s9);
}
.footer-brand .wm {
  font-family: var(--fd);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: .04em;
  color: var(--paper);
}
.footer-brand .wm em { font-style: italic; color: var(--ms); }
.footer-brand .sub {
  font-family: var(--fb);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(250,246,238,.5);
  margin-top: var(--s4);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s7);
  margin-bottom: var(--s7);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  color: var(--paper);
  font-family: var(--fb);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 var(--s4) 0;
  opacity: .5;
}
.footer p, .footer a, .footer li {
  color: rgba(250, 246, 238, .72);
  font-size: 13px;
  margin: 0;
}
.footer a:hover { color: var(--ms); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s6) var(--container-pad) 0;
  border-top: 1px solid rgba(250, 246, 238, .12);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, .45);
}
@media (max-width: 560px) { .footer-bottom { flex-direction: column; text-align: center; align-items: center; } }

/* ---------- 10. Reveal (default visible, opt-in animation) ---------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
body.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, body.js-ready .reveal, body.js-ready .reveal:not(.is-visible) {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- 11. Images (placeholders + real) ---------- */

.img {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.img[data-label]::before {
  content: attr(data-label);
  position: absolute;
  inset: auto 18px 18px 18px;
  color: rgba(255,255,255,.82);
  font-family: var(--fb);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  pointer-events: none;
}
.img-16x9 { aspect-ratio: 16/9; }
.img-4x3  { aspect-ratio: 4/3; }
.img-3x4  { aspect-ratio: 3/4; }
.img-1x1  { aspect-ratio: 1/1; }

/* ---------- 12. Utility ---------- */

.text-center { text-align: center; }
.mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); } .mt-8 { margin-top: var(--s8); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s7); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.hidden { display: none !important; }

@media print {
  .nav, .masthead, .menu-overlay, .footer { display: none; }
  body { background: #fff; color: #000; }
}
