/* ==========================================================================
   EspetroLink — Design System
   Paleta derivada do logótipo (puzzle 4 peças) + azul-marinho do livro.
   Acessibilidade: WCAG 2.2 AA — contraste, foco visível, movimento reduzido.
   ========================================================================== */

:root {
  /* Cores da marca */
  --puzzle-red: #E4574C;
  --puzzle-blue: #2BA7E5;
  --puzzle-yellow: #F9B227;
  --puzzle-green: #4CBB2F;

  /* Base */
  --navy-950: #0B2242;
  --navy-900: #0E2A52;
  --navy-800: #14356E;
  --navy-700: #1B4689;
  --ink: #24344D;
  --ink-soft: #4A5A74;
  --bg: #FBF9F4;
  --surface: #FFFFFF;
  --line: #E3E0D8;
  --line-input: #B9C4D6;

  /* Ação */
  --link: #155FA0;
  --link-hover: #0E4a80;
  --focus: #14356E;

  /* Tipografia */
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Métricas */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(14, 42, 82, .08), 0 2px 8px rgba(14, 42, 82, .06);
  --shadow-m: 0 4px 12px rgba(14, 42, 82, .10), 0 12px 32px rgba(14, 42, 82, .10);
  --container: 1120px;
  --header-h: 76px;
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--puzzle-yellow); color: var(--navy-950); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--puzzle-yellow); color: var(--navy-950); }
.btn-accent:hover { background: #ffc23d; color: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost:hover { background: rgba(20, 53, 110, .06); color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; min-height: 42px; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; min-height: 56px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-s); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.45rem; color: var(--navy-900); letter-spacing: -.02em; }
.brand-name .brand-accent { color: var(--puzzle-blue); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .6rem;
  flex-direction: column; gap: 5px; border-radius: var(--radius-s);
}
.nav-toggle-bar { width: 26px; height: 3px; border-radius: 2px; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: inline-block; padding: .55rem .95rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem;
}
.site-nav a:not(.btn):hover { background: rgba(43, 167, 229, .12); color: var(--navy-900); }
.site-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }
.nav-cta { margin-left: .5rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
    display: none; padding: 1rem 1.25rem 1.4rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav a:not(.btn) { display: block; padding: .85rem 1rem; border-radius: var(--radius-s); font-size: 1.05rem; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Faixa de anúncio ---------- */
.announce {
  background: var(--navy-900); color: #fff; font-size: .95rem;
  padding: .55rem 0; text-align: center;
}
.announce strong { color: var(--puzzle-yellow); }
.announce a { color: #fff; font-weight: 700; }

/* ---------- Secções ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700); margin-bottom: .8rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--dot, var(--puzzle-blue));
  box-shadow: 14px 0 0 var(--dot2, var(--puzzle-yellow));
  margin-right: 14px;
}
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink-soft); }

/* ---------- Herói ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.4rem, 8vw, 6.5rem) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/logo.svg") no-repeat right -80px top -60px / 480px;
  opacity: .06; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* Realce tipo marcador no título */
.hl { box-shadow: inset 0 -.38em rgba(249, 178, 39, .55); }

/* Peças de puzzle a flutuar ao fundo do herói */
.hero-decor span {
  position: absolute; border-radius: 22%; opacity: .13; pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-decor span:nth-child(1) { width: 84px; height: 84px; background: var(--puzzle-blue); left: 4%; top: 14%; }
.hero-decor span:nth-child(2) { width: 56px; height: 56px; background: var(--puzzle-red); left: 46%; top: 78%; animation-duration: 13s; animation-delay: -4s; }
.hero-decor span:nth-child(3) { width: 68px; height: 68px; background: var(--puzzle-green); right: 6%; bottom: 10%; animation-duration: 18s; animation-delay: -8s; }
.hero-decor span:nth-child(4) { width: 44px; height: 44px; background: var(--puzzle-yellow); right: 30%; top: 8%; animation-duration: 12s; animation-delay: -2s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(20px, -24px) rotate(14deg); }
}

/* Capa do livro no herói */
.hero-book { position: relative; max-width: 380px; width: 100%; justify-self: center; animation: floaty 6s ease-in-out infinite alternate; }
.hero-book::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border-radius: var(--radius-m); background: var(--puzzle-yellow); opacity: .5;
}
.hero-cover { transition: transform .35s ease; }
.hero-book:hover .hero-cover { transform: rotate(0deg) scale(1.02); }
.hero-book-chip {
  position: absolute; top: -14px; left: -12px;
  background: var(--puzzle-red); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .35rem .95rem; border-radius: 999px; box-shadow: var(--shadow-m);
  letter-spacing: .03em;
}
@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.hero-event {
  margin: 1.6rem 0 0; font-size: .95rem; font-weight: 700; color: var(--ink-soft);
  display: flex; align-items: center; gap: .8rem;
}
.hero-event::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none;
  background: var(--puzzle-red);
  box-shadow: 16px 0 var(--puzzle-blue), 32px 0 var(--puzzle-yellow), 48px 0 var(--puzzle-green);
  margin-right: 40px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { background-size: 340px; right: -120px; }
  .hero-book { max-width: 300px; margin-top: .6rem; }
}

/* ---------- Faixa de valores (ticker) ---------- */
.ticker { background: var(--navy-900); overflow: hidden; padding: .8rem 0; }
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: #E8EEF7; font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  margin-right: 3rem;
}
.ticker-item::after {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--tc, var(--puzzle-yellow)); margin-left: 3rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Grelha bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.bento-cell {
  background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-s);
  border: 1px solid rgba(227, 224, 216, .7); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.bento-cell h3 { margin: 0; font-size: 1.2rem; }
