/* ═══════════════════════════════════════════════════════════════════════════
   ΔΕΡΑΣ ΚΟΤΟΠΟΥΛΑ — shared global stylesheet
   Locked palette: bordeaux + gold + deep brown + ivory
   Locked type: Fraunces (display) + Inter (body)
   Aesthetic: Cookbook Spread · warm-rustic editorial · paper grain body-wide
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────  TOKENS  ───────────── */
:root {
  /* Palette */
  --bordeaux: #8B2E2E;
  --bordeaux-deep: #6B1F1F;
  --gold: #D9A441;
  --gold-soft: #E8C076;
  --deep-brown: #3E2B1F;
  --deep-brown-soft: #5A4536;
  --ivory: #FAF6EE;
  --ivory-warm: #F2EBDC;
  --ivory-deep: #E8DEC9;
  --ink: #1A1410;
  --ink-soft: #4A3F35;
  --ink-faint: #8C7E70;

  /* Surfaces */
  --surface-page: var(--ivory);
  --surface-card: var(--ivory-warm);
  --surface-card-alt: #FFFFFF;
  --surface-dark: var(--deep-brown);
  --surface-dark-deep: #2C1E14;

  /* Borders */
  --border-soft: rgba(62, 43, 31, 0.08);
  --border-medium: rgba(62, 43, 31, 0.18);
  --border-strong: rgba(62, 43, 31, 0.32);
  --border-gold: rgba(217, 164, 65, 0.25);
  --border-bordeaux: rgba(139, 46, 46, 0.32);

  /* Type scale (clamp-based fluid) */
  --type-wordmark: clamp(4.5rem, 18vw, 14rem);
  --type-h1: clamp(2.4rem, 6.5vw, 5.6rem);
  --type-h2: clamp(1.8rem, 4.5vw, 3.4rem);
  --type-h3: clamp(1.4rem, 3vw, 2.2rem);
  --type-h4: 1.25rem;
  --type-tagline: clamp(1.05rem, 2.4vw, 1.5rem);
  --type-lead: clamp(1.05rem, 1.8vw, 1.25rem);
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-caption: 0.78rem;
  --type-label: 0.7rem;
  --type-micro: 0.625rem;

  /* Spacing rhythm (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Section padding */
  --section-py: clamp(4rem, 10vw, 8rem);
  --section-px: clamp(1.25rem, 4vw, 4rem);

  /* Magazine borders (hero only) */
  --magazine-border: 6vh;

  /* Layers */
  --z-grain: 1000;
  --z-nav: 100;
  --z-modal: 200;
  --z-tooltip: 150;
  --z-cursor: 50;
  --z-mobile-cta: 90;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-cookbook: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 700ms;
  --duration-cinematic: 1400ms;

  /* Grain (single 400×400 SVG noise tile, ~4KB) */
  --grain-tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.24, 0 0 0 0 0.17, 0 0 0 0 0.12, 0 0 0 0.6 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>");
}

/* ─────────────  RESET  ───────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-page);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Body-wide paper grain (Aesop/Le Labo trick — kills "AI" look) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain-tile);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: var(--z-grain);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
}

::selection {
  background: var(--bordeaux);
  color: var(--ivory);
}

::-moz-selection {
  background: var(--bordeaux);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────  CONTAINER  ───────────── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--narrow {
  max-width: 880px;
}

.container--prose {
  max-width: 680px;
}

/* ─────────────  TYPOGRAPHY  ───────────── */
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: 'liga' 1, 'kern' 1;
}

.font-body {
  font-family: 'Inter', system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-brown);
}

h1 {
  font-size: var(--type-h1);
  font-variation-settings: 'opsz' 144, 'wght' 500;
}

h2 {
  font-size: var(--type-h2);
  font-variation-settings: 'opsz' 96, 'wght' 400;
}

h3 {
  font-size: var(--type-h3);
  font-variation-settings: 'opsz' 36, 'wght' 500;
}

