/*
Theme Name: Editora Pensar
Theme URI: https://editorapensar.com.br
Author: Editora Pensar
Description: Tema sob medida da Editora Pensar — livros didáticos, paradidáticos e literários contextualizados por município. Cores da identidade: navy #0F2340 e seagreen #2E8B57.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editora-pensar
Tags: education, publisher, custom-colors, custom-menu, translation-ready
*/

/* ==========================================================================
   Editora Pensar — sistema de design
   Cores da identidade extraídas do logo: navy #0F2340 e seagreen #2E8B57.
   Âmbar #D98C2B vem do lettering do Banner 02.
   ========================================================================== */

/* --- Tokens: tema claro (completo, no :root puro) ----------------------- */
:root {
  /* superfícies e texto */
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #edf0ea;
  --fg: #12263d;
  --fg-muted: #4f6478;
  --border: #d9e0d8;

  /* faixa institucional escura */
  --band: #0f2340;
  --band-2: #16304e;
  --band-fg: #eaf0f4;
  --band-fg-muted: #9db3c4;
  --band-border: #274866;

  /* acentos */
  --accent: #2e8b57;
  --accent-strong: #206b41;
  --accent-soft: #e4f0e8;
  --accent-warm: #d98c2b;
  --accent-warm-soft: #fbeed8;

  /* foco e sombra */
  --focus: #2e8b57;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .06), 0 2px 8px rgba(15, 35, 64, .05);
  --shadow-md: 0 2px 4px rgba(15, 35, 64, .07), 0 12px 28px rgba(15, 35, 64, .09);
  --shadow-lg: 0 4px 8px rgba(15, 35, 64, .08), 0 24px 56px rgba(15, 35, 64, .14);

  /* tipografia */
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  /* escala fluida */
  --step-display: clamp(2.05rem, 1.35rem + 3.1vw, 3.55rem);
  --step-h2: clamp(1.55rem, 1.18rem + 1.6vw, 2.3rem);
  --step-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --step-lead: clamp(1.08rem, 1.02rem + .35vw, 1.28rem);
  --step-body: 1.0625rem;
  --step-sm: .9rem;
  --step-label: .765rem;

  /* ritmo */
  --measure: 66ch;
  --wrap: 1140px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.15rem, .6rem + 2.4vw, 2.5rem);
  --section-y: clamp(3.25rem, 2rem + 5vw, 6rem);
  --radius: 4px;
  --radius-lg: 8px;
}

/* --- Tokens: tema escuro por preferência do sistema --------------------- */
/* Guardado para que uma escolha explícita de tema claro vença o SO escuro. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1728;
    --surface: #10243c;
    --surface-2: #16304e;
    --fg: #e6edf3;
    --fg-muted: #9cb2c6;
    --border: #21405e;

    --band: #071120;
    --band-2: #10243c;
    --band-fg: #e6edf3;
    --band-fg-muted: #9cb2c6;
    --band-border: #21405e;

    --accent: #4fb87c;
    --accent-strong: #6ecb95;
    --accent-soft: #12332270;
    --accent-warm: #ebaf56;
    --accent-warm-soft: #3a2b1170;

    --focus: #6ecb95;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .4);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .5);
  }
}

/* --- Tokens: tema escuro por escolha explícita -------------------------- */
:root[data-theme="dark"] {
  --bg: #0a1728;
  --surface: #10243c;
  --surface-2: #16304e;
  --fg: #e6edf3;
  --fg-muted: #9cb2c6;
  --border: #21405e;

  --band: #071120;
  --band-2: #10243c;
  --band-fg: #e6edf3;
  --band-fg-muted: #9cb2c6;
  --band-border: #21405e;

  --accent: #4fb87c;
  --accent-strong: #6ecb95;
  --accent-soft: #12332270;
  --accent-warm: #ebaf56;
  --accent-warm-soft: #3a2b1170;

  --focus: #6ecb95;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .4);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .5);
}

