/* ═══════════════ Blue Fairy — Drizzle-style tokens ═══════════════ */
:root {
  --cream: #f4edde;
  --cream-soft: #faf5e9;
  --maroon: #0d1c3f;          /* deep navy — brand blue */
  --maroon-soft: #16294f;
  --red: #b28a2e;             /* brand gold */
  --red-deep: #96711f;
  --gold-bright: #d4af4e;
  --ink: #101f3c;
  --ink-dim: #5b6478;
  --line: rgba(16, 31, 60, 0.18);
  --line-light: rgba(244, 237, 222, 0.25);

  --font-display: "Prata", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3.5rem);
  --space-l: clamp(3.5rem, 8vw, 7rem);

  --z-sticky: 10;
  --z-menu: 20;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3.8vw, 2.9rem); }

section { padding: var(--space-l) clamp(1.25rem, 5vw, 5rem); }

/* ═══════════════ Pills & buttons ═══════════════ */
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  background: var(--cream-soft);
}
.pill b { font-weight: 700; }
.pill-red { background: var(--cream-soft); color: var(--red); border-color: rgba(169, 47, 34, 0.4); }
.pill-light { background: transparent; color: var(--cream); border-color: var(--line-light); }

.btn-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-shadow: 0 1px 2px rgba(16, 31, 60, 0.35);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }

/* ═══════════════ Nav ═══════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1.05rem clamp(0.9rem, 2.4vw, 2rem);
  border-left: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-item:last-of-type { border-right: 1px solid var(--line); }
.nav-item:hover { background: var(--maroon); color: var(--cream); }
.chev { font-size: 0.9em; opacity: 0.6; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding: 0 clamp(1.2rem, 3vw, 2.2rem);
  border-left: 1px solid var(--line);
  text-decoration: none;
}
.wordmark .fairy {
  font-family: var(--font-hand);
  font-size: 1.25em;
  color: var(--red);
  margin-left: -0.15rem;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold-bright);
}
.dot { color: var(--red); }
.nav-toggle { display: none; }

/* ═══════════════ Hero ═══════════════ */
.hero {
  text-align: center;
  padding-top: var(--space-m);
  padding-bottom: 0;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
}
.reserve-badge {
  display: grid;
  place-items: center;
  width: clamp(6.8rem, 12vw, 9rem);
  aspect-ratio: 1;
  margin: clamp(-1.6rem, -1.5vw, -1rem) auto;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-bright);
  text-decoration: none;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold-bright), 0 14px 30px -14px rgba(16, 31, 60, 0.55);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.reserve-badge:hover,
.reserve-badge:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 40px 2px rgba(212, 175, 78, 0.45);
}
.badge-ring { position: absolute; inset: 6%; animation: spin 18s linear infinite; }
.badge-ring text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: var(--cream);
}
.badge-core {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.reserve-badge:hover .badge-core { translate: 0 5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-figure { margin-top: -2.6rem; }
.hero-figure img {
  width: min(1250px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 7.2;
  object-fit: cover;
  border-radius: 6px;
}

/* ═══════════════ Marquee ═══════════════ */
.marquee {
  overflow: hidden;
  background: var(--maroon);
  border-block: 1px solid var(--line-light);
  padding: 0.85rem 0;
  margin-top: var(--space-l);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-bright);
}
.marquee-track span { padding-right: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════ About ═══════════════ */
.about { padding-top: var(--space-m); }
.about-card {
  max-width: 1150px;
  margin: 0 auto;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}
.about-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-m);
  align-items: start;
}
.about-left h2 { max-width: 21ch; margin-bottom: 1.8rem; }
.about-left h2 b { font-weight: 400; color: var(--red); }
.about-note {
  font-size: 0.92rem;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  text-align: right;
}
.about-note b { color: var(--red); }
.about-img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; }
.about-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-m);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.about-bottom b { color: var(--ink); }
.avatars { display: flex; }
.avatars img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream-soft);
  margin-left: -12px;
}
.avatars img:first-child { margin-left: 0; }

