/* =====================================================================
   ESCOLA DA EMOÇÃO — CSS GLOBAL
   ---------------------------------------------------------------------
   Estrutura:
     1. Tokens de design (:root)  → cores, fontes, espaços, raios
     2. Reset e base
     3. Utilitários
     4. Componentes reutilizáveis (botões, badges, cards, títulos)
     5. Layout / seções
     6. Responsividade
   Tudo é dirigido por variáveis. Para reaproveitar em outras páginas,
   basta importar este arquivo e usar as classes.
   ===================================================================== */

/* ============================ 1. TOKENS ============================ */
:root {
  /* Paleta */
  --color-bg:            #f0edea;
  --color-bg-grad-top:   #ece6df;
  --color-bg-grad-bottom:#f6f2ef;

  --color-gold:          #ae7c30;
  --color-gold-light:    #c59e47;

  --color-ink:           #0d132f;  /* título hero (azul-marinho) */
  --color-text:          #787775;  /* corpo de texto */
  --color-muted:         #959595;
  --color-muted-2:       #a9a9a2;

  --color-dark:          #2c2c29;  /* rodapé / citação */
  --color-dark-brown:    #6f5328;  /* lado claro da citação */
  --color-overlay:       #60533f;  /* overlay dos cards com imagem */

  --color-corpo:         #eb5124;
  --color-emo:           #0e91d6;
  --color-cream:         #f5eee2;
  --color-white:         #ffffff;

  /* Gradientes */
  --grad-gold: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
  --grad-section: linear-gradient(180deg, var(--color-bg-grad-top) 0%, var(--color-bg-grad-bottom) 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.30) 100%);
  --grad-badge: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.50) 100%);
  --grad-quote: linear-gradient(270deg, #2c2c29 0%, #6f5328 100%);

  /* Tipografia */
  --font-serif: "Roboto Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-h1:   clamp(2.25rem, 5.5vw, 3rem);     /* 48px */
  --fs-h2:   clamp(1.5rem, 3.4vw, 2rem);      /* 32px */
  --fs-h3:   clamp(1.25rem, 2.4vw, 1.5rem);   /* 24px */
  --fs-body: clamp(1rem, 1.4vw, 1.125rem);    /* 18px */
  --fs-sm:   0.875rem;                         /* 14px */
  --fs-xs:   0.75rem;                          /* 12px */
  --lh-body: 1.6;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 5vw, 5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --gap: 1.5rem;

  /* Raios */
  --radius-card: 40px;
  --radius-pill: 56px;
  --radius-badge: 88px;

  /* Sombra */
  --shadow-card: 0 20px 45px -25px rgba(96, 83, 63, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(44, 44, 41, 0.30);

  --header-h: 74px;
}

/* ============================ 2. RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }

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

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

strong { font-weight: 700; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 4px; }

/* ============================ 3. UTILITÁRIOS ============================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-gold  { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.fw-regular { font-weight: 400; }

/* Título serifado padrão */
.section-title--serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.35;
}

/* ============================ 4. COMPONENTES ============================ */

/* --- Badge (pílula) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  background: var(--grad-badge);
  color: var(--color-gold-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}
.badge--center { display: inline-flex; margin-inline: auto; }
.badge--icon img { width: 16px; height: 16px; }

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { font-size: var(--fs-sm); padding: 10px 18px; }
.btn__icon { width: 20px; height: 20px; }

.btn--gold {
  background: var(--grad-gold);
  color: var(--color-white);
  box-shadow: 0 12px 24px -14px rgba(174, 124, 48, 0.9);
}
.btn--gold:hover { box-shadow: 0 16px 28px -12px rgba(174, 124, 48, 0.95); }

.btn--outline-gold {
  background: transparent;
  color: var(--color-gold);
  border-color: rgba(174, 124, 48, 0.5);
}
.btn--outline-gold:hover { background: rgba(174, 124, 48, 0.08); }

.btn--outline-white {
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.16); }

/* --- Card branco --- */
.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--grad-card);
  box-shadow: var(--shadow-card);
}
.card--center { align-items: center; text-align: center; justify-content: center; }
.card__head { display: flex; align-items: center; gap: 8px; }
.card__icon { width: 40px; height: 40px; }
.card__title { font-size: var(--fs-h3); font-weight: 700; }
.card__text { color: var(--color-text); }

