/* ---------- Self-hosted fonts (no external requests) ---------- */
@font-face { font-family: 'Great Vibes'; src: url('assets/fonts/great-vibes-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-latin-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap; }

@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap; }

/* ============================
   Salaama Eats Ltd — Andalusian / Arab-Somali Elegance
   ============================ */

:root {
  --ivory: #0b0907;
  --ivory-2: #120c09;
  --ink: #f3e9d8;
  --charcoal: #120b09;
  --charcoal-2: #1c130f;
  /* background behind the Chef's Selection slider — the edge fade has to
     match it, so both read from this one value */
  --showcase-bg: #120b09;
  --red: #cc3d3f;
  --red-deep: #7c2224;
  --gold: #c89b4c;
  --gold-light: #e6c67d;
  --muted: #b7a98d;
  --line: rgba(243, 233, 216, 0.14);
  --line-light: rgba(230, 198, 125, 0.28);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(200, 155, 76, 0.07);
  --radius: 24px;
  --radius-sm: 14px;
  --surface: linear-gradient(165deg, rgba(243,233,216,0.055), rgba(243,233,216,0.015));
  --ff-head: 'Cormorant Garamond', 'Georgia', serif;
  --ff-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Ornament divider ---------- */
.ornament { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ornament span { width: 36px; height: 1px; background: var(--gold); }
.ornament i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); display: block; flex-shrink: 0; }
.ornament.light span, .ornament.light i { background: var(--gold-light); }
.ornament.center, .section-head .ornament, .testimonials .ornament { justify-content: center; }

/* ---------- Geometric pattern texture ---------- */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.6;
  background-image:
    repeating-linear-gradient(60deg, rgba(230,198,125,0.08) 0px, rgba(230,198,125,0.08) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(-60deg, rgba(204,61,63,0.08) 0px, rgba(204,61,63,0.08) 1px, transparent 1px, transparent 46px);
}
.hero-pattern.dark {
  opacity: 0.8;
  background-image:
    repeating-linear-gradient(60deg, rgba(230,198,125,0.1) 0px, rgba(230,198,125,0.1) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(-60deg, rgba(204,61,63,0.1) 0px, rgba(204,61,63,0.1) 1px, transparent 1px, transparent 46px);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { width: 60px; height: 60px; object-fit: contain; animation: pulseMark 1.5s ease-in-out infinite; }
@keyframes pulseMark {
  0%, 100% { opacity: 0.35; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(8deg); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--ff-body);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  overflow: hidden;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left 0.65s var(--ease);
}
.btn-gold:hover::before { left: 120%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200,155,76,0.4); }
.btn-outline, .btn-line {
  border-color: var(--ink); color: var(--ink); background: transparent;
}
.btn-outline:hover, .btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-full { width: 100%; }
.btn-pill { border-radius: 999px; padding: 14px 30px; letter-spacing: 0.08em; }
.btn-glass {
  background: rgba(12,10,8,0.55); color: var(--ink); border-color: rgba(243,233,216,0.25);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(12,10,8,0.85); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 16px 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
  background: rgba(11, 9, 7, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%); opacity: 0; pointer-events: none;
}
.site-header.scrolled {
  transform: translateY(0); opacity: 1; pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { font-family: var(--ff-head); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--ink); }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  color: var(--ink); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; position: relative; padding-bottom: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--red);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { flex-shrink: 0; padding: 12px 26px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); }

/* ---------- Hero (full-bleed framed) ---------- */
.hero { position: relative; background: var(--ivory); padding: 0; }
.hero-frame {
  position: relative; overflow: hidden;
  margin: 14px; height: calc(100vh - 28px); height: calc(100svh - 28px); min-height: 620px;
  border-radius: 28px; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%; z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.48) 48%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 28%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0.66) 100%);
}

/* nav sitting inside the hero frame */
.hero-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 34px;
}
.hero-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.hero-logo img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.hero-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.hero-logo-name { font-family: var(--ff-head); font-style: italic; font-weight: 600; font-size: 1.15rem; }
.hero-logo-sub {
  font-family: var(--ff-body); font-style: normal; font-weight: 500;
  font-size: 0.53rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 3px;
}
.hero-nav-right { display: flex; align-items: center; gap: 26px; }
.hero-nav-right > a {
  color: var(--ink); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
  opacity: 0.92; transition: opacity 0.25s, color 0.25s;
}
.hero-nav-right > a:hover { opacity: 1; color: var(--gold-light); }
.hero-socials { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; }
.hero-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(243,233,216,0.34); color: var(--ink);
  transition: all 0.3s var(--ease);
}
.hero-socials svg { width: 15px; height: 15px; }
.hero-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

