/* ══════════════════════════════════════════
   PATMOS EDITORA — styles.css
══════════════════════════════════════════ */

:root {
  /* ── TEMA CLARO (padrão do site) ── */
  --bg:           #faf6ef;
  --bg-rgb:       250,246,239;
  --bg-light:     #f2e9d8;
  --bg-card:      #fffdf9;
  --bg-card2:     #f5ecd9;
  --gold:         #a4720a;
  --gold-rgb:     164,114,10;
  --gold-light:   #c98f0f;
  --gold-dim:     #7a5507;
  --text-primary: #2a1a10;
  --text-secondary:#4d3a29;
  --text-muted:   #8a7562;
  --border:       rgba(164,114,10,0.22);
  --border-subtle:rgba(42,26,16,0.09);
  --tint-rgb:     0,0,0;
  --radius:       6px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
}

/* ── TEMA ESCURO (opcional, via botão) ── */
html[data-theme="dark"] {
  --bg:           #1f130c;
  --bg-rgb:       31,19,12;
  --bg-light:     #2a1a10;
  --bg-card:      #2e1d12;
  --bg-card2:     #341f13;
  --gold:         #d89e00;
  --gold-rgb:     216,158,0;
  --gold-light:   #f0bc2e;
  --gold-dim:     #a07800;
  --text-primary: #f5ede4;
  --text-secondary:#dcd0c3;
  --text-muted:   #9a8a7a;
  --border:       rgba(216,158,0,0.15);
  --border-subtle:rgba(220,208,195,0.08);
  --tint-rgb:     255,255,255;
}

/* transição suave ao alternar entre claro/escuro */
body, nav, #book-dialog, .testimonial-card, .book-card-full,
.collection-hero, .coll-icon-wrap, .destaque-cover, footer, .page-hero,
.filter-bar, .colecao-intro, .theme-toggle, .mobile-menu {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: .5;
}

/* ══════════════════════════════════════════
   UTILS
══════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.gold { color: var(--gold); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.section-label::before {
  content: ''; width: 28px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700; color: var(--text-primary);
  line-height: 1.15; margin-bottom: 18px;
}

.section-desc {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 540px; line-height: 1.85;
}

section { padding: 104px 0; }

/* ── STACKING: todas as seções cobrem o hero sticky ──
   O #hero tem z-index:1. Qualquer seção com z-index
   maior desce "por cima" dele ao fazer scroll.
   (Reforçado também em hero.css para garantia.)      */
#sobre,
#colecoes,
#destaques,
#testemunhos,
#cta-final,
footer {
  position: relative;
  z-index: 10;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .28s var(--ease);
}
.btn-gold {
  background: var(--gold); color: var(--bg);
  padding: 14px 34px; border-radius: 2px;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--gold-rgb),.28);
}
.btn-outline {
  background: transparent; color: var(--gold);
  padding: 13px 32px; border-radius: 2px;
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(var(--gold-rgb),.1);
  transform: translateY(-2px);
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 9px 20px !important; font-size: 11.5px !important; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800; padding: 22px 0;
  transition: all .35s var(--ease);
}
nav.scrolled {
  background: rgba(var(--bg-rgb),.96);
  backdrop-filter: blur(16px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  color: var(--text-primary); text-decoration: none;
  letter-spacing: .02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 12.5px;
  font-weight: 400; letter-spacing: .08em;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--bg) !important;
  padding: 9px 22px; border-radius: 2px; font-weight: 500 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text-primary); transition: all .3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 700;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  color: var(--text-primary); text-decoration: none;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   THEME TOGGLE (claro / escuro)
══════════════════════════════════════════ */
.nav-right { display: flex; align-items: center; gap: 22px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-primary);
  cursor: pointer; transition: all .25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(var(--gold-rgb),.08);
}
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"]  .theme-toggle .icon-sun  { display: block; }

