/* ——————
   MENTE DESPERTA —————— Premium Book Series Landing Page
   Stylesheet —————— v2.0 —————— Complete Rewrite
   
   Design System:
   - Palette: Deep indigo-black + warm amber-gold accent
   - Typography: Cormorant Garamond (headlines) + Outfit (body/UI)
   - Signature: Gold thread lines (prayer flag motif, secular)
   - Cover philosophy: FULL display, zero crop, books are the product
   —————— */


/* ——————
   0 —————— CUSTOM PROPERTIES (Design Tokens)
   —————— */
:root {
  /* Backgrounds */
  --bg-deep:        #F6F4EB;
  --bg-surface:     #EBE8DB;
  --bg-surface-alt: #FFFFFF;
  --bg-border:      #1A1A1A;
  --bg-elevated:    #F6F4EB;

  /* Accent */
  --gold:           #1A1A1A; /* Solid black/dark grey for borders and accents */
  --gold-dim:       rgba(26, 26, 26, 0.1);
  --gold-glow:      rgba(26, 26, 26, 0.04);
  --gold-bright:    #000000;
  --gold-dark:      #333333;
  --sage:           #267a4b;

  /* CTA */
  --sapphire:       #2b6f91;
  --sapphire-light: #3a8ab0;
  --amazon-orange:  #e47911;

  /* Text */
  --text-primary:   #1A1A1A;
  --text-secondary: #404040;
  --text-muted:     #666666;

  /* Typography */
  --font-headline:  'Oswald', system-ui, -apple-system, sans-serif;
  --font-body:      'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --nav-height:     70px;
  --section-pad:    clamp(4rem, 10vw, 7rem);
  --container-pad:  clamp(1.25rem, 5vw, 3rem);

  /* Motion */
  --ease-premium:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
}


/* ——————
   1 —————— GLOBAL RESET & BASE
   —————— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Selection */
::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}


/* ——————
   2 —————— ACCESSIBILITY
   —————— */
.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;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: top 0.3s var(--ease-premium);
}
.skip-link:focus { top: 0; outline: none; }

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

.hidden { display: none !important; }


/* ——————
   3 —————— LAYOUT UTILITIES
   —————— */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Solid separator —————— clean contemporary line */
.solid-separator {
  border: none;
  height: 2px;
  background-color: var(--bg-border);
  margin: 1.5rem auto;
  max-width: 280px;
}
.solid-separator--narrow { max-width: 100px; }
.solid-separator--full { max-width: 100%; }

.section-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.section-title--left { text-align: left; }

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.1vw, 1.1rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 58ch;
  margin: 1rem auto 0;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 3.5rem;
}


/* ——————
   4 —————— FADE-IN ANIMATION SYSTEM
   —————— */
/* A animacao so existe quando o JS confirma que esta vivo. Sem o prefixo .js
   os 8 cards de livro comecavam com opacity:0 e dependiam do IntersectionObserver
   para aparecer -- qualquer falha de script renderizava a pagina vazia. */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-premium),
    transform 0.7s var(--ease-premium);
}
.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.nav-controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.global-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 20px;
  padding: 2px;
}
.global-lang-toggle a,
.global-lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-premium);
}
.global-lang-toggle a:hover,
.global-lang-toggle button:hover {
  color: var(--gold);
}
.global-lang-toggle a.active,
.global-lang-toggle button.active {
  background: var(--gold);
  color: var(--bg-deep);
}

.global-lang-toggle a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  line-height: 1;
}

/* ——————
   4 —————— LANGUAGE VISIBILITY RULES
   —————— */
/* Default (PT) */
[data-lang="en"] { display: none !important; }
[data-lang="pt"] { display: block; }
span[data-lang="pt"], a[data-lang="pt"], img[data-lang="pt"] { display: inline-block; }

/* English Mode */
body.lang-en [data-lang="pt"] { display: none !important; }
body.lang-en [data-lang="en"] { display: block !important; }

/* Inline elements for EN */
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"] {
  display: inline-block !important;
}

/* ——————
   5 —————— NAVIGATION
   —————— */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.05);
  transition:
    background 0.4s var(--ease-premium),
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(26, 26, 26, 0.08);
}

.site-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 768px) {
  .nav-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.nav-logo { text-decoration: none; display: flex; align-items: center; }

.logo-text {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-premium);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-premium);
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--gold); }
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 6px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease-premium),
    opacity 0.25s var(--ease-premium),
    background 0.25s var(--ease-premium);
  transform-origin: center;
}

