/* =========================================================
   Clube Gaia — folha de estilo
   Livro de história natural infantojuvenil (séc. XIX):
   papel envelhecido, ilustração botânica, gravura, tipografia elegante.
   Mobile-first.
   ========================================================= */

:root {
  /* ---- Paleta oficial Clube Gaia ---- */
  --paper:        #EFE6D2;  /* papel / fundo */
  --paper-alt:    #E7DCC2;  /* fundo alternado, um pouco mais tostado */
  --paper-card:   #F5EEDD;  /* cartões / caixas, mais claro */
  --green-deep:   #42562F;  /* verde musgo — primária, títulos */
  --sage:         #93A178;  /* sálvia — apoio */
  --terracotta:   #AF5F3E;  /* terracota — botões / ênfases */
  --terracotta-dk:#94492C;  /* terracota escura — hover */
  --lavender:     #9A879F;  /* lavanda seca — detalhes */
  --ink:          #382C20;  /* tinta sépia — texto */
  --ink-soft:     #6A5A48;  /* texto secundário */
  --gold:         #B0853F;  /* ouro velho — ornamentos */
  --line:         #CDBB99;  /* fios finos */

  --maxw: 720px;
  --maxw-wide: 1120px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Lora", Georgia, serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Textura de papel envelhecido em toda a página, bem sutil */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(239, 230, 210, 0.88), rgba(239, 230, 210, 0.90)),
    url("imagens/clube_gaia_background.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

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

p { margin: 0 0 1.4rem; }

strong { color: var(--green-deep); font-weight: 600; }

em {
  font-style: italic;
  color: var(--green-deep);
}

s, del { color: var(--ink-soft); }

a { color: var(--terracotta-dk); }

::selection { background: rgba(147, 161, 120, 0.35); }

/* ---------- Layout / containers ---------- */
.section {
  padding: 64px 22px;
  position: relative;
}

/* Fundo alternado, ligeiramente mais tostado + textura de papel */
.section-alt {
  background-color: rgba(231, 220, 194, 0.55);
}

.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; }

.center { text-align: center; }

/* ---------- Fio / divisor botânico entre seções ---------- */
.rule {
  max-width: 260px;
  margin: 48px auto 0;
  height: 26px;
  position: relative;
}
.rule::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  opacity: 0.6;
}
.rule::after {
  content: "❧";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--sage);
  font-size: 22px;
  padding: 0 14px;
  line-height: 1;
}
.section-alt .rule::after { background: #E6DBC3; }
.section:last-of-type .rule { display: none; }

/* ---------- Eyebrow / rótulos (Cormorant) ---------- */
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: "❦ "; color: var(--sage); letter-spacing: 0; }
.eyebrow.center { text-align: center; }

/* ---------- Tipografia — títulos (Fraunces) ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 1.2rem;
  letter-spacing: -0.005em;
}

h1.display {
  font-size: clamp(1.55rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.85rem, 5.4vw, 2.8rem);
  font-weight: 600;
}
h2.tight { margin-bottom: 0.6rem; }

h3 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--green-deep);
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

/* ---------- Capitulares (drop caps) ---------- */
.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 700;
  color: var(--terracotta);
  float: left;
  font-size: 4.6rem;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  margin-right: 0.02em;
}

/* ---------- Frase-chave: itálico grande em verde musgo com fio de ouro ---------- */
.accent-line {
  position: relative;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--green-deep);
  font-size: clamp(1.55rem, 4.4vw, 2.15rem);
  line-height: 1.28;
  padding-top: 1.5rem;
  margin-top: 1.8rem;
}
.accent-line::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--terracotta));
  border-radius: 2px;
}

/* Frase de reforço acima dos títulos-chamada */
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--terracotta-dk);
  margin: 2rem 0 0.4rem;
}

.lead { font-size: 1.14rem; }

.subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  margin-top: -0.4rem;
  margin-bottom: 1.8rem;
}