/* ══════════════════════════════════════════
   HERO (index)
   → Todos os estilos da hero estão em
     css/hero.css (carregado após este arquivo).
     Apenas @keyframes globais ficam aqui.
══════════════════════════════════════════ */
@keyframes lineGrow { to { transform: scaleY(1); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   SOBRE
══════════════════════════════════════════ */
#sobre { background: var(--bg-light); }
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.sobre-text p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.85; }
.sobre-quote {
  border-left: 2px solid var(--gold);
  padding: 20px 0 20px 28px; margin: 36px 0;
}
.sobre-quote blockquote {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-style: italic; color: var(--text-primary); line-height: 1.5;
}
.sobre-visual {
  display: flex; align-items: center; justify-content: center;
}
.sobre-emblem {
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.sobre-emblem::before {
  content: ''; position: absolute; inset: 12px;
  border-radius: 50%; border: 1px solid rgba(var(--gold-rgb),.08);
}
.sobre-emblem-inner { text-align: center; padding: 24px; }
.emblem-year {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.emblem-label {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 10px;
}
.emblem-divider { width: 40px; height: 1px; background: var(--gold); margin: 20px auto; }
.emblem-tag {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-style: italic; color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   COLEÇÕES (index — tabs preview)
══════════════════════════════════════════ */
.colecoes-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 20px;
}
.collection-tabs {
  display: flex; gap: 4px;
  background: rgba(var(--tint-rgb),.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 5px; flex-wrap: wrap;
}
.tab-btn {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .08em; padding: 9px 20px; border-radius: 3px;
  border: none; cursor: pointer; background: transparent;
  color: var(--text-muted); transition: all .25s;
}
.tab-btn.active { background: var(--gold); color: var(--bg); }
.tab-btn:hover:not(.active) { color: var(--text-primary); background: rgba(var(--gold-rgb),.08); }

.collection-panel { display: none; }
.collection-panel.active { display: block; }

.collection-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-bottom: 48px; padding: 44px;
  background: var(--bg-card); border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.coll-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 10px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.coll-badge::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.coll-title {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.2;
}
.coll-desc { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.coll-meta { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--gold);
}
.meta-lbl {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .08em; color: var(--text-muted);
}
.coll-visual {
  display: flex; justify-content: center; align-items: center; min-height: 220px;
}
.coll-icon-wrap {
  width: 160px; height: 210px;
  background: linear-gradient(135deg, var(--bg-card2), rgba(var(--gold-rgb),.06));
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  position: relative; overflow: hidden;
  font-size: 3rem;
}
.coll-icon-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.coll-icon-label {
  font-family: 'Playfair Display', serif; font-size: .9rem;
  color: var(--text-muted); text-align: center; padding: 0 16px; font-style: italic;
}
.coll-link-btn {
  margin-top: 24px; display: inline-block;
}

/* Books grid (index preview) */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}
.book-card { position: relative; cursor: pointer; border-radius: 4px; overflow: hidden; transition: transform .35s var(--ease); }
.book-card:hover { transform: translateY(-8px); }
.book-cover {
  width: 100%; aspect-ratio: 2/3;
  background: var(--bg-card);
  position: relative; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; text-align: center; gap: 10px;
  position: absolute; inset: 0;
}
.book-cover-placeholder .icon { font-size: 2.5rem; opacity: .6; }
.book-cover-placeholder .pl-title {
  font-family: 'Playfair Display', serif; font-size: .88rem;
  color: var(--text-primary); font-weight: 600; line-height: 1.3;
}
.book-cover-placeholder .pl-sub {
  font-size: .75rem; color: var(--text-muted); font-style: italic;
}
.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.45), transparent);
}
.book-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.4) 50%, transparent 100%);
  opacity: 0; transition: opacity .35s ease;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding: 16px;
}
.book-card:hover .book-overlay { opacity: 1; }
.book-info { margin-top: 12px; }
.book-title-card {
  font-family: 'Playfair Display', serif; font-size: .95rem;
  color: var(--text-primary); font-weight: 600;
  line-height: 1.3; margin-bottom: 4px;
}
.book-author-card {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-muted); letter-spacing: .04em;
}