.menu-open .nav-toggle .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--gold);
}
.menu-open .nav-toggle .hamburger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.menu-open .nav-toggle .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--gold);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh; height: 100dvh;
    background: rgba(246, 244, 235, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-premium);
    border-left: 2px solid var(--bg-border);
  }

  .menu-open .nav-menu { transform: translateX(0); }
  .nav-menu a { font-size: 1.1rem; letter-spacing: 0.2em; }
}

body.menu-open { overflow: hidden; }


/* ——————
   6 —————— HERO
   —————— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, var(--bg-surface-alt) 0%, var(--bg-deep) 100%);
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: gradientShift 20s ease infinite;
  }
}

/* Subtle pattern behind content if needed */
.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem var(--container-pad);
  width: 100%;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .hero-eyebrow {
    letter-spacing: 0.4em;
  }
}

.hero-headline {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-headline-accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-sub-break {
  display: block;
  margin-top: 0.25rem;
}

/* Hero mini covers */
.hero-covers {
  display: flex;
  justify-content: safe center;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  margin: 2rem 0 2.5rem;
  perspective: 800px;
  max-width: 100vw;
  flex-wrap: wrap;
  overflow: visible;
  padding: 1rem 1rem 2rem;
}
@media (min-width: 768px) {
  .hero-covers {
    justify-content: center;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 1rem 0 2rem;
  }
}

.hero-covers::-webkit-scrollbar {
  display: none;
}

.hero-cover-link {
  display: block;
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.4s var(--ease-premium), filter 0.4s var(--ease-premium);
  will-change: transform;
}

.hero-covers--standalone {
  margin-top: -1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .hero-covers--standalone {
    margin-top: -1.5rem;
  }
}

.hero-cover {
  display: block;
  height: clamp(110px, 18vw, 220px);
  width: auto;
  border-radius: 6px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-cover-link {
    animation: float 6s ease-in-out infinite;
  }
  .hero-cover-link:nth-child(2) { animation-delay: -1s; }
  .hero-cover-link:nth-child(3) { animation-delay: -2s; }
  .hero-cover-link:nth-child(4) { animation-delay: -3s; }
  .hero-cover-link:nth-child(5) { animation-delay: -4s; }
}

.hero-cover-link:hover {
  transform: translateY(-8px) scale(1.05);
  filter: brightness(1.1);
  z-index: 10;
}

/* Hero CTA */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

.cta-arrow {
  transition: transform 0.3s var(--ease-premium);
}
.hero-cta:hover .cta-arrow {
  transform: translateY(3px);
}

.hero-count {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}


/* ——————
   7 —————— BOOKS SECTION
   —————— */
.books-section {
  padding: var(--section-pad) 0;
  background: var(--bg-deep);
}

/* Carousel Container */
.books-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Carousel Track */
.books-carousel-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding: 1rem 1rem 3rem; /* Extra bottom padding for shadows */
}
@media (min-width: 900px) {
  .books-carousel-track {
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .books-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  .books-carousel-track .book-card {
    scroll-snap-align: center;
  }
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--gold);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease-premium);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
@media (min-width: 1024px) {
  .carousel-nav-btn {
    display: flex;
  }
}
.carousel-nav-btn:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.carousel-nav-btn.prev { left: -26px; }
.carousel-nav-btn.next { right: -26px; }

/* Carousel Dots */
.carousel-dots {
  display: none;
}
@media (min-width: 900px) {
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
  }
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}


/* Decision Helper */
.decision-helper {
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 600px;
}

.decision-helper-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.decision-helper-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.decision-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  background: rgba(212, 168, 83, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-premium);
}

.decision-tag:hover {
  background: var(--gold-dim);
  border-color: rgba(212, 168, 83, 0.4);
  transform: translateY(-2px);
}


/* ——————
   8 —————— BOOK CARD —————— Complete redesign
   
   Philosophy: The cover is the product.
   Show it FULL —————— no crop, no cut.
   CTA must be visible without scrolling within the card.
   —————— */
.book-card {
  max-width: 420px;
  width: 100%;
  background: color-mix(in srgb, var(--book-accent, var(--sapphire)) 5%, var(--bg-surface));
  border-radius: 20px;
  border: 1px solid rgba(26, 26, 26, 0.05);
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at top left, var(--book-accent, var(--gold)) 0%, transparent 70%);
  opacity: 0.08;
  transition: opacity 0.4s var(--ease-premium);
  z-index: 0;
  pointer-events: none;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
}