h4 {
  font-size: var(--type-h4);
  font-variation-settings: 'opsz' 14, 'wght' 600;
  letter-spacing: -0.01em;
}

.lead {
  font-family: 'Fraunces', serif;
  font-size: var(--type-lead);
  font-variation-settings: 'opsz' 36, 'wght' 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

p {
  line-height: 1.7;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* ─────────────  EDITORIAL LABEL (small-caps gold)  ───────────── */
.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: var(--type-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

.label--ink {
  color: var(--ink-soft);
}

.label--ivory {
  color: var(--gold-soft);
}

.label--bordeaux {
  color: var(--bordeaux);
}

/* Editorial section opener — em-dash bracketed: «— ΑΠΟ ΤΟ 1987 —» */
.label-bracketed::before {
  content: '— ';
}

.label-bracketed::after {
  content: ' —';
}

/* ─────────────  SECTION OPENER  ───────────── */
.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 56ch;
}

.section-head__num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  font-style: italic;
}

.section-head h2 em {
  color: var(--bordeaux);
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'wght' 300;
}

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.btn--primary {
  background: var(--bordeaux);
  color: var(--ivory);
}

.btn--primary:hover {
  background: var(--bordeaux-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--deep-brown);
  border-color: var(--deep-brown);
}

.btn--ghost:hover {
  background: var(--deep-brown);
  color: var(--ivory);
  transform: translate(-2px, -2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250, 246, 238, 0.4);
}

.btn--ghost-light:hover {
  background: var(--ivory);
  color: var(--deep-brown);
  transform: translate(-2px, -2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--deep-brown);
}

.btn--gold:hover {
  background: var(--gold-soft);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--bordeaux);
}

.btn--small {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────  NAV — bigger logo, truly centered links on desktop  ───────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  transition:
    background var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  border-bottom: 1px solid transparent;
  animation: nav-fade-in 1s var(--ease-cookbook) 0.1s both;
}

@keyframes nav-fade-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav.scrolled {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem);
  border-bottom-color: var(--border-soft);
}

.nav__logo {
  display: flex;
  align-items: center;
  color: var(--deep-brown);
  view-transition-name: nav-logo;
  justify-self: start;
  min-width: 0;
}

.nav__logo-img {
  height: clamp(60px, 7vw, 80px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: height var(--duration-base) var(--ease-out);
}

.nav.scrolled .nav__logo-img {
  height: clamp(48px, 5.5vw, 60px);
}

/* Footer logo (now stand-alone — replaces typographic wordmark) */
.footer__logo-img {
  height: 88px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
  filter: brightness(1.05);
}

/* Drawer logo (matches nav prominence) */
.drawer__logo-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: none;
  gap: 1.35rem;
  font-size: 0.875rem;
  align-items: center;
  justify-self: center;
  justify-content: center;
  white-space: nowrap;
}

.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--bordeaux);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__links a.catering-pill {
  background: var(--bordeaux);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  margin-left: 0.4rem;
}

.nav__links a.catering-pill::after {
  display: none;
}

.nav__links a.catering-pill:hover {
  background: var(--bordeaux-deep);
  transform: translateY(-1px);
  color: var(--ivory);
}

.nav__menu {
  font-size: 1.5rem;
  color: var(--deep-brown);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 999px;
  transition: background var(--duration-fast) var(--ease-out);
}

.nav__menu:hover,
.nav__menu:focus-visible {
  background: rgba(139, 46, 46, 0.08);
}

.nav__menu svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1100px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .nav__links {
    display: flex;
  }
  .nav__menu {
    display: none;
  }
}

/* ─── Homepage: nav floats over the dark video hero with LIGHT text until scrolled.
   A top scrim guarantees contrast on any video frame. On scroll → solid ivory + dark text. ─── */
