/* Catalogue page (/livros/): one large showcase per book, each in the book's
   own colours and typography. */

.catalog-page {
  position: relative;
  background:
    radial-gradient(70vmax 50vmax at 0% 0%, rgba(211, 18, 26, 0.13), transparent 60%),
    radial-gradient(70vmax 50vmax at 100% 30%, rgba(34, 168, 170, 0.1), transparent 60%),
    var(--ink);
  min-height: 100vh;
}

/* Header */

.catalog-top { border-bottom: 1px solid rgba(239, 233, 220, 0.08); }

.catalog-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease);
}

.catalog-back:hover { color: var(--gold-hi); }

.catalog-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Intro */

.catalog-hero {
  text-align: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.catalog-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.catalog-hero h1,
.catalog-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.catalog-lead {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--bone-dim);
  font-size: 1.05rem;
}

.catalog-head { text-align: center; margin-bottom: 36px; }
.catalog-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.catalog-head p:last-child { color: var(--bone-dim); margin-top: 10px; }

/* Showcases */

.catalog-books {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  padding-bottom: 80px;
}

.showcase {
  --on-accent: #fff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(var(--accent-rgb), 0.17), transparent 58%),
    #0e0e0d;
  overflow: hidden;
}

.showcase:nth-child(even) { grid-template-columns: 1fr minmax(220px, 340px); }
.showcase:nth-child(even) .showcase-cover { order: 2; }

/* Cover */

.showcase-cover {
  display: block;
  width: 100%;
  justify-self: center;
  border-radius: 6px;
  box-shadow:
    0 44px 64px -28px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(var(--accent-rgb), 0.6);
  transform: perspective(1000px) rotateY(-7deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.showcase:nth-child(even) .showcase-cover { transform: perspective(1000px) rotateY(7deg); }

.showcase-cover:hover,
.showcase-cover:focus-visible {
  transform: perspective(1000px) rotateY(0) translateY(-6px);
  box-shadow:
    0 54px 70px -28px rgba(0, 0, 0, 0.95),
    0 0 110px -26px rgba(var(--accent-rgb), 0.75);
}

.showcase-cover img { width: 100%; border-radius: inherit; }

/* WebP covers have transparent corners (and some parts stand out of the book),
   so the shadow follows the picture instead of a rectangle */
.showcase-cover:has(img[src$=".webp"]) { box-shadow: none; border-radius: 0; }
.showcase-cover img[src$=".webp"] { filter: drop-shadow(0 40px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.3)); }

.showcase-cover--text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 0.62;
  padding: 28px 22px;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.28), transparent 70%),
    #0b0b0a;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
}

.showcase-cover--text strong {
  font-family: var(--showcase-font, var(--serif));
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--bone);
}

.showcase-cover--text span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent-rgb));
}

/* Text */

.showcase-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--accent-rgb));
  margin-bottom: 14px;
}

.showcase-title {
  font-family: var(--showcase-font, var(--serif));
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  margin-bottom: 14px;
}

.showcase-title em { font-style: normal; color: rgb(var(--accent-rgb)); }

.showcase-subtitle {
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.88;
  margin-bottom: 16px;
}

.showcase-desc {
  color: var(--bone-dim);
  max-width: 54ch;
  margin-bottom: 26px;
}

.showcase-price { margin-bottom: 22px; }