.book-card:hover::before {
  opacity: 0.15;
}

/* Ensure content stays above the ::before glow */
.book-cover-container, .book-info {
  position: relative;
  z-index: 2;
}


/* ——————
   9 —————— BOOK COVER —————— FULL DISPLAY, ZERO CROP
   
   Uses object-fit: contain inside a fixed 2:3 container.
   Dark background (#0a0c18) fills any gaps from
   non-uniform aspect ratios across the 10 covers.
   NEVER crops title, face, or decorative frame.
   —————— */
.book-cover-container {
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  will-change: transform;
  box-shadow:
    8px 16px 32px rgba(0, 0, 0, 0.15),
    2px 4px 12px rgba(0, 0, 0, 0.08);
  /* Combate absoluto a qualquer espa——————o fantasma de HTML */
  display: flex;
  flex-direction: column;
  font-size: 0;
  line-height: 0;
}

.book-cover-wrapper picture {
  display: block;
  margin: 0;
  padding: 0;
}

.book-card:hover .book-cover-wrapper {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    12px 24px 48px rgba(0, 0, 0, 0.22),
    4px 8px 16px rgba(0, 0, 0, 0.12);
}

/* Spine effect —————— left edge */
.book-cover-wrapper::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* Subtle edge highlight */
.book-cover-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  z-index: 4;
}

/* COVER IMAGES —————— Natural height to avoid white gaps */
.book-cover {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1; /* Always 1, handled by data-lang display */
  border-radius: 6px;
  mix-blend-mode: multiply; /* Removes image's solid cream background by blending it with the card */
}

/* Light reflection overlay */
.cover-light-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
  mix-blend-mode: overlay;
}

/* Cover language toggle pills */
.cover-toggle {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.cover-toggle button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  background: transparent;
  transition:
    background 0.25s var(--ease-premium),
    color 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium);
}

.cover-toggle button.active {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.3);
}

.cover-toggle button:hover:not(.active) {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}


/* ——————
   10 —————— BOOK INFO —————— compact, CTA-forward
   —————— */
.book-info {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.book-title-en {
  font-family: var(--font-headline);
  font-weight: 500;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.book-theme {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

/* Editorial tagline —————— 1-line pitch below title */
.book-tagline {
  font-family: var(--font-headline);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  opacity: 1;
}

/* Blurb —————— short editorial description */
.book-blurb {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s var(--ease-premium);
}

.book-blurb.expanded {
  -webkit-line-clamp: unset;
}

/* Standalone books have enough space, don't truncate them */
.other-books-section .book-blurb {
  -webkit-line-clamp: unset;
  display: block;
}

.blurb-toggle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.blurb-toggle:hover { opacity: 0.8; }

/* Real excerpt block */
/* Com uma pagina por idioma, o trecho nao depende mais da classe .active
   que o antigo seletor de idioma alternava. A versao em ingles ficava com
   os cinco trechos invisiveis por causa disso. */
.book-excerpt {
  display: block;
  position: relative;
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--gold);
  border-radius: 0 6px 6px 0;
}
.book-excerpt p {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

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

.book-excerpt cite {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: normal;
  text-align: right;
}

/* Badges —————— inline, compact */
.book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.badge--ku {
  background: rgba(228, 121, 17, 0.12);
  color: var(--amazon-orange);
  border: 1px solid rgba(228, 121, 17, 0.2);
}

.badge--series {
  background: rgba(212, 168, 83, 0.06);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.badge--standalone {
  background: rgba(155, 93, 229, 0.08);
  color: #b87ff5;
  border: 1px solid rgba(155, 93, 229, 0.15);
}


/* ——————
   11 —————— CTA BUTTONS
   —————— */
.book-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    background 0.3s var(--ease-premium),
    filter 0.3s var(--ease-premium);
  text-align: center;
  min-height: 46px;
  position: relative;
  z-index: 10;
}

.cta-btn--primary {
  background: var(--book-accent, var(--sapphire));
  color: #FFFFFF;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--book-accent, var(--sapphire)) 30%, transparent);
}

.cta-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--book-accent, var(--sapphire)) 50%, transparent);
  filter: brightness(1.05);
}

.cta-btn--primary:active { transform: translateY(0); box-shadow: none; }

