/* ═══════════════════════════════════════════════════════════════
   CENSURA SUPREMA — Landing Page
   Design System v1.0 (extraído do PSD original)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. FONTE OFICIAL — Aeonik
   Descomente e ajuste o path após comprar a licença webfont.
   Enquanto isso, Inter (Google Fonts) atua como fallback fiel.
   ───────────────────────────────────────────────────────────── */
/*
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Black.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
*/

/* ─────────────────────────────────────────────────────────────
   2. TOKENS (Design System)
   ───────────────────────────────────────────────────────────── */
:root {
  /* Cores */
  --red-primary: #E01606;
  --red-primary-hover: #C41205;
  --red-line: #FA1706;
  --black-bg: #06090B;
  --black-pure: #000000;
  --white: #FFFFFF;
  --white-strong: rgba(255, 255, 255, 0.92);
  --white-muted: rgba(255, 255, 255, 0.72);
  --white-subtle: rgba(255, 255, 255, 0.45);
  --white-faint: rgba(255, 255, 255, 0.08);

  /* Spacing (8px base) */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 32px;
  --sp-xl: 48px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-4xl: 128px;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-pad: 24px;

  /* Tipografia */
  --font-sans: 'Aeonik', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Header */
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─────────────────────────────────────────────────────────────
   3. RESET + BASE
   ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--black-bg);
  color: var(--white);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--red-primary);
  color: var(--white);
}

/* Focus visível e consistente */
:focus-visible {
  outline: 2px solid var(--red-line);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   4. UTILITÁRIOS
   ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 2;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.eyebrow {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 800;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--sp-sm);
}

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

.sep-red {
  width: 100%;
  max-width: 400px;
  height: 3px;
  background: var(--red-line);
  border: none;
  margin: var(--sp-xl) 0;
}

.sep-red--center {
  margin: var(--sp-xl) auto;
}

.sep-red--small {
  max-width: 60px;
  margin: var(--sp-sm) 0;
  height: 2px;
}

/* Tipografia utility */
.display-xl {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--white);
}

.display-xl__red {
  color: var(--red-primary);
}

.display-md {
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--white);
  margin-top: var(--sp-md);
}

.section-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  text-align: center;
}

.section-title--large {
  font-size: clamp(30px, 5.5vw, 58px);
}

.body {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-strong);
}

/* ─────────────────────────────────────────────────────────────
   5. BOTÕES
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.15s var(--ease);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-primary-hover);
  border-color: var(--red-primary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--white);
  color: var(--black-bg);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 2px;
}

.btn--xl {
  padding: 22px 60px;
  font-size: 17px;
  letter-spacing: 3px;
}

/* ─────────────────────────────────────────────────────────────
   6. HEADER FIXO
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header--scrolled {
  background: rgba(6, 9, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.site-header__logo {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-flex;
  gap: 6px;
  line-height: 1;
}

.site-header__logo-red {
  color: var(--red-primary);
}

.site-header__logo-white {
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────────
   7. SEÇÃO base
   ───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--sp-4xl) 0;
  overflow: hidden;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section__bg picture,
.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 9, 11, 0.55) 0%,
      rgba(6, 9, 11, 0.78) 55%,
      var(--black-bg) 100%
    );
}

/* ─────────────────────────────────────────────────────────────
   8. SEÇÃO 01 — O LIVRO
   ───────────────────────────────────────────────────────────── */
.section--book {
  padding-top: calc(var(--header-h) + var(--sp-3xl));
  padding-bottom: var(--sp-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-3xl);
  align-items: center;
}

.book-copy {
  min-width: 0;
}

.book-copy .display-xl {
  margin-top: 0;
}

.book-synopsis p {
  margin-bottom: var(--sp-md);
}

.book-synopsis p:last-child {
  margin-bottom: 0;
}

.book-synopsis__closer {
  color: var(--white);
  font-size: clamp(17px, 1.9vw, 20px);
  padding-top: var(--sp-sm);
}

.book-cta {
  margin-top: var(--sp-xl);
}

.book-cover {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.book-cover img {
  width: 100%;
  max-width: 460px;
  height: auto;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 20px 30px -10px rgba(0, 0, 0, 0.5),
    0 0 40px -5px rgba(224, 22, 6, 0.15);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}

.book-cover img:hover {
  transform: rotate(-2deg) scale(1.02);
}

/* ─────────────────────────────────────────────────────────────
   9. SEÇÃO 02 — OS AUTORES
   ───────────────────────────────────────────────────────────── */
.section--authors {
  background: var(--black-bg);
  padding: var(--sp-4xl) 0;
}

.section--authors .section-title {
  margin-top: 0;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-xl);
}