.bento-wide { grid-column: span 2; }
.bento-label {
  margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--puzzle-yellow);
}
.bento-countdown { background: var(--navy-900); border-color: transparent; align-items: center; text-align: center; }
.bento-countdown:hover { transform: translateY(-4px); }
.bento-note { font-size: .9rem; color: #9FB4D4; }
.countdown { display: flex; gap: clamp(.7rem, 2vw, 1.2rem); justify-content: center; margin: .4rem 0; }
.cd-cell { text-align: center; min-width: 3rem; }
.cd-cell b {
  display: block; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15;
  color: #fff; font-variant-numeric: tabular-nums;
}
.cd-cell span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9FB4D4; }
.cd-done { color: #fff; font-weight: 700; font-size: 1.05rem; margin: .6rem 0; }
.cd-done a { color: var(--puzzle-yellow); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .2rem 0 0; }
.chip-list li {
  font-weight: 700; font-size: .92rem; padding: .35rem .95rem; border-radius: 999px;
  background: rgba(43, 167, 229, .13); color: var(--navy-800);
}
.chip-list li:nth-child(2) { background: rgba(249, 178, 39, .2); color: #8a5b00; }
.chip-list li:nth-child(3) { background: rgba(76, 187, 47, .15); color: #2c7a17; }
.chip-list li:nth-child(4) { background: rgba(228, 87, 76, .13); color: #B42323; }

@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento-wide { grid-column: auto; } }

/* ---------- Quem somos (faixa compacta) ---------- */
.quem-strip { background: #fff; border-block: 1px solid var(--line); }
.quem-grid { display: grid; grid-template-columns: 150px 1fr auto; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.quem-photo {
  width: 150px; height: 150px; object-fit: cover; object-position: top;
  border-radius: 50%; border: 5px solid var(--puzzle-yellow); box-shadow: var(--shadow-m);
}
.quem-grid h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
@media (max-width: 860px) {
  .quem-grid { grid-template-columns: 1fr; text-align: center; }
  .quem-photo { margin: 0 auto; }
  .quem-cta .btn { width: 100%; }
}

/* ---------- Projetos (faixa compacta de ligações) ---------- */
.proj-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.proj-card {
  display: flex; flex-direction: column; gap: .35rem; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.4rem 3rem 1.4rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--puzzle-blue); color: var(--ink); }
.proj-card h3 { margin: 0; font-size: 1.12rem; color: var(--navy-900); }
.proj-card .status-chip { margin-bottom: .3rem; align-self: flex-start; }
.proj-arrow { position: absolute; right: 1.1rem; bottom: 1.05rem; font-size: 1.25rem; color: var(--puzzle-blue); transition: transform .2s ease; }
.proj-card:hover .proj-arrow { transform: translateX(5px); }
@media (max-width: 860px) { .proj-strip { grid-template-columns: 1fr; } }

/* ---------- Cartões ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-s);
  padding: 1.6rem; height: 100%;
  border: 1px solid rgba(227, 224, 216, .7);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1rem; background: var(--tint, rgba(43, 167, 229, .14));
}
.card-icon svg { width: 28px; height: 28px; }
.status-chip {
  display: inline-block; padding: .25rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(76, 187, 47, .15); color: #2c7a17; margin-bottom: .8rem;
}
.status-chip.dev { background: rgba(249, 178, 39, .2); color: #8a5b00; }
.status-chip.soon { background: rgba(43, 167, 229, .15); color: #12639c; }

/* ---------- Livro ---------- */
.book-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.book-cover {
  border-radius: var(--radius-m); box-shadow: var(--shadow-m); width: 100%;
  transform: rotate(-1.2deg);
}
.book-cover-wrap { position: relative; }
.book-cover-wrap::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1;
  border-radius: var(--radius-m); background: var(--puzzle-yellow); opacity: .5;
}
.book-meta { display: grid; gap: .5rem; margin: 1.4rem 0; }
.book-meta div { display: flex; gap: .6rem; font-size: .98rem; }
.book-meta dt { font-weight: 700; color: var(--navy-800); min-width: 8.5rem; }
.book-meta dd { margin: 0; }

/* ---------- Faixas de destaque ---------- */
.band { background: var(--navy-900); color: #E8EEF7; border-radius: 0; }
.band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: var(--puzzle-yellow); }
.band .lead { color: #C6D4E8; }
.band-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .band-inner { grid-template-columns: 1fr; } }

.puzzle-dots { display: flex; gap: .45rem; margin: 1.2rem 0 0; }
.puzzle-dots span { width: 14px; height: 14px; border-radius: 4px; }
.puzzle-dots span:nth-child(1) { background: var(--puzzle-red); }
.puzzle-dots span:nth-child(2) { background: var(--puzzle-blue); }
.puzzle-dots span:nth-child(3) { background: var(--puzzle-yellow); }
.puzzle-dots span:nth-child(4) { background: var(--puzzle-green); }

/* ---------- Pessoa / fundador ---------- */
.person-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 2.2rem; align-items: center; }
@media (max-width: 760px) { .person-grid { grid-template-columns: 1fr; } }
.person-photo { border-radius: var(--radius-l); box-shadow: var(--shadow-m); width: 100%; }

/* ---------- Evento ---------- */
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.event-fact {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-m); padding: 1.1rem 1.2rem;
}
.event-fact .label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9FB4D4; font-weight: 700; }
.event-fact .value { font-size: 1.15rem; font-weight: 700; color: #fff; margin-top: .2rem; }

/* ---------- Formulários ---------- */
.form-card { max-width: 640px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: .35rem; }
.field .hint { font-size: .88rem; color: var(--ink-soft); margin: .15rem 0 0; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border: 2px solid var(--line-input); border-radius: var(--radius-s);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(43, 167, 229, .22); outline: none; }
.field [aria-invalid="true"] { border-color: #C43D3D; }
.field-error { color: #B42323; font-size: .9rem; font-weight: 700; margin: .35rem 0 0; }
.field-error::before { content: "⚠ "; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--navy-800); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius-s); padding: 1rem 1.2rem; font-weight: 700; margin-top: 1.2rem; }
.form-status.ok { background: rgba(76, 187, 47, .15); color: #2c7a17; border: 1px solid rgba(76, 187, 47, .5); }
.form-status.err { background: rgba(228, 87, 76, .12); color: #B42323; border: 1px solid rgba(228, 87, 76, .5); }

/* ---------- Página NFC ---------- */
.nfc-page { background: var(--navy-950); min-height: 100dvh; display: flex; flex-direction: column; }
.nfc-main { flex: 1; display: flex; align-items: center; padding: 2.5rem 0; }
.nfc-card { width: min(100% , 560px); margin-inline: auto; text-align: center; color: #E8EEF7; }
.nfc-card .brand-mark { width: 72px; height: 72px; margin: 0 auto 1rem; }
.nfc-card h1 { color: #fff; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.nfc-actions { display: grid; gap: .8rem; margin-top: 1.8rem; }
.nfc-actions .btn { width: 100%; font-size: 1.08rem; }
.nfc-note { font-size: .9rem; color: #9FB4D4; margin-top: 1.4rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: #B9C8DE; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.2rem 0 2.2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #B9C8DE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand .brand-mark { width: 46px; height: 46px; flex: none; }
.footer-brand p { font-size: .95rem; margin: .3rem 0 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0 1.6rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--navy-950); color: #E8EEF7; box-shadow: 0 -8px 30px rgba(11, 34, 66, .35);
  padding: 1.1rem 0;
}
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.cookie-inner p { margin: 0; font-size: .95rem; max-width: 46rem; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }
@media (max-width: 640px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: clamp(3rem, 9vw, 6rem) 0; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--navy-800); line-height: 1; }
.error-wrap .brand-mark { width: 84px; margin: 0 auto 1.4rem; }

/* ---------- Utilitários ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Animação de entrada (apenas com JS; respeita movimento reduzido) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track, .hero-book, .hero-decor span { animation: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