.page-home .nav:not(.scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.55) 0%, rgba(26, 20, 16, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.page-home .nav:not(.scrolled) .nav__links a,
.page-home .nav:not(.scrolled) .nav__menu {
  color: var(--ivory);
}

.page-home .nav:not(.scrolled) .nav__links a:hover,
.page-home .nav:not(.scrolled) .nav__links a[aria-current="page"] {
  color: var(--gold);
}

.page-home .nav:not(.scrolled) .nav__links a::after {
  background: var(--gold);
}

.page-home .nav:not(.scrolled) .nav__menu:hover,
.page-home .nav:not(.scrolled) .nav__menu:focus-visible {
  background: rgba(250, 246, 238, 0.16);
}

/* ─────────────  MOBILE DRAWER — slides FROM LEFT, large coverage, prominent CTAs  ───────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 109;
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(440px, 90vw);
  z-index: 110;
  background: var(--ivory);
  transform: translateX(-100%);
  transition: transform var(--duration-base) var(--ease-cookbook);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 8px 0 60px rgba(26, 20, 16, 0.25);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.75rem;
}

.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--deep-brown);
  border-radius: 999px;
  transition: background var(--duration-fast) var(--ease-out);
}

.drawer__close:hover {
  background: rgba(139, 46, 46, 0.08);
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.55rem;
  font-variation-settings: 'opsz' 36, 'wght' 400;
}

.drawer__links a {
  color: var(--deep-brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--duration-fast) var(--ease-out), padding-left var(--duration-fast) var(--ease-out);
}

.drawer__links a:hover,
.drawer__links a:focus-visible {
  color: var(--bordeaux);
  padding-left: 0.4rem;
}

.drawer__links a[aria-current="page"] {
  color: var(--bordeaux);
}

.drawer__links a[aria-current="page"]::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bordeaux);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.drawer__links a span[aria-hidden] {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-style: normal;
  font-weight: 400;
}

.drawer__links a:hover span[aria-hidden] {
  color: var(--bordeaux);
}

/* Drawer CTA stack — direct action buttons */
.drawer__ctas {
  margin-top: 1.85rem;
  display: grid;
  gap: 0.65rem;
}

.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.drawer__cta--primary {
  background: var(--bordeaux);
  color: var(--ivory);
}

.drawer__cta--primary:hover {
  background: var(--bordeaux-deep);
}

.drawer__cta--ghost {
  background: transparent;
  border-color: var(--deep-brown);
  color: var(--deep-brown);
}

.drawer__cta--ghost:hover {
  background: var(--deep-brown);
  color: var(--ivory);
}

.drawer__cta--gold {
  background: var(--gold);
  color: var(--deep-brown);
}

.drawer__cta--gold:hover {
  background: var(--gold-soft);
}

.drawer__cta svg {
  width: 18px;
  height: 18px;
}

.drawer__contact {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
  font-size: var(--type-small);
  color: var(--ink-soft);
  display: grid;
  gap: 0.55rem;
}

.drawer__contact a {
  color: var(--bordeaux);
  font-weight: 500;
}

.drawer__contact-label {
  font-size: var(--type-label);
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .drawer,
  .drawer-backdrop {
    display: none;
  }
}

/* Body lock when drawer open */
body.drawer-open {
  overflow: hidden;
}

/* ─────────────  CARDS  ───────────── */
.card {
  background: var(--surface-card);
  padding: 1.75rem;
  border-top: 2px solid var(--deep-brown);
  position: relative;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -16px rgba(62, 43, 31, 0.18);
}

.card--featured {
  background: var(--surface-card-alt);
  border-top-color: var(--bordeaux);
  border: 1px solid var(--border-bordeaux);
  border-top-width: 2px;
}

.card--bordeaux-accent {
  border-top-color: var(--bordeaux);
}

.card--gold-accent {
  border-top-color: var(--gold);
}

.card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: var(--type-micro);
  letter-spacing: 0.25em;
  background: var(--gold);
  color: var(--deep-brown);
  padding: 0.25rem 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card__num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--bordeaux);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  line-height: 1;
}

.card__city {
  font-size: var(--type-label);
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0.85rem 0 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
}

