/* ============================================================
   EXÍLIO E MISSÃO — Landing Page
   Direção estética: Luxury Editorial Católico
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Cores — fundos */
  --color-navy:       #0D1B3E;
  --color-navy-mid:   #122352;
  --color-navy-dark:  #060E1F;
  --color-navy-deep:  #030915;

  /* Cores — dourado */
  --color-gold:       #F6D164;
  --color-gold-dark:  #C8A93A;

  /* Cores — institucionais e acentos */
  --color-green:      #007F45;
  --color-royal:      #03258C;
  --color-black:      #0D0D0D;
  --color-red:        #A0201A;

  /* Texto */
  --color-text-cream: #F8F5EE;
  --color-text-light: #E8E0CC;
  --color-text-muted: rgba(232, 224, 204, 0.5);

  /* Bordas e superfícies douradas */
  --color-border-gold:    rgba(246, 209, 100, 0.35);
  --color-border-gold-sm: rgba(246, 209, 100, 0.15);
  --color-surface-gold:   rgba(246, 209, 100, 0.06);

  /* Tipografia */
  --font-display:   'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body:      'EB Garamond', Garamond, Georgia, serif;

  /* Escala tipográfica */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  2.625rem;   /* 42px */
  --text-4xl:  3.5rem;     /* 56px */

  /* Letter-spacing */
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;
  --tracking-widest: 0.22em;

  /* Layout */
  --content-max:   1040px;
  --content-narrow: 680px;
  --section-py:    clamp(56px, 9vw, 104px);
  --gutter:        clamp(24px, 5vw, 48px);

  /* Sombra */
  --shadow-frame: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text-light);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--color-gold); color: var(--color-navy-deep); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--content-narrow); }

.section { padding-block: var(--section-py); position: relative; }
.section--dark { background: var(--color-navy-dark); }
.section--mid  { background: var(--color-navy-mid); }
.section--deep { background: var(--color-navy-deep); }

/* ---------- Ornamentos ---------- */
.divider {
  width: 64px; height: 1px;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.7;
}

.ornament-divider {
  background: var(--color-navy-deep);
  text-align: center;
  padding-block: 8px;
}
.ornament-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
  font-size: 1.1rem;
  position: relative;
}
.ornament-divider span::before,
.ornament-divider span::after {
  content: '';
  display: inline-block;
  width: clamp(40px, 18vw, 130px);
  height: 1px;
  background: var(--color-border-gold-sm);
  vertical-align: middle;
  margin: 0 18px;
}

/* ---------- Tipografia compartilhada ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 5px 14px;
  border: 1px solid var(--color-border-gold);
  border-radius: 2px;
  background: var(--color-surface-gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(var(--text-xl), 4.5vw, var(--text-2xl));
  line-height: 1.25;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-cream);
}

.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }

.section-lead {
  font-family: var(--font-editorial);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 56ch;
  margin: 18px auto 0;
}

.section-cta { text-align: center; margin-top: clamp(36px, 6vw, 56px); }

/* Marcador de conteúdo fictício a ajustar antes de publicar
   (sublinhado dourado tracejado + tooltip no hover) */
.ph {
  border-bottom: 1px dashed var(--color-gold-dark);
  cursor: help;
}

/* ============================================================
   BOTÃO CTA
   ============================================================ */
.btn-primary {
  --glow: 0 0 0 rgba(246, 209, 100, 0);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy-deep);
  background: linear-gradient(180deg, #FBDE83 0%, var(--color-gold) 55%, var(--color-gold-dark) 100%);
  padding: 17px 46px;
  border-radius: 2px;
  border: 1px solid var(--color-gold);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-frame), var(--glow);
  transition: transform 0.15s ease, box-shadow 0.3s ease, filter 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8), 0 0 28px rgba(246, 209, 100, 0.3);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary:focus-visible {
  outline: 2px solid var(--color-text-cream);
  outline-offset: 3px;
}
.btn-primary--block {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  text-align: center;
}