.cta-btn--secondary {
  background: transparent;
  color: var(--sapphire-light);
  border: 1.5px solid var(--sapphire);
}

.cta-btn--secondary:hover {
  background: var(--sapphire);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(43, 111, 145, 0.3);
}

.cta-btn--secondary:active { transform: scale(0.98); }

/* Language priority: EN users see US button first */
/* Removed reverse flex direction so review buttons match PT order */
/* On wider cards, buttons side by side */
@media (min-width: 420px) {
  .book-ctas {
    flex-direction: row;
  }
  .book-ctas .cta-btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }
}

/* ——————
   11 —————— CAROUSEL RESPONSIVE OVERRIDES
   —————— */
@media (min-width: 1024px) {
  .book-card {
    flex: 0 0 100%;
    max-width: none;
    flex-direction: row;
    align-items: stretch;
  }
  .book-cover-container {
    flex: 0 0 340px;
    padding: 2.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(212, 168, 83, 0.08);
    justify-content: center;
  }
  .book-info {
    flex: 1;
    padding: 2.5rem 3rem;
  }
}


/* ——————
   12 —————— ABOUT SECTION
   —————— */
.about-section {
  padding: var(--section-pad) 0;
  background: var(--bg-surface-alt);
  position: relative;
}

/* Subtle top/bottom border lines */
.about-section::before,
.about-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.12) 30%,
    rgba(212, 168, 83, 0.12) 70%,
    transparent 100%
  );
}
.about-section::before { top: 0; }
.about-section::after { bottom: 0; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
  }
}

.about-decorative { display: none; }

@media (min-width: 768px) {
  .about-decorative {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}
@media (min-width: 1024px) {
  .about-decorative {
    grid-column: 1 / 2;
  }
}

.about-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  color: rgba(212, 168, 83, 0.07);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.about-content {
  max-width: 65ch;
}
@media (min-width: 1024px) {
  .about-content {
    grid-column: 2 / 3;
    margin: 0 auto;
  }
}

.about-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-content p:last-of-type { margin-bottom: 0; }

.about-content em {
  color: var(--gold);
  font-style: italic;
}


/* ——————
   13 —————— AUTHOR SECTION —————— minimal
   —————— */
.author-section {
  padding: 6rem 0 4rem;
  background: var(--bg-deep);
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.author-content {
  max-width: 65ch;
  margin: 0 auto;
}

.author-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.author-bio {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.author-bio:last-child {
  margin-bottom: 0;
}


/* ——————
   14 —————— EMAIL CAPTURE
   —————— */
.email-section {
  padding: var(--section-pad) 0;
  background: var(--bg-surface-alt);
  position: relative;
}

.email-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.1) 30%,
    rgba(212, 168, 83, 0.1) 70%,
    transparent 100%
  );
}

.email-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-surface);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 16px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.email-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.email-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.email-form-row {
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
}

@media (min-width: 480px) {
  .email-form-row { flex-direction: row; }
}

.email-input {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--bg-border);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text-primary);
  outline: none;
  transition:
    border-color 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium);
  min-height: 44px;
}

.email-input::placeholder { color: var(--text-muted); }

.email-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.email-submit {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
}

.form-success {
  padding: 1.25rem;
  text-align: center;
}

.form-success p {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.6;
}

.email-success-text {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--gold);
}


/* ——————
   15 —————— FOOTER
   —————— */
.site-footer {
  background: var(--bg-deep);
  padding-top: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-premium);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom { padding: 1rem 0; }

.footer-legal {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  /* opacity: 0.5 deixava o contraste em 2.04:1 —————— reprovado no WCAG AA.
     Com opacidade cheia sobre --text-muted o contraste —————— 5.21:1.
     Para voltar ao cinza antigo, basta reativar a linha abaixo. */
  opacity: 1;
}


/* ——————
   16 —————— KEYFRAME ANIMATIONS
   —————— */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.3; }
}


/* ——————
   17 —————— RESPONSIVE FINE-TUNING
   —————— */
@media (max-width: 480px) {
  .hero { min-height: 92vh; }
  .hero-headline { font-size: 2rem; }
  .hero-covers { gap: 0.75rem; justify-content: center; padding-left: 1rem; padding-right: 1rem; }
  .hero-cover { height: 120px; }

  .book-cover-container { padding: 1.25rem 1.25rem 0.5rem; }
  .book-info { padding: 0.75rem 1.25rem 1.25rem; }

  .email-card { padding: 1.75rem 1.1rem; }

  /* Stack CTA buttons on small mobile */
  .book-ctas { flex-direction: column !important; }
  .book-ctas .cta-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.25rem;
  }
}

