/* ═══════════════════════════════════════════════════════════════
   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:        #0c0e1a;
  --bg-surface:     #141627;
  --bg-surface-alt: #10122b;
  --bg-border:      #1c1f35;
  --bg-elevated:    #181b30;

  /* Accent */
  --gold:           #d4a853;
  --gold-dim:       rgba(212, 168, 83, 0.2);
  --gold-glow:      rgba(212, 168, 83, 0.08);
  --gold-bright:    #f5ca75;
  --gold-dark:      #c49340;
  --sage:           #6b8f71;

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

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #cfd4e6;
  --text-muted:     #9ea3b8;

  /* Typography */
  --font-headline:  'Cormorant Garamond', Georgia, 'Times New Roman', 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);
}

/* Gold thread — signature decorative separator */
.gold-thread {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.15) 15%,
    rgba(212, 168, 83, 0.4) 50%,
    rgba(212, 168, 83, 0.15) 85%,
    transparent 100%
  );
  margin: 1.5rem auto;
  max-width: 280px;
  position: relative;
}
/* Double-thread effect for premium feel */
.gold-thread::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.1) 30%,
    rgba(212, 168, 83, 0.2) 50%,
    rgba(212, 168, 83, 0.1) 70%,
    transparent 100%
  );
}
.gold-thread--narrow { max-width: 100px; }
.gold-thread--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
   ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-premium),
    transform 0.7s var(--ease-premium);
}
.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 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 button:hover {
  color: var(--gold);
}
.global-lang-toggle button.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ─────────────────────────────────────────
   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: transparent;
  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(12, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-dim);
}

.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(12, 14, 26, 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: 1px solid var(--gold-dim);
  }

  .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: linear-gradient(
    135deg,
    #0c0e1a 0%,
    #111430 25%,
    #0d1025 50%,
    #141830 75%,
    #0c0e1a 100%
  );
  background-size: 400% 400%;
  z-index: 0;
}

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

/* Subtle radial glow behind content */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.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;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 1rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* subtle shadow on right edge to indicate scroll */
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
@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-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;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1rem 1rem 3rem; /* Extra bottom padding for shadows */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.books-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 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: 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 {
  scroll-snap-align: center;
  flex: 0 0 88%;
  max-width: 420px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15);
  transition:
    border-color 0.5s var(--ease-premium),
    box-shadow 0.5s var(--ease-premium),
    transform 0.5s var(--ease-premium);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Accent glow on hover — uses per-book color */
.book-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    var(--book-accent, var(--gold)) 0%,
    transparent 50%,
    var(--book-accent, var(--gold)) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
  z-index: -1;
}

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

.book-card:hover {
  border-color: color-mix(in srgb, var(--book-accent, var(--gold)) 40%, transparent);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px color-mix(in srgb, var(--book-accent, var(--gold)) 20%, transparent);
  transform: translateY(-6px);
}


/* ─────────────────────────────────────────
   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%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0c18; /* Darker than card — fills gaps from contain */
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
  /* Realistic book shadow */
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.4),
    8px 8px 24px rgba(0, 0, 0, 0.2),
    -1px 0 3px rgba(0, 0, 0, 0.15);
}

/* 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 — object-fit: contain, NEVER crop */
.book-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Full cover, no crop */
  display: block;
  opacity: 1; /* Always 1, handled by data-lang display */
  border-radius: 6px;
}

/* 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: 300;
  font-size: 0.95rem;
  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;
}

.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 */
.book-excerpt {
  display: none;
  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.active {
  display: block;
}

.book-excerpt::before {
  content: '“';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-headline);
  font-size: 3rem;
  color: rgba(212, 168, 83, 0.15);
  line-height: 1;
}

.book-excerpt p {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.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: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    background 0.3s var(--ease-premium),
    color 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium);
  text-align: center;
  min-height: 44px;
}

.cta-btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-deep);
  font-weight: 600;
}

.cta-btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.35);
}

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

.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 */
.lang-en .book-ctas {
  flex-direction: column-reverse;
}

/* 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;
  }
  .lang-en .book-ctas {
    flex-direction: row-reverse;
  }
}

/* ─────────────────────────────────────────
   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;
}


/* ─────────────────────────────────────────
   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.5rem; flex-wrap: wrap; }
  .hero-cover { height: 95px; }

  .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; }
}
