/* Drive Me Nuts — Peanut Cake · Design System v1.0 */
/* Fontes servidas pelo próprio site (licença SIL Open Font) */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/kaushan-script-latin-400-normal.woff2') format('woff2'); }

:root {
  /* tokens do guia */
  --brown-950: #281a0f;
  --brown-900: #38190f;
  --burgundy-700: #6a163b;
  --burgundy-600: #88245c;
  --caramel-500: #d1843a;
  --gold-400: #ffb12b;
  --peanut-300: #e6b57a;
  --cream-100: #fff5e7;
  --cream-50: #fff9f1;
  --success-600: #27864d;
  --danger-600: #b64035;
  --ink: #30160f;

  /* apelidos usados pelas páginas */
  --cream: var(--cream-100);
  --cream-2: #f6e4ca;
  --card: var(--cream-50);
  --wine: var(--burgundy-700);
  --wine-2: var(--burgundy-600);
  --amber: var(--gold-400);
  --amber-2: #f2a10c;
  --brown: var(--brown-900);
  --brown-2: #5a2e1a;
  --muted: #6b5141;
  --green: var(--success-600);
  --line: #ead6bc;
  --field-line: #c8ab8e;

  --shadow: 0 10px 28px rgba(56, 25, 15, 0.1), 0 2px 6px rgba(56, 25, 15, 0.06);
  --r-field: 12px;
  --r-card: 16px;
  --r-panel: 24px;
  --radius: var(--r-panel);
  --display: 'Baloo 2', 'Nunito Sans', system-ui, sans-serif;
  --ui: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--burgundy-600); outline-offset: 2px; border-radius: 6px; }
.band-dark :focus-visible, .band-wine :focus-visible { outline-color: var(--gold-400); }
.wrap { width: min(1200px, 100% - 80px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
}

/* ---------- faixas da home (chocolate / creme / bordô) */
.band { padding: 96px 0; }
.band-dark { background: var(--brown-900); color: var(--cream-100); }
.band-deep { background: var(--brown-950); color: var(--cream-100); }
.band-wine { background: var(--burgundy-700); color: var(--cream-100); }
.band-dark h2.section, .band-deep h2.section, .band-wine h2.section { color: var(--cream-100); }
.band-dark .section-lead, .band-deep .section-lead, .band-wine .section-lead { color: #e9d4bb; }
.band-dark a:not(.btn), .band-wine a:not(.btn) { color: var(--gold-400); }
@media (max-width: 767px) { .band { padding: 64px 0; } }

/* ---------- cabeçalho */
.site-header { background: var(--cream); position: relative; z-index: 5; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { text-decoration: none; color: var(--brown); line-height: 1; display: inline-flex; flex-direction: column; align-items: center; }
.logo img { height: 76px; width: auto; }
@media (max-width: 767px) { .logo img { height: 52px; } }
.logo .word { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.5px; transform: rotate(-3deg); white-space: nowrap; }
.logo .sub { font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.logo .sub::before, .logo .sub::after { content: ''; width: 14px; height: 2px; background: currentColor; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--ui); font-weight: 700; font-size: 17px; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a.active { border-bottom-color: var(--gold-400); }
.nav a:hover { color: var(--wine); }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-pill {
  border: 2px solid var(--wine); color: var(--wine); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-family: var(--ui); font-weight: 800; font-size: 16px; cursor: pointer; min-height: 42px;
}
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--brown); cursor: pointer; min-width: 44px; min-height: 44px; }
.wave { display: block; width: 100%; height: 56px; margin-bottom: -2px; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card);
         flex-direction: column; gap: 0; padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
}

/* ---------- títulos */
.page-title { text-align: center; padding: 26px 0 10px; }
.page-title h1 {
  font-family: var(--display); font-weight: 800; color: var(--brown);
  font-size: clamp(34px, 5.4vw, 52px); line-height: 1.05; margin: 0;
  display: inline-flex; align-items: center; gap: 14px;
}
.spark { width: 34px; height: 34px; flex: none; }
.page-title p { margin: 8px auto 0; max-width: 640px; font-size: 18px; }
h2.section {
  font-family: var(--display); font-weight: 800; color: var(--brown);
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 8px; text-align: center;
}
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; font-size: 18px; }