@media (min-width: 1400px) {
  .container { max-width: 1260px; }
}

@media (min-width: 1800px) {
  .hero { min-height: 80vh; }
}


/* ——————
   18 —————— PRINT STYLES
   —————— */
@media print {
  .site-nav,
  .hero-bg,
  .email-section,
  .nav-toggle,
  .cover-toggle,
  .cover-light-effect { display: none !important; }

  body { background: #fff; color: #111; }

  .book-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .cta-btn--primary { background: #111; color: #fff; }
}

/* Review CTA Buttons */
.cta-btn--review {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

[data-theme="dark"] .cta-btn--review {
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.cta-btn--review:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--text-muted);
  box-shadow: none;
  transform: translateY(-2px);
}

.cta-btn--review .stars {
  color: #ffb400;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Adjust flex ratio on desktop so review button is slightly smaller */
@media (min-width: 420px) {
  .book-ctas .cta-btn--review {
    flex: 0.65;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.8rem;
  }
}


/* —————— 
   12 —————— P——————GINAS INDIVIDUAIS DE LIVRO  (.bp-*)
   Bloco isolado —————— s—————— afeta /livros/*, /en/books/*, /en/author/.
   Nenhuma regra aqui altera index.html ou autor.html.
   ——————  */

/* Alternador de idioma em vers——————o link (p——————ginas de idioma ——————nico) */
.global-lang-toggle.bp-lang a {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s var(--ease-premium);
}
.global-lang-toggle.bp-lang a:hover { color: var(--gold); }
.global-lang-toggle.bp-lang a.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Base da p——————gina */
main.bp-main { padding-top: var(--nav-height); }

.bp-breadcrumb {
  padding-top: 1.5rem;
  padding-bottom: 0.25rem;
}
.bp-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.bp-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(26, 26, 26, 0.25);
}
.bp-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.bp-breadcrumb a:hover { color: var(--text-primary); text-decoration: underline; }
.bp-breadcrumb [aria-current] { color: var(--text-primary); }

/* Hero da p——————gina de livro */
.bp-hero {
  padding: 2rem 0 3.5rem;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--book-accent, var(--sapphire)) 12%, transparent) 0%, transparent 55%),
    var(--bg-deep);
}
.bp-hero-inner {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .bp-hero-inner { grid-template-columns: minmax(220px, 320px) 1fr; }
}

.bp-cover {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--book-accent, var(--sapphire)) 6%, var(--bg-surface));
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.bp-cover .book-cover-wrapper:hover { transform: translateY(-4px) scale(1.01); }

.bp-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.bp-h1 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.bp-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.bp-hero .book-badges { margin-bottom: 1.4rem; }
.bp-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Se——————es de conte——————do */
.bp-section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.bp-section--alt { background: var(--bg-surface); }
.bp-narrow { max-width: 760px; }

.bp-h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 0.9rem;
}
.bp-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em; bottom: 0.18em;
  width: 3px;
  border-radius: 2px;
  background: var(--book-accent, var(--gold));
}

.bp-section p,
.bp-authorbox p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.05rem;
}
.bp-section p strong { font-weight: 500; color: var(--text-primary); }
.bp-lead {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem) !important;
  font-weight: 300;
  line-height: 1.65 !important;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem !important;
}

.bp-cols {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .bp-cols { grid-template-columns: 1fr 1fr; }
}

.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.bp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--book-accent, var(--gold));
  opacity: 0.75;
}
.bp-list a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid rgba(26,26,26,0.2); }
.bp-list a:hover { border-bottom-color: var(--text-primary); }
.bp-themes li strong { font-weight: 500; }

/* FAQ */
.bp-faq { border-top: 1px solid rgba(26, 26, 26, 0.12); }
.bp-faq-item { border-bottom: 1px solid rgba(26, 26, 26, 0.12); }
.bp-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.25rem 1.05rem 0;
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-headline);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--book-accent, var(--gold));
  transition: transform 0.25s var(--ease-premium);
}
.bp-faq-item[open] summary::after { content: "\2212"; }
.bp-faq-item summary:hover { color: var(--book-accent, var(--gold)); }
.bp-faq-a { padding: 0 0 1.1rem; }
.bp-faq-a p { margin-bottom: 0; }

