/* FoodDrama — brand tokens and small custom styles used alongside Tailwind */

/* ---------- Navy / Gold / Olive / Ivory brand system ---------- */
:root {
  --ivory: 44 36% 95%;
  --navy: 215 49% 8%;
  --gold: 46 65% 52%;
  --olive: 80 19% 40%;

  --background: 44 36% 95%;
  --foreground: 215 49% 8%;
  --card: 40 33% 98%;
  --card-foreground: 215 49% 8%;
  --popover: 40 33% 98%;
  --popover-foreground: 215 49% 8%;
  --primary: 215 49% 8%;
  --primary-foreground: 44 36% 95%;
  --secondary: 44 24% 91%;
  --secondary-foreground: 215 49% 8%;
  --muted: 44 24% 91%;
  --muted-foreground: 215 14% 38%;
  --accent: 44 24% 91%;
  --accent-foreground: 215 49% 8%;
  --brand: 215 49% 8%;
  --brand-foreground: 44 36% 95%;
  --brand-soft: 44 24% 91%;

  /* Accent palette — mapped onto the brand palette, used sparingly */
  --mint: 80 19% 40%;
  --mint-soft: 80 24% 91%;
  --amber: 46 65% 52%;
  --amber-soft: 46 60% 92%;
  --sky: 214 42% 26%;
  --sky-soft: 214 30% 92%;
  --lavender: 46 45% 38%;
  --lavender-soft: 44 40% 92%;

  --success: 80 19% 40%;
  --success-foreground: 44 36% 95%;
  --success-soft: 80 24% 91%;
  --destructive: 4 62% 45%;
  --destructive-foreground: 44 36% 95%;

  --border: 42 18% 86%;
  --input: 42 18% 86%;
  --ring: 46 65% 52%;
  --radius: 1.125rem;

  /* Gradients */
  --gradient-hero: radial-gradient(60% 80% at 25% 20%, hsl(var(--gold) / 0.16), transparent 62%),
                   radial-gradient(55% 70% at 82% 25%, hsl(var(--gold) / 0.1), transparent 62%),
                   radial-gradient(60% 60% at 50% 100%, hsl(var(--olive) / 0.12), transparent 62%);
  --gradient-mint: linear-gradient(135deg, hsl(var(--olive) / 0.14), hsl(var(--olive) / 0.02));
  --gradient-amber: linear-gradient(135deg, hsl(var(--gold) / 0.18), hsl(var(--gold) / 0.03));
  --gradient-sky: linear-gradient(135deg, hsl(var(--navy) / 0.12), hsl(var(--navy) / 0.02));
  --gradient-lavender: linear-gradient(135deg, hsl(var(--gold) / 0.14), hsl(var(--olive) / 0.04));

  --shadow-soft: 0 1px 2px hsl(var(--navy) / 0.05), 0 8px 24px -10px hsl(var(--navy) / 0.12);
  --shadow-lift: 0 1px 2px hsl(var(--navy) / 0.06), 0 24px 48px -18px hsl(var(--navy) / 0.28);
  --shadow-glow: 0 26px 70px -24px hsl(var(--gold) / 0.45);
}

html {
  scroll-behavior: smooth;
}
body {
  font-feature-settings: "cv11", "ss01";
}
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Utilities ---------- */
.glass {
  background: hsl(44 36% 97% / 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-dark {
  background: hsl(var(--ivory) / 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid hsl(var(--gold) / 0.18);
}
.hover-lift {
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: hsl(var(--gold) / 0.45);
}
.text-gradient {
  background: linear-gradient(120deg, hsl(var(--foreground)), hsl(var(--gold)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The FoodDrama Line — signature thin gold connector */
.fd-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.55), transparent);
}
.fd-line-v {
  width: 1px;
  background: linear-gradient(180deg, transparent, hsl(var(--gold) / 0.5), transparent);
}
.fd-rule {
  position: relative;
}
.fd-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, hsl(var(--gold)), transparent);
}
.gold-underline {
  position: relative;
}
.gold-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: hsl(var(--gold));
  transition: transform 250ms ease;
}
.gold-underline:hover::after,
.gold-underline[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Reserve the header's height (h-24 + 1px border) until js/layout.js swaps in the
   real header, so the page doesn't jump down after first paint (CLS). */
#site-header {
  height: 97px;
}

