/* =========================================================================
   CasaPalma — Design System
   Palette   : Royal Green (#0A2E22 → #1E6B4E) + Luxury Gold (#C9A24B)
   Display   : Fraunces (wonky optical-size serif — set large, restrained)
   Body      : Jost (clean geometric sans)
   Signature : the arched niche — CasaPalma's dining room is lined with
               green-tiled arches; every framed image and every section
               seam on this site borrows that same arch silhouette.
   ========================================================================= */

:root {
  /* Color */
  --green-950: #0a2e22;
  --green-900: #0d3527;
  --green-800: #123c2c;
  --green-700: #175139;
  --green-600: #1e6b4e;
  --green-500: #278463;
  --gold-600: #ad8636;
  --gold-500: #c9a24b;
  --gold-400: #d9b969;
  --gold-300: #e4cd8b;
  --gold-100: #f5eacb;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --ink: #16201b;
  --ink-soft: #3d4a42;
  --line: rgba(22, 32, 27, 0.1);
  --line-gold: rgba(201, 162, 75, 0.35);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius-arch: 999px 999px 8px 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(10, 46, 34, 0.06), 0 12px 32px -12px rgba(10, 46, 34, 0.22);
  --shadow-pop: 0 20px 60px -20px rgba(10, 46, 34, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; }
img, picture { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--green-950); color: var(--gold-300);
  padding: .75rem 1.25rem; border-radius: 6px; z-index: 999;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--green-950);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-500);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }
.section-head > .eyebrow { margin-bottom: 1rem; }
.section-head > h2 { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.wrap {
  width: min(1280px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.bg-deep { background: var(--green-950); color: var(--gold-100); }
.bg-deep h2, .bg-deep h3 { color: var(--paper); }
.bg-deep .lede { color: rgba(245, 234, 203, 0.75); }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }

.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--green-950);
  box-shadow: 0 10px 30px -10px rgba(173, 134, 54, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(173, 134, 54, 0.65); }
.btn-outline {
  border: 1px solid var(--line-gold);
  color: inherit;
  background: transparent;
}
.btn-outline:hover { background: rgba(201, 162, 75, 0.1); border-color: var(--gold-500); }
.btn-ghost { color: var(--green-800); padding: .6rem 0; border-radius: 0; }
.btn-ghost svg { transition: transform .3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding-block: 1.15rem;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--green-950);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.site-header.scrolled { padding-block: .75rem; box-shadow: 0 12px 30px -18px rgba(0,0,0,.5); }
.site-header.scrolled::before { opacity: 1; }
body.page-inner .site-header::before { opacity: 1; }
body.page-inner .site-header { padding-block: .85rem; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--paper); letter-spacing: .02em; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name b { color: var(--gold-400); font-weight: 600; }

.nav-desktop { display: none; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; align-items: center; gap: 2.1rem; }
  .nav-desktop a {
    font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
    color: rgba(251, 247, 238, 0.82); position: relative; padding-block: .3rem;
  }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: var(--gold-400); transition: right .3s var(--ease);
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--paper); }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { right: 0; }
}

.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-cta .btn { padding: .8rem 1.4rem; font-size: .78rem; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(251,247,238,.28); color: var(--paper); position: relative;
  transition: border-color .3s, background .3s;
}
.icon-btn:hover { border-color: var(--gold-400); background: rgba(201,162,75,.12); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--gold-500); color: var(--green-950);
  font-size: .65rem; font-weight: 600; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count[data-count="0"] { display: none; }

.nav-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(251,247,238,.28); color: var(--paper); }
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; z-index: 300;
  background: var(--green-950);
  display: flex; flex-direction: column;
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile-top { display: flex; justify-content: space-between; align-items: center; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 3rem; }
.nav-mobile a { font-family: var(--font-display); font-size: 2rem; color: var(--gold-100); }
.nav-mobile-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-foot a { color: rgba(251,247,238,.7); font-size: .95rem; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* ---------- Arch motif (signature) ---------- */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-600));
  border-radius: calc(999px + 10px) calc(999px + 10px) 18px 18px;
}
.arch-frame .arch { border-radius: 999px 999px 10px 10px; }