/* Trecho */
.bp-section .book-excerpt {
  background: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--book-accent, var(--gold));
}

/* CTA final */
.bp-final { text-align: left; }
.bp-final-sub { margin-bottom: 1.5rem !important; }

.bp-authorbox { background: var(--bg-surface); }
.bp-inline-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--book-accent, var(--gold));
  padding-bottom: 1px;
  transition: opacity 0.2s var(--ease-premium);
}
.bp-inline-link:hover { opacity: 0.65; }

/* Livros relacionados */
.bp-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.bp-rel-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s var(--ease-premium);
}
.bp-rel-card:hover { transform: translateY(-5px); }
.bp-rel-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 6px 10px 22px rgba(0, 0, 0, 0.14);
  mix-blend-mode: multiply;
}
.bp-rel-name {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}
.bp-rel-theme {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hub de livros */
.bp-hub-header { padding: 2.5rem 0 0.5rem; text-align: center; }
.bp-hub-header .bp-h1 { padding-left: 0; }
.bp-hub-header .bp-lead { margin-left: auto; margin-right: auto; }

.bp-hub-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .bp-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .bp-hub-grid { grid-template-columns: 1fr 1fr 1fr; } }

.bp-hub-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.15rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--book-accent, var(--sapphire)) 5%, var(--bg-surface-alt));
  border: 1px solid rgba(26, 26, 26, 0.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}
.bp-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.09);
}
.bp-hub-cover { display: block; }
.bp-hub-info { min-width: 0; }
.bp-hub-theme {
  font-family: var(--font-body);
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 0.4rem !important;
  line-height: 1.4 !important;
}
.bp-hub-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.bp-hub-title a { color: var(--text-primary); text-decoration: none; }
.bp-hub-title a:hover { color: var(--book-accent, var(--gold)); }
.bp-hub-sub {
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  margin-bottom: 0.7rem !important;
}

/* P——————gina do autor em ingl——————s reaproveita .author-section */
.author-section h1.author-name { margin-bottom: 1.5rem; }

/* Link discreto "p——————gina do livro" nos cards da home */
.book-more { margin-top: 0.85rem; }
.book-more a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium);
}
.book-more a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Contraste do bot——————o secund——————rio nas p——————ginas de livro.
   --sapphire-light (#3a8ab0) sobre o fundo claro d—————— 3.5:1; --sapphire d—————— 5.03:1.
   S—————— afeta /livros/* e /en/books/* —————— a home continua id——————ntica. */
.bp-ctas .cta-btn--secondary { color: var(--sapphire); }
.bp-ctas .cta-btn--secondary:hover { color: #fff; }

/* -------------------------------------------
   NEW ENGAGEMENT SECTIONS
------------------------------------------- */

/* Reading Guide */
.reading-guide {
  text-align: center;
  margin-bottom: var(--section-pad);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-headline);
  font-size: 1.1rem;
  line-height: 1.4;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), border-color 0.3s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: var(--gold);
}
.guide-link {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage);
}

/* Reviews Section */
.reviews-section {
  padding: var(--section-pad) 0;
  background-color: var(--bg-surface);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.review-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  background: transparent;
  border-top: 1px solid var(--gold-dim);
}
.reviews-grid .review-card:last-child {
  border-bottom: 1px solid var(--gold-dim);
}
.review-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}
.review-stars {
  color: var(--amazon-orange);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}
