/* ============================================================
   L'Autrement Traiteur — base styles, tokens, reset, utilities
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

:root {
  --bg: #0b0a09;
  --bg-soft: #121110;
  --bg-elev: #17150f;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --border-soft: rgba(255,255,255,.06);
  --text: #f5efe4;
  --text-muted: #b6a996;
  --text-faint: #948870;
  --gold: #c9a15a;
  --gold-soft: #e6cc98;
  --gold-dim: #8a743f;
  --gold-label: #a3854a;
  --wine: #7a3a3a;
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.7);
  --shadow-md: 0 20px 40px -20px rgba(0,0,0,.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: 1264px;
  --ease: cubic-bezier(.16,1,.3,1);
  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #1a1509; }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #171205; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { position: relative; padding: 120px 0; }
@media (max-width: 900px) { .section { padding: 88px 0; } }
@media (max-width: 560px) { .section { padding: 68px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h-lg { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.italic-accent { font-style: italic; font-weight: 500; color: var(--gold-soft); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 46ch;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  box-shadow: 0 14px 30px -12px rgba(201,161,90,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(201,161,90,.7); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold-dim); background: var(--surface); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: .02em; transition: all .3s var(--ease);
}
.chip.is-active, .chip:hover { color: var(--text); border-color: var(--gold-dim); background: var(--surface-strong); }
.chip.is-active { color: #1a1408; background: var(--gold-soft); border-color: var(--gold-soft); }

/* Glass card */
.glass {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  padding: 14px 0;
  background: rgba(11,10,9,.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 30px; width: auto; flex: none; }

.nav-links { display: flex; align-items: center; gap: 26px; flex: none; }
.nav-links a {
  font-size: .87rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  position: relative; padding: 4px 0; transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold-soft); transition: right .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta-wrap { display: flex; align-items: center; gap: 18px; }

.burger {
  display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px;
  align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border);
}
.burger span { width: 17px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mobile-panel a { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.mobile-panel .btn { margin-top: 10px; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta-wrap .btn-ghost { display: none; }
  .burger { display: flex; }
}

/* Marquee */
.marquee-strip {
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft); overflow: hidden; padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: var(--text-faint); white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: '\2726'; color: var(--gold-dim); font-style: normal; font-size: .7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px;
}