/* placeholder bg colors */
.cover-bg-primeira   { background: linear-gradient(145deg, #2d1e0e, #1a2d1a); }
.cover-bg-macuco     { background: linear-gradient(145deg, #0d2010, #1a3015); }
.cover-bg-infantil       { background: linear-gradient(145deg, #300d0d, #1f130c); }
.cover-bg-kyrie      { background: linear-gradient(145deg, #1a1030, #0d1520); }
.cover-bg-top5       { background: linear-gradient(145deg, #300d0d, #1f130c); }
.cover-bg-avulso     { background: linear-gradient(145deg, #2a1a0a, #1a1208); }

/* ══════════════════════════════════════════
   DESTAQUES
══════════════════════════════════════════ */
#destaques { background: var(--bg-light); }
.destaques-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 56px; align-items: center; margin-top: 52px;
}
.destaque-cover-wrap { position: relative; }
.destaque-cover {
  width: 280px; height: 380px;
  background: linear-gradient(145deg, #2d1020, #1a0d15);
  border-radius: 6px; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  position: relative; overflow: hidden; margin: 0 auto;
  box-shadow: 20px 20px 60px rgba(0,0,0,.5), -4px -4px 20px rgba(var(--gold-rgb),.06);
  transition: transform .4s var(--ease);
}
.destaque-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.destaque-cover:hover { transform: perspective(900px) rotateY(-4deg) translateY(-4px); }
.destaque-cover::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,.5), transparent); z-index: 1;
}
.destaque-cover-inner {
  text-align: center; padding: 24px; z-index: 1;
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.destaque-cover-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 14px; }
.destaque-cover-title {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--text-primary); font-weight: 700; font-style: italic;
}
.destaque-cover-sub { font-size: .9rem; color: var(--text-muted); margin-top: 8px; }
.destaque-cover-deco {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, rgba(var(--gold-rgb),.08), transparent);
}
.destaque-badge {
  position: absolute; top: -16px; right: -16px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--bg); text-align: center; line-height: 1.2;
  box-shadow: 0 8px 24px rgba(var(--gold-rgb),.4);
}
.destaque-tag {
  font-family: 'Inter', sans-serif; font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.destaque-title {
  font-family: 'Playfair Display', serif; font-size: 2.5rem;
  font-weight: 700; color: var(--text-primary); margin-bottom: 8px; font-style: italic;
}
.destaque-desc { font-size: 1.1rem; line-height: 1.85; margin-bottom: 28px; }
.destaque-detail { display: flex; gap: 28px; margin-bottom: 34px; flex-wrap: wrap; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-val { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-primary); font-weight: 600; }
.detail-key { font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: .08em; color: var(--text-muted); }

/* ══════════════════════════════════════════
   TESTEMUNHOS
══════════════════════════════════════════ */
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-header .section-label { justify-content: center; }
.testimonials-header .section-label::before { display: none; }
.testimonials-header .section-label::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 36px 32px; position: relative;
  transition: border-color .3s, transform .3s;
}
.testimonial-card:hover { border-color: rgba(var(--gold-rgb),.3); transform: translateY(-4px); }
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 20px; right: 24px;
  font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700;
  color: rgba(var(--gold-rgb),.12); line-height: 1;
}
.t-stars { display: flex; gap: 3px; margin-bottom: 20px; color: var(--gold); font-size: 14px; }
.t-text {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--text-secondary); font-style: italic; margin-bottom: 24px;
}
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), rgba(var(--gold-rgb),.3));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; color: var(--bg); flex-shrink: 0;
}
.t-name { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-primary); }
.t-role { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════ */
#cta-final {
  position: relative; overflow: hidden;
  background: var(--bg-light); text-align: center;
}
#cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(var(--gold-rgb),.06) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-deco {
  font-family: 'Playfair Display', serif; font-size: 8rem; font-weight: 900;
  color: rgba(var(--gold-rgb),.04); line-height: 1;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: -.02em;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700;
  color: var(--text-primary); line-height: 1.2; margin-bottom: 24px;
}
.cta-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto 44px; line-height: 1.8;
}
.cta-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { border-top: 1px solid var(--border-subtle); padding: 52px 0 36px; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 52px; margin-bottom: 52px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col-title {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .95rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.footer-copy { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--text-muted); text-decoration: none; transition: color .2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   PAGE: COLEÇÕES
══════════════════════════════════════════ */
.page-hero {
  padding: 160px 0 80px;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(var(--gold-rgb),.05) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  color: var(--text-primary); line-height: 1.1;
}
.page-hero-title em { color: var(--gold); font-style: italic; }
.page-hero-sub { font-size: 1.1rem; max-width: 480px; margin-top: 16px; line-height: 1.8; }
.page-hero-breadcrumb {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px;
}
.page-hero-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero-breadcrumb a:hover { text-decoration: underline; }

/* Filter bar */
.filter-bar {
  position: sticky; top: 54px; z-index: 600;
  background: rgba(var(--bg-rgb),.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.filter-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.filter-label {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); flex-shrink: 0;
}
.filter-btn {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .06em; padding: 7px 18px; border-radius: 3px;
  border: 1px solid var(--border-subtle); cursor: pointer;
  background: transparent; color: var(--text-muted);
  transition: all .22s; white-space: nowrap;
}
.filter-btn.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.filter-btn:hover:not(.active) { color: var(--text-primary); border-color: rgba(var(--gold-rgb),.3); }
.filter-count {
  margin-left: auto; font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--text-muted);
}

/* Collection sections */
.colecao-section { padding: 80px 0 40px; }
.colecao-section + .colecao-section { border-top: 1px solid var(--border-subtle); }
.colecao-header { margin-bottom: 52px; }
.colecao-header-inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 28px; margin-bottom: 28px;
}
.colecao-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700;
  color: var(--text-primary); line-height: 1.15;
}
.colecao-volume-count {
  font-family: 'Inter', sans-serif; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 2px;
  white-space: nowrap; margin-top: 8px;
}
.colecao-intro {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text-secondary); max-width: 800px;
  padding: 28px; background: var(--bg-card);
  border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0;
}

