:root {
  --bg: #fffaf3;
  --text: #171717;
  --muted: #525252;
  --primary: #f77f00; /* forte e apetitoso (laranja) */
  --primary-700: #c44b00; /* tom profundo */
  --secondary: #d62828; /* vermelho gourmet */
  --card: #ffffff;
  --border: #e7e2d9;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s var(--ease), box-shadow .24s var(--ease), background-color .24s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,.05); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 26px rgba(247,127,0,.28); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }

/* Header */
.site-header { position: fixed; left: 0; right: 0; top: 0; background: rgba(255,250,243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 20; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.logo { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.tagline { font-size: .85rem; color: var(--muted); line-height: 1.2; }

/* Hero */
.hero { position: relative; padding: 80px 0; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 700px; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .20; }

/* Features */
.features { padding: 50px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { padding: 60px 0; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 20px; color: var(--muted); }
.carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.nav { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.slide { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; transition: transform .42s var(--ease), opacity .42s var(--ease), box-shadow .42s var(--ease); will-change: transform, opacity; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.caption { padding: 18px; }
.price-and-cta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.price { font-weight: 700; color: var(--secondary); font-size: 1.1rem; letter-spacing: .01em; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.thumbs img:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.thumbs img.active { border-color: var(--primary); }

/* Testimonials */
.testimonials { padding: 60px 0; background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonials blockquote { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.testimonials cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; }

/* CTA final */
.cta-final { padding: 60px 0; background: linear-gradient(180deg, #fffdf9, #fff); }
.cta-wrap { text-align: center; }
.cta-wrap h2 { margin: 0 0 8px; }
.cta-wrap p { color: var(--muted); margin: 0 0 16px; }

/* Parallax */
.parallax { position: relative; min-height: 420px; background-image: url('Doces_Capela.jpeg'); background-size: cover; background-position: center center; background-attachment: fixed; }
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28)); display: flex; align-items: center; }
.parallax-content { color: #fff; max-width: 720px; }
.parallax-content h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.parallax-content p { margin: 0 0 16px; color: #f1f1f1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: #fff; }
.footer-wrap { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 18px; }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 150px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 10px; }
.contact-list .label { color: var(--muted); margin-right: 6px; }
.social { display: flex; align-items: center; gap: 12px; }
.social-icon { color: var(--text); }
.social-icon.instagram { color: var(--secondary); }

/* WhatsApp Float */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; background: var(--primary); color: #fff; padding: 12px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgba(247,127,0,.35); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(247,127,0,.38); }
.whatsapp-float:active { transform: translateY(0); box-shadow: 0 8px 20px rgba(247,127,0,.32); }

/* Garante centralização perfeita e remove espaçamento de linha do ícone */
.whatsapp-float img { display: block; width: 24px; height: 24px; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Troca de produto: animações elegantes */
.slide.is-leaving { opacity: 0; transform: translateY(8px) scale(.995); }
.slide.is-entering { opacity: 1; transform: translateY(0) scale(1); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes subtleZoom {
  from { transform: scale(.99); }
  to { transform: scale(1); }
}
.slide.is-entering #product-name { animation: fadeUp .42s var(--ease) both; }
.slide.is-entering #product-desc { animation: fadeUp .42s var(--ease) .06s both; }
.slide.is-entering #product-price { animation: fadeUp .42s var(--ease) .12s both; }
.slide.is-entering #product-sku { animation: fadeUp .42s var(--ease) .18s both; }
.slide.is-entering img { animation: fadeUp .42s var(--ease) both, subtleZoom 1s var(--ease) both; }

/* Carousel hover hint */
.carousel:hover .nav { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* Responsive */
@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; }
  .features-grid, .testimonials-grid, .footer-wrap { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .brand-logo { height: 38px; }
}

/* Header offset for fixed bar */
body { padding-top: 72px; }

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}