/*
Theme Name: Stashed Baked Goods
Author: Will Luma
Description: Custom theme for Stashed Baked Goods — Bay Area artisan cookie catering
Version: 1.0
*/

/* ============================================================
   DESIGN TOKENS — Luxury Dark Editorial
============================================================ */
:root {
  --ink:          #080808;
  --ink-soft:     #111111;
  --ink-mid:      #1c1c1c;
  --surface:      #f6f4f0;
  --surface-warm: #f0ede7;
  --border:       rgba(255,255,255,0.08);
  --border-light: #e2ddd6;

  --lavender:       #c4aff0;
  --lavender-dim:   #9d84d4;
  --lavender-mist:  rgba(196,175,240,0.12);
  --lavender-glow:  rgba(196,175,240,0.22);

  --white:    #ffffff;
  --smoke:    #f9f8f6;
  --pale:     #f2f0ec;
  --ash:      #c0bab2;
  --stone:    #888178;

  --display: 'DM Serif Display', Georgia, serif;
  --ui:      'Outfit', system-ui, sans-serif;

  --r-pill: 999px;
  --r-card: 20px;
  --r-soft: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.5s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip; /* clip (not hidden) — never creates a scroll container, keeps position:fixed working on iOS Safari */
}

body {
  font-family: var(--ui);
  background: var(--ink);
  color: var(--white);
  line-height: 1.65;
  overflow-x: clip; /* clip (not hidden) avoids creating a scroll container that breaks position:fixed on iOS */
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

/* ============================================================
   CUSTOM CURSOR — mouse/fine-pointer only, hidden on touch
============================================================ */
.cursor, .cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; z-index: 9999;
    width: 10px; height: 10px;
    background: var(--lavender);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
    mix-blend-mode: difference;
    opacity: 0;
  }
  .cursor-ring {
    display: block;
    position: fixed; z-index: 9998;
    width: 36px; height: 36px;
    border: 1.5px solid var(--lavender);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
  }
  body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 20px; height: 20px; }
  body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 60px; height: 60px; opacity: 0.2; }
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   NOISE GRAIN OVERLAY
============================================================ */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============================================================
   NAV
============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3.5rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: #080808;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  /* GPU layer promotion — use translate3d (more reliable than translateZ on iOS Safari) */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo em { font-style: italic; color: var(--lavender); }
.nav-links { display: flex; align-items: center; gap: 3rem; list-style: none; }
.nav-links a {
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--lavender) !important;
  color: var(--ink) !important;
  padding: 0.6rem 1.6rem !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: background var(--t), transform var(--t) !important;
}
.nav-cta:hover { background: var(--white) !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 1px; background: var(--ash); transition: 0.3s; }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: min(85vh, 900px);
  max-height: 900px;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,175,240,0.18) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none; z-index: 0;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 5rem 6rem 6rem;
  padding-top: 140px;
  position: relative; z-index: 2;
}
.hero-counter {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-counter::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--lavender-dim);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.hero-title em { font-style: italic; color: var(--lavender); display: block; }
.hero-title strong { font-weight: 400; display: block; }
.hero-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--stone);
  max-width: 360px;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(196,175,240,0.3);
}
.btn-text {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); text-decoration: none;
  transition: color var(--t), gap var(--t);
}
.btn-text:hover { color: var(--white); gap: 0.9rem; }

.hero-right { position: relative; overflow: hidden; }
.hero-right::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--ink) 0%, transparent 30%),
              linear-gradient(to top, var(--ink) 0%, transparent 30%);
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
  transition: transform 12s var(--ease);
}
.hero-right:hover img { transform: scale(1.04); }

.hero-tag {
  position: absolute; bottom: 4rem; right: 3rem; z-index: 3;
  border: 1px solid rgba(196,175,240,0.35);
  border-radius: var(--r-soft);
  padding: 1.2rem 1.6rem;
  backdrop-filter: blur(12px);
  background: rgba(196,175,240,0.06);
}
.hero-tag-num {
  font-family: var(--display);
  font-size: 2.2rem; font-weight: 400;
  color: var(--lavender); display: block; line-height: 1;
}
.hero-tag-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone); margin-top: 0.3rem;
}
.scroll-hint {
  position: absolute; bottom: 3rem; left: 6rem; z-index: 3;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone);
}
.scroll-hint::before {
  content: '';
  display: block; width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--lavender-dim), transparent);
}