/* ═══════════════ Menu ═══════════════ */
.menu-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-m);
  max-width: 1150px;
  margin: 0 auto;
  align-items: start;
}
.menu-side {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream-soft);
  padding: 1.8rem 1.6rem;
}
.menu-side h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.menu-side-sub { font-size: 0.88rem; color: var(--ink-dim); margin-bottom: 1.4rem; }
.menu-side ol { padding-left: 1.2rem; display: grid; gap: 0.7rem; font-weight: 600; }
.menu-main { text-align: center; }
.menu-main h2 { margin-bottom: var(--space-m); }
.menu-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-s);
  text-align: left;
}
.menu-cat {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream-soft);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
}
.menu-cat h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-bottom: 0.3rem; }
.menu-cat p { font-size: 0.88rem; color: var(--ink-dim); }
.menu-cat-dark { background: var(--maroon); color: var(--cream); padding-top: 1.2rem; }
.menu-cat-dark p { color: rgba(242, 233, 218, 0.7); }
.menu-cat-dark img {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* ═══════════════ Reserve ═══════════════ */
.reserve { background: var(--maroon); color: var(--cream); }
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-m);
  max-width: 1150px;
  margin: 0 auto;
  align-items: center;
}
.reserve-copy h2 { max-width: 18ch; margin-bottom: 1.8rem; }
.reserve-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.reserve-photos img {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ═══════════════ Gallery ═══════════════ */
.gallery {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  border-top: 1px solid var(--line-light);
}
.gallery h2 { margin-bottom: var(--space-m); }
.polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 1rem);
  max-width: 1200px;
  margin: 0 auto;
}
.polaroid {
  background: var(--cream-soft);
  color: var(--ink);
  padding: 0.5rem 0.5rem 0.35rem;
  border-radius: 3px;
  width: clamp(145px, 18vw, 205px);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-size: 0.8rem; font-weight: 600; padding: 0.45rem 0 0.15rem; }
.p1 { transform: rotate(-5deg); }
.p2 { transform: rotate(2.5deg) translateY(10px); }
.p3 { transform: rotate(-1.5deg); }
.p4 { transform: rotate(3deg) translateY(-8px); }
.p5 { transform: rotate(-2.5deg) translateY(8px); }
.polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.05); z-index: 1; }

/* ═══════════════ Careers ═══════════════ */
.careers {
  text-align: center;
  position: relative;
}
.careers h2 { max-width: 28ch; margin: 0 auto 1.8rem; }
.scribble {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: -0.12em;
  height: 0.28em;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, transparent 58%, var(--red) 60%, transparent 72%);
  opacity: 0.75;
}
.doodle {
  position: absolute;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  opacity: 0.55;
}
.d1 { top: 22%; left: 10%; transform: rotate(-12deg); }
.d2 { top: 60%; left: 16%; transform: rotate(8deg); }
.d3 { top: 25%; right: 11%; transform: rotate(14deg); }
.d4 { top: 62%; right: 15%; transform: rotate(-8deg); }

