:root {
  --cacau-escuro: #3b2415;
  --cacau: #6b4226;
  --cacau-claro: #8a5a38;
  --creme: #fbf3e7;
  --creme-2: #fffdf9;
  --rosa: #f2a9c0;
  --rosa-escuro: #d9748f;
  --texto: #3b2415;
  --texto-suave: #6e5844;
  --sombra: 0 12px 30px rgba(59, 36, 21, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cacau-escuro);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rosa-escuro);
  outline-offset: 2px;
}

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

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
  color: var(--cacau-escuro);
  margin: 0 0 .5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.kicker {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rosa-escuro);
  margin: 0 0 4px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.reveal { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--texto-suave); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cacau-escuro), var(--cacau));
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 36, 21, .28);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(59, 36, 21, .38); }

.btn-ghost {
  background: transparent;
  border-color: var(--cacau-escuro);
  color: var(--cacau-escuro);
}
.btn-ghost:hover { background: var(--cacau-escuro); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--rosa-escuro);
  color: var(--rosa-escuro);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover { background: var(--rosa-escuro); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-header { flex-shrink: 0; }

.icon-wpp { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 243, 231, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 36, 21, .08);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(59, 36, 21, .1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cacau-escuro);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--cacau-escuro); }
.logo-sub { font-family: 'Caveat', cursive; font-size: .95rem; color: var(--rosa-escuro); font-weight: 600; }

.nav {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rosa-escuro);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cacau-escuro);
  transition: transform .25s ease, opacity .25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 16, 8, .55) 0%, rgba(30, 16, 8, .72) 60%, rgba(30, 16, 8, .85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.eyebrow {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--rosa);
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--cacau-escuro); }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
}
.hero-badges li {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rosa);
  flex-shrink: 0;
}

/* Diferenciais */
.diferenciais { background: var(--creme); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--creme-2);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  text-align: center;
  transition: transform .25s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--texto-suave); font-size: .92rem; margin-bottom: 0; }

/* Sabores / Produtos */
.sabores { background: linear-gradient(180deg, var(--creme) 0%, #f5e6d3 100%); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--creme-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-6px); }

.product-img { aspect-ratio: 4/3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }

.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.15rem; }
.product-body p { color: var(--texto-suave); font-size: .9rem; flex: 1; }

/* Produção */
.producao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.producao-img img { border-radius: var(--radius); box-shadow: var(--sombra); }
.producao-texto p { color: var(--texto-suave); }

/* Galeria */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.galeria-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 1/1; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeria-item:hover img { transform: scale(1.08); }

/* Como pedir */
.como-pedir { background: linear-gradient(180deg, #f5e6d3 0%, var(--creme) 100%); }

.passos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.passo { text-align: center; padding: 0 12px; }
.passo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cacau-escuro);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.passo p { color: var(--texto-suave); font-size: .92rem; }

.cta-banner {
  background: linear-gradient(135deg, var(--cacau-escuro), var(--cacau-claro));
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--sombra);
}
.cta-banner h3, .cta-banner p { color: #fff; margin: 0; }
.cta-banner p { color: rgba(255,255,255,.85); }
.cta-banner .btn-primary { background: #fff; color: var(--cacau-escuro); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--rosa); color: var(--cacau-escuro); }

/* Footer */
.site-footer {
  background: var(--cacau-escuro);
  color: rgba(255,255,255,.85);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; max-width: 320px; margin-top: 16px; }
.logo-footer .logo-mark { border-color: #fff; color: #fff; }
.logo-footer .logo-title { color: #fff; }
.footer-col h4 { color: #fff; font-family: 'Fredoka', sans-serif; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--rosa); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Floating WhatsApp button */
.fab-wpp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .2s ease;
}
.fab-wpp:hover { transform: scale(1.08); }
.fab-wpp svg { width: 30px; height: 30px; fill: #fff; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Carrinho */
.product-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--cacau-escuro);
  border-radius: 100px;
  padding: 4px;
  flex-shrink: 0;
  align-self: center;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--cacau-escuro);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.qty-btn:hover { background: var(--cacau-escuro); color: #fff; }
.qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--cacau-escuro);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-cart { width: 24px; height: 24px; fill: currentColor; }

.cart-btn-bump { animation: cart-bump .35s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--rosa-escuro);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 36, 21, .45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--creme-2);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -12px 0 30px rgba(59, 36, 21, .18);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(59, 36, 21, .1);
}
.cart-drawer-head h3 { margin: 0; }
.cart-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cacau-escuro);
  cursor: pointer;
  padding: 4px 8px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty { color: var(--texto-suave); text-align: center; margin-top: 40px; }

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(59, 36, 21, .08);
}
.cart-item-nome { font-weight: 500; font-size: .92rem; flex: 1; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--texto-suave);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--rosa-escuro); }

.cart-drawer-foot {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(59, 36, 21, .1);
}
.cart-obs-label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 6px; color: var(--texto-suave); }
.cart-obs {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(59, 36, 21, .18);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .88rem;
  color: var(--texto);
  background: var(--creme);
  margin-bottom: 12px;
}
.cart-note { font-size: .78rem; color: var(--texto-suave); margin-bottom: 16px; }
.cart-send { width: 100%; justify-content: center; }
.cart-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .producao-grid { grid-template-columns: 1fr; gap: 32px; }
  .producao-img { order: -1; }
  .passos-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .btn-header { display: none !important; }
  .section { padding: 64px 0; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--creme-2);
    padding: 24px;
    gap: 18px;
    box-shadow: var(--sombra);
  }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
