/* ==========================================================================
   RIBEIRO FAROFA GOURMET — style.css  (mobile first)
   Índice: 1 Base · 2 Layout · 3 Botões · 4 Header · 5 Hero · 6 Destaques
   7 Seções · 8 Sabores · 9 Catálogo · 10 Passos · 11 Formulário
   12 Entrega · 13 Galeria · 14 Footer · 15 Flutuante/Lightbox/Toast
   16 Animações · 17 Desktop
   ========================================================================== */

/* ---------- 1. BASE ---------- */
:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --card: #161616;
  --line: rgba(201, 162, 75, 0.28);
  --gold: #c9a24b;
  --gold-light: #ecd48f;
  --gold-dark: #9a7424;
  --white: #ffffff;
  --muted: #b5ad9d;
  --cream: #f6f1e7;
  --error: #ff8f8f;
  --wa: #25d366;
  --header-h: 68px;
  --radius: 14px;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open, body.lightbox-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: rgba(201, 162, 75, 0.25); }
button { -webkit-tap-highlight-color: rgba(201, 162, 75, 0.25); touch-action: manipulation; }
summary { touch-action: manipulation; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.1; }

:focus { outline: 3px solid var(--gold-light); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.muted { color: var(--muted); font-size: 0.92rem; }
.noscript { padding: 16px; text-align: center; background: var(--card); }

/* ---------- 2. LAYOUT ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.section { padding: 72px 0; }
.section-alt { background: var(--black-2); border-block: 1px solid rgba(201, 162, 75, 0.12); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2, .center h2, .location h2, .about h2 { font-size: 2.4rem; font-size: clamp(2rem, 7vw, 3.2rem); }
.section-head p { color: var(--muted); margin-top: 12px; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: "—"; margin: 0 10px; opacity: 0.55; }

.center > p, .location > p { color: var(--muted); margin: 14px auto 28px; max-width: 560px; }
.location { text-align: center; }
.location-address { color: var(--white) !important; font-weight: 500; }

/* ---------- 3. BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-gold { background: var(--gold-gradient); color: var(--black); box-shadow: 0 8px 22px rgba(201, 162, 75, 0.22); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(201, 162, 75, 0.38); }
.btn-outline { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-outline:hover { background: rgba(201, 162, 75, 0.12); }
.btn-whatsapp { background: var(--wa); color: #06210f; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.22); }
.btn-whatsapp:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.74rem; }
.icon-wa { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.55));
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; }

.menu-toggle {
  width: 46px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.menu-toggle-bar { width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  padding: 24px 20px 48px;
  background: rgba(10, 10, 10, 0.98);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-list { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.nav-list a {
  display: block; padding: 12px 20px; text-decoration: none;
  font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; color: var(--white);
  position: relative; transition: color 0.2s ease;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--gold-light); }
.nav-cta { width: min(100%, 320px); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 36px) 0 64px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(201, 162, 75, 0.14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(201, 162, 75, 0.08), transparent 60%),
    var(--black);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.6;
}
.hero-inner { display: grid; gap: 36px; align-items: center; }
.hero-text { text-align: center; }

.badge {
  display: inline-block; padding: 8px 18px; margin-bottom: 22px;
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-light);
  background: rgba(201, 162, 75, 0.08);
}
.hero h1 { font-size: 3.6rem; font-size: clamp(3rem, 15vw, 5.6rem); letter-spacing: 0.02em; }
.hero-sub { margin-top: 14px; font-family: var(--font-title); font-size: 1.6rem; font-size: clamp(1.4rem, 5vw, 2rem); color: var(--gold-light); font-style: italic; }
.hero-desc { margin: 16px auto 0; max-width: 520px; color: #e6e0d2; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-delivery {
  margin-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--gold-light); letter-spacing: 0.04em;
}
.hero-delivery::before { content: "✦ "; color: var(--gold); }

.hero-frame {
  position: relative; background: var(--white); border-radius: 18px; padding: 6px;
  border: 1px solid var(--gold); box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.1), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.hero-frame img { width: 100%; border-radius: 12px; aspect-ratio: 1376 / 768; object-fit: cover; }

/* ---------- 6. DESTAQUES ---------- */
.highlights { padding: 44px 0; background: var(--black-2); }
.highlights-grid { display: grid; gap: 16px; }
.highlight {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.06), transparent);
}
.highlight .icon { width: 34px; height: 34px; fill: var(--gold); margin-bottom: 6px; }
.highlight h2 { font-size: 1.7rem; color: var(--gold-light); }
.highlight p { color: var(--muted); font-size: 0.92rem; }