/* Book cards (full page) */
.books-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}
.book-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
}
.book-card-full:hover {
  border-color: rgba(var(--gold-rgb),.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.book-card-full .cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* ALTERADO de 2/3 para 1/1 (Quadrado) */
  position: relative;
  overflow: hidden;
  background: var(--bg-card2); /* Fundo padrão caso não tenha imagem */
}
.book-card-full .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a imagem preencha sem distorcer, cortando as bordas se necessário */
  display: block;
  transition: transform 0.4s ease;
}
.book-card-full .cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.book-card-full:hover .cover-wrap img { transform: scale(1.04); }

/* placeholder cover */
.cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; text-align: center; gap: 10px;
  position: absolute; inset: 0;
}
.cover-placeholder .vol-badge {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); padding: 3px 10px;
  border: 1px solid rgba(var(--gold-rgb),.3); border-radius: 2px;
}
.cover-placeholder .pl-icon { font-size: 2.4rem; opacity: .55; }
.cover-placeholder .pl-t {
  font-family: 'Playfair Display', serif;
  font-size: .88rem; color: var(--text-primary);
  font-weight: 600; line-height: 1.3;
}
.cover-placeholder .pl-author {
  font-size: .75rem; color: var(--text-muted); font-style: italic;
}
.cover-placeholder .frame {
  position: absolute; inset: 8px;
  border: 1px solid rgba(var(--gold-rgb),.1); border-radius: 2px;
  pointer-events: none;
}
.spine-shadow {
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.4), transparent);
  z-index: 2;
}

.book-card-body { padding: 18px 16px 20px; }
.book-card-vol {
  font-family: 'Inter', sans-serif; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.book-card-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; color: var(--text-primary);
  line-height: 1.3; margin-bottom: 6px;
}
.book-card-meta {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-muted); line-height: 1.5; margin-bottom: 12px;
}
.book-card-desc {
  font-size: .9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card-isbn {
  font-family: 'Inter', sans-serif; font-size: 10px;
  color: var(--text-muted); letter-spacing: .04em;
  padding-top: 12px; border-top: 1px solid var(--border-subtle);
}

/* hidden books */
.book-card-full.hidden { display: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-visual { order: -1; }
  .sobre-emblem { width: 260px; height: 260px; }
  .collection-hero { grid-template-columns: 1fr; gap: 32px; }
  .coll-visual { order: -1; }
  .destaques-grid { grid-template-columns: 1fr; gap: 40px; }
  .destaque-cover { width: 220px; height: 300px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .colecao-header-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  /* hero-title responsive: see hero.css */
  .books-grid, .books-grid-full { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-deco { font-size: 4rem; }
  .collection-tabs { gap: 3px; }
  .tab-btn { padding: 7px 12px; font-size: 11px; }
  .sobre-emblem { width: 220px; height: 220px; }
  .page-hero { padding: 130px 0 60px; }
  .filter-inner { gap: 8px; }
}

/* ==========================================================================
   ESTILOS DO MODAL (DIALOG) - ADICIONAR AO FINAL DO ARQUIVO
   ========================================================================== */

/* Impede o scroll do body quando o modal está aberto (via JS) */
body.dialog-open {
  overflow: hidden;
}

#book-dialog {
  border: none;
  border-radius: 8px;
  background: var(--bg-card); /* Mesma cor dos cards */
  color: var(--text-secondary);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Estado inicial para animação */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  overflow: hidden; /* Para garantir que o border-radius funcione com o flex */
}

/* Quando o dialog está aberto */
#book-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  display: flex; /* Usamos flex para dividir esquerda/direita */
}

/* Estilização do fundo escuro (backdrop) */
#book-dialog::backdrop {
  background: rgba(10, 5, 2, 0.85); /* Tom marrom bem escuro */
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#book-dialog[open]::backdrop {
  opacity: 1;
}