/* --- Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.72;
  overflow-x: hidden;
}

img,
svg,
picture { display: block; max-width: 100%; }

/* Os atributos width/height no HTML (que evitam layout shift) fixariam a
   altura e anulariam aspect-ratio, que só age quando uma dimensão é auto. */
img { height: auto; }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

:where(a, button, [tabindex], input, textarea, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }

/* Só troca o fundo — não mexe no padding, para não brigar com .section. */
.section--tinted { background: var(--surface-2); border-block: 1px solid var(--border); }

/* Empilhamento vertical por gap — evita margens que colapsam ou dobram. */
.stack { display: flex; flex-direction: column; gap: 1.15rem; }
.stack--lg { gap: 2rem; }
.stack--sm { gap: .6rem; }

.prose { display: flex; flex-direction: column; gap: 1.15rem; max-width: var(--measure); }
.prose p { color: var(--fg-muted); }
.prose strong { color: var(--fg); font-weight: 600; }

/* --- Etiqueta de seção: o motivo da placa municipal -------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-ui);
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  flex: none;
  background: var(--accent);
}

.eyebrow--on-band { color: var(--accent-warm); }
.eyebrow--on-band::before { background: var(--accent-warm); }

.section-head { display: flex; flex-direction: column; gap: .85rem; max-width: 62ch; }
.section-head h2 { font-size: var(--step-h2); font-weight: 800; }
.lead { font-size: var(--step-lead); color: var(--fg-muted); line-height: 1.6; }

/* --- Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.45rem;
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 650;
  letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.btn--warm { background: var(--accent-warm); border-color: var(--accent-warm); color: #2a1a05; }
.btn--warm:hover { filter: brightness(1.07); color: #2a1a05; }

.btn--ghost { border-color: var(--border); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--on-band { border-color: var(--band-border); color: var(--band-fg); background: transparent; }
.btn--on-band:hover { border-color: var(--accent-warm); color: var(--accent-warm); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Ícone dentro de botão: sem isto o SVG do sprite assume 300x150 e engole
   o botão inteiro. */
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- Cabeçalho ---------------------------------------------------------- */
.topbar {
  background: var(--band);
  color: var(--band-fg-muted);
  font-family: var(--font-ui);
  font-size: .8rem;
  border-bottom: 1px solid var(--band-border);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  min-height: 42px;
  padding-block: .35rem;
}

.topbar__contacts { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--band-fg-muted);
  text-decoration: none;
}

.topbar__link:hover { color: var(--accent-warm); }
.topbar__link svg { width: 15px; height: 15px; flex: none; }

.social { display: flex; align-items: center; gap: .5rem; }

.social__link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--band-border);
  border-radius: var(--radius);
  color: var(--band-fg-muted);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.social__link:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.social__link svg { width: 16px; height: 16px; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: .6rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 58px; }

/* O logo é navy sobre fundo claro; no escuro precisa clarear para não sumir. */
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1) brightness(1.08); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: brightness(0) invert(1) brightness(1.08); }
}

.nav { display: flex; align-items: center; gap: .15rem; }

.nav__link {
  position: relative;
  padding: .55rem .8rem;
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 550;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav__link:hover { color: var(--accent); background: var(--accent-soft); }

.nav__link[aria-current="page"] { color: var(--accent); font-weight: 700; }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: -.42rem;
  height: 3px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: .85rem .25rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .masthead__inner { position: relative; }
}

@media (max-width: 620px) {
  .topbar__contacts .topbar__link--address { display: none; }
}

/* --- Hero: slider dos banners ------------------------------------------ */
/* Os banners já trazem o título na arte, então nada é sobreposto e a
   proporção 2:1 é preservada em toda largura — recortar cortaria o texto. */
.hero { background: var(--band); }

.hero__viewport { position: relative; overflow: hidden; }

.hero__track { display: grid; }

.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}

.hero__slide[data-active="true"] { opacity: 1; pointer-events: auto; }

