/* ============================================================
   365 Receitas — sistema visual
   Carregado DEPOIS do tailwind.css, então vence nos conflitos.
   ============================================================ */

:root {
  /* ---- marca */
  --brand-green: #15803d;
  --brand-green-deep: #0b3d20;
  --brand-orange: #ea580c;
  --brand-cream: #fdf6ec;

  /* ---- escala de verde */
  --g-50: #f0fdf4;
  --g-100: #dcfce7;
  --g-500: #16a34a;
  --g-600: #15803d;
  --g-900: #0b3d20;

  /* ---- neutros quentes */
  --background: #fbf8f3;
  --surface: #ffffff;
  --foreground: #1c1917;
  --muted-foreground: #78716c;
  --line: #efeae1;

  /* ---- elevação */
  --e1: 0 1px 2px rgba(28, 25, 23, .05);
  --e2: 0 4px 14px -4px rgba(28, 25, 23, .10);
  --e3: 0 14px 34px -12px rgba(28, 25, 23, .16);
  --e4: 0 28px 60px -24px rgba(28, 25, 23, .26);
  --glow: 0 14px 34px -10px rgba(22, 163, 74, .55);

  /* ---- ritmo vertical (fluido) */
  --secao-y: clamp(2.75rem, 6vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

/* ============================================================
   Tipografia fluida — substitui os px arbitrários do clone
   ============================================================ */

.t-hero {
  font-size: clamp(1.75rem, 6.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.t-h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.t-h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.t-lead {
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.55;
  font-weight: 500;
}

.t-body { font-size: clamp(.875rem, 1.6vw, 1rem); line-height: 1.65; }
.t-small { font-size: clamp(.75rem, 1.3vw, .875rem); line-height: 1.55; }

/* Olho-mágico acima dos títulos */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: clamp(.65rem, 1.2vw, .75rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* ============================================================
   Ritmo das seções
   ============================================================ */

.secao {
  padding-top: var(--secao-y);
  padding-bottom: var(--secao-y);
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .secao { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.secao-clara { background: var(--surface); }
.secao-creme { background: var(--brand-cream); }
.secao-base  { background: var(--background); }

.secao-verde {
  background:
    radial-gradient(1100px 420px at 50% -10%, rgba(255, 255, 255, .14), transparent 65%),
    linear-gradient(165deg, var(--brand-green) 0%, var(--g-900) 100%);
  color: #fff;
}

.secao-menta {
  background: linear-gradient(180deg, #dff0e4 0%, #eaf5ec 100%);
}

/* Cabeçalho de seção padronizado */
.secao-topo { text-align: center; max-width: 44rem; margin: 0 auto clamp(1.75rem, 4vw, 3rem); }
.secao-topo .t-h2 { margin: .5rem 0 0; }
.secao-topo p { margin: .75rem 0 0; color: var(--muted-foreground); }
.secao-verde .secao-topo p { color: rgba(255, 255, 255, .82); }

/* Cartões claros dentro da seção verde não podem herdar o texto branco */
.secao-verde :where(.bg-white, .cartao) { color: var(--foreground); }
.secao-verde .eyebrow { color: #ffd9a8; }

/* ============================================================
   Cartões
   ============================================================ */

.cartao {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--e1);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}

.cartao:hover { transform: translateY(-3px); box-shadow: var(--e3); }

/* ============================================================
   Botões
   ============================================================ */

.btn {
  --btn-fs: clamp(.95rem, 2.1vw, 1.2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  max-width: 100%;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: var(--btn-fs);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  padding: .95em 1.7em;
  border-radius: .95rem;
  color: #fff;
  background: linear-gradient(180deg, #1cb257 0%, var(--g-500) 45%, #128a3d 100%);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease, filter .2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(22, 163, 74, .62), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-lg { --btn-fs: clamp(1.05rem, 2.8vw, 1.6rem); padding: 1.05em 1.9em; }
.btn-bloco { width: 100%; }

.btn-escuro {
  background: linear-gradient(180deg, #3d5a91 0%, #314677 55%, #26375e 100%);
  box-shadow: 0 14px 34px -12px rgba(49, 70, 119, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* Pulsação sutil — só no CTA principal */
@keyframes pulso-cta {
  0%, 100% { box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 0 rgba(34, 197, 94, .45); }
  55%      { box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 16px rgba(34, 197, 94, 0); }
}

.animate-pulse-cta { animation: pulso-cta 2.6s ease-in-out infinite; }
.animate-pulse-cta:hover { animation-play-state: paused; }

/* ============================================================
   Barra de urgência + contagem regressiva
   ============================================================ */

.barra-urgencia {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  padding: .6rem 1rem;
  background: linear-gradient(90deg, var(--brand-green) 0%, #17914a 50%, var(--brand-green) 100%);
  color: #fff;
  font-size: clamp(.7rem, 2.3vw, .95rem);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
}

.relogio {
  display: inline-flex;
  gap: .25rem;
  font-variant-numeric: tabular-nums;
}

.relogio b {
  min-width: 2.1em;
  padding: .12em .35em;
  border-radius: .4rem;
  background: rgba(255, 255, 255, .18);
  font-weight: 800;
}

/* ============================================================
   CTA fixo no rodapé (mobile) — some quando a oferta está à vista
   ============================================================ */

.cta-fixo {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -12px rgba(28, 25, 23, .28);
  transform: translateY(115%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}

.cta-fixo.visivel { transform: translateY(0); }
.cta-fixo .btn { width: 100%; padding: .85em 1.2em; }

.cta-fixo-preco {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: .35rem;
}

@media (min-width: 768px) { .cta-fixo { display: none; } }

/* ============================================================
   Revelação ao rolar
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

[data-reveal].revelado { opacity: 1; transform: none; }

/* ============================================================
   Carrossel de depoimentos
   ============================================================ */

.testimonial-track {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.testimonial-track > * { scroll-snap-align: start; }

/* ============================================================
   Acordeão do FAQ
   ============================================================ */

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .32s ease-in-out, opacity .32s ease-in-out;
}

.faq-panel.is-open { grid-template-rows: 1fr; opacity: 1; }

.faq-icon { transition: transform .3s ease, background-color .3s ease, color .3s ease; }

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background-color: var(--brand-orange);
  color: #fff;
}

.faq-item.is-open .faq-question { color: var(--brand-orange); }

/* ============================================================
   Acessibilidade
   ============================================================ */

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: .5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-pulse-cta, .alunas-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cta-fixo { transition: none; }
}