.arcade { display: flex; }
.arcade .arch { flex: 1; margin-inline: -1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,46,34,.55) 0%, rgba(10,46,34,.25) 32%, rgba(10,46,34,.55) 68%, rgba(10,46,34,.96) 100%);
}
.hero-content { padding-block: clamp(7rem, 16vw, 10rem) clamp(3rem, 7vw, 5rem); width: 100%; }
.hero-eyebrow { color: var(--gold-300); }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero .lede { color: rgba(251,247,238,.82); margin-block: 1.4rem 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid rgba(251,247,238,.18); }
.hero-meta div span { display: block; }
.hero-meta .k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: .35rem; }
.hero-meta .v { font-family: var(--font-display); font-size: 1.1rem; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.2rem; display: flex; align-items: center; gap: .6rem;
  writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,247,238,.7);
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold-400), transparent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--paper); overflow: hidden;
  padding-block: clamp(8rem, 18vw, 11rem) clamp(3.5rem, 7vw, 5rem);
}
.page-hero .hero-media, .page-hero .hero-scrim { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-scrim { z-index: -1; background: linear-gradient(180deg, rgba(10,46,34,.72), rgba(10,46,34,.92)); }
.page-hero h1 { color: var(--paper); }
.breadcrumb { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1.2rem; display: flex; gap: .5em; align-items: center; }
.breadcrumb a { color: rgba(251,247,238,.7); }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Dish card */
.dish-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  height: 100%;
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.dish-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish-card:hover .dish-media img { transform: scale(1.07); }
.dish-badge {
  position: absolute; top: .9rem; left: .9rem; background: var(--green-950); color: var(--gold-300);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px;
}
.dish-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.dish-top h3, .dish-top .dish-name { font-size: 1.05rem; }
.dish-price { font-family: var(--font-display); color: var(--gold-600); white-space: nowrap; font-size: 1.05rem; }
.dish-desc { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.dish-actions { margin-top: .6rem; }
.add-btn {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-700); font-weight: 500; border: 1px solid var(--line); padding: .6rem 1rem; border-radius: 999px;
  transition: all .3s var(--ease); width: 100%; justify-content: center;
}
.add-btn:hover { background: var(--green-950); color: var(--gold-300); border-color: var(--green-950); }
.add-btn svg { width: 15px; height: 15px; }

.size-toggle { display: flex; gap: .4rem; }
.size-toggle button {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .5rem; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); transition: all .25s;
}
.size-toggle button[aria-pressed="true"] { background: var(--green-950); color: var(--gold-300); border-color: var(--green-950); }

/* ---------- Menu page tabs ---------- */
.menu-tabs {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(251,247,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs ul { display: flex; gap: .5rem; padding-block: .9rem; width: max-content; margin-inline: auto; }
.menu-tabs a {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: .82rem; letter-spacing: .04em; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .25s;
}
.menu-tabs a.active, .menu-tabs a:hover { background: var(--green-950); color: var(--gold-300); border-color: var(--green-950); }

.menu-search { display: flex; align-items: center; gap: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .4rem .3rem 1.1rem; max-width: 420px; margin-inline: auto; box-shadow: var(--shadow-card); }
.menu-search svg { width: 17px; height: 17px; color: var(--ink-soft); flex: none; }
.menu-search input { flex: 1; border: 0; background: transparent; padding: .6rem 0; outline: none; }
.menu-search button { background: var(--green-950); color: var(--gold-300); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }

.menu-category { padding-block: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 140px; border-bottom: 1px dashed var(--line); }
.menu-category:last-child { border-bottom: none; }
.menu-cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.menu-cat-head h2 { color: var(--green-950); }
.menu-cat-note { color: var(--ink-soft); font-size: .92rem; max-width: 42ch; }
.subgroup-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-600); margin: 2.2rem 0 1rem; padding-top: .2rem; }
.subgroup-title:first-child { margin-top: 0; }

.menu-row-list { display: flex; flex-direction: column; }
.menu-row {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; align-items: baseline;
  padding-block: 1.05rem; border-bottom: 1px solid var(--line);
}
.menu-row .name { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-950); display: flex; align-items: center; gap: .6rem; }
.menu-row .desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .87rem; max-width: 62ch; }
.menu-row .price { font-family: var(--font-display); color: var(--gold-600); white-space: nowrap; }
.menu-row .price .alt { color: var(--ink-soft); font-size: .78rem; font-family: var(--font-body); margin-left: .4rem; }
.menu-row-add { grid-column: 1/-1; display: flex; justify-content: flex-end; margin-top: .3rem; }
.menu-row-add .add-btn { width: auto; padding: .45rem .9rem; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); display: none; }
.no-results.show { display: block; }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--paper); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1.2rem; height: 100%;
}
.stars { display: flex; gap: .2rem; color: var(--gold-500); }
.stars svg { width: 16px; height: 16px; }
.testi-quote { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-950); line-height: 1.5; }
.testi-who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-950); color: var(--gold-300); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.testi-who .name { font-weight: 500; color: var(--green-950); font-size: .92rem; }
.testi-who .meta { font-size: .78rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; text-align: left; }
.faq-q h3 { font-size: 1.05rem; }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--gold-600); transition: transform .35s var(--ease); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.3rem; }
.field label { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--green-800); font-weight: 500; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.05rem; background: var(--paper);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.field textarea { resize: vertical; min-height: 100px; }
.field .hint { font-size: .76rem; color: var(--ink-soft); }
.field .error { font-size: .78rem; color: #b3401f; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3401f; }
.field.invalid .error { display: block; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: repeat(3, 1fr); } }
.form-card { background: var(--paper); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-card); }
.form-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--gold-100); border: 1px solid var(--line-gold); padding: 1rem 1.2rem; border-radius: 14px; font-size: .85rem; color: var(--green-800); margin-bottom: 1.6rem; }
.form-note svg { width: 20px; height: 20px; flex: none; color: var(--gold-600); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--green-600); margin-bottom: 1rem; }