/* centred hero content */
.hero-center {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.hero-mark {
  width: clamp(56px, 8vw, 84px); height: clamp(56px, 8vw, 84px); object-fit: contain;
  margin-bottom: 10px; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
}
.hero-script {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Brush Script MT', cursive;
  font-weight: 400; font-style: normal;
  font-size: clamp(3.6rem, 11vw, 8rem); line-height: 1;
  color: var(--ink); text-shadow: 0 6px 40px rgba(0,0,0,0.6);
  margin-bottom: 8px;
}
/* "Mediterranean Grill" sits under the script logotype, flanked by hairlines
   so it reads as part of the lockup rather than a second tagline. */
.hero-name-sub {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  font-size: clamp(0.66rem, 1.2vw, 0.8rem);
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  color: var(--gold-light); margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}
.hero-name-sub::before,
.hero-name-sub::after {
  content: ""; height: 1px; width: clamp(22px, 6vw, 64px); flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.hero-name-sub::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
/* nudge back the trailing letter-space so the words optically centre */
.hero-name-sub span { padding-left: 0.32em; }
.hero-tagline {
  font-size: clamp(0.72rem, 1.3vw, 0.86rem); letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.hero-sub {
  font-size: 0.86rem; color: rgba(243,233,216,0.82); margin-bottom: 30px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-cue span { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); animation: cueMove 2s ease-in-out infinite; }
@keyframes cueMove { 0%, 100% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(0.6); opacity: 1; } }

/* arch frames still used by the heritage section */
.arch-frame {
  position: relative; overflow: hidden; width: 100%; height: 520px;
  border-radius: 50% 50% var(--radius) var(--radius) / 150px 150px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--gold);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.arch-frame.small { height: 420px; border-radius: 50% 50% var(--radius) var(--radius) / 120px 120px var(--radius) var(--radius); }
.arch-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
  background: linear-gradient(165deg, #1c130f 0%, #0b0907 75%);
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.experience-grid .exp-card:nth-child(1) { transition-delay: 0s; }
.experience-grid .exp-card:nth-child(2) { transition-delay: 0.1s; }
.experience-grid .exp-card:nth-child(3) { transition-delay: 0.2s; }
.experience-grid .exp-card:nth-child(4) { transition-delay: 0.3s; }
.gallery-grid .g-item:nth-child(1) { transition-delay: 0s; }
.gallery-grid .g-item:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .g-item:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .g-item:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid .g-item:nth-child(5) { transition-delay: 0.32s; }
.gallery-grid .g-item:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
.section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-style: italic; margin-bottom: 14px; }
.section-lede { color: var(--muted); font-size: 1.02rem; }
.section-head.light h2 { color: var(--ink); }

/* ---------- Showcase slider ---------- */
.showcase { background: var(--charcoal); overflow: hidden; padding-bottom: 50px; }
.showcase .section-head { margin-bottom: 44px; }
.showcase-slider { position: relative; max-width: 100%; margin: 0 auto; overflow: hidden; }
/* Edge fade drawn as two gradient overlays rather than mask-image: masking
   a wide, permanently-animating layer is an expensive compositing path that
   iOS Safari has been known to drop, blanking the slider. */
.showcase-slider::before,
.showcase-slider::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 2;
  width: clamp(24px, 6%, 110px); pointer-events: none;
}
.showcase-slider::before { left: 0; background: linear-gradient(90deg, var(--showcase-bg), transparent); }
.showcase-slider::after { right: 0; background: linear-gradient(270deg, var(--showcase-bg), transparent); }
/* Continuous auto-scrolling showcase. This is a real scroll container that
   script.js advances a fraction of a pixel per frame — NOT a CSS transform
   on one oversized element. Transforming a ~3000px-wide track forces iOS
   Safari to promote it to a single giant composited layer, which it then
   discards under memory pressure, blanking the whole slider. Scrolling is
   the best-tested path in every engine: only the visible tiles get
   rasterized, nothing huge stays promoted, and people can swipe it by hand.
   The track holds the 4 dishes twice, so wrapping at the halfway point is
   invisible. */
.slider-track {
  display: flex; gap: 28px; padding: 6px 6px 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: auto; /* must not inherit html's smooth, or the wrap animates */
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.dish-card { flex: 0 0 370px; user-select: none; }
.dish-media {
  display: block; width: 100%; height: 440px; object-fit: cover; object-position: center 50%;
  border-radius: var(--radius); border: 1px solid var(--line-light);
  box-shadow: var(--shadow); background: linear-gradient(155deg, #1c130f, #0b0907);
  transition: transform 0.5s var(--ease), border-color 0.3s;
  pointer-events: none;
}
/* Hover effects only on devices with a real pointer. On touch, iOS latches
   :hover onto whatever you last touched and never clears it. (The marquee's
   hover-pause lives in script.js now, guarded the same way.) */
@media (hover: hover) and (pointer: fine) {
  .dish-card:hover .dish-media { transform: translateY(-8px); border-color: var(--gold); }
}
.dish-info { padding-top: 20px; }
.dish-num { font-family: var(--ff-head); color: var(--gold); font-size: 0.82rem; letter-spacing: 0.12em; }
.dish-info h3 { font-size: 1.3rem; font-style: italic; margin: 8px 0 8px; }
.dish-info p { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; min-height: 2.6em; }
.dish-price { font-family: var(--ff-head); color: var(--red); font-weight: 700; font-size: 1.15rem; }

/* ---------- Heritage ---------- */
.heritage { background: var(--charcoal); color: var(--ink); overflow: hidden; }
.heritage-media { perspective: 1200px; }
.heritage-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 90px; align-items: center; }
.heritage-copy h2 { color: var(--ink); font-style: italic; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.heritage-copy p { color: rgba(250,245,234,0.72); margin-bottom: 18px; max-width: 520px; }
.heritage-stats { display: flex; gap: 44px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-light); }
.heritage-stats strong { display: block; font-family: var(--ff-head); font-size: 1.9rem; color: var(--gold-light); font-style: italic; }
.heritage-stats span { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(250,245,234,0.6); }

/* ---------- Menu ---------- */
.menu { background: var(--ivory-2); }
.menu-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }
.tab-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 12px 24px; border-radius: 999px; font-family: var(--ff-body);
  font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; transition: all 0.3s var(--ease);
}
.tab-btn:hover { border-color: var(--red); }
.tab-btn.active { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.menu-panels { max-width: 960px; margin: 0 auto; }
.menu-panel { display: none; grid-template-columns: 1fr 1fr; gap: 8px 50px; }
.menu-panel.active { display: grid; }
.menu-panel li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
/* Every thumbnail fills its rounded square edge to edge. object-fit:cover
   keeps each photo's aspect ratio and crops the overflow, so nothing is
   stretched and there's no empty space inside the frame. */
.mi-thumb {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 10px;
  object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.mi-content { flex: 1; min-width: 0; }
.mi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.mi-head h3 { font-size: 1.05rem; font-style: italic; font-weight: 700; }
.price { font-family: var(--ff-head); color: var(--red); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.menu-panel li p { color: var(--muted); font-size: 0.92rem; }
.menu-note { text-align: center; margin-top: 44px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Experience ---------- */
.experience { background: var(--charcoal); overflow: hidden; }
.experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.exp-card {
  border: 1px solid var(--line-light); border-radius: var(--radius);
  background: var(--surface); padding: 42px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}
.exp-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.exp-icon { color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: 18px; }
.exp-card h3 { color: var(--ink); font-size: 1.25rem; font-style: italic; margin-bottom: 12px; }
.exp-card p { color: rgba(250,245,234,0.62); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 460px; gap: 22px; }
.g-item {
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(204,61,63,0.55), transparent 60%),
    linear-gradient(155deg, #1c130f, #0b0907);
  transition: transform 0.5s var(--ease);
}
.g-item:hover { transform: translateY(-6px); }
.g-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
  display: block; transition: transform 0.6s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-item.arch { border-radius: 50% 50% var(--radius) var(--radius) / 120px 120px var(--radius) var(--radius); border: 3px solid var(--gold); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ivory-2); text-align: center; }
.testi-track { position: relative; max-width: 780px; margin: 0 auto; min-height: 150px; }
.testi { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease); }
.testi.active { opacity: 1; visibility: visible; position: relative; }
.testi p {
  font-family: var(--ff-head); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink); line-height: 1.5; margin-bottom: 22px; position: relative;
}
.quote-mark { color: var(--gold); font-size: 2.2rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; font-style: normal; }
.testi cite { color: var(--red); font-style: normal; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: all 0.3s; }
.testi-dots button.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ---------- Reserve ---------- */
.reserve { background: var(--charcoal); overflow: hidden; }
.reserve-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
/* grid tracks default to min-width:auto, so a track will refuse to shrink below
   the intrinsic width of an <input>/<select> inside it. On narrow phones that
   pushed the form past .reserve's overflow:hidden and clipped it. */
.reserve-grid > * { min-width: 0; }
.reserve-copy h2 { color: var(--ink); font-style: italic; margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 3rem); }
.reserve-copy p { color: rgba(243,233,216,0.68); margin-bottom: 26px; max-width: 440px; }
.reserve-list li { color: var(--ink); font-size: 0.92rem; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-light); position: relative; }
.reserve-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; }
.reserve-form { background: var(--charcoal-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: rgba(243,233,216,0.05); border: 1px solid var(--line-light);
  color: var(--ink); padding: 13px 16px; border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 0.92rem;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.form-status { margin-top: 16px; font-size: 0.85rem; color: var(--gold-light); min-height: 1.2em; }

/* ---------- Visit ---------- */
.visit { background: var(--ivory); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: stretch; }
.visit-info h2 { margin-bottom: 6px; font-style: italic; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.visit-sub {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 500; color: var(--accent-deep, var(--gold));
}
.visit-info address { font-style: italic; font-family: var(--ff-head); font-size: 1.3rem; margin: 8px 0 32px; color: var(--muted); }
.visit-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.visit-details h4 { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; font-family: var(--ff-body); font-weight: 500; }
.visit-details p { color: var(--muted); font-size: 0.92rem; }
.visit-details a:hover { color: var(--red); }
.social-links { display: flex; gap: 24px; margin-bottom: 30px; }
.visit-directions { padding: 14px 30px; }
.social-links a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color 0.3s; }
.social-links a:hover { border-color: var(--red); }
.visit-map { overflow: hidden; box-shadow: var(--shadow); min-height: 470px; border-radius: var(--radius); background: var(--charcoal-2); }
.visit-map iframe { width: 100%; height: 100%; min-height: 470px; border: 0; filter: invert(92%) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.7); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); padding: 70px 0 34px; position: relative; overflow: hidden; }
.site-footer .ornament { justify-content: center; margin-bottom: 34px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line-light); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { width: 128px; height: auto; object-fit: contain; }
.footer-brand p { color: rgba(250,245,234,0.55); font-size: 0.82rem; margin-top: 16px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: rgba(250,245,234,0.75); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-legal { text-align: center; color: rgba(250,245,234,0.4); font-size: 0.78rem; margin-top: 26px; }

/* ---------- Floating CTA ---------- */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--charcoal);
  padding: 15px 28px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(200,155,76,0.4);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .heritage-grid, .reserve-grid, .visit-grid { grid-template-columns: 1fr; }
  .arch-frame { height: 400px; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-card { flex-basis: 300px; }
  .dish-media { height: 380px; }
  .hero-nav-right > a { display: none; }
  .hero-nav-right > a:last-of-type { display: inline-block; }
  .gallery-grid { grid-auto-rows: 400px; }
}