/* ============================================================
   S1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(64px, 12vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
/* Imagem full-bleed cobrindo todo o hero */
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile: ancorado à direita → a imagem de Cristo aparece sempre inteira.
     (TODO opcional: trocar por uma imagem vertical via <picture> p/ mostrar
     também o estudante no celular — ver hero-mobile no assets/) */
  object-position: right center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(13,27,62,0.30) 0%, rgba(6,14,31,0.72) 60%, rgba(3,9,21,0.92) 100%),
    linear-gradient(180deg, rgba(13,27,62,0.55) 0%, rgba(6,14,31,0.35) 38%, rgba(3,9,21,0.96) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Desktop: a largura inteira da imagem aparece; leve viés à direita
   protege a imagem de Cristo em janelas mais estreitas. */
@media (min-width: 768px) {
  .hero__img { object-position: 60% 40%; }
}

.hero__ornament {
  font-size: var(--text-lg);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-cream);
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
}
.hero__word {
  display: block;
  font-size: clamp(var(--text-4xl), 13vw, 5.5rem);
}
.hero__amp {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-gold);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0;
  margin-block: 2px;
}

.hero__subtitle {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(var(--text-md), 3vw, var(--text-xl));
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 22px;
}

.hero__hook {
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 52ch;
  margin: 4px auto 34px;
}
.hero__hook strong { color: var(--color-gold); font-weight: 500; }

.hero__subtext {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 18px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold-dark);
  font-size: 1rem;
  opacity: 0.6;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50%      { transform: translate(-50%, 6px); opacity: 0.75; }
}

/* ============================================================
   S2 · AGITAÇÃO DA DOR
   ============================================================ */
.dor .section-title { text-align: center; max-width: 22ch; margin-inline: auto; }

.dor__lista {
  list-style: none;
  padding: 0;
  margin: clamp(32px, 5vw, 48px) auto 0;
  max-width: 600px;
}
.dor__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: var(--text-md);
  color: var(--color-text-light);
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border-gold-sm);
}
.dor__item:first-child { border-top: 1px solid var(--color-border-gold-sm); }
.dor__x {
  color: var(--color-red);
  font-weight: 700;
  flex: none;
  line-height: 1.6;
  font-size: 1.05rem;
}

.virada {
  margin: clamp(40px, 6vw, 60px) auto 0;
  max-width: 600px;
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface-gold);
  padding: 26px 30px;
  border-radius: 0 3px 3px 0;
}
.virada p {
  font-family: var(--font-editorial);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-cream);
}
.virada p + p { margin-top: 10px; }
.virada strong { color: var(--color-gold); font-weight: 600; }

/* ============================================================
   S3 · 8 COMBATES
   ============================================================ */
.combates-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  counter-reset: none;
}
.combate-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-surface-gold);
  border: 1px solid var(--color-border-gold-sm);
  border-radius: 3px;
  padding: 20px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.combate-card:hover {
  border-color: var(--color-border-gold);
  background: rgba(246, 209, 100, 0.1);
  transform: translateY(-3px);
}
.combate-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-gold);
  flex: none;
  min-width: 2.2ch;
}
.combate-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}
.combate-card__kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.combate-card__title {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--color-text-cream);
}
.combate-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ============================================================
   S4 · ENDORSEMENT
   ============================================================ */
.endorsement {
  border-top: 2px solid var(--color-border-gold-sm);
  border-bottom: 2px solid var(--color-border-gold-sm);
}
.endorsement__figure { text-align: center; position: relative; margin: 0; }
.endorsement__mark {
  display: block;
  font-family: var(--font-editorial);
  font-size: 7rem;
  line-height: 0.5;
  color: var(--color-gold);
  opacity: 0.18;
  height: 0.55em;
}
.endorsement__quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(var(--text-lg), 3.2vw, 1.65rem);
  line-height: 1.55;
  color: var(--color-text-cream);
  max-width: 60ch;
  margin-inline: auto;
}
.endorsement__cite { display: flex; flex-direction: column; gap: 3px; }
.endorsement__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wide);
  color: var(--color-gold);
  text-transform: uppercase;
}
.endorsement__role { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============================================================
   S5 · SOBRE O AUTOR
   ============================================================ */
.autor__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.autor__media { display: flex; justify-content: center; }
.autor__media img {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--color-border-gold);
  border-radius: 3px;
  box-shadow: var(--shadow-frame);
}
.autor__pretitle {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
  margin-top: 6px;
}
.autor__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
  line-height: 1.15;
  color: var(--color-text-cream);
  margin-bottom: 20px;
}
.autor__body p { margin-top: 14px; font-size: var(--text-base); }
.autor__sobre-livro em { color: var(--color-text-cream); font-style: italic; }

.autor__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.stat {
  text-align: center;
  padding: 18px 10px;
  border: 1px solid var(--color-border-gold-sm);
  border-radius: 3px;
  background: var(--color-surface-gold);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  color: var(--color-gold);
  line-height: 1;
}
.stat__label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ============================================================
   S6 · OFERTA E PREÇO
   ============================================================ */