/* ---------- Scroll reveal (js/main.js adds .is-shown) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].is-shown {
  opacity: 1;
  transform: none;
  animation: fade-up 0.7s ease-out both;
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Above-the-fold hero: same rise, but starts on first paint instead of waiting
   for JS. It starts at 0.4 opacity, not 0: Chrome doesn't count fully transparent
   elements as the page's main content (LCP), and PageSpeed then reports "NO_LCP". */
[data-reveal="hero"] {
  opacity: 1;
  transform: none;
  transition: none;
  animation: hero-rise 0.7s ease-out both;
}
@keyframes hero-rise {
  0% { opacity: 0.4; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Hero blocks animate before js/main.js runs, so their data-delay is applied here
   (main.js handles it for every other data-reveal). Covers 10–600ms in 10ms steps. */
[data-reveal="hero"][data-delay="10"] { animation-delay: 10ms; }
[data-reveal="hero"][data-delay="20"] { animation-delay: 20ms; }
[data-reveal="hero"][data-delay="30"] { animation-delay: 30ms; }
[data-reveal="hero"][data-delay="40"] { animation-delay: 40ms; }
[data-reveal="hero"][data-delay="50"] { animation-delay: 50ms; }
[data-reveal="hero"][data-delay="60"] { animation-delay: 60ms; }
[data-reveal="hero"][data-delay="70"] { animation-delay: 70ms; }
[data-reveal="hero"][data-delay="80"] { animation-delay: 80ms; }
[data-reveal="hero"][data-delay="90"] { animation-delay: 90ms; }
[data-reveal="hero"][data-delay="100"] { animation-delay: 100ms; }
[data-reveal="hero"][data-delay="110"] { animation-delay: 110ms; }
[data-reveal="hero"][data-delay="120"] { animation-delay: 120ms; }
[data-reveal="hero"][data-delay="130"] { animation-delay: 130ms; }
[data-reveal="hero"][data-delay="140"] { animation-delay: 140ms; }
[data-reveal="hero"][data-delay="150"] { animation-delay: 150ms; }
[data-reveal="hero"][data-delay="160"] { animation-delay: 160ms; }
[data-reveal="hero"][data-delay="170"] { animation-delay: 170ms; }
[data-reveal="hero"][data-delay="180"] { animation-delay: 180ms; }
[data-reveal="hero"][data-delay="190"] { animation-delay: 190ms; }
[data-reveal="hero"][data-delay="200"] { animation-delay: 200ms; }
[data-reveal="hero"][data-delay="210"] { animation-delay: 210ms; }
[data-reveal="hero"][data-delay="220"] { animation-delay: 220ms; }
[data-reveal="hero"][data-delay="230"] { animation-delay: 230ms; }
[data-reveal="hero"][data-delay="240"] { animation-delay: 240ms; }
[data-reveal="hero"][data-delay="250"] { animation-delay: 250ms; }
[data-reveal="hero"][data-delay="260"] { animation-delay: 260ms; }
[data-reveal="hero"][data-delay="270"] { animation-delay: 270ms; }
[data-reveal="hero"][data-delay="280"] { animation-delay: 280ms; }
[data-reveal="hero"][data-delay="290"] { animation-delay: 290ms; }
[data-reveal="hero"][data-delay="300"] { animation-delay: 300ms; }
[data-reveal="hero"][data-delay="310"] { animation-delay: 310ms; }
[data-reveal="hero"][data-delay="320"] { animation-delay: 320ms; }
[data-reveal="hero"][data-delay="330"] { animation-delay: 330ms; }
[data-reveal="hero"][data-delay="340"] { animation-delay: 340ms; }
[data-reveal="hero"][data-delay="350"] { animation-delay: 350ms; }
[data-reveal="hero"][data-delay="360"] { animation-delay: 360ms; }
[data-reveal="hero"][data-delay="370"] { animation-delay: 370ms; }
[data-reveal="hero"][data-delay="380"] { animation-delay: 380ms; }
[data-reveal="hero"][data-delay="390"] { animation-delay: 390ms; }
[data-reveal="hero"][data-delay="400"] { animation-delay: 400ms; }
[data-reveal="hero"][data-delay="410"] { animation-delay: 410ms; }
[data-reveal="hero"][data-delay="420"] { animation-delay: 420ms; }
[data-reveal="hero"][data-delay="430"] { animation-delay: 430ms; }
[data-reveal="hero"][data-delay="440"] { animation-delay: 440ms; }
[data-reveal="hero"][data-delay="450"] { animation-delay: 450ms; }
[data-reveal="hero"][data-delay="460"] { animation-delay: 460ms; }
[data-reveal="hero"][data-delay="470"] { animation-delay: 470ms; }
[data-reveal="hero"][data-delay="480"] { animation-delay: 480ms; }
[data-reveal="hero"][data-delay="490"] { animation-delay: 490ms; }
[data-reveal="hero"][data-delay="500"] { animation-delay: 500ms; }
[data-reveal="hero"][data-delay="510"] { animation-delay: 510ms; }
[data-reveal="hero"][data-delay="520"] { animation-delay: 520ms; }
[data-reveal="hero"][data-delay="530"] { animation-delay: 530ms; }
[data-reveal="hero"][data-delay="540"] { animation-delay: 540ms; }
[data-reveal="hero"][data-delay="550"] { animation-delay: 550ms; }
[data-reveal="hero"][data-delay="560"] { animation-delay: 560ms; }
[data-reveal="hero"][data-delay="570"] { animation-delay: 570ms; }
[data-reveal="hero"][data-delay="580"] { animation-delay: 580ms; }
[data-reveal="hero"][data-delay="590"] { animation-delay: 590ms; }
[data-reveal="hero"][data-delay="600"] { animation-delay: 600ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal="hero"] { animation: none; }
}

/* ---------- FAQ accordion ---------- */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease-out;
}
.accordion-panel > div {
  overflow: hidden;
}
[data-open] > .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-chevron {
  transition: transform 0.2s;
}
[data-open] .accordion-chevron {
  transform: rotate(180deg);
}