@media (max-width: 860px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  /* the framed hero nav is too wide for phones — use the sticky bar instead */
  .hero-nav { display: none; }
  .site-header { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hero { padding-top: 60px; }
  .hero-frame {
    margin: 10px; height: calc(100vh - 80px); height: calc(100svh - 80px);
    min-height: 480px; border-radius: 20px;
  }
  .hero-center { padding-top: 40px; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); padding: 24px 40px; gap: 20px; border-bottom: 1px solid var(--line);
  }
  section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr; }
}

/* Menu list drops to one column below tablet width, not at the 860px
   nav breakpoint — an iPad in portrait (~768-834px) has plenty of room
   for two columns even though it gets the phone-style nav/header. */
@media (max-width: 700px) {
  .menu-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .hero { padding-top: 120px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { width: auto; padding: 13px 24px; font-size: 0.72rem; }
  .experience-grid, .gallery-grid { grid-template-columns: 1fr; }
  .g-item.arch { grid-row: span 1; }
  .slider-track { padding: 6px 10px 16px; gap: 18px; }
  /* 44px of form padding costs a third of the width on a small phone */
  .reserve-form { padding: 28px 20px; }
  .dish-card { flex-basis: 240px; }
  .dish-media { height: 300px; }
  .gallery-grid { grid-auto-rows: 340px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-legal { padding-bottom: 60px; }
  .fab { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 0.72rem; }
}
