/* =========================================================
   EXPLORE — design tokens
   Editora educacional cristã — duas coleções:
   Material Didático (navy/gold) · Educação para a Vida (green)
   ========================================================= */
:root {
  --navy-deep:  #091B2E;
  --navy:       #0E2A47;
  --navy-soft:  #1C3A5C;
  --gold:       #C8A14B;
  --gold-soft:  #E7D1A0;
  --green:      #2E6B4E;
  --green-soft: #BFE3CB;
  --paper:      #FAF6EC;
  --paper-dim:  #F1EADA;
  --card:       #FFFFFF;
  --ink:        #1B2430;
  --ink-soft:   #4B5664;
  --ink-faint:  #7B8696;
  --line:       rgba(14, 42, 71, 0.14);
  --radius-s:   6px;
  --radius-m:   14px;
  --radius-l:   26px;
  --shadow-card: 0 18px 40px -20px rgba(9, 27, 46, 0.35);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0B1826;
    --paper-dim:  #0F2030;
    --card:       #122235;
    --ink:        #F2EFE6;
    --ink-soft:   #C7CFD9;
    --ink-faint:  #8C9AA8;
    --line:       rgba(231, 209, 160, 0.16);
    --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper:      #0B1826;
  --paper-dim:  #0F2030;
  --card:       #122235;
  --ink:        #F2EFE6;
  --ink-soft:   #C7CFD9;
  --ink-faint:  #8C9AA8;
  --line:       rgba(231, 209, 160, 0.16);
  --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .display { color: var(--gold-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3,
  :root:not([data-theme="light"]) .display { color: var(--gold-soft); }
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
:root[data-theme="dark"] .logo,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: var(--gold-soft); } }
.logo .globe { font-size: 1.1rem; }
.nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 0.96rem;
}
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus-visible { color: var(--navy); border-color: var(--gold); }
:root[data-theme="dark"] .nav a:hover { color: var(--gold-soft); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero .eyebrow { margin-bottom: 18px; display: inline-block; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
:root[data-theme="dark"] .hero h1 em { color: var(--green-soft); }
.hero p.lede {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #FAF6EC; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(14,42,71,0.55); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
:root[data-theme="dark"] .btn-ghost { color: var(--gold-soft); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(200,161,75,0.6); }

/* ---------- Signature element: estante de coleções (book-spine shelf) ---------- */
.shelf {
  display: flex;
  align-items: stretch;
  height: 340px;
  gap: 10px;
  padding: 18px 16px 0;
  background: linear-gradient(180deg, transparent 0%, var(--paper-dim) 88%);
  border-radius: var(--radius-m);
}
.spine {
  flex: 1;
  border-radius: 8px 8px 3px 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  position: relative;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 18px -12px rgba(9,27,46,0.5);
  transition: transform 0.2s ease, flex-grow 0.25s ease;
}
.spine:hover, .spine:focus-visible { transform: translateY(-10px); }
.spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.94);
  white-space: nowrap;
}
.spine.s-navy  { background: linear-gradient(180deg, var(--navy-soft), var(--navy)); }
.spine.s-gold  { background: linear-gradient(180deg, #D9BA72, var(--gold)); }
.spine.s-gold span { color: var(--navy-deep); }
.spine.s-green { background: linear-gradient(180deg, #3F8565, var(--green)); }
.spine.s-navy2 { background: linear-gradient(180deg, #13395C, var(--navy-deep)); }
.spine.s-green2{ background: linear-gradient(180deg, #2B5C45, #1E4433); }
.shelf-caption { text-align: center; font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- Section rhythm ---------- */
section { padding: 88px 0; }
.section-dim { background: var(--paper-dim); }
.section-navy { background: var(--navy); color: #E9EEF3; }
.section-navy h2, .section-navy h3 { color: var(--gold-soft); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.section-navy .section-head p { color: #C7D3DD; }

/* ---------- Carta aos pais ---------- */
.letter {
  max-width: 74ch;
  margin: 0 auto;
}
.letter .salut {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
}
:root[data-theme="dark"] .letter .salut { color: var(--gold-soft); }
.letter p { margin: 0 0 20px; font-size: 1.08rem; color: var(--ink-soft); }
.letter blockquote {
  margin: 36px 0;
  padding: 0 0 0 26px;
  border-left: 3px solid var(--gold);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
}
:root[data-theme="dark"] .letter blockquote { color: var(--gold-soft); }
.letter .sign-off {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 36px;
}
:root[data-theme="dark"] .letter .sign-off { color: var(--gold-soft); }

/* ---------- Coleções ---------- */
.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .collections { grid-template-columns: 1fr; } }
.collection-card {
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 38px;
  box-shadow: var(--shadow-card);
  border-top: 6px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.collection-card.life { border-top-color: var(--green); }
.collection-card .eyebrow.life { color: var(--green); }
.collection-card h3 { font-size: 1.5rem; }
.collection-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.collection-card li {
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.collection-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
}
.collection-card.life li::before { background: var(--green); }
.collection-card .tag {
  display: inline-block;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
}

/* ---------- Lançamento / Geografia highlight ---------- */
.launch {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 48px;
}
@media (max-width: 880px) { .launch { grid-template-columns: 1fr; padding: 32px; } }
.launch-cover {
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-family: "Fraunces", serif;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.launch-cover img { width: 100%; height: 100%; object-fit: cover; }
.launch h2 { color: var(--navy); }
.launch > div > p { color: var(--ink-soft); }
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Sales page (geografia.html) specific ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .product-hero { grid-template-columns: 1fr; } }
.product-cover {
  aspect-ratio: 3/4;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.price-box {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.price-value { font-family: "Fraunces", serif; font-size: 2.1rem; color: var(--navy); }
:root[data-theme="dark"] .price-value { color: var(--gold-soft); }
.price-note { color: var(--ink-faint); font-size: 0.9rem; margin-top: 4px; }
.price-box .btn { width: 100%; justify-content: center; margin-top: 18px; }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.benefit .icon { font-size: 1.5rem; }
.benefit h4 { font-family: "Fraunces", serif; color: var(--navy); margin: 10px 0 8px; font-size: 1.1rem; }
:root[data-theme="dark"] .benefit h4 { color: var(--gold-soft); }
.benefit p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:root[data-theme="dark"] .faq-item summary { color: var(--gold-soft); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 -10px 30px -16px rgba(0,0,0,0.5);
}
.sticky-cta.show { display: flex; }
.sticky-cta strong { font-family: "Fraunces", serif; font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #C7D3DD;
  padding: 56px 0 30px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tagline { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--gold-soft); max-width: 36ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.footer-links a { display: block; color: #C7D3DD; text-decoration: none; margin-bottom: 8px; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #8C9AA8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Hero load-in (one-time, safe if JS never runs) ---------- */
.hero-fade { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-fade { opacity: 1; transform: none; } }

.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #163826;
}
