/* Casa Cacau: fundo rosado claro + chocolate + um destaque framboesa. Cantos de 20px; botões em pílula. */
:root {
  --fundo: #FFF7F8; --fundo-2: #FCEBEE; --cartao: #FFFFFF; --linha: #3A1F1426;
  --texto: #2E1810; --texto-2: #5E4136; --texto-3: #8A6D62;
  --framboesa: #B8204F; --framboesa-escuro: #8F163C;
  --raio: 20px; --curva: cubic-bezier(.23, 1, .32, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif; --corpo: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; overflow-x: clip; }
body { background: var(--fundo); color: var(--texto); font: 16px/1.6 var(--corpo); overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
section[id] { scroll-margin-top: 84px; }
.cab { max-width: 1180px; margin: 0 auto 32px; }
.cab p { color: var(--texto-2); margin-top: 10px; max-width: 560px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px var(--corpo); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--curva), background-color 160ms, border-color 160ms; }
.btn:active { transform: scale(.97); }
.btn-cheio { background: var(--framboesa); color: #fff; }
.btn-linha { background: transparent; color: var(--texto); border: 1.5px solid var(--linha); }
.btn-texto { background: transparent; color: var(--texto-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-larga { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn-cheio:hover { background: var(--framboesa-escuro); } .btn-linha:hover { border-color: var(--texto-3); } }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px clamp(16px, 4vw, 48px); background: rgb(255 247 248 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.logo { font-family: var(--display); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: -.03em; min-height: 44px; display: flex; align-items: center; }
.logo b { font-weight: 800; color: var(--framboesa); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--texto-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--texto); } }
.btn-nav { min-height: 44px; padding: 0 18px; }

.hero { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.9rem); }
.sub { margin: 20px 0 28px; color: var(--texto-2); font-size: 18px; max-width: 520px; text-wrap: pretty; }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.selos { list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 28px; color: var(--texto-3); font-size: 14px; }
.selos li::before { content: "•"; color: var(--framboesa); margin-right: 8px; }
.hero-foto { border-radius: 200px 200px var(--raio) var(--raio); overflow: hidden; aspect-ratio: 3 / 4; max-height: 640px; justify-self: center; width: 100%; box-shadow: 0 40px 80px -40px rgb(46 24 16 / .45); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }

/* monte sua caixa */
.caixa { background: var(--fundo-2); padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.caixa-grade { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.caixa-lado { position: sticky; top: 100px; display: grid; gap: 18px; justify-items: center; }
.tamanhos { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--cartao); border: 1px solid var(--linha); }
.tamanhos button { min-height: 44px; min-width: 88px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--texto-2); font: 600 15px var(--corpo); cursor: pointer; }
.tamanhos button[aria-checked="true"] { background: var(--texto); color: #fff; }
.bandeja { --col: 4; display: grid; grid-template-columns: repeat(var(--col), 1fr); gap: 10px; padding: 18px; width: min(100%, 460px); border-radius: 22px; background: linear-gradient(145deg, #4a2a1d, #2e1810); box-shadow: inset 0 2px 0 rgb(255 255 255 / .08), 0 30px 60px -30px rgb(46 24 16 / .6); }
.casa { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 55%, #241109, #3a2016); box-shadow: inset 0 3px 6px rgb(0 0 0 / .5); cursor: default; position: relative; padding: 0; }
.casa::after { content: ""; position: absolute; inset: -4px; }
.casa.cheia { cursor: pointer; animation: entra-doce .35s var(--curva) both; }
.casa svg { position: absolute; inset: -6%; width: 112%; height: 112%; transform: rotate(var(--giro, 0deg)); filter: drop-shadow(0 2px 2px rgb(0 0 0 / .35)); pointer-events: none; }

@keyframes entra-doce { from { transform: scale(.6); opacity: 0; } }
.cont { color: var(--texto-2); font-variant-numeric: tabular-nums; }
.cont b { color: var(--texto); font-size: 20px; }

.sabores-lado { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.sabores-lado h3 { font-size: 24px; }
.sabores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sabor { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--linha); background: transparent; text-align: left; cursor: pointer; font: 500 15px var(--corpo); color: var(--texto); transition: border-color 160ms, transform 160ms var(--curva); }
.sabor:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .sabor:hover { border-color: var(--framboesa); } }
.sabor i { flex: none; width: 44px; height: 44px; display: block; }
.sabor i svg { width: 100%; height: 100%; display: block; }

.sabor b { display: block; font-weight: 600; line-height: 1.2; }
.sabor small { color: var(--texto-3); font-variant-numeric: tabular-nums; }
.caixa-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.resumo { display: grid; gap: 14px; padding-top: 16px; border-top: 1px dashed var(--linha); }
.resumo small { display: block; color: var(--texto-3); }
.resumo strong { font-family: var(--display); font-size: 38px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.campo { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.campo input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo); color: var(--texto); font: 500 16px var(--corpo); }
.erro { color: var(--framboesa-escuro); font-size: 14px; font-weight: 600; min-height: 1px; }

/* festa */
.festa { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.festa-foto { border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 5; }
.festa-foto img { width: 100%; height: 100%; object-fit: cover; }
.festa-calc p { color: var(--texto-2); margin: 10px 0 26px; }
.faixa-conv { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.faixa-conv output { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--framboesa) var(--v, 21%), #ecd3d8 var(--v, 21%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 6px solid var(--framboesa); cursor: grab; box-shadow: 0 4px 12px rgb(46 24 16 / .25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid var(--framboesa); }
.calc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.calc-res > div { background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; padding: 16px; }
.calc-res b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-res span { display: block; font-weight: 600; }
.calc-res small { color: var(--texto-3); font-size: 13px; }

/* encomendas */
.encomendas { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); background: var(--fundo-2); }
.vitrine-doces { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.doce { background: var(--cartao); border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); display: flex; flex-direction: column; }
.doce img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.doce > div { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; flex: 1; }
.doce h3 { font-size: 22px; }
.doce p { color: var(--texto-2); font-size: 15px; }
.doce .btn { justify-self: start; margin-top: 6px; min-height: 44px; }
.doce.grande { grid-row: span 2; }
.doce.grande img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.doce.grande > div { flex: 0; }
.vitrine-doces .doce:nth-child(4) { grid-column: 2 / span 2; flex-direction: row; }
.vitrine-doces .doce:nth-child(4) img { width: 45%; aspect-ratio: auto; }

.como { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.como h2 { grid-column: 1 / -1; }
.como ol { list-style: none; counter-reset: p; display: grid; gap: 14px; align-content: start; }
.como li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.como li::before { content: counter(p); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--texto); color: #fff; font-weight: 700; }
.como li span { color: var(--texto-2); }
.duvidas { display: grid; gap: 10px; align-content: start; }
.duvidas details { background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; }
.duvidas summary { min-height: 56px; display: flex; align-items: center; padding: 0 18px; font-weight: 600; cursor: pointer; list-style: none; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: "+"; margin-left: auto; color: var(--framboesa); font-size: 22px; transition: transform 200ms var(--curva); }
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas p { padding: 0 18px 18px; color: var(--texto-2); }

.rodape { border-top: 1px solid var(--linha); padding: 28px clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--texto-3); }
.rodape span { font-family: var(--display); font-size: 22px; color: var(--texto); }
.rodape b { color: var(--framboesa); }

@media (max-width: 900px) {
  .hero, .caixa-grade, .festa, .como { grid-template-columns: 1fr; }
  .hero-foto { max-height: 420px; order: -1; border-radius: 140px 140px var(--raio) var(--raio); }
  .caixa-lado { position: static; }
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .vitrine-doces { grid-template-columns: 1fr 1fr; }
  .doce.grande { grid-column: 1 / -1; grid-row: auto; }
  .vitrine-doces .doce:nth-child(4) { grid-column: auto; flex-direction: column; }
  .vitrine-doces .doce:nth-child(4) img { width: 100%; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .sabores { grid-template-columns: 1fr; }
  .calc-res { grid-template-columns: 1fr 1fr; }
  .calc-res > div:last-child { grid-column: 1 / -1; }
  .vitrine-doces { grid-template-columns: 1fr; }
  .acoes .btn { flex: 1; }
  .tamanhos button { min-width: 0; }
}