.card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--deep-brown);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card__sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.card__phone {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--bordeaux);
  font-weight: 500;
}

/* ─────────────  PILL / CHIP  ───────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-medium);
  font-size: var(--type-caption);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.chip:hover {
  border-color: var(--deep-brown);
  color: var(--deep-brown);
}

.chip[aria-pressed="true"],
.chip.active {
  background: var(--deep-brown);
  color: var(--ivory);
  border-color: var(--deep-brown);
}

.chip--bordeaux {
  border-color: var(--border-bordeaux);
}

.chip--bordeaux[aria-pressed="true"],
.chip--bordeaux.active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
}

/* ─────────────  FORMS  ───────────── */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: var(--type-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.field__input,
.field__textarea,
.field__select {
  background: var(--surface-card-alt);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.1);
}

.field__textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.field__hint {
  font-size: var(--type-caption);
  color: var(--ink-faint);
}

.field__error {
  font-size: var(--type-caption);
  color: var(--bordeaux);
}

.chips-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Honeypot — visually hidden, off-screen (bots fill it, humans don't see it) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form success panel (replaces form after AJAX submit) */
.form-success {
  background: var(--ivory-warm);
  border-top: 3px solid var(--gold);
  padding: 3rem 2rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  animation: form-success-in 0.6s var(--ease-cookbook) both;
}

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-success__icon {
  width: 64px;
  height: 64px;
  color: var(--bordeaux);
}

.form-success__icon svg {
  width: 100%;
  height: 100%;
}

.form-success__icon circle {
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: draw-circle 0.7s var(--ease-cookbook) 0.2s forwards;
}

.form-success__icon path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw-check 0.4s var(--ease-cookbook) 0.7s forwards;
}

@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

.form-success__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-variation-settings: 'opsz' 96, 'wght' 500;
  color: var(--deep-brown);
}

.form-success__text {
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.65;
}

/* ─────────────  PRELOADER (first-visit only, CSS overlay above populated DOM)  ───────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-tile);
  background-size: 400px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader__logo {
  width: clamp(180px, 40vw, 300px);
  height: auto;
  position: relative;
  z-index: 1;
  animation: preloader-logo 1.2s var(--ease-cookbook) both;
}

@keyframes preloader-logo {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preloader__bar {
  width: min(180px, 50vw);
  height: 2px;
  background: var(--ivory-deep);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 2px;
}

.preloader__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bordeaux);
  transform-origin: left;
  animation: preloader-fill 1.4s var(--ease-cookbook) 0.2s both;
}

@keyframes preloader-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.preloader__est {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 1;
  animation: form-success-in 0.8s var(--ease-cookbook) 0.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
}

/* ─────────────  STICKY MOBILE CTA  ───────────── */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-cta);
  padding: 0.75rem 1rem;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 0.6rem;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-cookbook);
}

.mobile-cta.show {
  transform: translateY(0);
}

.mobile-cta .btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-cta { display: none !important; }
}

/* ─────────────  MODAL (manager letters)  ───────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.7);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--ivory);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--bordeaux);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform var(--duration-slow) var(--ease-cookbook),
    opacity var(--duration-base) var(--ease-out);
}

.modal-backdrop.open .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--deep-brown);
}

.modal__label {
  font-size: var(--type-label);
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.modal__title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'wght' 400;
  color: var(--deep-brown);
  margin-bottom: 0.4rem;
}

.modal__sub {
  font-size: var(--type-small);
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.modal__body {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  font-variation-settings: 'opsz' 14, 'wght' 400;
}

.modal__signature {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--bordeaux);
}

/* ─────────────  FOOTER  ───────────── */
.footer {
  background: var(--surface-dark);
  color: var(--ivory);
  padding: 5rem var(--section-px) 2rem;
  font-size: var(--type-small);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-tile);
  background-size: 400px 400px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
  max-width: 1280px;
  margin-inline: auto;
}


