/* ==========================================================================
   Quando Deus Parece Estar em Silêncio — Landing Page
   Paleta:
     Fundo escuro:      #1A1A2E
     Texto s/ escuro:    #F5F0E6
     Dourado (destaque): #C9A227
     Secundária (bordô): #8B3A3A
     Fundo claro:        #FAF7F0
     Texto s/ claro:     #2B2B2B
     Caixas s/ claro:    #F0E9DC
   ========================================================================== */

:root {
  --color-dark-bg: #1A1A2E;
  --color-dark-text: #F5F0E6;
  --color-gold: #C9A227;
  --color-secondary: #8B3A3A;
  --color-light-bg: #FAF7F0;
  --color-light-text: #2B2B2B;
  --color-box-bg: #F0E9DC;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Merriweather', 'Lora', serif;

  --max-width: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-light-text);
  background-color: var(--color-light-bg);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 760px;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background-color: var(--color-gold);
  color: #1A1A2E;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #dab338;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(201, 162, 39, 0.35);
}

.btn--large {
  width: 100%;
  padding: 20px 28px;
  font-size: 1.2rem;
}

.btn--glow {
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
  animation: btn-pulse 2.6s ease-in-out infinite;
}

.btn__arrow {
  transition: transform 0.15s ease;
}

.btn--glow:hover .btn__arrow {
  transform: translateX(4px);
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.45);
  }
  50% {
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--glow {
    animation: none;
  }
}

/* ---------- Ancoragem de preço ---------- */

.price-anchor {
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

.price-anchor--center {
  text-align: center;
}

.price-old {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 10px;
  font-size: 1rem;
}

.price-new {
  color: var(--color-gold);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- Selos de confiança ---------- */

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: 40px 0 32px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero__text h1 {
  font-size: 1.7rem;
  color: var(--color-dark-text);
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: 1rem;
  color: var(--color-dark-text);
  opacity: 0.9;
}

.hero__cta-block {
  background-color: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.hero__microcopy {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.hero__microcopy--center {
  text-align: center;
}

.hero__image {
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

/* Moldura da capa: mostra a imagem real quando existir, ou um substituto
   estilizado (sem parecer "quebrado") enquanto o arquivo não é enviado. */
.cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: linear-gradient(160deg, #23233f, #1A1A2E);
}

.cover-frame--fallback {
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-frame--fallback img {
  display: none;
}

.cover-frame--fallback::before {
  content: "Quando Deus Parece Estar em Silêncio";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 8px;
  margin: 10px;
}

/* ---------- Barra fixa de compra (mobile) ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--color-dark-bg);
  border-top: 1px solid rgba(201, 162, 39, 0.4);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark-text);
  font-size: 1.05rem;
  white-space: nowrap;
}

.sticky-cta__btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  width: auto;
  flex-shrink: 0;
}

/* ---------- Seções genéricas ---------- */

.section {
  padding: 48px 0;
}

.section--light {
  background-color: var(--color-light-bg);
  color: var(--color-light-text);
}

.section--cream {
  background-color: var(--color-box-bg);
  color: var(--color-light-text);
}

.section--dark {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.section__title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-light-text);
}

.section__title--light {
  color: var(--color-dark-text);
}

.section__subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: 0.85;
}

.section__cta {
  text-align: center;
  margin-top: 36px;
}

.section__cta .btn {
  max-width: 360px;
}

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background-color: var(--color-box-bg);
  border-radius: 6px;
  padding: 24px 20px;
  border-left: 4px solid var(--color-gold);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-light-text);
}

.card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.card--dark {
  background-color: rgba(245, 240, 230, 0.05);
  border-left: 4px solid var(--color-gold);
  color: var(--color-dark-text);
}

.card--dark h3 {
  color: var(--color-gold);
}

.card--dark p {
  opacity: 0.85;
}

.card__icon {
  display: inline-block;
  color: var(--color-gold);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* ---------- Sumário de conteúdo (cards sempre visíveis) ---------- */

.toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.toc-card {
  position: relative;
  background-color: var(--color-light-bg);
  border-radius: 8px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.toc-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 12px;
}

.toc-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.toc-card ul {
  list-style: none;
}

.toc-card li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.9;
}

.toc-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* ---------- Accordion (FAQ) ---------- */

.accordion {
  max-width: 720px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid rgba(43, 43, 43, 0.15);
}

.accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-light-text);
  padding: 20px 4px;
  cursor: pointer;
}

.accordion__icon {
  flex-shrink: 0;
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.accordion__header[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion__panel p {
  padding: 0 4px 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ---------- Amostra ---------- */

.sample-quote {
  background-color: var(--color-box-bg);
  border-left: 4px solid var(--color-secondary);
  padding: 28px 24px;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  border-radius: 4px;
}

/* ---------- Garantia ---------- */

.guarantee {
  text-align: center;
}

.guarantee__seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.guarantee p {
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
}

.cta-final .section__title {
  margin-bottom: 24px;
}

.cta-final .btn {
  width: 100%;
  max-width: 360px;
}

/* ---------- Rodapé ---------- */

.footer {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: 32px 0 calc(32px + 76px);
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .footer {
    padding: 32px 0;
  }
}

.footer p {
  margin-bottom: 8px;
  opacity: 0.85;
}

.footer a {
  color: var(--color-gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__disclaimer {
  opacity: 0.6;
  font-size: 0.78rem;
  margin-top: 12px;
}

/* ---------- Página legal (política de privacidade) ---------- */

.legal-header {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: 28px 0;
}

.legal-header__back {
  color: var(--color-gold);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal-content {
  padding: 48px 0 64px;
}

.legal-content h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal-content__updated {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-secondary);
}

/* ==========================================================================
   Responsivo — mobile-first já é a base; ajustes para telas maiores abaixo
   ========================================================================== */

@media (min-width: 640px) {
  .hero__text h1 {
    font-size: 2.3rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn--large {
    width: auto;
  }

  .cta-final .btn,
  .section__cta .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "text image"
      "cta  image";
    align-items: start;
  }

  .hero__text {
    grid-area: text;
  }

  .hero__image {
    grid-area: image;
    max-width: 380px;
    align-self: center;
  }

  .hero__cta-block {
    grid-area: cta;
  }

  .hero__cta-block .btn {
    width: auto;
  }

  .hero__text h1 {
    font-size: 2.7rem;
  }

  .cards-grid--dark {
    grid-template-columns: repeat(3, 1fr);
  }

  .toc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Barra fixa é um recurso pensado para telas pequenas; some em telas maiores */
  .sticky-cta {
    display: none;
  }
}