.author-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--white-faint);
  border-top: 3px solid var(--red-primary);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.author-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--red-primary);
}

.author-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d1114;
}

.author-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s var(--ease);
}

.author-card:hover .author-card__photo img {
  transform: scale(1.03);
}

.author-card__body {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
}

.author-card__name {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--white);
}

.author-card__role {
  margin-top: 8px;
  font-size: 13px;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.author-card__body .body {
  font-size: clamp(15px, 1.6vw, 17px);
}

/* ─────────────────────────────────────────────────────────────
   10. SEÇÃO 03 — COMPRAR
   ───────────────────────────────────────────────────────────── */
.section--buy {
  background: var(--black-bg);
  padding: var(--sp-4xl) 0;
  position: relative;
}

.section--buy__decor {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 640px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.section--buy__decor img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.1);
}

.buy-card {
  margin: var(--sp-xl) auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-faint);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.buy-card__price-wrap {
  margin-bottom: var(--sp-xl);
}

.buy-card__price-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white-subtle);
  font-weight: 800;
  margin-bottom: var(--sp-sm);
}

.buy-card__price {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.buy-card__meta {
  margin-top: var(--sp-sm);
  font-size: 14px;
  color: var(--white-muted);
  letter-spacing: 0.5px;
}

.buy-card__cta {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.buy-card__notes {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--white-faint);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.buy-card__notes li {
  font-size: 14px;
  color: var(--white-muted);
  padding-left: 4px;
}

.buy-card__notes li span {
  color: var(--red-primary);
  font-weight: 800;
  margin-right: 8px;
}

/* ─────────────────────────────────────────────────────────────
   11. FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--black-pure);
  padding: var(--sp-2xl) 0 var(--sp-xl);
  text-align: center;
  border-top: 1px solid var(--white-faint);
}

.site-footer__brand {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--sp-md);
}

.site-footer__brand-red {
  color: var(--red-primary);
}

.site-footer__copy,
.site-footer__credit {
  font-size: 12px;
  color: var(--white-subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.site-footer__credit a {
  color: var(--white-muted);
  transition: color 0.2s var(--ease);
}

.site-footer__credit a:hover {
  color: var(--red-primary);
}

/* ─────────────────────────────────────────────────────────────
   12. RESPONSIVIDADE
   ───────────────────────────────────────────────────────────── */

/* Tablets & laptops pequenos */
@media (max-width: 1024px) {
  .book-grid {
    gap: var(--sp-2xl);
  }
  .section {
    padding: var(--sp-3xl) 0;
  }
  .section--book {
    padding-top: calc(var(--header-h) + var(--sp-2xl));
    padding-bottom: var(--sp-3xl);
  }
}

/* Tablets — hero passa a stacked, mantém autores 2-col */
@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .book-copy {
    order: 2;
  }
  .book-cover {
    order: 1;
  }
  .book-cover img {
    max-width: 320px;
  }
  .sep-red {
    margin: var(--sp-lg) auto;
    max-width: 240px;
  }
  .book-cta {
    display: flex;
    justify-content: center;
  }
  .book-synopsis {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
    --header-h: 60px;
  }

  .section {
    padding: var(--sp-2xl) 0;
    min-height: auto;
  }

  .section--book {
    padding-top: calc(var(--header-h) + var(--sp-xl));
    padding-bottom: var(--sp-2xl);
    min-height: auto;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  /* Capa vem primeiro visualmente no mobile, texto abaixo */
  .book-cover {
    order: -1;
  }

  .book-cover img {
    max-width: 260px;
    transform: rotate(-2deg);
  }

  .sep-red {
    margin: var(--sp-lg) 0;
  }

  .sep-red--center {
    margin: var(--sp-lg) auto;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .author-card__body {
    padding: var(--sp-md) var(--sp-md) var(--sp-lg);
  }

  .buy-card {
    padding: var(--sp-xl) var(--sp-md);
  }

  .btn {
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 2px;
  }

  .btn--xl {
    padding: 18px 40px;
    font-size: 15px;
    letter-spacing: 2.5px;
  }

  .btn--sm {
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .site-header__inner {
    padding: 0 var(--container-pad);
  }

  .site-header__logo {
    letter-spacing: 2px;
    gap: 4px;
  }

  .site-footer {
    padding: var(--sp-xl) 0;
  }

  .section--buy__decor {
    display: none;
  }
}

/* Micro-mobile */
@media (max-width: 380px) {
  .site-header__logo-white {
    display: none;
  }
  .display-xl {
    letter-spacing: -0.5px;
  }
}

/* ─────────────────────────────────────────────────────────────
   13. IMPRESSÃO (bônus — evita quebra em modo impressão do WP)
   ───────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .section__bg,
  .section__overlay {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