.review-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.review-author {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.review-source {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Articles Section */
.articles-section {
  padding: var(--section-pad) 0;
  background-color: var(--bg-deep);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
  height: 100%;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.article-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.article-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}
.article-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage);
  display: inline-block;
  margin-top: auto;
}
.loading-text {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Micro-interactions (Hover on Covers) */
.book-cover-wrapper, .hero-cover-container, .bp-cover-wrapper {
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}
.book-cover-wrapper:hover, .hero-cover-container:hover, .bp-cover-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.book-inline-review {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--book-accent);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.book-inline-review::before {
  content: "\2605 \2605 \2605 \2605 \2605";
  display: block;
  color: #c9a44a;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.inline-review-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.inline-review-author {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ------------------------------------------------------------------
   SELO "GRÁTIS" NA CAPA + AJUSTES DO CARD GRATUITO
------------------------------------------------------------------ */
.cover-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  width: 168px;
  height: 26px;
  line-height: 26px;
  transform: translate(37px, 31px) rotate(45deg);
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1c1608;
  background: linear-gradient(135deg, #f0d693 0%, #d4a853 48%, #b3862c 100%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  transition: filter 0.3s var(--ease-premium);
}

.cover-ribbon span { display: inline; }
.cover-ribbon:hover { filter: brightness(1.09); }

@media (max-width: 480px) {
  .cover-ribbon {
    width: 140px;
    height: 22px;
    line-height: 22px;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    transform: translate(31px, 27px) rotate(45deg);
  }
}

.badge--free {
  background: rgba(212, 168, 83, 0.14);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* citacao de trecho: mesmo bloco, sem as estrelas de review */
.book-inline-review--quote::before { content: none; }

/* Todos os cards seguem o mesmo padrao: sinopse cortada em 2 linhas e
   botao "Ler mais". A excecao anterior, que soltava o texto inteiro nos
   volumes sem trecho literario, quebrava o ritmo visual do carrossel. */

/* ------------------------------------------------------------------
   CARROSSEL HORIZONTAL TAMBEM NO MOBILE
   (com 8 livros, o empilhamento vertical deixava a home quilometrica)
------------------------------------------------------------------ */
@media (max-width: 899px) {
  .books-carousel-container { max-width: 100%; }

  .books-carousel-track {
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem 1.25rem 2.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .books-carousel-track::-webkit-scrollbar { display: none; }

  .books-carousel-track .book-card {
    scroll-snap-align: center;
    flex: 0 0 86vw;
    width: 86vw;
    max-width: 86vw;
  }

  .carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 2.5rem;
  }

  /* No mobile o texto continua resumido, com o botao "Ler mais".
     Escopo restrito ao carrossel da home: as paginas de livro seguem iguais. */
  #books-track .book-excerpt,
  #books-track .book-excerpt.active { display: none !important; }
}

/* Selo "gratis" na miniatura do hero.
   O overflow:hidden (que recorta a faixa) tambem recortaria a sombra da
   imagem interna, deixando essa capa diferente das outras. Por isso a
   sombra sai do <img> e vai para o proprio link: box-shadow do elemento
   nao e cortado pelo overflow dele mesmo. */
.hero-cover-link--free {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-cover-link--free .hero-cover {
  box-shadow: none;
  border-radius: 6px;
}

.hero-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 84px;
  height: 15px;
  line-height: 15px;
  transform: translate(19px, 16px) rotate(45deg);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1c1608;
  background: linear-gradient(135deg, #f0d693 0%, #d4a853 48%, #b3862c 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero-ribbon span { display: inline; }

@media (max-width: 767px) {
  .hero-ribbon {
    width: 70px;
    height: 13px;
    line-height: 13px;
    font-size: 0.44rem;
    letter-spacing: 0.09em;
    transform: translate(15px, 13px) rotate(45deg);
  }
}

/* Os dots eram brancos sobre fundo claro (invisiveis). Com 8 livros
   eles viraram a principal indicacao de posicao no carrossel. */
.carousel-dot {
  background: rgba(26, 26, 26, 0.16);
}
.carousel-dot:hover {
  background: rgba(26, 26, 26, 0.3);
}
.carousel-dot.active {
  background: var(--gold);
}
[data-theme="dark"] .carousel-dot {
  background: rgba(255, 255, 255, 0.18);
}

/* Formulario de captura dentro do card gratuito */
.book-free-form {
  margin-top: auto;
}

.book-free-form .email-input {
  background: var(--bg-surface);
}

.book-free-form .email-note {
  text-align: left;
}

/* Rodape do formulario */
.email-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ————————————————————————————————————————————————
   HERO · MINIATURAS EMPILHADAS 3 / 3 / 2 NO CELULAR
   Ate 767px o flex-wrap decidia a quebra pela largura disponivel, o que
   variava conforme o aparelho e cortava capas em telas estreitas. Com
   grid a quebra fica fixa: 3 + 3 na primeira faixa e 2 na segunda.
   As capas passam a ser dimensionadas pela largura da coluna, entao
   nunca estouram a tela, e ficam maiores do que os 120px anteriores.
   ———————————————————————————————————————————————— */
@media (max-width: 767px) {
  .hero-covers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    justify-items: center;
    align-items: end;
    gap: 1rem 0.65rem;
    width: 100%;
    max-width: min(340px, 100% - 1.5rem);
    margin-inline: auto;
    padding: 1rem 0 1.5rem;
  }

  .hero-covers--standalone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(224px, 100% - 1.5rem);
    margin-top: -0.25rem;
    margin-bottom: 2rem;
    padding-top: 0;
  }

  .hero-cover-link {
    width: 100%;
  }

  /* largura manda; a altura segue o aspecto de cada capa e o
     align-items:end alinha todas pela base */
  .hero-cover {
    height: auto;
    width: 100%;
  }
}

/* ————————————————————————————————————————————————
   PAGINA DO AUTOR · LISTA DE LIVROS
   A versao em ingles ja distribuia autoridade para as paginas de produto;
   a versao PT, que e o mercado principal, nao tinha um unico link.
   ———————————————————————————————————————————————— */
.author-books {
  max-width: 640px;
  margin: 3.5rem auto 0;
}

.author-books-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--text-primary);
  margin: 1.5rem 0 1.25rem;
}

.author-books-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-books-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
}