/* ---------- cartões e botões */
.card { background: var(--card); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid #fff; }
.panel-card { border-radius: var(--r-panel); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; font-family: var(--ui); font-weight: 800; font-size: 20px; line-height: 1;
  transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--gold-400); color: var(--ink); }
.btn-amber:hover { background: var(--amber-2); }
.btn-wine { background: var(--burgundy-700); color: var(--cream-100); }
.btn-wine:hover { background: var(--burgundy-600); }
.btn-ghost { background: transparent; color: var(--wine); border-color: var(--wine); }
.band-dark .btn-ghost, .band-wine .btn-ghost { color: var(--cream-100); border-color: var(--cream-100); }
.btn[disabled] { background: #e3d5c4; color: #6b5141; border-color: transparent; cursor: not-allowed; }
.btn-sm { font-size: 15px; min-height: 44px; padding: 0 18px; }

.tip {
  display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center;
  background: #f6dbe3; color: var(--wine); border-radius: 999px; padding: 12px 22px; font-weight: 600;
  margin: 24px auto 0; width: fit-content; max-width: 100%;
}
.tip svg { flex: none; }

.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-family: var(--ui); font-weight: 800; background: var(--cream-2); color: var(--brown); }
.tag.limited { background: var(--burgundy-700); color: var(--cream-100); }
.state-chip { display: inline-block; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.state-chip.wait { background: var(--cream-2); color: var(--brown); }
.state-chip.open { background: #dcefe2; color: #1d6a3b; }
.state-chip.sold { background: #f6dcd8; color: var(--danger-600); }

.photo { background-color: var(--brown-2); background-size: cover; background-position: center; border-radius: var(--r-card); }
:root {
  --ph-cake:
    radial-gradient(circle at 20% 30%, #c98a3d 0 8%, transparent 9%),
    radial-gradient(circle at 70% 60%, #b8742c 0 7%, transparent 8%),
    radial-gradient(circle at 45% 75%, #d69a4a 0 6%, transparent 7%),
    linear-gradient(180deg, #5a2e1a 0 22%, #d8a25a 22% 100%);
}
.ph-cake { background-image: var(--ph-cake); }

/* ---------- etapas */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; margin: 30px 0 0; padding: 0; list-style: none; }
.steps::before { content: ''; position: absolute; top: 22px; left: calc(100% / 14); right: calc(100% / 14); height: 4px; background: var(--line); border-radius: 4px; }
.steps .fill {
  position: absolute; top: 22px; left: calc(100% / 14); height: 4px; background: var(--green); border-radius: 4px;
  width: calc((100% - 100% / 7) * var(--r, 0)); transition: width .6s ease;
}
.step { position: relative; text-align: center; font-family: var(--ui); font-weight: 700; font-size: 15px; z-index: 1; padding: 0 4px; }
.step .dot {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  background: var(--card); border: 3px solid #cbb9a3; color: #8f7a66;
}
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.now .dot { background: var(--wine); border-color: var(--wine); color: #fff; animation: pulse 1.8s ease-in-out infinite; }
.step.now { color: var(--wine); font-weight: 800; }
.step time { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(106,22,59,.35); } 50% { box-shadow: 0 0 0 12px rgba(106,22,59,0); } }

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-left: 4px; }
  .steps::before { top: 23px; bottom: 23px; left: 21px; right: auto; width: 4px; height: auto; }
  .steps .fill { top: 23px; left: 21px; width: 4px; height: calc((100% - 46px) * var(--r, 0)); transition: height .6s ease; }
  .step { display: flex; align-items: center; gap: 14px; text-align: left; padding: 6px 0; }
  .step .dot { margin: 0; }
}

/* ---------- formulários */
label.field { display: block; font-family: var(--ui); font-weight: 700; margin-bottom: 16px; }
label.field span { display: block; margin-bottom: 6px; font-size: 15px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; border: 1px solid var(--field-line); background: var(--cream-50); color: var(--ink);
  border-radius: var(--r-field); padding: 12px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--burgundy-600); box-shadow: 0 0 0 3px rgba(136,36,92,.25); }
.input[aria-invalid="true"] { border-color: var(--danger-600); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wine); flex: none; }
.choice {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--field-line);
  border-radius: var(--r-card); background: var(--cream-50); cursor: pointer; margin-bottom: 10px; min-height: 52px;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--caramel-500); }