/* Stepper (guests) */
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; font-size: 1.1rem; color: var(--green-800); }
.stepper button:hover { background: var(--gold-100); }
.stepper output { flex: 1; text-align: center; font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; inset-block: 0; right: 0; z-index: 400;
  width: min(440px, 100%); background: var(--paper); box-shadow: -20px 0 60px rgba(10,46,34,.3);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay { position: fixed; inset: 0; background: rgba(10,46,34,.5); z-index: 399; opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(2px); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.cart-empty svg { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--line-gold); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.cart-item .name { font-family: var(--font-display); color: var(--green-950); }
.cart-item .variant { font-size: .78rem; color: var(--ink-soft); grid-column: 1; }
.cart-item .price { font-family: var(--font-display); color: var(--gold-600); }
.cart-item .row-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.qty-mini { display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; }
.qty-mini button { width: 30px; height: 30px; }
.qty-mini output { min-width: 24px; text-align: center; font-size: .85rem; }
.remove-item { font-size: .76rem; color: #b3401f; text-decoration: underline; text-underline-offset: 2px; }
.cart-foot { padding: 1.4rem 1.6rem 1.7rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.cart-total .label { color: var(--ink-soft); font-size: .9rem; }
.cart-total .amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-950); }

/* ---------- Gallery / Lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
@media (min-width: 640px) { .gallery-item:nth-child(5n+2) { grid-row: span 2; aspect-ratio: 4/8.4; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,46,34,.55), transparent 45%); opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .g-cap { position: absolute; left: .9rem; bottom: .8rem; color: var(--paper); font-size: .78rem; letter-spacing: .04em; opacity: 0; transform: translateY(6px); transition: all .3s; }
.gallery-item:hover .g-cap { opacity: 1; transform: translateY(0); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.gallery-filters button { border: 1px solid var(--line); padding: .55rem 1.1rem; border-radius: 999px; font-size: .8rem; letter-spacing: .04em; }
.gallery-filters button[aria-pressed="true"] { background: var(--green-950); color: var(--gold-300); border-color: var(--green-950); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,20,16,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(92vw, 1000px); max-height: 86vh; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: var(--gold-200, #eadfba); text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: var(--paper); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold-400); background: rgba(201,162,75,.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(251,247,238,.75); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; position: relative; }
.footer-grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: .92rem; }
.footer-col h4 { font-family: var(--font-display); color: var(--gold-300); font-size: 1rem; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; font-size: .9rem; }
.footer-col a:hover { color: var(--paper); }
.footer-social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer-hours dt { color: var(--gold-300); font-size: .8rem; }
.footer-hours dd { margin: 0 0 .6rem; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(251,247,238,.12); margin-top: 3rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; }
.footer-bottom a:hover { color: var(--gold-300); }

/* ---------- Floating actions ---------- */
.floating-stack { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 250; display: flex; flex-direction: column; gap: .8rem; align-items: flex-end; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop); transition: transform .3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa svg { width: 26px; height: 26px; }
.fab-top { background: var(--paper); color: var(--green-950); border: 1px solid var(--line); opacity: 0; transform: translateY(10px); pointer-events: none; }
.fab-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Misc components ---------- */
.divider-palm { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold-500); margin-block: 1.5rem; }
.divider-palm::before, .divider-palm::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.divider-palm::after { background: linear-gradient(270deg, transparent, var(--gold-400)); }
.divider-palm svg { width: 22px; height: 22px; }

.stat-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem; }
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4,1fr); } }
.stat-strip .stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold-300); }
.stat-strip .stat span { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(251,247,238,.7); }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { border: 1px solid var(--line-gold); color: var(--green-800); font-size: .78rem; padding: .45rem .9rem; border-radius: 999px; }

.toast { position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); background: var(--green-950); color: var(--gold-200,#eadfba); padding: .9rem 1.4rem; border-radius: 999px; font-size: .85rem; z-index: 600; opacity: 0; transition: all .35s var(--ease); display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow-pop); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--gold-400); }

.map-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.contact-card { display: flex; gap: 1rem; padding: 1.4rem; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); align-items: flex-start; }
.contact-card .icon-wrap { width: 46px; height: 46px; border-radius: 50%; background: var(--green-950); color: var(--gold-300); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .icon-wrap svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact-card p, .contact-card a { font-size: .9rem; color: var(--ink-soft); }
.contact-card a:hover { color: var(--green-700); }

.error-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 11rem); color: var(--gold-400); line-height: .9; }

/* Skeleton loading */
.skel { background: linear-gradient(100deg, rgba(0,0,0,.06) 30%, rgba(0,0,0,.11) 50%, rgba(0,0,0,.06) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