/* ---------- 8. SABORES (lista simples) ---------- */
.flavor-list { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.flavor-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color 0.3s ease;
}
.flavor-item:hover { border-color: var(--gold); }
.flavor-num { min-width: 28px; font-family: var(--font-title); font-weight: 700; letter-spacing: 0.15em; color: var(--gold); }
.flavor-name { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.flavor-item .status { margin-left: auto; }

.status { font-size: 0.78rem; font-weight: 600; }
.status-ok { color: #8fe3a8; }
.status-off { color: var(--error); }
.price { font-weight: 700; font-size: 1.05rem; color: var(--gold-light); }
.price-consult { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.thumb-fallback { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--gold-dark); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; font-family: var(--font-title); font-size: 1.6rem; }

/* ---------- 9. CATÁLOGO (por tamanho, com foto pequena) ---------- */
.catalog { display: grid; gap: 20px; max-width: 1000px; margin: 0 auto; }
.catalog > * { min-width: 0; }
.catalog-group { padding: 24px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.catalog-group h3 { font-size: 2rem; color: var(--gold-light); }
.catalog-group > .muted { margin-bottom: 14px; }
.catalog-list { display: grid; gap: 10px; }
.catalog-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.catalog-item:hover { border-color: var(--gold); }
.catalog-item.is-selected { border-color: var(--gold-light); box-shadow: 0 0 0 2px var(--gold); }
.catalog-item.is-selected::after { content: "✓ No pedido: " attr(data-qtd) "x"; grid-column: 1 / -1; font-size: 0.74rem; font-weight: 700; color: var(--gold-light); }
.catalog-item .btn { grid-column: 1 / -1; width: 100%; }
.mini-thumb { width: 64px; height: 112px; padding: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--white); border-radius: 10px; }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-flavor { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 6px; }

/* ---------- 10. PASSOS ---------- */
.steps { display: grid; gap: 16px; max-width: 1000px; margin: 0 auto; counter-reset: s; }
.step {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.step-num { font-family: var(--font-title); font-size: 2.8rem; font-weight: 700; line-height: 1; min-width: 64px; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
.step p { font-weight: 500; }

/* ---------- 11. FORMULÁRIO ---------- */
.order-wrap { max-width: 860px; }
.order-form {
  display: grid; gap: 18px; padding: 24px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-light); padding: 0; }
.req { color: var(--gold); }

.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #0d0d0d; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea, .qty-btn { -webkit-appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: #7d776a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold-light); outline-offset: 1px; }
.field input[readonly] { color: var(--gold-light); background: #131313; cursor: default; }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #111; color: var(--white); }

.is-invalid { border-color: var(--error) !important; }
.error { min-height: 0; font-size: 0.82rem; color: var(--error); font-weight: 500; }
.error:not(:empty)::before { content: "⚠ "; }

.qty { display: flex; align-items: stretch; gap: 8px; }
.qty input { text-align: center; max-width: 110px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 50px; min-height: 50px; font-size: 1.4rem; font-weight: 700; color: var(--gold-light); background: #0d0d0d; border: 1px solid var(--gold); border-radius: 10px; cursor: pointer; transition: background 0.2s ease; }
.qty-btn:hover { background: rgba(201, 162, 75, 0.15); }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; top: 0; left: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: #0d0d0d;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; transition: all 0.2s ease;
}
.radio input:checked + span { border-color: var(--gold); background: rgba(201, 162, 75, 0.14); color: var(--gold-light); }
.radio input:checked + span::before { content: "✓ "; margin-right: 6px; }
.radio input:focus + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.summary { padding: 18px; border: 1px dashed var(--gold); border-radius: 12px; background: rgba(201, 162, 75, 0.05); }
.summary h3 { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.92rem; }
.summary-row dt { color: var(--muted); }
.summary-row dd { text-align: right; font-weight: 600; }
.summary-total { border-bottom: 0; font-size: 1.05rem; padding-top: 12px; }
.summary-total dt { color: var(--white); font-weight: 700; }
.summary-total dd { color: var(--gold-light); }

.form-actions { display: flex; flex-direction: column; gap: 14px; }
.form-actions .btn { width: 100%; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ---------- 12. ENTREGA / SOBRE ---------- */
.delivery-grid { display: grid; gap: 16px; margin-bottom: 36px; }
.delivery-card { padding: 24px 20px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.delivery-card h3 { font-size: 1rem; font-family: var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.delivery-value { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.delivery-card:first-child { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 162, 75, 0.12), transparent); }
.delivery-card:first-child .delivery-value { font-size: 2.6rem; }

.about-inner { max-width: 760px; text-align: center; }
.about-inner > p + p { font-size: 0.95rem; color: var(--muted); }
.about-inner > p { margin-top: 20px; color: #e6e0d2; font-size: 1.08rem; }

/* ---------- 13. GALERIA ---------- */
.gallery { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.gallery-item {
  padding: 0; border: 1px solid var(--gold); border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: var(--white); aspect-ratio: 1376 / 768; transition: box-shadow 0.3s ease;
  box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.1), 0 24px 50px rgba(0, 0, 0, 0.55);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color 0.3s ease; }
.faq details[open] { border-color: var(--gold); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-weight: 600; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* ---------- 14. FOOTER ---------- */
.site-footer { padding: 56px 0 100px; background: #050505; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 32px; text-align: center; }
.footer-brand img { height: 84px; width: auto; margin: 0 auto 14px; }
.footer-name { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-light); }
.footer-city { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links a { display: inline-block; padding: 8px 2px; text-decoration: none; color: #ddd6c6; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-light); }
.copyright { margin-top: 36px; padding: 20px 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 0.8rem; color: var(--muted); max-width: 1140px; margin-inline: auto; }

/* ---------- 15. FLUTUANTE / LIGHTBOX / TOAST ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease; animation: pulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translate(8px, -50%); white-space: nowrap;
  background: #fff; color: #111; font-size: 0.8rem; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-float:hover .wa-tooltip, .wa-float:focus .wa-tooltip { opacity: 1; transform: translate(0, -50%); }
@keyframes pulse {
  0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.93); padding: 56px 12px; }
.lb-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; }
.lb-figure figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  background: rgba(10, 10, 10, 0.85); color: var(--gold-light); border: 1px solid var(--gold); font-size: 2rem; cursor: pointer;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--gold); color: var(--black); }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 250; transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--gold); color: var(--black); font-size: 0.85rem; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 16. ANIMAÇÕES ---------- */
.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp 0.8s ease forwards; }
.hero-text .fade-up:nth-child(2) { animation-delay: 0.08s; }
.hero-text .fade-up:nth-child(3) { animation-delay: 0.16s; }
.hero-text .fade-up:nth-child(4) { animation-delay: 0.24s; }
.hero-text .fade-up:nth-child(5) { animation-delay: 0.32s; }
.hero-figure.fade-up { animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .gallery-item.reveal.is-visible { transition: border-color 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-up, .js .reveal { opacity: 1; transform: none; }
  .wa-float { animation: none; }
}

/* ---------- 17. TABLET / DESKTOP ---------- */
@media (min-width: 600px) {
  .container { padding: 0 28px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .order-form { grid-template-columns: 1fr 1fr; padding: 34px; gap: 20px 22px; }
  .field-wide { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; align-self: center; padding-inline: 40px; }
}

@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .section { padding: 104px 0; }
  .brand img { height: 56px; }
  .menu-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 28px; padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-list { flex-direction: row; gap: 4px; width: auto; }
  .nav-list a { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 12px; }
  .nav-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s ease; }
  .nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
  .nav-cta { width: auto; min-height: 44px; padding: 10px 20px; font-size: 0.72rem; }

  .hero { padding: calc(var(--header-h) + 56px) 0 96px; min-height: 100vh; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 0.95fr 1.05fr; gap: 56px; width: 100%; }
  .hero-text { text-align: left; }
  .hero-desc { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; text-align: center; padding: 30px 20px; }
  .step-num { min-width: 0; font-size: 3.4rem; }
  .delivery-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1.2fr; text-align: left; align-items: center; }
  .footer-brand img { margin-inline: 0; }
  .footer-links { justify-content: flex-end; }
  .site-footer { padding-bottom: 60px; }
  .toast { bottom: 40px; }
}

/* ---------- EXTRAS: pedido com vários sabores, mapa, entrega ---------- */
.section-head h2, .center h2, .location h2 { text-wrap: balance; }

.builder { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(201, 162, 75, 0.04); }
.builder-title { font-size: 1.6rem; color: var(--gold-light); }
.builder-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.builder-add { justify-content: flex-end; }
.builder-add .btn { width: 100%; }
.cart { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.cart-title { margin: 0 0 10px; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cart-list { display: grid; gap: 8px; }
.cart-empty { color: var(--muted); font-size: 0.9rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: #0d0d0d; }
.cart-name { font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qtd { min-width: 38px; text-align: center; font-weight: 700; color: var(--gold-light); }
.qty-btn-sm { width: 42px; min-height: 42px; font-size: 1.2rem; }
.qty-remove { color: var(--error); border-color: var(--error); margin-left: 4px; }

.order-bar {
  position: fixed; left: 16px; bottom: 16px; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--gold-gradient); color: var(--black); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.map-box { position: relative; max-width: 900px; margin: 28px auto 0; aspect-ratio: 4 / 3; overflow: hidden; background: #111; border: 1px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.1); }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px; text-decoration: none; }
.map-overlay span { padding: 10px 18px; background: rgba(10, 10, 10, 0.9); color: var(--gold-light); border: 1px solid var(--gold); border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.map-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.map-actions .btn { width: min(100%, 360px); }

.delivery-card { display: flex; flex-direction: column; justify-content: center; }
.delivery-value { font-size: 1.5rem; }

@media (min-width: 600px) {
  .builder { padding: 22px; }
  .builder-row { grid-template-columns: 1fr 1fr; }
  .map-box { aspect-ratio: 16 / 8; }
  .map-actions { flex-direction: row; justify-content: center; }
  .map-actions .btn { width: auto; }
}

.h2-sub { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.3em; color: var(--gold-light); }
.delivery-value { text-wrap: balance; }


/* ---------- COMPATIBILIDADE E ACABAMENTO ---------- */
/* Navegadores sem aspect-ratio (iOS/Android antigos) */
@supports not (aspect-ratio: 1) {
  .gallery-item { position: relative; height: 0; padding-bottom: 55.8%; }
  .gallery-item picture, .gallery-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .map-box { height: 0; padding-bottom: 75%; }
  .map-box iframe { position: absolute; top: 0; left: 0; }
}
@supports not (aspect-ratio: 1) and (min-width: 600px) {
  .map-box { padding-bottom: 50%; }
}
picture { display: block; }
.brand picture, .footer-brand picture { display: inline-block; }
.footer-brand picture { display: block; }

/* Celulares muito pequenos (320px e menos) */
@media (max-width: 359px) {
  .container { padding: 0 14px; }
  .btn { padding: 12px 14px; font-size: 0.74rem; letter-spacing: 0.06em; }
  .badge { font-size: 0.6rem; letter-spacing: 0.08em; padding: 7px 12px; }
  .hero h1 { font-size: 2.7rem; }
  .eyebrow { letter-spacing: 0.18em; }
  .nav-list a { font-size: 1.5rem; }
  .order-form, .builder { padding: 14px; }
  .catalog-group { padding: 18px 12px; }
  .delivery-card:first-child .delivery-value { font-size: 2.2rem; }
  .lb-btn { width: 42px; height: 42px; }
}

/* Celular deitado (pouca altura) */
@media (max-height: 480px) and (orientation: landscape) {
  .nav { justify-content: flex-start; gap: 14px; }
  .nav-list a { font-size: 1.3rem; padding: 6px 20px; }
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .lightbox { padding: 12px 64px; }
  .lb-figure img { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
}

/* Notebook pequeno / tablet deitado: menu mais compacto */
@media (min-width: 960px) and (max-width: 1139px) {
  .nav { gap: 14px; }
  .nav-list a { padding: 10px 7px; font-size: 0.68rem; letter-spacing: 0.05em; }
  .nav-list a::after { left: 7px; right: 7px; }
  .nav-cta { padding: 10px 14px; font-size: 0.64rem; }
  .brand img { height: 48px; }
}

/* Telas grandes (monitor full HD / 2K / 4K / TV) */
@media (min-width: 1600px) {
  html { font-size: 112.5%; }
  .container { max-width: 1280px; }
}
@media (min-width: 2200px) {
  html { font-size: 137.5%; }
  .container { max-width: 1500px; }
}

/* Mouse: efeito hover só onde existe hover (evita "hover preso" no toque) */
@media (hover: none) {
  .btn:hover, .flavor-item:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}

.hashtags { max-width: 640px; margin: 22px auto 0; font-size: 0.85rem; line-height: 1.9; color: var(--gold); word-spacing: 6px; }