/* ============================================================
   MARQUEE
============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0; overflow: hidden;
  background: var(--ink-soft);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 40s linear infinite; white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  color: var(--stone); flex-shrink: 0; transition: color 0.3s;
}
.marquee-sep { color: var(--lavender-dim); flex-shrink: 0; font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   STORY
============================================================ */
.story {
  display: grid; grid-template-columns: 42% 58%;
  min-height: 90vh; border-top: 1px solid var(--border);
}
.story-left {
  background: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem; border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.story-left::before {
  content: '';
  position: absolute; bottom: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,175,240,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.img-arch-luxury {
  width: 100%; max-width: 320px;
  margin: 0 auto 3rem;
  border-radius: 200px 200px 0 0;
  overflow: hidden; height: 380px; position: relative;
}
.img-arch-luxury::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(196,175,240,0.2);
}
.img-arch-luxury img { filter: saturate(0.6) contrast(1.1); transition: transform 8s var(--ease); }
.img-arch-luxury:hover img { transform: scale(1.06); }

.story-pull {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.5;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.story-pull em { color: var(--lavender); font-style: normal; }

.story-right { padding: 7rem 6rem; display: flex; flex-direction: column; justify-content: center; }
.label {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lavender-dim); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--lavender-dim); }

.story-right h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 2rem;
}
.story-right h2 em { font-style: italic; color: var(--lavender); }
.story-right p { font-size: 0.95rem; font-weight: 300; color: var(--stone); line-height: 1.85; margin-bottom: 1.2rem; }

.stat-row { display: flex; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--border); }
.stat-item { flex: 1; padding: 2rem 0; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; padding-left: 2rem; }
.stat-item:not(:first-child) { padding-left: 2rem; }
.stat-n { font-family: var(--display); font-size: 3rem; font-weight: 400; color: var(--white); display: block; line-height: 1; }
.stat-l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; display: block; }

/* ============================================================
   CRAFT SECTION
============================================================ */
.craft { border-top: 1px solid var(--border); padding: 6rem; background: var(--ink); }
.craft-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.craft-header h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--white);
}
.craft-header h2 em { font-style: italic; color: var(--lavender); }
.craft-header p { font-size: 0.9rem; font-weight: 300; color: var(--stone); max-width: 280px; text-align: right; line-height: 1.8; }

.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); }
.craft-card { background: var(--ink-soft); overflow: hidden; position: relative; aspect-ratio: 3/4; cursor: pointer; }
.craft-card:first-child { aspect-ratio: auto; grid-row: span 2; }
.craft-card img { filter: saturate(0.5) contrast(1.1); transition: transform 10s var(--ease), filter var(--t); }
.craft-card:hover img { transform: scale(1.08); filter: saturate(0.8) contrast(1.05); }
.craft-card:nth-child(2) .card-img-wrap { clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); }
.craft-card:nth-child(3) .card-img-wrap { clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%); }
.card-img-wrap { width: 100%; height: 100%; overflow: hidden; }
.craft-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem;
}
.craft-overlay h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 300; font-style: italic; color: var(--white); margin-bottom: 0.5rem; }
.craft-overlay p { font-size: 0.82rem; color: var(--stone); font-weight: 300; }
.craft-tag {
  display: inline-block; margin-bottom: 0.8rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--lavender); border: 1px solid rgba(196,175,240,0.35);
  padding: 0.25rem 0.75rem; border-radius: var(--r-pill); width: fit-content;
}

/* ============================================================
   INTERLUDE
============================================================ */
.interlude { min-height: 70vh; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); overflow: hidden; }
.interlude-img { position: relative; overflow: hidden; }
.interlude-img img { filter: saturate(0.5) contrast(1.15); transition: transform 10s var(--ease); }
.interlude-img:hover img { transform: scale(1.05); }
.interlude-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, transparent 60%, var(--ink)); }
.interlude-copy { background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 6rem 5rem; position: relative; }
.interlude-copy::before {
  content: '"'; font-family: var(--display); font-size: 18rem; font-weight: 300;
  color: rgba(196,175,240,0.06); position: absolute; top: -3rem; left: 3rem; line-height: 1; pointer-events: none;
}
.interlude-copy blockquote { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 400; font-style: italic; color: var(--white); line-height: 1.4; margin-bottom: 2rem; position: relative; z-index: 1; }
.interlude-copy blockquote em { color: var(--lavender); }
.interlude-copy cite { font-size: 0.78rem; font-style: normal; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 1rem; }
.interlude-copy cite::before { content: ''; display: block; width: 30px; height: 1px; background: var(--lavender-dim); }