/* ---------- FoodDrama logo entrance motion (runs once) ---------- */
.fd-logo .fd-word {
  white-space: nowrap;
}
.fd-logo.is-animated .fd-mark {
  animation: mark-fade-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  /* Keep the sweep inside the logo: it ends at translateX(120%) and would otherwise widen the page on phones. */
  overflow: hidden;
}
.fd-logo.is-animated .fd-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, hsl(44 90% 88% / 0.55) 50%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: gold-sweep 760ms ease-in-out 620ms 1 both;
}
.fd-logo:not(.is-animated) .fd-sheen {
  display: none;
}
.fd-logo {
  transition: transform 220ms ease, filter 220ms ease;
}
.fd-logo:hover {
  transform: translateY(-1.5px);
  filter: drop-shadow(0 2px 10px hsl(var(--gold) / 0.4));
}

@keyframes mark-fade-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gold-sweep {
  0% { opacity: 0; transform: translateX(-120%); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

/* ---------- Editorial monogram seal (section brand mark) ---------- */
.monogram-seal {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.monogram-seal-mark {
  position: relative;
  display: block;
  height: 130px;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 260ms ease, filter 260ms ease;
}
@media (min-width: 768px) {
  .monogram-seal-mark { height: 170px; }
}
@media (min-width: 1024px) {
  .monogram-seal-mark { height: 200px; }
}
.monogram-seal.is-revealed .monogram-seal-mark {
  animation: seal-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.monogram-seal-mark:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px hsl(var(--gold) / 0.35));
}
.monogram-seal-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 40%, hsl(44 95% 92% / 0.75) 50%, transparent 60%);
  mix-blend-mode: overlay;
}
.monogram-seal.is-revealed .monogram-seal-sheen {
  animation: gold-sweep 900ms ease-in-out 560ms 1 both;
}
.monogram-seal-rule {
  display: block;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.7), transparent);
}
.monogram-seal.is-revealed .monogram-seal-rule {
  animation: seal-rule 700ms ease-out 760ms both;
}
@keyframes seal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes seal-rule {
  from { width: 0; opacity: 0; }
  to { width: 72px; opacity: 1; }
}

/* Slow drifting gold lines for dark hero surfaces */
.fd-flow::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 20% 30%, hsl(var(--gold) / 0.1), transparent 60%),
    repeating-linear-gradient(115deg, hsl(var(--gold) / 0.07) 0 1px, transparent 1px 120px);
  animation: fd-drift 16s linear infinite alternate;
}
@keyframes fd-drift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(2%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fd-logo.is-animated .fd-sheen,
  .fd-logo.is-animated .fd-mark,
  .fd-flow::before {
    animation: none !important;
  }
  .fd-logo:hover { transform: none; }
  .monogram-seal .monogram-seal-mark { opacity: 1; transform: none; animation: none !important; }
  .monogram-seal .monogram-seal-sheen { animation: none !important; }
  .monogram-seal .monogram-seal-rule { width: 72px; opacity: 1; animation: none !important; }
  .monogram-seal-mark:hover { transform: none; }
}