.hero__slide img { width: 100%; aspect-ratio: 1774 / 887; object-fit: contain; }

.hero__dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 0 1rem;
  background: var(--band);
}

.hero__dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: var(--band-border);
  cursor: pointer;
  transition: background-color .2s ease;
}

.hero__dot[aria-selected="true"] { background: var(--accent-warm); }
.hero__dot:hover { background: var(--accent); }

/* Faixa de proposta logo abaixo do hero */
.pitch { background: var(--band-2); color: var(--band-fg); border-block: 1px solid var(--band-border); }

.pitch__inner {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .pitch__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}

.pitch h1 {
  font-size: var(--step-display);
  font-weight: 800;
  color: var(--band-fg);
}

.pitch h1 em { font-style: normal; color: var(--accent-warm); }
.pitch p { color: var(--band-fg-muted); font-size: var(--step-lead); line-height: 1.6; max-width: 52ch; }

/* --- Cartões ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(1.15rem, .8rem + 1.2vw, 1.85rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card h3 { font-size: var(--step-h3); font-weight: 700; }
.card p { color: var(--fg-muted); font-size: var(--step-sm); line-height: 1.65; }

.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }

/* Valores institucionais — lista real, sem numeração decorativa. */
.values { display: grid; gap: .85rem; padding: 0; margin: 0; list-style: none; }

@media (min-width: 720px) { .values { grid-template-columns: 1fr 1fr; } }

.values li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--step-sm);
  line-height: 1.6;
  color: var(--fg-muted);
}

.values svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--accent); }

/* Missão / Visão / Propósito */
.pillars { display: grid; gap: clamp(1.15rem, .8rem + 1vw, 1.75rem); }

@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pillar:nth-child(2) { border-top-color: var(--accent-warm); }
.pillar:nth-child(3) { border-top-color: var(--band); }

:root[data-theme="dark"] .pillar:nth-child(3) { border-top-color: var(--band-fg-muted); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pillar:nth-child(3) { border-top-color: var(--band-fg-muted); }
}