/* ============================================================
   MENU
============================================================ */
.menu-section { padding: 7rem 6rem; border-top: 1px solid var(--border); background: var(--ink-soft); }
.menu-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.menu-head h2 { font-family: var(--display); font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--white); }
.menu-head h2 em { font-style: italic; color: var(--lavender); }
.menu-head p { font-size: 0.92rem; font-weight: 300; color: var(--stone); line-height: 1.8; }
.menu-view-all { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 3rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lavender); text-decoration: none; transition: gap var(--t), color var(--t); }
.menu-view-all:hover { gap: 1rem; color: var(--white); }

.menu-items { display: flex; flex-direction: column; gap: 0; }
.menu-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--border); transition: background var(--t); position: relative; }
.menu-row::before { content: ''; position: absolute; inset: 0 -3rem; background: var(--lavender-mist); opacity: 0; transition: opacity var(--t); border-radius: var(--r-soft); }
.menu-row:hover::before { opacity: 1; }
.menu-img { width: 70px; height: 70px; border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; overflow: hidden; flex-shrink: 0; position: relative; z-index: 1; transition: border-radius var(--t); }
.menu-row:hover .menu-img { border-radius: 50%; }
.menu-img img { filter: saturate(0.6); transition: filter var(--t), transform 5s; }
.menu-row:hover .menu-img img { filter: saturate(1); transform: scale(1.1); }
.menu-info { position: relative; z-index: 1; }
.menu-info h4 { font-family: var(--display); font-size: 1.4rem; font-weight: 400; color: var(--white); margin-bottom: 0.2rem; }
.menu-info p { font-size: 0.83rem; font-weight: 300; color: var(--stone); }
.menu-badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); border: 1px solid rgba(196,175,240,0.3); padding: 0.3rem 0.9rem; border-radius: var(--r-pill); white-space: nowrap; position: relative; z-index: 1; }

/* ============================================================
   MENU PAGE — Full dedicated layout
============================================================ */
.menu-page-hero {
  min-height: 40vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 6rem 5rem;
  position: relative; border-bottom: 1px solid var(--border);
  background: var(--ink-soft);
}
.menu-page-hero::before {
  content: '';
  position: absolute; top: -300px; right: -300px;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,175,240,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.menu-page-hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.03em;
  color: var(--white); position: relative; z-index: 1;
}
.menu-page-hero h1 em { font-style: italic; color: var(--lavender); }
.menu-page-hero p { font-size: 1rem; font-weight: 300; color: var(--stone); max-width: 520px; line-height: 1.8; margin-top: 1.5rem; position: relative; z-index: 1; }

.menu-category { padding: 5rem 6rem; border-bottom: 1px solid var(--border); }
.menu-category-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lavender-dim); margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.menu-category-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.menu-category h2 { font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--white); margin-bottom: 3.5rem; }
.menu-category h2 em { font-style: italic; color: var(--lavender); }

.menu-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); margin-bottom: 2rem; }
.menu-card-full {
  background: var(--ink-soft);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: background var(--t);
}
.menu-card-full:hover { background: var(--ink-mid); }
.menu-card-full::before { content: ''; position: absolute; bottom: -100px; right: -100px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, var(--lavender-mist) 0%, transparent 70%); opacity: 0; transition: opacity var(--t); }
.menu-card-full:hover::before { opacity: 1; }

.menu-card-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--r-card); overflow: hidden; margin-bottom: 0.5rem; }
.menu-card-img img { filter: saturate(0.6) contrast(1.05); transition: filter var(--t), transform 8s var(--ease); }
.menu-card-full:hover .menu-card-img img { filter: saturate(0.9); transform: scale(1.06); }

.menu-card-full h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--white); }
.menu-card-full p { font-size: 0.85rem; font-weight: 300; color: var(--stone); line-height: 1.7; flex: 1; }
.menu-card-badge { align-self: flex-start; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); border: 1px solid rgba(196,175,240,0.3); padding: 0.25rem 0.8rem; border-radius: var(--r-pill); }

.menu-catering-note {
  background: var(--lavender-mist);
  border: 1px solid rgba(196,175,240,0.2);
  border-radius: var(--r-card);
  padding: 3rem 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  margin: 5rem 6rem;
}
.menu-catering-note h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 400; font-style: italic; color: var(--white); margin-bottom: 0.75rem; }
.menu-catering-note p { font-size: 0.88rem; font-weight: 300; color: var(--stone); line-height: 1.7; max-width: 500px; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials { border-top: 1px solid var(--border); padding: 7rem 6rem; background: var(--ink); }
.testi-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5rem; }
.testi-header h2 { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -0.02em; color: var(--white); line-height: 1; }
.testi-header h2 em { font-style: italic; color: var(--lavender); }
.testi-header p { font-size: 0.82rem; color: var(--stone); max-width: 200px; text-align: right; line-height: 1.7; }
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.testi-card { background: var(--ink-soft); padding: 3rem; transition: background var(--t); }
.testi-card:hover { background: var(--ink-mid); }
.testi-stars { color: var(--lavender); font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 1.5rem; }
.testi-card blockquote { font-family: var(--display); font-size: 1.2rem; font-weight: 400; font-style: italic; color: var(--white); line-height: 1.7; margin-bottom: 2rem; }
.testi-author { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lavender-dim); }