/* --- Media card (card com imagem de fundo + overlay) --- */
.media-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
/* Imagens de fundo dos media cards (caminhos relativos a este CSS) */
.media-card--book       { background-image: url("../assets/img/book-cover.jpg"); }
.media-card--curso      { background-image: url("../assets/img/curso.jpg"); }
.media-card--comunidade { background-image: url("../assets/img/comunidade.jpg"); }
.media-card__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.media-card__overlay--left   { background: linear-gradient(270deg, rgba(174,124,48,0) 50%, rgba(174,124,48,0.54) 100%); }
.media-card__overlay--bottom { background: linear-gradient(0deg, var(--color-overlay) 0%, rgba(96,83,63,0) 55%); }
.media-card__body { position: relative; z-index: 2; }

/* ============================ 5. SEÇÕES ============================ */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(174,124,48,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 16px;
}
.site-header__logo img { width: 154px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { display: flex; align-items: center; gap: 24px; }
.site-nav__link {
  font-size: var(--fs-sm);
  color: var(--color-gold);
  padding: 8px 0;
  transition: opacity .15s ease;
}
.site-nav__link:hover { opacity: .7; }
.site-nav__link.is-active { font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(90deg, var(--color-bg) 12%, rgba(240,237,234,0.35) 34%, rgba(240,237,234,0) 52%),
    url("../assets/img/sections/hero-family-wide.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: left center, center center;
  background-size: cover, cover;
}
.hero__inner {
  display: flex;
  align-items: center;
  min-height: 620px; /* altura fixa no desktop (não varia com a largura) */
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero__content { max-width: 480px; display: flex; flex-direction: column; gap: 2rem; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: var(--color-ink);
}
.hero__subtitle { color: var(--color-text); max-width: 26em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- O que é (about intro) --- */
.about-intro { background: var(--grad-section); padding-block: clamp(2.5rem, 6vw, 4rem); }
.about-intro__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.about-intro__text { max-width: 853px; }
.about-intro__text strong { display: block; margin-top: 8px; }
.about-intro__diagram { width: 100%; max-width: 878px; height: auto; margin-top: .5rem; }

/* --- Pilares --- */
.pillars { background: var(--color-bg); padding-block: var(--section-y); }
.pillars__lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.pillars__title { font-size: var(--fs-h2); }
.pillars__desc { display: flex; flex-direction: column; gap: 8px; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* --- Citação --- */
.quote {
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: url("../assets/img/sections/citacao-wide.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.quote__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.quote__text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.6;
  color: var(--color-cream);
  max-width: 620px;
  margin: 0;
}
.quote__author { color: var(--color-muted-2); }
/* anéis decorativos */
.quote__ring {
  position: absolute;
  width: 252px; height: 252px;
  border: 1px dashed rgba(197,158,71,0.5);
  border-radius: 50%;
  pointer-events: none;
}
.quote__ring--left  { left: -60px; bottom: -70px; }
.quote__ring--right { right: -60px; top: -120px; }

/* --- Quem somos --- */
.team { background: var(--grad-section); padding-block: var(--section-y); }
.team__badge { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.team__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.team__row:last-child { margin-bottom: 0; }
.team__row--reverse { grid-template-columns: auto 1fr; }
.team__row:not(.team__row--reverse):has(.team__text--wide) { grid-template-columns: 1fr auto; }
.team__photo img { width: 100%; max-width: 468px; height: auto; }
.team__text { display: flex; flex-direction: column; gap: 1rem; }
.team__text--wide { max-width: 465px; }
.team__heading { font-size: var(--fs-h2); }

/* --- Livro em destaque --- */
.feature { background: var(--color-bg); padding-block: var(--section-y); }
.feature__title { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.feature__card {
  background-image: url("../assets/img/book-cover.jpg");
  min-height: 512px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 40px);
}
.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 426px;
}
.feature__book-title { color: var(--color-white); font-size: var(--fs-h2); }
.feature__book-text { color: var(--color-white); }

/* --- Missão / visão / valores --- */
.values { background: var(--grad-section); padding-block: var(--section-y); }
.values > .container { display: flex; flex-direction: column; align-items: center; }
.values__title { text-align: center; margin-top: 1rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  width: 100%;
}
.values__grid .card { text-align: left; align-items: flex-start; }
.values__note {
  max-width: 853px;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  font-weight: 700;
  opacity: .6;
}

/* --- Roadmap --- */
.roadmap { background: var(--color-bg); padding-block: var(--section-y); }
.roadmap__lead { text-align: center; max-width: 853px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.roadmap__lead-title { font-weight: 700; margin-bottom: 8px; }
.roadmap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.roadmap__side { display: flex; flex-direction: column; gap: var(--gap); }
.roadmap__main { display: flex; min-height: 512px; background-position: left center; }
.roadmap__main-body { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 24px; width: 100%; }
.roadmap__main-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.roadmap__card { display: flex; flex: 1; min-height: 266px; }
.roadmap__card .media-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 24px; width: 100%; }
.roadmap__card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.roadmap__card-text { color: var(--color-white); max-width: 22ch; }

/* --- Newsletter --- */
.newsletter { background: var(--grad-section); padding-block: var(--section-y); }
.newsletter__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; max-width: 628px; margin-inline: auto; }
.newsletter__text { color: var(--color-text); }
.newsletter__form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__input {
  flex: 1;
  min-width: 220px;
  height: 40px;
  padding: 10px 18px;
  border: 1px solid rgba(174,124,48,0.3);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
}
.newsletter__input::placeholder { color: var(--color-muted); }
.newsletter__form .btn { flex-shrink: 0; }
.newsletter__feedback { font-size: var(--fs-sm); color: var(--color-gold); font-weight: 600; }
.newsletter__whats { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-sm); }
.newsletter__whats-link { display: inline-flex; align-items: center; gap: 8px; color: var(--color-gold); font-weight: 700; font-size: 1rem; }
.newsletter__whats-link img { width: 20px; height: 20px; }

/* --- Footer --- */
.site-footer { background: var(--color-dark); color: var(--color-white); padding-block: clamp(3rem, 6vw, 5rem); }
.site-footer .container { display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.site-footer__logo img { width: 240px; height: auto; }
.site-footer__cols { display: flex; gap: clamp(2.5rem, 8vw, 7.5rem); flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col-title { color: var(--color-text); font-weight: 700; font-size: var(--fs-sm); }
.site-footer__col a { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; transition: opacity .15s ease; }
.site-footer__col a:hover { opacity: .7; }
.site-footer__col a img { width: 20px; height: 20px; }
.site-footer__divider { border: none; height: 1px; background: rgba(255,255,255,0.15); margin: 0; }
.site-footer__notice { max-width: 675px; }
.site-footer__notice-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.site-footer__notice-text { font-size: var(--fs-sm); color: var(--color-muted-2); }
.site-footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--color-muted-2); }
.site-footer__legal { display: flex; gap: 1.25rem; }
.site-footer__legal a:hover { color: var(--color-white); }

/* ============================ 6. RESPONSIVO ============================ */
@media (max-width: 960px) {
  /* Nav vira menu móvel */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav__link { font-size: 1rem; }
  .site-nav__cta { align-self: flex-start; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Pilares empilham */
  .pillars__lead { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }

  /* Roadmap empilha */
  .roadmap__grid { grid-template-columns: 1fr; }
  .roadmap__main { min-height: 360px; }

  /* Quem somos empilha */
  .team__row,
  .team__row--reverse,
  .team__row:not(.team__row--reverse):has(.team__text--wide) {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .team__row--reverse .team__photo { order: -1; }
  .team__text { align-items: center; }
  .team__photo img { max-width: 340px; }
}

@media (max-width: 760px) {
  /* Hero: imagem (família no topo) e texto na área livre de baixo */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(240,237,234,0) 48%, var(--color-bg) 82%),
      url("../assets/img/sections/hero-family-mobile.jpg");
    background-position: center top, center top;
    background-size: cover, cover;
  }
  .hero__inner { align-items: flex-end; min-height: 88vh; padding-top: 62vh; }

  /* Citação: versão mobile do fundo */
  .quote { background-image: url("../assets/img/sections/citacao-mobile.jpg"); }
  .hero__content { max-width: 100%; text-align: center; align-items: center; }
  .hero__actions { justify-content: center; }

  .feature__card { justify-content: center; text-align: center; }
  .feature__body { align-items: center; text-align: center; }

  .roadmap__main-foot,
  .roadmap__card-foot { flex-direction: column; align-items: flex-start; }

  .site-footer__top { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   7. PÁGINA DO LIVRO (livro.html)
   Reutiliza os componentes globais (.btn, .badge, .card, .media-card,
   .container, .section-title--serif) e adiciona só o específico.
   ===================================================================== */

/* --- Hero do livro (mesmo padrão do hero, troca a imagem) --- */
.hero--book {
  background-image:
    linear-gradient(90deg, var(--color-bg) 12%, rgba(240,237,234,0.35) 34%, rgba(240,237,234,0) 52%),
    url("../assets/img/sections/segunda-chance-wide.jpg");
}
.hero__note { font-size: var(--fs-sm); color: var(--color-muted); }
.hero__cta-group { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* --- Faixa com imagem de fundo (assunto à direita, texto à esquerda) --- */
.band {
  position: relative;
  background-color: var(--color-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.band__inner {
  display: flex;
  align-items: center;
  min-height: 620px;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.band__content { max-width: 520px; display: flex; flex-direction: column; gap: 1.25rem; }
.band--battle {
  background-image:
    linear-gradient(90deg, var(--color-bg) 12%, rgba(240,237,234,0.35) 36%, rgba(240,237,234,0) 55%),
    url("../assets/img/sections/paulista-batalha-wide.jpg");
}
.band__text { display: flex; flex-direction: column; gap: 8px; }

/* --- Bloco "notícia que mudou tudo" (título + bolhas + texto) --- */
.book-problem { background: var(--grad-section); padding-block: var(--section-y); }
.book-problem__title { text-align: center; max-width: 980px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.book-problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.book-bubbles {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-bubbles::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background:
    radial-gradient(closest-side, rgba(235,81,36,0.18), transparent 70%) 15% 40% / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(14,145,214,0.18), transparent 70%) 80% 30% / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(197,158,71,0.20), transparent 70%) 50% 80% / 60% 60% no-repeat;
  filter: blur(6px);
}
.book-bubbles__list { position: relative; display: grid; gap: 14px; justify-items: center; }
.book-bubble {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: var(--radius-badge);
  background: var(--grad-badge);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}
.book-bubble:nth-child(1) { justify-self: start; }
.book-bubble:nth-child(2) { justify-self: end; }
.book-bubble:nth-child(3) { justify-self: center; }
.book-problem__text { display: flex; flex-direction: column; gap: 1rem; }

/* --- Quem escreveu (autor) --- */
.book-author { background: var(--color-bg); padding-block: var(--section-y); }
.book-author__title { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.book-author__photo { display: flex; justify-content: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.book-author__photo img { width: 100%; max-width: 360px; height: auto; }
.book-author__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.book-author__cols > div { display: flex; flex-direction: column; gap: 1rem; }

/* --- O que você vai encontrar (partes + card de compra) --- */
.book-contents { background: var(--grad-section); padding-block: var(--section-y); }
.book-contents__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.book-contents__title { margin-bottom: 1rem; }
.book-contents__intro { margin-bottom: 1.5rem; }
.book-contents__parts { display: flex; flex-direction: column; gap: 1rem; }
.part-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}
.part-card__tag { display: inline-flex; align-items: center; gap: 6px; color: var(--color-gold); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 8px; }
.part-card__tag img { width: 16px; height: 16px; }
.part-card__title { font-weight: 700; color: var(--color-ink); }
.part-card__text { padding-left: 22px; }
.book-contents__foot { margin-top: 1.25rem; color: var(--color-text); }

/* --- Card de compra (preço) --- */
.buy-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #d9d9d9 url("../assets/img/book-cover.jpg") center / cover no-repeat;
  min-height: 512px;
  display: flex;
  isolation: isolate;
}
.buy-card__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--color-overlay) 0%, rgba(96,83,63,0.35) 45%, rgba(96,83,63,0) 72%); }
.buy-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 24px;
  width: 100%;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(44, 35, 20, 0.45);
}
.buy-card__price { color: var(--color-white); }
.buy-card__price-line { font-size: var(--fs-body); }
.buy-card__price-value { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-top: 4px; }
.buy-card__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.buy-card__safe { color: rgba(255,255,255,0.9); font-size: var(--fs-sm); max-width: 18ch; }
.buy-card__foot { display: flex; flex-direction: column; gap: 1rem; }
.buy-card__foot .buy-card__price-value { margin-top: 8px; }

/* --- A Escola da Emoção (sobre + logo + valores) --- */
.book-about { background: var(--color-bg); padding-block: var(--section-y); }
.book-about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.book-about__text { display: flex; flex-direction: column; gap: 1rem; }
.book-about__logo { display: flex; justify-content: center; }
.book-about__logo img { width: 100%; max-width: 360px; height: auto; }
.book-about__note { text-align: center; max-width: 900px; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; font-weight: 600; opacity: .7; }

/* --- FAQ --- */
.faq { background: var(--grad-section); padding-block: var(--section-y); }
.faq__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.faq__list { max-width: 880px; margin-inline: auto; border-top: 1px solid rgba(174,124,48,0.25); }
.faq__item { border-bottom: 1px solid rgba(174,124,48,0.25); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--color-ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary img { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.faq__item[open] summary img { transform: rotate(180deg); }
.faq__answer { padding: 0 4px 22px; color: var(--color-text); max-width: 70ch; }

/* --- CTA final --- */
.book-final { background: var(--color-bg); padding-block: var(--section-y); }
.book-final__title { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.book-final .buy-card { min-height: 420px; }

/* --- Responsivo da página do livro --- */
@media (max-width: 960px) {
  .book-problem__grid { grid-template-columns: 1fr; gap: 2rem; }
  .book-author__cols { grid-template-columns: 1fr; text-align: center; }
  .book-contents__grid { grid-template-columns: 1fr; }
  .book-about__intro { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .book-about__text { align-items: center; }
  .book-about__logo { order: -1; }
}
@media (max-width: 760px) {
  .hero--book {
    background-image:
      linear-gradient(180deg, rgba(240,237,234,0) 48%, var(--color-bg) 82%),
      url("../assets/img/sections/segunda-chance-mobile.jpg");
    background-position: center top, center top;
    background-size: cover, cover;
  }
  .band--battle {
    background-image:
      linear-gradient(180deg, rgba(240,237,234,0) 46%, var(--color-bg) 80%),
      url("../assets/img/sections/paulista-batalha-mobile.jpg");
    background-position: center top;
  }
  .band__inner { align-items: flex-end; min-height: 92vh; padding-top: 58vh; }
  .band__content { max-width: 100%; text-align: center; align-items: center; }
  .band__text { align-items: center; }
  .buy-card__actions { flex-direction: column; align-items: flex-start; }
  .book-final .buy-card__actions { align-items: center; }
}

/* =====================================================================
   8. PÁGINA SOBRE (sobre.html)
   ===================================================================== */

/* Hero de página (centralizado, sem imagem) */
.page-hero { background: var(--grad-section); padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-hero__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: var(--color-ink);
}
.page-hero__subtitle { color: var(--color-text); max-width: 60ch; }

/* Coluna de texto (prose) */
.prose { padding-block: var(--section-y); }
.prose__inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.prose__title { margin-bottom: .5rem; }
.prose__title--center { text-align: center; align-self: center; }

/* Quem está por trás (retrato + texto) */
.about-team { padding-block: var(--section-y); }
.about-team__title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.about-person:last-child { margin-bottom: 0; }
.about-person__photo img { width: 100%; max-width: 420px; height: auto; }
.about-person__text { display: flex; flex-direction: column; gap: 12px; }
.about-person__name { color: var(--color-gold-light); font-weight: 700; font-size: var(--fs-h3); }

/* Como vemos (cards) */
.about-values { padding-block: var(--section-y); }
.about-values__title { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

/* Comece onde tudo começou (CTA) */
.about-cta { padding-block: var(--section-y); }
.about-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.about-cta__sub { color: var(--color-text); max-width: 55ch; }

@media (max-width: 760px) {
  .about-person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-person__text { align-items: center; }
  .about-person__photo img { max-width: 320px; }
}

/* =====================================================================
   9. PÁGINA CONTATO (contato.html)
   (estrutura + estética; o envio do formulário será ligado depois)
   ===================================================================== */

/* Canais de contato */
.contact-channels { background: var(--grad-section); padding-block: var(--section-y); }
.contact-channels__title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--grad-card);
  box-shadow: var(--shadow-card);
}
.contact-card__icon { width: 40px; height: 40px; }
.contact-card__value { color: var(--color-gold-light); font-weight: 700; font-size: var(--fs-body); word-break: break-word; }
.contact-card__desc { color: var(--color-text); font-size: var(--fs-sm); }
.contact-channels__note { text-align: center; margin-top: clamp(1.5rem, 4vw, 2rem); color: var(--color-text); }

/* Formulário */
.contact-form-section { padding-block: var(--section-y); }
.contact-form-section__title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.contact-form { max-width: 628px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { color: var(--color-gold); font-weight: 700; font-size: var(--fs-xs); padding-inline: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--color-white);
  border: 1px solid rgba(174, 124, 48, 0.3);
  border-radius: 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-gold); }
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--color-ink);
  background-image: url("../assets/icons/caret-down.svg");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 44px;
  cursor: pointer;
}

.contact-form__messages { display: flex; flex-direction: column; gap: 12px; }
.form-message { font-size: var(--fs-sm); }
.form-message--success { color: var(--color-gold); font-weight: 700; }
.form-message--error { color: #c20707; }

.contact-form__note { color: var(--color-text); font-size: var(--fs-xs); }
.contact-form__checks { display: flex; flex-direction: column; gap: 8px; }
.contact-form__check { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); color: var(--color-text); }
.contact-form__check input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  flex-shrink: 0;
}
.contact-form__check a { color: var(--color-gold); font-weight: 700; text-decoration: underline; }
.contact-form .btn { align-self: flex-start; }

/* Estados de validação / carregamento */
.field__error { color: #c20707; font-size: var(--fs-xs); padding-inline: 18px; }
.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid { border-color: #c20707; }
.contact-form input.is-invalid:focus,
.contact-form select.is-invalid:focus,
.contact-form textarea.is-invalid:focus { border-color: #c20707; }
.contact-form__check.is-invalid { color: #c20707; }
.contact-form__check.is-invalid input[type="checkbox"] { accent-color: #c20707; outline: 1px solid #c20707; border-radius: 3px; }
.btn:disabled,
.btn.is-loading { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

/* Compras e acesso ao e-book */
.purchase-help { background: var(--grad-section); padding-block: var(--section-y); }
.purchase-help__title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.purchase-help__inner { max-width: 628px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.purchase-help__sub { color: var(--color-gold-light); font-weight: 700; font-size: var(--fs-h3); }
.crisis-note { max-width: 628px; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: center; color: var(--color-text); }

@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* Honeypot anti-spam (campo oculto do formulário de contato) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================================
   10. PÁGINAS LEGAIS (termosdeuso.html, politicadeprivacidade.html)
   ===================================================================== */
.legal { background: var(--color-bg); padding-block: clamp(3rem, 7vw, 5rem); }
.legal__head { max-width: 838px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.legal__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: var(--color-ink);
}
.legal__update { margin-top: 16px; font-size: var(--fs-sm); color: var(--color-text); }
.legal__body { max-width: 640px; margin-inline: auto; }

.legal-section { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.legal-section:last-child { margin-bottom: 0; }
.legal-section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.35;
  color: var(--color-gold);
  margin-bottom: 16px;
}
.legal-section p { margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 16px;
}
.legal-section li { margin-bottom: 8px; }
.legal-section li:last-child { margin-bottom: 0; }
.legal-section a { color: var(--color-gold); font-weight: 600; text-decoration: underline; }

/* Tabela (ex.: finalidades x base legal na política) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  border: 1px solid rgba(174, 124, 48, 0.45);
  border-radius: 10px;
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(174, 124, 48, 0.35);
  border-right: 1px solid rgba(174, 124, 48, 0.35);
}
.legal-table tr td:last-child,
.legal-table tr th:last-child { border-right: none; }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table th {
  background: rgba(174, 124, 48, 0.12);
  color: var(--color-gold);
  font-weight: 700;
}
.legal-table tbody tr:nth-child(even) { background: rgba(174, 124, 48, 0.04); }

/* Marcador de conteúdo pendente de confirmação */
.confirmar {
  background: rgba(197, 158, 71, 0.18);
  color: var(--color-gold);
  font-weight: 600;
  padding: 0 5px;
  border-radius: 4px;
}