.pillar h3 {
  font-size: var(--step-label);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

.pillar:nth-child(2) h3 { color: var(--accent-warm); }
.pillar:nth-child(3) h3 { color: var(--fg-muted); }
.pillar p { color: var(--fg); font-size: 1rem; line-height: 1.68; }

/* --- Projetos ----------------------------------------------------------- */
.project {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  align-items: start;
}

@media (min-width: 880px) {
  .project { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .project--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .project--flip .project__cover { order: 2; }
}

.project__cover { position: relative; }

/* `contain`, nunca `cover`: recortar uma capa comeria o título do livro. */
.project__cover img {
  width: 100%;
  aspect-ratio: 518 / 734;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.project__body { display: flex; flex-direction: column; gap: 1.1rem; }
.project__body h3 { font-size: var(--step-h2); font-weight: 800; }
.project__body p { color: var(--fg-muted); max-width: var(--measure); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }

.tag {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.tag--warm { background: var(--accent-warm-soft); color: var(--accent-warm); border-color: var(--accent-warm); }

/* Capa em cartão para a home */
.book { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }

.book img {
  width: 100%;
  aspect-ratio: 518 / 734;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.book:hover img { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.book h3 { font-size: var(--step-h3); font-weight: 700; }
.book p { color: var(--fg-muted); font-size: var(--step-sm); line-height: 1.6; }

/* --- Equipe ------------------------------------------------------------- */
/* Limitada porque a bio já é capada em 66ch: sem isto sobra um vazio
   grande à direita de cada membro no desktop. */
.team { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); max-width: 920px; }

.member {
  display: grid;
  gap: clamp(1.1rem, .8rem + 1.4vw, 2.25rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--border);
}

.team .member:last-child { border-bottom: none; padding-bottom: 0; }

@media (min-width: 700px) { .member { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }

.member__photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.member__body { display: flex; flex-direction: column; gap: .9rem; }
.member__name { font-size: var(--step-h3); font-weight: 800; }

.member__role {
  font-family: var(--font-ui);
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}

.member__body p { color: var(--fg-muted); font-size: var(--step-sm); line-height: 1.7; max-width: var(--measure); }

/* Equipe resumida na home */
.team-strip { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.team-strip figure { display: flex; flex-direction: column; gap: .7rem; margin: 0; }

.team-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.team-strip figcaption { display: flex; flex-direction: column; gap: .15rem; }
.team-strip b { font-family: var(--font-display); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.team-strip span { font-family: var(--font-ui); font-size: .78rem; color: var(--fg-muted); line-height: 1.4; }

/* --- Notícias ----------------------------------------------------------- */
.post {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--fg-muted);
}

.post__meta time { font-variant-numeric: tabular-nums; }

.post__cat {
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post h3 { font-size: var(--step-h3); font-weight: 700; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--fg-muted); font-size: var(--step-sm); line-height: 1.65; }

.empty-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  background: var(--accent-warm-soft);
  border: 1px solid var(--accent-warm);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  line-height: 1.6;
  color: var(--fg);
}

.empty-note svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--accent-warm); }

/* --- Faixa com contorno topográfico ------------------------------------ */
/* Único momento ambiente da página: curvas de nível, aceno ao território. */
.band { position: relative; background: var(--band); color: var(--band-fg); overflow: hidden; }
/* `color` alimenta o strokeStyle do canvas; a opacidade mantém o traço ambiente. */
.band__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: .3;
  pointer-events: none;
}
.band__inner { position: relative; }
.band h2 { color: var(--band-fg); font-size: var(--step-h2); font-weight: 800; }
.band p { color: var(--band-fg-muted); font-size: var(--step-lead); line-height: 1.6; max-width: 56ch; }
.band__text { max-width: 60ch; }

/* --- Cabeçalho das páginas internas ------------------------------------ */
.pagehead {
  position: relative;
  overflow: hidden;
  background: var(--band);
  color: var(--band-fg);
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.pagehead h1 {
  color: var(--band-fg);
  font-size: var(--step-display);
  font-weight: 800;
  max-width: 24ch;
}

.pagehead__lead {
  color: var(--band-fg-muted);
  font-size: var(--step-lead);
  line-height: 1.6;
  max-width: 54ch;
}

/* --- Contato ------------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.channels { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }

.channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.channel:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); color: inherit; }

.channel__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.channel__icon svg { width: 20px; height: 20px; }
.channel__icon--warm { background: var(--accent-warm-soft); color: var(--accent-warm); border-color: var(--accent-warm); }
.channel__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }

.channel__label {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.channel__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.channel__note { font-family: var(--font-ui); font-size: .82rem; color: var(--fg-muted); }

/* Formulário */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }

.field label {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--fg);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }

.form__note { font-family: var(--font-ui); font-size: .8rem; color: var(--fg-muted); }

.form-card {
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* --- Rodapé ------------------------------------------------------------- */
.footer { background: var(--band); color: var(--band-fg-muted); border-top: 4px solid var(--accent); }

.footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  padding-block: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); } }

.footer__brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer__brand img { height: 74px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p { font-family: var(--font-ui); font-size: .88rem; line-height: 1.6; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-ui);
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--band-fg);
}

.footer__list { display: flex; flex-direction: column; gap: .6rem; padding: 0; margin: 0; list-style: none; }

.footer__list a,
.footer__list span {
  font-family: var(--font-ui);
  font-size: .89rem;
  color: var(--band-fg-muted);
  text-decoration: none;
  line-height: 1.5;
}

.footer__list a:hover { color: var(--accent-warm); }

.footer__col { display: flex; flex-direction: column; gap: 1rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--band-border);
  font-family: var(--font-ui);
  font-size: .8rem;
}