.choice input { accent-color: var(--wine); width: 20px; height: 20px; flex: none; margin: 0; }
.choice:has(input:checked) { border: 2px solid var(--wine); background: #fbeef2; }
.choice .thumb { width: 64px; height: 52px; border-radius: var(--r-field); flex: none; }
.choice b { display: block; font-family: var(--ui); font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--brown); }
.choice small { color: var(--muted); font-size: 14px; }
.error-msg { color: var(--danger-600); font-weight: 600; margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.error-msg:empty { display: none; }
.error-msg::before { content: '⚠'; flex: none; }

/* ---------- rodapé */
.site-footer { background: var(--brown-900); color: #f3e2cc; padding: 0 0 28px; position: relative; display: flow-root; }
.foot-wave-wrap { margin-top: -54px; line-height: 0; }
.foot-wave-wrap .wave { height: 56px; }
.foot-wave-x { height: 48px; background: var(--brown-900); margin-top: -47px;
  -webkit-mask: radial-gradient(70% 100% at 50% 100%, #000 99%, transparent 100%); mask: radial-gradient(70% 100% at 50% 100%, #000 99%, transparent 100%); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1.3fr 1.2fr; gap: 0; padding-top: 32px; }
.foot-grid > * { padding: 4px 24px; border-left: 1px solid rgba(255,245,231,.18); }
.foot-grid > :first-child { border-left: 0; padding-left: 0; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h3 { font-family: var(--ui); font-weight: 800; font-size: 20px; color: var(--cream-100); margin: 0 0 4px; }
.site-footer a { color: #f3e2cc; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer a svg, .with-ic svg { color: var(--gold-400); flex: none; }
.with-ic { display: inline-flex; align-items: center; gap: 10px; }
.site-footer small { opacity: .8; font-size: 13px; }
.muted-light { opacity: .6; }
.foot-slogan { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.script { font-family: var(--script); font-size: 30px; line-height: 1.15; color: var(--cream-100); transform: rotate(-6deg); display: inline-block; }
.script::after { content: ''; display: block; height: 4px; width: 80%; margin-top: 6px; background: var(--gold-400); border-radius: 4px; }
.site-footer .legal { font-size: 13px; opacity: .85; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.site-footer .logo { color: var(--cream-100); }
.site-footer .logo img { height: 140px; }
.site-footer .lang-pill { border-color: var(--cream-100); color: var(--cream-100); }
.site-footer .lang-pill option { color: var(--ink); }
@media (max-width: 1199px) { .foot-slogan .script { font-size: 24px; } .foot-grid > * { padding: 4px 16px; } }
@media (max-width: 1023px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .foot-grid > * { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.page-end { height: 80px; }

/* ---------- carregando */
.loading { text-align: center; padding: 60px 0; color: var(--muted); font-weight: 600; }
.skeleton { background: linear-gradient(90deg, var(--cream-2), #fff8ec, var(--cream-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
main.wrap { padding-bottom: 80px; }
.logo-fallback { display: inline-flex; flex-direction: column; align-items: center; }

/* Home: borda ondulada creme do cabeçalho sobre o topo chocolate */
.home .site-header .wave { background: #3a1a0e; }
.home .site-header .wave path { fill: var(--cream-100); }
/* Etapa atual em vermelho-tijolo, como no layout */
.step.now .dot { background: var(--danger-600); border-color: var(--danger-600); animation-name: pulse-red; }
.step.now { color: var(--danger-600); }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 0 rgba(182,64,53,.35); } 50% { box-shadow: 0 0 0 12px rgba(182,64,53,0); } }
/* Títulos internos com Baloo 800 */
.page-title h1 { font-weight: 800; }
.grid1 { display: grid; grid-template-columns: 1fr; }