/* ---------- Hero ---------- */
/* A ilustração já traz sua própria moldura gravada — o texto vai direto
   sobre o espaço limpo de papel, sem nenhuma caixa. */
.hero { padding: 18px 0 0; }

.hero-frame {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(56, 44, 32, 0.20);
}

/* Logo sobre o céu limpo da ilustração, centralizado no topo */
.hero-logo {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(96px, 22vw, 150px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(56, 44, 32, 0.22));
  z-index: 2;
}

/* Mobile: headline + botão fluem logo abaixo da ilustração, no mesmo papel */
.hero-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 22px 0;
}
.hero-inner .display {
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  margin-bottom: 1.3rem;
  text-shadow: 0 1px 0 rgba(245, 238, 221, 0.5);
}

/* Entrada suave apenas por opacidade (não interfere no transform de centralização) */
.hero-fade { animation: hero-in 0.9s ease both; }
.hero-logo.hero-fade { animation-delay: 0.05s; }
.hero-inner.hero-fade { animation-delay: 0.25s; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

.hero-lead {
  text-align: center;
  padding: 40px 22px 0;
}
.hero-lead .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-lead .lead:last-child { margin-bottom: 0; }

/* ---------- Áreas do saber (ícones de gravura) ---------- */
.areas { padding: 54px 22px 8px; }
.area-grid {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 18px;
}
.area-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.area-item img {
  width: clamp(96px, 26vw, 140px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(56, 44, 32, 0.16));
  transition: transform 0.4s ease;
}
.area-item:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.area-item span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-deep);
  letter-spacing: 0.03em;
}

/* ---------- CTA / botões (terracota) ---------- */
.cta {
  display: inline-block;
  background: linear-gradient(180deg, #BC6A47, var(--terracotta));
  color: var(--paper-card);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 16px 34px;
  margin-top: 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 73, 44, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(148, 73, 44, 0.3);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.35;
  max-width: 100%;
}
.cta:hover,
.cta:focus {
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dk));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px rgba(148, 73, 44, 0.38);
}
.cta:active { transform: translateY(0); }

.cta-lg {
  font-size: 1.32rem;
  padding: 20px 42px;
}

.final-cta { margin-top: 2.4rem; }

/* Botão "respirando" — pulso muito sutil */
@keyframes breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 24px rgba(148, 73, 44, 0.28); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 30px rgba(148, 73, 44, 0.44); transform: scale(1.012); }
}
.breathe { animation: breathe 3.4s ease-in-out infinite; }
.breathe:hover { animation-play-state: paused; }

/* ---------- Imagens reais — moldura "prancha de livro" ---------- */
.media-figure { margin: 0; }
.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
/* Moldura fina dupla estilo gravura */
.plate {
  background: var(--paper-card);
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(176, 133, 63, 0.35),
    0 16px 40px rgba(56, 44, 32, 0.18);
  position: relative;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(176, 133, 63, 0.55);
  border-radius: 4px;
  pointer-events: none;
}
.plate img { border-radius: 3px; }

/* Imagem inserida no meio de um texto (ex.: material Filo Mollusca) */
.media-inline {
  max-width: 340px;
  margin: 1.8rem auto;
}