.oferta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vw, 22px);
}

/* Pôster de oferta — arte composta (livro 3D + selo + brindes + preço) */
.oferta-poster {
  margin: 0;
  width: 100%;
  max-width: 600px;
}
.oferta-poster__art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  /* a base da arte já é navy-deep — funde-se ao fundo da seção sem emenda */
}

/* Chamada de ação abaixo do pôster */
.oferta-cta {
  width: 100%;
  max-width: 460px;
  text-align: center;
}
.btn-primary--lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-primary--lock svg { opacity: 0.9; }

.oferta__secure {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 18px;
}
.oferta__secure span { color: var(--color-gold-dark); }

/* Utilitário acessível: oculto visualmente, lido por leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   S7 · FAQ
   ============================================================ */
.faq__list { max-width: 640px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--color-border-gold-sm);
}
.faq__item:first-child { border-top: 1px solid var(--color-border-gold-sm); }
.faq__q {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-cream);
  padding: 22px 44px 22px 4px;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--color-gold); }
.faq__q::after {
  content: '✛';
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold-dark);
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.2s ease;
}
.faq__item[open] .faq__q { color: var(--color-gold); }
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a {
  padding: 0 4px 24px;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.faq__a p { animation: faqReveal 0.4s ease; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BOTÃO FLUTUANTE DE WHATSAPP — bolha dourada
   ============================================================ */
.wpp-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--color-navy-deep);
  background: linear-gradient(150deg, #FBDE83 0%, var(--color-gold) 52%, var(--color-gold-dark) 100%);
  border: 1px solid rgba(255, 245, 210, 0.6);
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 22px -6px rgba(246, 209, 100, 0.5);
  /* Oculto até o usuário rolar a página — evita sobrepor o CTA no topo (sobretudo no mobile) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease, filter 0.2s ease;
}
.wpp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.wpp-float__icon { display: block; }
.wpp-float:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.7), 0 0 30px -4px rgba(246, 209, 100, 0.7);
}
.wpp-float:active { transform: translateY(0) scale(0.98); }
.wpp-float:focus-visible {
  outline: 2px solid var(--color-text-cream);
  outline-offset: 3px;
}
/* Pulso dourado sutil de atenção */
.wpp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(246, 209, 100, 0.5);
  animation: wppPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes wppPulse {
  0%   { box-shadow: 0 0 0 0 rgba(246, 209, 100, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(246, 209, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 209, 100, 0); }
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.rodape {
  background: var(--color-navy-deep);
  text-align: center;
  padding-block: clamp(40px, 7vw, 64px);
  border-top: 1px solid var(--color-border-gold-sm);
}
.rodape__brasao {
  width: 84px;
  height: auto;
  margin: 0 auto 24px;
  opacity: 0.92;
}
.rodape__brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-gold);
}
.rodape__brand span { color: var(--color-gold-dark); margin-inline: 6px; }
.rodape__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: var(--text-sm);
}
.rodape__links a { color: var(--color-text-muted); text-decoration: none; transition: color 0.2s ease; }
.rodape__links a:hover { color: var(--color-gold); }
.rodape__links span { color: var(--color-text-muted); }
.rodape__copy { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 18px; }

/* ============================================================
   ANIMAÇÕES — carga e scroll reveal
   ============================================================ */
.reveal-load {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__ornament  { animation-delay: 0.1s; }
.hero__title     { animation-delay: 0.25s; }
.hero__subtitle  { animation-delay: 0.5s; }
.hero .divider   { animation-delay: 0.65s; }
.hero__hook      { animation-delay: 0.78s; }
.hero .btn-primary { animation-delay: 0.92s; }
.hero__subtext   { animation-delay: 1.05s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .autor__grid { grid-template-columns: 1fr; text-align: center; }
  .autor__media img { max-width: 200px; }
  .autor__stats { max-width: 420px; margin-inline: auto; }

  .oferta-poster, .oferta-cta { max-width: 440px; }
}

@media (max-width: 480px) {
  .combates-grid { grid-template-columns: 1fr; }
  .combate-card { padding: 16px 18px; }
  .endorsement__mark { font-size: 5rem; }
}

/* ============================================================
   ACESSIBILIDADE — respeitar preferência de movimento reduzido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-load { opacity: 1; transform: none; }
  .wpp-float::after { animation: none; }
}