/* ═══════════════ Booking ═══════════════ */
.booking { background: var(--maroon); color: var(--cream); }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-m);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.booking-copy h2 { max-width: 16ch; margin-bottom: 1.2rem; }
.booking-sub { color: rgba(244, 237, 222, 0.78); max-width: 42ch; }
.booking-form {
  background: var(--maroon-soft);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.booking-form label {
  flex: 1 1 130px;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(244, 237, 222, 0.85);
}
.optional { font-weight: 400; opacity: 0.6; }
.booking-form input {
  background: var(--maroon);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: var(--cream);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
  width: 100%;
}
.booking-form input::placeholder { color: rgba(244, 237, 222, 0.5); }
.booking-form input:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-color: transparent; }
.booking-form input[aria-invalid="true"] { border-color: #e4572e; }
.booking-form .btn-red { justify-self: start; }
.booking-form .form-note { color: var(--gold-bright); margin: 0; }

/* ═══════════════ Testimonials ═══════════════ */
.voices { background: var(--maroon); color: var(--cream); text-align: center; }
.voices h2 { margin-bottom: var(--space-m); }
.voice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-s);
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.voice {
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.95rem;
}
.voice cite { font-style: normal; font-weight: 600; font-size: 0.88rem; margin-top: auto; }
.voice-red { background: var(--red); color: #14213d; transform: translateY(-12px); }
.voice-red cite { color: #14213d; }

/* ═══════════════ Footer ═══════════════ */
.footer {
  background: var(--maroon);
  color: var(--cream);
  padding: var(--space-l) clamp(1.25rem, 5vw, 5rem) 1.5rem;
  border-top: 1px solid var(--line-light);
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  align-items: center;
  max-width: 1150px;
  margin: 0 auto var(--space-m);
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  white-space: nowrap;
}
.newsletter { justify-self: end; width: min(420px, 100%); }
.newsletter label { display: block; font-size: 0.92rem; margin-bottom: 0.7rem; color: rgba(242, 233, 218, 0.8); }
.newsletter-row { display: flex; gap: 0.6rem; }
.newsletter input {
  flex: 1;
  background: var(--maroon-soft);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--cream);
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
}
.newsletter input::placeholder { color: rgba(242, 233, 218, 0.55); }
.newsletter input:focus { outline: 2px solid var(--red); border-color: transparent; }
.form-note { font-size: 0.88rem; margin-top: 0.6rem; min-height: 1.2em; color: var(--cream); }
.footer-links {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(242, 233, 218, 0.8);
  display: grid;
  gap: 0.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  max-width: 1150px;
  margin: 0 auto;
}
.footer-links a { color: var(--cream); text-underline-offset: 3px; }
.footer-legal { text-align: center; font-size: 0.8rem; color: rgba(242, 233, 218, 0.5); margin-top: 1.2rem; }

/* ═══════════════ Motion system ═══════════════ */
/* Hero entrance — translate/opacity only, so hover transforms stay intact */
@keyframes riseIn {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: 0 0; }
}
.hero .pill { animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.hero-title { animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.reserve-badge { animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.hero-figure { animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }

/* Scroll reveals — JS-enhanced, content visible without JS */
.js .reveal {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 0.7s ease var(--d, 0s),
    translate 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Button shine sweep */
.btn-red { position: relative; overflow: hidden; }
.btn-red::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-red:hover::after { left: 130%; }

/* Card + photo micro-interactions */
.menu-cat {
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.menu-cat:hover {
  translate: 0 -6px;
  box-shadow: 0 22px 40px -22px rgba(16, 31, 60, 0.35);
}
.reserve-photos img {
  transition: scale 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.reserve-photos img:hover {
  scale: 1.04;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.55);
}
.about-img { transition: scale 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.about-img:hover { scale: 1.03; }

/* Floating doodles */
@keyframes floaty { 50% { translate: 0 -12px; } }
.doodle { animation: floaty 5.5s ease-in-out infinite; }
.d2 { animation-delay: 1.2s; }
.d3 { animation-delay: 2.1s; }
.d4 { animation-delay: 3s; }

/* ── Buttons with feeling ── */
/* Eager: springy back-out easing on hover; Squish: press feedback */
.btn-red {
  transition:
    background 0.25s ease,
    translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.18s ease;
}
.btn-red:hover { translate: 0 -3px; }
.btn-red:active { scale: 0.93; }
.btn-red:disabled { cursor: default; translate: 0 0; }

/* Booked = joy */
.btn-red.btn-booked { background: #2f7a4e; text-shadow: none; }

/* Heartbeat: the reserve badge quietly asks for attention */
@keyframes heartbeat {
  0%, 55%, 100% { scale: 1; }
  8% { scale: 1.05; }
  16% { scale: 1; }
  24% { scale: 1.035; }
}
.reserve-badge { animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both, heartbeat 3.6s ease-in-out 2.2s infinite; }
.reserve-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  opacity: 0;
  animation: pulseRing 3.6s ease-out 2.2s infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { scale: 1; opacity: 0.65; }
  35%, 100% { scale: 1.3; opacity: 0; }
}

/* Sparkle burst on booking success */
.booking-form, .newsletter { position: relative; }
.sparkle {
  position: absolute;
  color: var(--gold-bright);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  animation: burst 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* Sticky nav shadow after scroll */
.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(16, 31, 60, 0.35); }

/* Voice cards lift */
.voice { transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.voice:hover { translate: 0 -6px; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 960px) {
  .nav-inner { flex-wrap: wrap; justify-content: space-between; padding: 0 1rem; }
  .wordmark { border: 0; padding: 0.8rem 0; }
  .nav-item { display: none; border: 0; }
  .nav.open .nav-item { display: flex; width: 100%; border-top: 1px solid var(--line); padding: 0.9rem 0.4rem; }
  .nav-toggle {
    display: grid;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.6rem;
    align-self: center;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s ease; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .about-top, .menu-grid, .reserve-grid, .booking-grid, .footer-top { grid-template-columns: 1fr; }
  .about-note { text-align: left; }
  .newsletter { justify-self: start; }
  .voice-red { transform: none; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .doodle { display: none; }
}

@media (max-width: 560px) {
  .reserve-badge { margin: 0.4rem auto; }
  .hero-figure { margin-top: -3.4rem; }
  .hero-figure img { border-radius: 0; }
}

/* ═══════════════ Reduced motion ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .polaroid, .reserve-badge, .btn-red, .menu-cat, .voice,
  .reserve-photos img, .about-img, .badge-core { transition: none; }
  .hero .pill, .hero-title, .reserve-badge, .hero-figure,
  .badge-ring, .marquee-track, .doodle, .reserve-badge::after, .sparkle { animation: none; }
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
  .btn-red::after { display: none; }
}