/* Botão Fechar */
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.dialog-close:hover {
  background: rgba(var(--gold-rgb),0.1);
  color: var(--gold);
}

/* Layout Interno do Modal */
.dialog-content {
  display: flex;
  width: 100%;
  flex-direction: row; /* Imagem esquerda, texto direita */
}

/* Lado Esquerdo - Imagem */
.dialog-left {
  flex: 0 0 40%; /* Largura fixa de 40% para a imagem */
  background: var(--bg-card2);
  position: relative;
}

.dialog-left img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantém a proporção da imagem no modal */
  display: block;
}

/* Sombra na lombada dentro do modal */
.dialog-left .spine-shadow {
  width: 15px; /* Um pouco mais grossa no modal */
}

/* Lado Direito - Textos */
.dialog-right {
  flex: 1;
  padding: 60px 40px 40px; /* Padding generoso, top maior por causa do botão fechar */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Permite scroll se o texto for muito grande em telas pequenas */
}

/* Estilos dos textos dentro do modal (seguindo o padrão da página) */
.dialog-vol {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.dialog-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.dialog-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.dialog-isbn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 30px;
  margin-top: auto; /* Empurra para o final */
}

/* Botão Compre Agora (provisório) */
.btn-buy {
  width: 100%;
  justify-content: center; /* Centraliza texto e ícone */
}

/* Responsividade do Modal */
@media (max-width: 768px) {
  .dialog-content {
    flex-direction: column; /* Empilha em telas pequenas */
  }
  .dialog-left {
    flex: 0 0 200px; /* Altura fixa para imagem no mobile */
  }
  .dialog-right {
    padding: 30px 20px;
  }
  .dialog-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   SISTEMA DE MODAL (DIALOG) - FINAL E CORRIGIDO
   ========================================================================== */

/* Bloqueio de scroll do fundo */
body.dialog-open { overflow: hidden; }

#book-dialog {
  border: none;
  padding: 0;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  max-width: 900px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  /* Animação de entrada */
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.96);
  transition: all 0.3s var(--ease);

  /* Centralização fixa */
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
}

#book-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  display: flex;
}

#book-dialog::backdrop {
  background: rgba(15, 10, 5, 0.9);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--tint-rgb),0.05);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.2s;
}
.dialog-close:hover { background: var(--gold); color: #000; }

/* Estrutura Interna */
.dialog-content {
  display: flex;
  width: 100%;
  min-height: 500px; /* Garante altura mínima para o layout não "pular" */
}

/* Lado Esquerdo: Imagem */
.dialog-left {
  flex: 0 0 400px; /* Largura fixa para manter consistência */
  background: var(--bg-card2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-left img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cobre o container */
  display: block;
}

/* Se for Primeira Leitura (is-sqrt), ajustamos como a imagem se comporta */
#book-dialog.is-sqrt .dialog-left img {
  aspect-ratio: 1 / 1;
  object-fit: contain; /* Não corta a arte quadrada */
  padding: 20px;
}

/* Se for as demais (4:3), garantimos a proporção */
#book-dialog:not(.is-sqrt) .dialog-left img {
  aspect-ratio: 4 / 3;
}

.dialog-left .spine-shadow {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

/* Lado Direito: Texto */
.dialog-right {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dialog-vol { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.dialog-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 15px; line-height: 1.1; }
.dialog-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 15px; }
.dialog-desc { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-bottom: 30px; }
.dialog-isbn { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; }

/* Botão de Compra */
.btn-buy {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 15px 30px;
}

/* Responsividade Mobile */
@media (max-width: 850px) {
  .dialog-content { flex-direction: column; }
  .dialog-left { flex: 0 0 300px; width: 100%; }
  .dialog-right { padding: 30px 20px; }
  #book-dialog { top: 0; left: 0; transform: none; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  #book-dialog[open] { transform: none; }
}

/* ══════════════════════════════════════════
   DESTAQUES — SLIDER
══════════════════════════════════════════ */

/* Slides: só o .active aparece */
.destaque-slide {
  display: none;
}
.destaque-slide.active {
  display: block;
  animation: slideReveal .45s ease forwards;
}
@keyframes slideReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Controles */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 52px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb),.07);
  transform: scale(1.08);
}
.slider-btn:active { transform: scale(.96); }

/* Dots */
.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .25s var(--ease);
}
.slider-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.slider-dot:hover:not(.active) {
  background: var(--gold-dim);
}