.footer__tag {
  color: var(--ivory-warm);
  opacity: 0.7;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-variation-settings: 'opsz' 14, 'wght' 300';
  max-width: 32ch;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: var(--type-label);
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer ul a,
.footer ul span {
  color: var(--ivory-warm);
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.footer ul a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer__hours {
  color: var(--ivory-warm);
  opacity: 0.7;
  font-style: italic;
}

.footer__bottom {
  border-top: 1px solid rgba(217, 164, 65, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--type-caption);
  color: var(--ivory-warm);
  opacity: 0.6;
  max-width: 1280px;
  margin-inline: auto;
}

.footer__bottom .agenths {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__bottom .agenths:hover {
  color: var(--gold-soft);
}

@media (min-width: 720px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

/* ─────────────  REVEALS (CSS scroll-timeline, zero JS)  ───────────── */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  .reveal-fade {
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* JS fallback for unsupported browsers (Firefox/Safari < 17) */
.no-scroll-timeline .reveal,
.no-scroll-timeline .reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-cookbook), transform 1s var(--ease-cookbook);
}

.no-scroll-timeline .reveal-fade {
  transform: none;
}

.no-scroll-timeline .reveal.is-visible,
.no-scroll-timeline .reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────  GRAIN (static, no animation — was causing scroll jank)  ───────────── */
.has-grain {
  position: relative;
  overflow: hidden;
}

.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-tile);
  background-size: 400px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.has-grain > * {
  position: relative;
  z-index: 1;
}

/* ─────────────  KEN-BURNS  ───────────── */
.ken-burns {
  animation: ken-burns 16s var(--ease-in-out) infinite alternate;
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* ─────────────  LOW-VELOCITY MARQUEE  ───────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--border-medium);
  padding-block: 1.5rem;
  background: var(--ivory-warm);
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 60s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
  font-variation-settings: 'opsz' 36, 'wght' 300;
  color: var(--deep-brown);
}

.marquee__track > * {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee__track > *::after {
  content: '·';
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────  MAGNETIC CTAs (desktop only — no custom cursor)  ───────────── */
@media (hover: hover) and (pointer: fine) {
  .magnetic {
    transition: transform var(--duration-base) var(--ease-out);
    will-change: transform;
  }
}

/* ─────────────  UTILITY CLASSES  ───────────── */
.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;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.divider {
  height: 1px;
  background: var(--border-soft);
  border: 0;
  margin-block: var(--space-7);
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  height: 1px;
}

/* SVG hand-drawn divider (used between sections) */
.divider-svg {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: var(--space-7) auto;
  color: var(--bordeaux);
}

.divider-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@supports (animation-timeline: view()) {
  .divider-svg path {
    animation: draw 1.4s var(--ease-cookbook) both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ─────────────  VIEW TRANSITIONS  ───────────── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

::view-transition-old(nav-logo),
::view-transition-new(nav-logo) {
  animation-duration: 480ms;
}

/* ─────────────  REDUCED MOTION  ───────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ken-burns,
  .marquee__track {
    animation: none !important;
  }
}

/* ─────────────  PRINT  ───────────── */
/* Smooth anchor scroll lands BELOW sticky nav (compensates for taller nav with bigger logo) */
html {
  scroll-padding-top: 110px;
}

/* Mobile-specific micro-fixes */
@media (max-width: 720px) {
  /* Touch target safety on small interactive elements */
  .chip {
    min-height: 44px;
  }

  /* Don't shrink CTAs below tappable size */
  .btn--small {
    min-height: 40px;
  }

  /* Catering finger-targetable spacing */
  .store-card__actions .btn {
    min-height: 44px;
  }

  /* Hero scroll-down indicator: hide on small phones (it overlaps CTAs) */
  .hero__scrolldown {
    display: none;
  }

  /* Tighter section paddings on mobile to maximize content area */
  .section-anchor {
    padding-block: 4rem;
  }
}

/* Prevent horizontal overflow from any rogue element */
html, body {
  overflow-x: clip;
}

@media print {
  .nav, .mobile-cta, .footer { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
}