/* --- Revelação no scroll ------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal][data-shown="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .card--link:hover,
  .book:hover img,
  .post:hover,
  .channel:hover { transform: none; }
}

/* --- Utilidades --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .9rem;
  text-decoration: none;
}

.skip-link:focus { left: .5rem; top: .5rem; color: #fff; }

.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* ==========================================================================
   Integração com o WordPress
   Estilos para conteúdo do editor de blocos, paginação e telas nativas.
   ========================================================================== */

/* Marca em texto quando nenhum logo foi enviado no Personalizar. */
.brand__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fg);
}

/* --- Conteúdo vindo do editor ------------------------------------------- */
.entry-content > * { margin: 0; }

.entry-content h2 { font-size: var(--step-h2); font-weight: 800; margin-top: .6rem; }
.entry-content h3 { font-size: var(--step-h3); font-weight: 700; margin-top: .4rem; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; }
.entry-content p { color: var(--fg-muted); }
.entry-content strong { color: var(--fg); font-weight: 600; }

.entry-content ul,
.entry-content ol { color: var(--fg-muted); padding-left: 1.35rem; display: flex; flex-direction: column; gap: .45rem; }

.entry-content blockquote {
  padding: .35rem 0 .35rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--fg);
  font-size: var(--step-lead);
  line-height: 1.6;
}

.entry-content blockquote cite {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-style: normal;
  color: var(--fg-muted);
}

.entry-content figure { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.entry-content img { border-radius: var(--radius); }

.entry-content figcaption,
.wp-caption-text {
  font-family: var(--font-ui);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.entry-content a { color: var(--accent-strong); }
.entry-content hr { height: 1px; background: var(--border); border: none; }

.entry-content code,
.entry-content kbd {
  font-size: .92em;
  padding: .12em .38em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }

/* Tabelas nunca empurram a página: rolam dentro do próprio contêiner. */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--step-sm); }
.entry-content th,
.entry-content td { padding: .6rem .75rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { font-family: var(--font-ui); font-weight: 650; background: var(--surface-2); }
.entry-content td { color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* Alinhamentos largos do editor, dentro do limite de leitura da coluna. */
.entry-content .alignwide { width: min(100%, 960px); max-width: none; }
.entry-content .alignfull { width: 100%; max-width: none; }
.entry-content .aligncenter { margin-inline: auto; }

/* --- Miniatura das matérias --------------------------------------------- */
.post__thumb { display: block; margin: -1.6rem -1.6rem 0; }

.post__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.single__cover { margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; }
.single__cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.form-card__title { font-size: var(--step-h3); font-weight: 800; }

/* --- Paginação ----------------------------------------------------------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

.pagination .page-numbers,
.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: .55rem .8rem;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.pagination .page-numbers:hover,
.page-links a:hover { border-color: var(--accent); color: var(--accent); }

.pagination .page-numbers.current,
.page-links > span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-links { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

/* --- Busca --------------------------------------------------------------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 520px; }

.search-form label { flex: 1 1 220px; }

.search-form .search-field {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-form .search-submit {
  padding: .75rem 1.35rem;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 650;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}

.search-form .search-submit:hover { background: var(--accent-strong); }

/* --- Comentários --------------------------------------------------------- */
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.comment-list .children { list-style: none; padding-left: 1.25rem; border-left: 2px solid var(--border); }

.comment-body {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.comment-meta { font-family: var(--font-ui); font-size: .82rem; color: var(--fg-muted); }
.comment-form { display: flex; flex-direction: column; gap: .9rem; }

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment-form input[type="submit"] {
  align-self: flex-start;
  padding: .78rem 1.45rem;
  font-family: var(--font-ui);
  font-size: var(--step-sm);
  font-weight: 650;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- Barra de administração --------------------------------------------- */
.admin-bar .masthead { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .masthead { top: 46px; }
}

/* O wp_nav_menu entrega <li> soltos dentro do <nav> flex; sem isto o
   navegador desenha o marcador de lista ao lado de cada item. */
.nav li { list-style: none; display: flex; }
.nav li > .nav__link { flex: 1; }