/* ---------- Layout multi-colunas (empilha no mobile) ---------- */
.three-col,
.two-col {
  display: grid;
  gap: 34px;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

/* ---------- Passos ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2.4rem;
}
.steps li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.steps li:first-child { border-top: 1px solid var(--line); }
.step-num {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, var(--sage), var(--green-deep));
  color: var(--paper-card);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(176, 133, 63, 0.5);
}
.steps h4 { color: var(--green-deep); }
.step-role {
  color: var(--terracotta-dk);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.steps p:last-child { margin-bottom: 0; }

/* ---------- Value stack (oferta) ---------- */
.value-stack {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1rem;
  border-top: 1px solid var(--line);
}
.value-stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.value-stack .v-price {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.value-stack .bonus-item {
  background: rgba(176, 133, 63, 0.12);
  border-radius: 6px;
  padding-left: 12px;
  padding-right: 12px;
}
.value-stack .bonus-item strong { color: var(--terracotta-dk); }

.total-line {
  text-align: right;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 2.4rem;
}
.total-line s { text-decoration-thickness: 2px; }

/* ---------- Caixa de preço ---------- */
.price-box {
  background: var(--paper-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(176, 133, 63, 0.3),
    0 18px 46px rgba(56, 44, 32, 0.12);
}
.price-box .accent-line {
  display: inline-block;
  padding-top: 1.2rem;
  margin-top: 0;
}
.price-box .accent-line::before { left: 50%; transform: translateX(-50%); }
.price-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--sage);
  margin-bottom: 1.8rem;
}
.price-from {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.price-from s { font-weight: 600; }
.price-main {
  font-family: var(--display);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.1;
  margin: 0.2rem 0 0.4rem;
}
.price-apenas {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
.price-main strong {
  display: block;
  font-size: clamp(2.4rem, 9vw, 3.8rem);
  color: var(--terracotta);
  font-weight: 700;
}
.price-cash {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

/* ---------- Garantia (selo em imagem) ---------- */
.guarantee {
  display: grid;
  gap: 26px;
  align-items: start;
  background: var(--paper-card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 34px 26px;
  box-shadow:
    inset 0 0 0 1px rgba(176, 133, 63, 0.3),
    0 18px 46px rgba(56, 44, 32, 0.12);
}
.seal-wrap {
  justify-self: center;
  max-width: 220px;
}
.seal-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(56, 44, 32, 0.28));
  animation: seal-float 5s ease-in-out infinite;
}
@keyframes seal-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1.2deg); }
}
.guarantee-body { min-width: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--green-deep);
  padding: 22px 44px 22px 4px;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "❧";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq summary:hover { color: var(--terracotta-dk); }
.faq-a { padding: 0 4px 22px; }
.faq-a p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--green-deep);
  color: var(--paper);
  text-align: center;
  padding: 54px 22px 46px;
  position: relative;
}
.footer::before {
  content: "❦";
  display: block;
  color: var(--sage);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #CBD3BF;
  margin-bottom: 2rem;
}
.footer-support { margin-bottom: 1.6rem; }
.footer-support a {
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--terracotta);
}
.footer-support a:hover { color: #F0D9C4; }
.footer-legal {
  font-size: 0.82rem;
  color: #9FAB90;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

/* ---------- Revelação suave ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsivo — a partir de tablet/desktop
   ========================================================= */
@media (min-width: 780px) {
  body { font-size: 19px; }

  .section { padding: 96px 32px; }

  /* Desktop: só o logo fica sobre a ilustração; headline e botão seguem abaixo */
  .hero-logo { top: 4.5%; width: clamp(112px, 10vw, 150px); }
  .hero-inner {
    max-width: 760px;
    padding-top: 44px;
  }
  .hero-inner .display {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.18;
    margin-bottom: 1.5rem;
  }

  .hero-lead { padding-top: 40px; }

  /* Áreas: 4 colunas */
  .area-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }

  /* Bônus e Yasmin: mídia + texto lado a lado */
  .two-col {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
  }

  /* 3 colunas: título | mockup | texto */
  .three-col {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 40px;
  }

  /* Garantia: selo à esquerda, texto à direita */
  .guarantee {
    grid-template-columns: 210px 1fr;
    gap: 44px;
    padding: 48px 44px;
    align-items: center;
  }
  .seal-wrap { justify-self: start; }

  .price-box { padding: 52px 48px; }
}

@media (min-width: 1020px) {
  .section { padding: 112px 32px; }
}

/* ---------- Respeita quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .area-item img { transition: none; }
  .breathe, .seal-img, .hero-fade { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
