/* ==================================================
   CERRADO CHOCOLATES — Landing Page CSS
   Paleta: Cacau Profundo + Laranja Pequi + Kraft
   ================================================== */

/* 1. VARIÁVECSS (Design Tokens) */
:root {
  --cor-primaria: #3E2723;      /* Marrom Cacau Profundo */
  --cor-secundaria: #D96C2C;    /* Laranja Pequi */
  --cor-cta: #25D366;           /* Verde WhatsApp */
  --cor-cta-hover: #1DA851;
  --cor-fundo: #F5EFE6;         /* Bege Kraft */
  --cor-fundo-claro: #FFF8F0;   /* Off-white */
  --cor-texto: #2B211B;         /* Marrom Terra */
  --cor-apoio: #8D6E63;         /* Marrom Claro */

  --fonte-titulo: 'Fraunces', serif;
  --fonte-corpo: 'Inter', sans-serif;

  --sombra-card: 0 4px 20px rgba(62, 39, 35, 0.08);
  --raio-card: 16px;
  --container: 1200px;
}

/* 2. RESET / BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--raio-card);
}

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

/* 3. TIPOGRAFIA GLOBAL */
h1, h2, h3 {
  font-family: var(--fonte-titulo);
  color: var(--cor-primaria);
  line-height: 1.2;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* 4. LAYOUT GLOBAL */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* Alternância de fundos */
.hero, .solution, .how, .location { background-color: var(--cor-fundo); }
.problem, .products, .guarantee, .faq { background-color: var(--cor-fundo-claro); }

/* 5. COMPONENTES REUTILIZÁVEIS */

/* Botões */
.cta-button {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 16px 32px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-button--primary {
  background-color: var(--cor-cta);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.cta-button--primary:hover {
  background-color: var(--cor-cta-hover);
  transform: scale(1.03);
}

.cta-button--secondary {
  background-color: transparent;
  color: var(--cor-secundaria);
  border: 2px solid var(--cor-secundaria);
}

.cta-button--secondary:hover {
  background-color: rgba(217, 108, 44, 0.1);
}

.cta-button--small {
  background-color: var(--cor-cta);
  color: #ffffff;
  font-size: 14px;
  padding: 10px 20px;
}

.cta-button--small:hover {
  background-color: var(--cor-cta-hover);
}

/* Badges kraft (etiqueta de papel) */
.badge {
  display: inline-block;
  background-color: var(--cor-fundo);
  border: 1.5px dashed var(--cor-apoio);
  color: var(--cor-primaria);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px 10px 4px 10px;
  margin-bottom: 16px;
}

/* 6. SEÇÕES ESPECÍFICAS */

/* HERO */
.hero {
  padding: 80px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__micro {
  font-size: 14px;
  color: var(--cor-apoio);
  margin-top: 12px;
}

.hero__image img {
  box-shadow: 12px 12px 0 var(--cor-secundaria);
}

/* PROBLEMA */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.problem__card {
  background: #ffffff;
  border-radius: var(--raio-card);
  padding: 32px;
  box-shadow: var(--sombra-card);
}

.problem__card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.problem__agitate {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}

/* SOLUÇÃO */
.solution__intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 18px;
}

.solution__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pillar {
  background: var(--cor-fundo-claro);
  border-radius: var(--raio-card);
  padding: 32px;
  box-shadow: var(--sombra-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(62, 39, 35, 0.15);
}

.pillar h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.solution .cta-button--secondary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* PRODUTOS */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--raio-card);
  padding: 24px;
  box-shadow: var(--sombra-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(62, 39, 35, 0.15);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--cor-secundaria);
  margin-bottom: 16px;
}

.products__value-note {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.products .cta-button--primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* COMO FUNCIONA */
.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  counter-reset: passo;
}

.how__step {
  text-align: center;
  position: relative;
}

.how__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--cor-secundaria);
  color: #ffffff;
  font-family: var(--fonte-titulo);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.how__step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.how .cta-button--primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* HISTÓRIA (seção escura) */
.section--dark {
  background-color: var(--cor-primaria);
}

.section--dark .section__title,
.section--dark h3 {
  color: var(--cor-fundo);
}

.section--dark p {
  color: var(--cor-fundo-claro);
}

.story__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 48px;
  align-items: center;
}

.story__image img {
  border-radius: 40% 16px 40% 16px; /* moldura orgânica */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.story__content p {
  margin-bottom: 16px;
  font-size: 17px;
}

/* GARANTIA */
.guarantee__list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto 24px;
}

.guarantee__list li {
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid rgba(141, 110, 99, 0.2);
}

.guarantee__closing {
  text-align: center;
  font-family: var(--fonte-titulo);
  font-size: 24px;
  font-weight: 700;
  color: var(--cor-secundaria);
}

/* ONDE ENCONTRAR */
.location__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location__card {
  background: var(--cor-fundo-claro);
  border-radius: var(--raio-card);
  padding: 32px;
  text-align: center;
  box-shadow: var(--sombra-card);
}

.location__card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.location__card a {
  color: var(--cor-cta-hover);
  font-weight: 700;
}

/* FAQ */
.faq__container {
  max-width: 800px;
}

.faq__item {
  background: #ffffff;
  border: 1px solid rgba(141, 110, 99, 0.3);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 18px 24px;
  cursor: pointer;
}

.faq__item summary {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--cor-primaria);
}

.faq__item p {
  margin-top: 12px;
  font-size: 16px;
}

/* CTA FINAL */
.final-cta {
  background-color: var(--cor-primaria);
  text-align: center;
  padding: 96px 24px;
}

.final-cta h2 {
  color: var(--cor-fundo);
  font-size: 40px;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--cor-fundo-claro);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
}

.final-cta .cta-button--primary {
  font-size: 18px;
  padding: 20px 40px;
}

.final-cta__micro {
  margin-top: 16px;
  font-size: 14px;
  color: var(--cor-apoio);
}

/* 7. RESPONSIVIDADE */

/* Tablet (768–1024px) */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
  .problem__grid, .solution__pillars, .products__grid, .location__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 40px; }
  .story__grid { grid-template-columns: 1fr; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .section__title { font-size: 26px; }
  .hero { padding: 56px 0; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 16px; }
  .problem__grid, .solution__pillars, .products__grid, .location__grid { grid-template-columns: 1fr; }
  .final-cta h2 { font-size: 28px; }
  .cta-button { width: 100%; text-align: center; }
}

/* 8. ANIMAÇÕES */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__content, .pillar, .product-card, .how__step {
  animation: fadeInUp 0.6s ease both;
}

/* Botão flutuante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--cor-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}