.author-books-list li:last-child { border-bottom: none; }

.author-books-list a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.25);
  transition: border-color 0.25s var(--ease-premium), color 0.25s var(--ease-premium);
}

.author-books-list a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.author-books-list span {
  color: var(--text-muted);
  font-weight: 300;
}

.author-books-more {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.author-books-more a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.25);
}

.author-books-more a:hover { color: var(--gold-bright); }

/* ————————————————————————————————————————————————
   ALVOS DE TOQUE E ZOOM NO iOS
   Campo de e-mail com fonte < 16px faz o Safari do iPhone dar zoom sozinho
   ao focar, e o leitor perde o enquadramento da pagina no meio do cadastro.
   Links do rodape e do menu tinham 28px de altura, abaixo do minimo de toque.
   ———————————————————————————————————————————————— */
@media (max-width: 767px) {
  .email-input,
  input[type="email"],
  input[type="text"] {
    font-size: 16px;
  }

  .footer-links a,
  .footer-col li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .global-lang-toggle a {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
  }
}

/* Botoes de texto dentro dos cards: a area de toque cresce sem mudar o desenho. */
@media (max-width: 767px) {
  .blurb-toggle {
    min-height: 44px;
    padding: 0.6rem 0;
  }

  .book-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* O ponto continua com 8px na tela; o padding transparente leva a area
     clicavel para 24px sem alterar o visual. */
  .carousel-dot {
    padding: 10px;
    width: 28px;
    height: 28px;
    background-clip: content-box;
  }
}

@media (max-width: 767px) {
  .author-books-list a,
  .author-books-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ————————————————————————————————————————————————
   O QUE VEM NO CAPITULO · card do e-book gratuito
   Sem citacao de leitor (nao existe leitor num pre-lancamento), o card ficava
   com um vao entre os selos e o formulario, que se alinha ao rodape junto com
   os botoes dos outros cards. O bloco ocupa esse espaco com informacao util.
   ———————————————————————————————————————————————— */
.book-includes {
  margin: 1.4rem 0 0.5rem;
}

.book-includes-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

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

.book-includes li {
  position: relative;
  padding: 0 0 0 1.4rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.book-includes li:last-child { margin-bottom: 0; }

.book-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--book-accent, var(--gold));
  opacity: 0.55;
}

/* o rotulo de cada item (O pórtico, O prefácio…) puxa o olho na lista */
.book-includes li strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ————————————————————————————————————————————————
   ROTULOS DAS FILEIRAS DO TOPO
   Uma linha separava as duas fileiras, mas nao dizia por que estavam
   separadas. O nome faz as duas coisas: separa e explica. Mesmo tratamento
   do sobretitulo do hero, para nao introduzir elemento novo.
   Os termos sao os mesmos dos badges dos cards.
   ———————————————————————————————————————————————— */
/* Os rotulos ficam so para leitor de tela: o paragrafo de abertura ja conta
   ao leitor que sao 5 livros mais um bonus e 2 obras independentes, entao
   repeti-los na tela era redundancia. O aria-labelledby das duas fileiras
   aponta para eles, por isso continuam no HTML.
   Separacao das fileiras: espaco em branco, e mais nada. */
.hero-row-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 0.9rem;
}

.hero-covers--standalone {
  margin-top: 2.5rem;
}

@media (max-width: 767px) {
  .hero-covers--standalone { margin-top: 1.75rem; }
}