.price-now {
  font-family: var(--showcase-font, var(--serif));
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.showcase-btn:hover { transform: translateY(-2px); }
.showcase-btn:active { transform: translateY(0) scale(0.985); }

.showcase-btn--main {
  background: rgb(var(--accent-rgb));
  color: var(--on-accent);
  box-shadow: 0 16px 32px -14px rgba(var(--accent-rgb), 0.7);
}

.showcase-btn--main i { font-size: 0.8rem; transition: transform 0.3s var(--ease); }
.showcase-btn--main:hover i { transform: translateX(4px); }

.showcase-btn--ghost {
  border-color: rgba(239, 233, 220, 0.24);
  color: var(--bone);
}

.showcase-btn--ghost:hover { border-color: rgba(var(--accent-rgb), 0.8); }

.showcase-btn[aria-disabled="true"] {
  background: transparent;
  border-color: rgba(239, 233, 220, 0.2);
  color: var(--bone-dim);
  box-shadow: none;
  pointer-events: none;
}

/* ---------- Themes: one voice per book ---------- */

.showcase--default { --showcase-font: var(--serif); --on-accent: #17120a; }

/* Quando os Mortos Adoecem os Vivos: documentary, bold condensed type */
.showcase--mortos { --showcase-font: "Bebas Neue", Impact, sans-serif; background:
    radial-gradient(110% 90% at 0% 0%, rgba(var(--accent-rgb), 0.2), transparent 58%),
    linear-gradient(180deg, #120a0a, #0b0b0a); }
.showcase--mortos .showcase-title { font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; font-size: clamp(2.8rem, 6vw, 5rem); }
.showcase--mortos .showcase-kicker { display: flex; align-items: center; gap: 12px; }
.showcase--mortos .showcase-kicker::before { content: ""; width: 34px; height: 3px; background: rgb(var(--accent-rgb)); }
.showcase--mortos .showcase-subtitle { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem; padding: 10px 0; border-top: 2px solid rgb(var(--accent-rgb)); border-bottom: 2px solid rgb(var(--accent-rgb)); display: inline-block; }

/* Terras Raras: gold on deep blue */
.showcase--terras { --showcase-font: "Outfit", sans-serif; --on-accent: #1d1305; background:
    radial-gradient(110% 90% at 100% 0%, rgba(var(--accent-rgb), 0.2), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(46, 199, 192, 0.14), transparent 60%),
    linear-gradient(180deg, #0a1626, #060d18); border-color: rgba(var(--accent-rgb), 0.3); }
.showcase--terras .showcase-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2.4rem, 5.4vw, 4.4rem); background: linear-gradient(180deg, #fff1b8, #f2b640 55%, #b9741a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.showcase--terras .showcase-subtitle { font-weight: 300; font-size: 1.2rem; }
.showcase--terras .showcase-btn--main { background: linear-gradient(135deg, #ffe49a, #f2b640 55%, #c98a22); }

/* O Veneno Sob os Nossos Pés: industrial hazard */
.showcase--veneno { --showcase-font: "Space Grotesk", sans-serif; --on-accent: #0b0b0a; background: linear-gradient(180deg, #121211, #0a0a09); border-color: rgba(var(--accent-rgb), 0.3); border-radius: 6px; }
.showcase--veneno::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(-45deg, #ffcc00 0 14px, #0b0b0a 14px 28px); }
.showcase--veneno .showcase-title { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(2.2rem, 5vw, 3.9rem); }
.showcase--veneno .showcase-kicker { display: inline-block; padding: 5px 10px; background: rgb(var(--accent-rgb)); color: #0b0b0a; letter-spacing: 0.14em; font-size: 0.7rem; }
.showcase--veneno .showcase-btn { border-radius: 4px; }
.showcase--veneno .showcase-cover { border-radius: 2px; }

/* Plásticos Comestíveis: fresh, organic (green, like the cover) */
.showcase--plasticos { --showcase-font: "Fraunces", Georgia, serif; --on-accent: #fff; border-radius: 44px 14px 44px 14px; background:
    radial-gradient(90% 80% at 100% 0%, rgba(240, 138, 36, 0.16), transparent 58%),
    radial-gradient(110% 90% at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 58%),
    #0b130b; }
.showcase--plasticos .showcase-title { font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.7rem); }
.showcase--plasticos .showcase-btn { border-radius: 999px; }
.showcase--plasticos .showcase-btn--main { background: linear-gradient(135deg, #6fc84a, #2e9b3a); }

/* Quem Disse Que Dinheiro Não Nasce em Árvore: forest and gold */
.showcase--arvore { --showcase-font: "Playfair Display", Georgia, serif; --on-accent: #231a02; background:
    repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(232, 184, 52, 0.07) 22px 24px),
    radial-gradient(110% 90% at 0% 0%, rgba(63, 191, 124, 0.2), transparent 58%),
    #08130d; border-color: rgba(232, 184, 52, 0.3); }
.showcase--arvore .showcase-title { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; }
.showcase--arvore .showcase-btn--main { background: linear-gradient(135deg, #ffd96a, #e8b834 55%, #c9951a); }

/* Engenharia da Remediação em Cemitérios: technical and academic, sunset gold */
.showcase--remediacao { --showcase-font: "Cormorant Garamond", Georgia, serif; --on-accent: #1a1204; border-radius: 10px; background:
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(110% 90% at 0% 0%, rgba(var(--accent-rgb), 0.18), transparent 58%),
    #0f130e; border-color: rgba(var(--accent-rgb), 0.34); }
.showcase--remediacao .showcase-title { font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1; }
.showcase--remediacao .showcase-kicker { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.showcase--remediacao .showcase-btn { border-radius: 6px; }

/* Créditos de Carbono: Sustentabilidade e IA: deep-blue fintech */
.showcase--carbono { --showcase-font: "Sora", sans-serif; --on-accent: #031428; border-radius: 22px; background:
    radial-gradient(circle at 12% 18%, rgba(70, 190, 255, 0.24), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(110, 255, 170, 0.14), transparent 40%),
    #050b1a; border-color: rgba(70, 190, 255, 0.32); }
.showcase--carbono .showcase-title { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); background: linear-gradient(100deg, #a9e8ff, #46beff 45%, #6effaa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.showcase--carbono .showcase-kicker { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.showcase--carbono .showcase-btn--main { background: linear-gradient(100deg, #46beff, #6effaa); }

/* Biorremediação: stark paper and ink, like the cover */
.showcase--biorremediacao { --showcase-font: "Barlow Condensed", "Arial Narrow", sans-serif; --on-accent: #fff; border: 2px solid #0e0e0e; border-radius: 0; color: #0e0e0e; background:
    repeating-linear-gradient(135deg, rgba(14, 14, 14, 0.04) 0 2px, transparent 2px 15px),
    #ecece6; box-shadow: 9px 9px 0 rgb(var(--accent-rgb)); }
.showcase--biorremediacao .showcase-title { font-weight: 800; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.showcase--biorremediacao .showcase-kicker { color: #14934f; font-weight: 800; }
.showcase--biorremediacao .showcase-subtitle { color: #0e0e0e; opacity: 1; font-weight: 600; }
.showcase--biorremediacao .showcase-desc { color: #3d3d39; }
.showcase--biorremediacao .showcase-btn { border-radius: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem; }
.showcase--biorremediacao .showcase-btn--main { background: #0e0e0e; color: #fff; box-shadow: none; }
.showcase--biorremediacao .showcase-btn--ghost { border: 2px solid #0e0e0e; color: #0e0e0e; }
.showcase--biorremediacao .showcase-btn--ghost:hover { background: #0e0e0e; color: #fff; }
.showcase--biorremediacao .showcase-cover { box-shadow: none; }
.showcase--biorremediacao .showcase-cover img { filter: drop-shadow(0 30px 24px rgba(0, 0, 0, 0.45)); }

/* Combos */

.catalog-combos { padding-bottom: 56px; }

.combos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
}

.combo-card {
  --accent-rgb: 201, 168, 106;
  --on-accent: #17120a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 24px;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 20px;
  background: linear-gradient(180deg, #151412, #0e0e0d);
}

.combo-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #17120a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.combo-covers { display: flex; justify-content: center; margin-bottom: 20px; padding-left: 18px; }

.combo-covers img {
  width: 76px;
  margin-left: -18px;
  border-radius: 4px;
  box-shadow: -6px 8px 16px -8px rgba(0, 0, 0, 0.8);
}

.combo-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.combo-titles { color: var(--bone-dim); font-size: 0.9rem; margin-bottom: 20px; }

.price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.price-old { font-size: 0.9rem; color: var(--bone-dim); text-decoration: line-through; }
.combo-save { color: #8fd0a0; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.combo-card .showcase-btn { margin-top: auto; width: 100%; }

/* Footer */

.catalog-foot {
  text-align: center;
  padding: 0 24px 48px;
  color: rgba(180, 174, 161, 0.75);
  font-size: 0.82rem;
  display: grid;
  gap: 4px;
}

/* Reveal on scroll */

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.will-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .showcase,
  .showcase:nth-child(even) { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .showcase:nth-child(even) .showcase-cover { order: 0; }
  .showcase-cover { max-width: 290px; transform: none; }
  .showcase:nth-child(even) .showcase-cover { transform: none; }
  .showcase-desc { margin-left: auto; margin-right: auto; }
  .showcase-actions { justify-content: center; }
  .showcase--mortos .showcase-kicker { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; transition: none; }
  .showcase-cover, .showcase-btn { transition: none; }
}