/* ============================================================
   CTA SPLIT
============================================================ */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.cta-box { padding: 6rem; display: flex; flex-direction: column; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-box:last-child { border-right: none; }
.cta-box::before { content: ''; position: absolute; bottom: -150px; right: -150px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(196,175,240,0.12) 0%, transparent 70%); pointer-events: none; }
.cta-box:last-child { background: var(--lavender); }
.cta-box:last-child::before { background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%); }
.cta-num { font-family: var(--display); font-size: 5rem; font-weight: 300; color: rgba(255,255,255,0.08); line-height: 1; margin-bottom: 2rem; }
.cta-box:last-child .cta-num { color: rgba(8,8,8,0.1); }
.cta-box h3 { font-family: var(--display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.cta-box:first-child h3 { color: var(--white); }
.cta-box:last-child h3 { color: var(--ink); }
.cta-box p { font-size: 0.92rem; font-weight: 300; line-height: 1.8; margin-bottom: 3rem; }
.cta-box:first-child p { color: var(--stone); }
.cta-box:last-child p { color: rgba(8,8,8,0.6); }

.btn-pill-white { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--white); color: var(--ink); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 2.2rem; border-radius: var(--r-pill); text-decoration: none; width: fit-content; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.btn-pill-white:hover { background: var(--lavender); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.btn-pill-dark { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ink); color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 2.2rem; border-radius: var(--r-pill); text-decoration: none; width: fit-content; transition: background var(--t), transform var(--t); }
.btn-pill-dark:hover { background: var(--ink-mid); transform: translateY(-3px); }

/* ============================================================
   CONTACT
============================================================ */
.contact { border-top: 1px solid var(--border); padding: 8rem 6rem; background: var(--ink-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-left h2 { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem; }
.contact-left h2 em { font-style: italic; color: var(--lavender); }
.contact-left p { font-size: 0.92rem; font-weight: 300; color: var(--stone); line-height: 1.85; margin-bottom: 2.5rem; }
.contact-detail { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.contact-detail a { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--stone); text-decoration: none; transition: color var(--t); display: flex; align-items: center; gap: 0.8rem; }
.contact-detail a::before { content: '→'; color: var(--lavender-dim); font-size: 0.8rem; }
.contact-detail a:hover { color: var(--lavender); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 1rem 1.3rem; background: transparent; border: 1px solid var(--border); border-radius: var(--r-soft); color: var(--white); font-family: var(--ui); font-size: 0.9rem; font-weight: 300; outline: none; transition: border-color var(--t), background var(--t); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--stone); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--lavender-dim); background: var(--lavender-mist); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; background: var(--lavender); color: var(--ink); font-family: var(--ui); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 1.1rem 2.4rem; border-radius: var(--r-pill); border: none; cursor: pointer; align-self: flex-start; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.contact-form button:hover { background: var(--white); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(196,175,240,0.25); }

/* ============================================================
   FOOTER
============================================================ */
footer { background: var(--ink); border-top: 1px solid var(--border); padding: 4rem 6rem 3rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.footer-brand .logo-f { font-family: var(--display); font-size: 1.3rem; font-weight: 400; color: var(--white); letter-spacing: 0.04em; display: block; margin-bottom: 1rem; }
.footer-brand .logo-f em { color: var(--lavender); font-style: italic; }
.footer-brand p { font-size: 0.85rem; font-weight: 300; color: var(--stone); max-width: 240px; line-height: 1.8; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.85rem; font-weight: 300; color: var(--stone); text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--lavender); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--stone); letter-spacing: 0.08em; }
.footer-bottom a { font-size: 0.78rem; color: var(--stone); text-decoration: none; letter-spacing: 0.08em; transition: color var(--t); }
.footer-bottom a:hover { color: var(--lavender); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1280px) {
  .hero-left { padding-bottom: 3rem; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; max-height: none; }
  .hero-right { height: 60vw; min-height: 320px; }
  .hero-right::before { background: linear-gradient(to top, var(--ink) 0%, transparent 50%); }
  .hero-left { padding: 120px 3rem 4rem; }

  .story { grid-template-columns: 1fr; min-height: auto; }
  .story-left { padding: 4rem 3rem; border-right: none; border-bottom: 1px solid var(--border); }
  .img-arch-luxury { max-width: 260px; height: 300px; }
  .story-right { padding: 4rem 3rem; }

  .craft { padding: 4rem 3rem; }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .craft-card:first-child { grid-row: auto; aspect-ratio: 3/4; }

  .interlude { grid-template-columns: 1fr; }
  .interlude-img { height: 50vw; min-height: 280px; }
  .interlude-img::before { background: linear-gradient(to top, var(--ink), transparent 60%); }
  .interlude-copy { padding: 4rem 3rem; }

  .menu-section { padding: 5rem 3rem; }
  .menu-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .menu-category { padding: 4rem 3rem; }
  .menu-grid-full { grid-template-columns: 1fr 1fr; }
  .menu-catering-note { margin: 3rem; flex-direction: column; }

  .testimonials { padding: 5rem 3rem; }
  .testi-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .testi-header p { text-align: left; max-width: none; }
  .testi-grid { grid-template-columns: 1fr; }

  .cta-split { grid-template-columns: 1fr; }
  .cta-box { padding: 4rem 3rem; border-right: none; border-bottom: 1px solid var(--border); }

  .contact { grid-template-columns: 1fr; padding: 5rem 3rem; gap: 3rem; }

  footer { padding: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  nav {
    padding: 1.2rem 2rem;
    padding-top: calc(1.2rem + env(safe-area-inset-top));
    /* Remove backdrop-filter on mobile — expensive + causes fixed positioning glitches on iOS */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #080808;
  }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #080808; border-bottom: 1px solid var(--border); padding: 2rem; gap: 1.5rem; z-index: 100; max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-toggle { display: flex; }
  .scroll-hint { display: none; }
  .hero-tag { bottom: 2rem; right: 2rem; }

  .menu-page-hero { padding: 120px 3rem 4rem; }
}

/* ============================================================
   NAV TOGGLE BUTTON RESET
============================================================ */
button.nav-toggle {
  background: none;
  border: none;
  padding: 10px;
}

/* ============================================================
   SKIP TO CONTENT
============================================================ */
.skip-to-content {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-soft);
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 1rem; }

/* ============================================================
   SCREEN READER ONLY
============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FOCUS VISIBLE
============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 2px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 0;
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track { animation: none; }

  .hero-right img,
  .img-arch-luxury img,
  .craft-card img,
  .interlude-img img,
  .menu-img img,
  .menu-card-img img {
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 600px) {
  .hero-left { padding: 110px 1.5rem 3rem; }
  .craft { padding: 3rem 1.5rem; }
  .craft-grid { grid-template-columns: 1fr; }
  .menu-section { padding: 4rem 1.5rem; }
  .menu-row { grid-template-columns: 60px 1fr; }
  .menu-badge { display: none; }
  .menu-category { padding: 3rem 1.5rem; }
  .menu-grid-full { grid-template-columns: 1fr; }
  .menu-catering-note { margin: 1.5rem; padding: 2rem; }
  .testimonials { padding: 4rem 1.5rem; }
  .cta-box { padding: 3rem 1.5rem; }
  .contact { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* Prevents iOS auto-zoom on focus */
  footer { padding: 2.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .story-right { padding: 3rem 1.5rem; }
  .story-left { padding: 3rem 1.5rem; }
  .interlude-copy { padding: 3rem 1.5rem; }
  .craft-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .craft-header p { text-align: left; }
  .testi-card { padding: 2rem; }
  .menu-page-hero { padding: 110px 1.5rem 3rem; }
}

/* ============================================================
   SCROLL LOCK
============================================================ */
body.scroll-locked {
  overflow: hidden;
  touch-action: none; /* prevents iOS Safari scroll-through */
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.25s var(--ease);
}
.modal-overlay[hidden] { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--ink-soft);
  border: 1px solid rgba(196,175,240,0.2);
  border-radius: var(--r-card);
  padding: 3rem 2.5rem 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: modalSlideUp 0.3s var(--ease);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.75rem;
  border-radius: var(--r-soft);
  cursor: pointer;
  transition: color var(--t), background var(--t);
}
.modal-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.modal-close:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lavender-mist);
  border: 1px solid rgba(196,175,240,0.3);
  color: var(--lavender);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.modal p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .modal { padding: 2.5rem 1.5rem 2rem; }
  .modal-overlay { backdrop-filter: none; } /* Expensive on low-end mobile */
}
