/*
Theme Name: Sinal
Theme URI: https://jildaziosodre.com.br
Author: Jildázio Sodré
Author URI: https://jildaziosodre.com.br
Description: Tema técnico para o site de Jildázio Sodré — palestras e treinamentos em Neurovendas, Neuromarketing e Comportamento. Painel de instrumentação: tinta azul-noite, âmbar de sinal, teal de medição. Tipografia Archivo + IBM Plex. Temas claro e escuro com botão de troca, onda cerebral em canvas na capa e campos de contato no Personalizar.
Version: 1.8.0
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: sinal
Tags: business, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   JILDÁZIO SODRÉ — Tema "Sinal"
   Identidade técnica: painel de instrumentação / leitura de sinal
   Paleta ......: tinta azul-noite + âmbar de sinal + teal de medição
   Tipografia ..: Archivo (display) · IBM Plex Sans (texto) · IBM Plex Mono (dados)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS  (tema escuro é o padrão desta identidade)
   -------------------------------------------------------------------------- */
:root {
  /* superfícies */
  --ground:    #080C16;
  --surface:   #0E1424;
  --surface-2: #141C2E;
  --line:      #1E2942;
  --line-soft: #161F33;

  /* texto */
  --text:      #DCE3F2;
  --text-dim:  #8A97B4;
  --text-mute: #5C6884;

  /* sinal */
  --accent:     #FFB020;
  --accent-ink: #0A0F1C;
  --accent-2:   #37C2B4;
  --accent-glow: rgba(255, 176, 32, .18);

  /* medidas */
  --wrap: 1160px;
  --r: 2px;
  --r-lg: 4px;

  /* tipos */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(0, 0, 0, .9);

  color-scheme: dark;
}

/* tema claro: quando o sistema pede claro e ninguém forçou escuro */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:    #EDF0F6;
    --surface:   #FFFFFF;
    --surface-2: #F4F6FB;
    --line:      #D6DDEB;
    --line-soft: #E3E8F2;

    --text:      #0D1424;
    --text-dim:  #55617A;
    --text-mute: #7A859A;

    --accent:     #A85B06;
    --accent-ink: #FFFFFF;
    --accent-2:   #0C7B71;
    --accent-glow: rgba(168, 91, 6, .12);

    --shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(13, 20, 36, .35);

    color-scheme: light;
  }
}

/* tema claro forçado pelo botão / pelo leitor */
:root[data-theme="light"] {
  --ground:    #EDF0F6;
  --surface:   #FFFFFF;
  --surface-2: #F4F6FB;
  --line:      #D6DDEB;
  --line-soft: #E3E8F2;

  --text:      #0D1424;
  --text-dim:  #55617A;
  --text-mute: #7A859A;

  --accent:     #A85B06;
  --accent-ink: #FFFFFF;
  --accent-2:   #0C7B71;
  --accent-glow: rgba(168, 91, 6, .12);

  --shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(13, 20, 36, .35);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 44px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, 100% - 44px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. ÁTOMOS TIPOGRÁFICOS
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow-dim { color: var(--text-mute); }
.eyebrow-dim::before { background: var(--text-mute); }

.h-xl { font-size: clamp(38px, 6.6vw, 76px); }
.h-lg { font-size: clamp(30px, 4.4vw, 50px); }
.h-md { font-size: clamp(23px, 2.6vw, 31px); }
.h-sm { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -.012em; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.62;
}

.body-text { color: var(--text-dim); max-width: 66ch; }
.body-text + .body-text { margin-top: 18px; }

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--accent-glow); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 16px; font-size: 11.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow { font-family: var(--f-mono); }

/* --------------------------------------------------------------------------
   5. CABEÇALHO
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -.01em;
}

.brand-role {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: var(--r);
  transition: color .16s ease, background .16s ease;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}

.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.burger { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line);
  gap: 2px;
}

.mobile-nav a {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a.is-active { color: var(--accent); }
.mobile-nav.is-open { display: flex; }
.mobile-nav .btn { margin-top: 16px; justify-content: center; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-in { gap: 12px; }
  .header-tools { margin-left: auto; }
  .header-cta { display: none; }
}

@media (max-width: 380px) {
  .brand-role { display: none; }
}

/* --------------------------------------------------------------------------
   6. SEÇÕES
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(58px, 8vw, 108px) 0;
  border-top: 1px solid var(--line);
}

.section-alt { background: var(--surface); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 54px);
  max-width: 780px;
}

.section-head .lead { margin-top: -2px; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-top: 0; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: .42;
  filter: saturate(.75) contrast(1.05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-video { opacity: .26; }
}

:root[data-theme="light"] .hero-video { opacity: .26; }

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    var(--ground) 12%,
    color-mix(in srgb, var(--ground) 60%, transparent) 52%,
    color-mix(in srgb, var(--ground) 26%, transparent) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .62;
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

.hero h1 { max-width: 15ch; }

.hero .lead { max-width: 54ch; }

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--ground));
  pointer-events: none;
  z-index: 1;
}

/* faixa de dados */
.datastrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.datastrip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.datastrip div:last-child { border-right: 0; }

.datastrip dt,
.datastrip .dl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.datastrip .dv {
  font-family: var(--f-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.datastrip .dv em { font-style: normal; color: var(--accent); }

/* --------------------------------------------------------------------------
   8. CARTÕES
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 0;
  background: transparent;
  border: 1px solid var(--line);
  overflow: hidden;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: transparent;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .2s ease;
}

.card:hover { background: var(--surface-2); }

.card-code {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.card p { color: var(--text-dim); font-size: 15.5px; }

.card-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* --------------------------------------------------------------------------
   9. PROCESSO (sequência real — por isso é numerado)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }

.step {
  padding: 30px 26px 30px 0;
  border-top: 2px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.step-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
}

.step p { color: var(--text-dim); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   10. LINHA DO TEMPO
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.tl-year {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.tl-body p { color: var(--text-dim); margin-top: 8px; font-size: 15.5px; }

@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}

/* --------------------------------------------------------------------------
   11. GALERIA / MÍDIA
   -------------------------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.media.is-tall { aspect-ratio: 3 / 4; }
.media.is-wide { aspect-ratio: 16 / 9; }

figure.media { margin: 0; }

.media-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 38px 15px 13px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #EDF1F9;
  line-height: 1.6;
  background: linear-gradient(to top, rgba(4, 8, 16, .92) 12%, rgba(4, 8, 16, .55) 55%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

/* na galeria a legenda aparece ao passar o mouse — grade mais limpa */
.media-grid .media:hover .media-cap,
.media-grid .media:focus-within .media-cap { opacity: 1; transform: none; }

/* fora da galeria (Sobre, home) a legenda fica sempre visível */
.media:not(.media-grid .media) .media-cap { opacity: 1; transform: none; }

@media (hover: none) {
  .media-cap { opacity: 1; transform: none; }
}

img.brand-mark { width: auto; height: 36px; }

.footer-logo { width: min(250px, 70%); height: auto; }

.media img { transition: transform .45s ease; }
.media:hover img { transform: scale(1.03); }

.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: inherit;
}

.media:has(img)::after,
.media:has(video)::after { display: none; }

.media:has(img) .media-label,
.media:has(video) .media-label { display: none; }

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}

.media-label {
  position: relative;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.7;
}

.media-label b { color: var(--text-dim); font-weight: 500; display: block; }

.clients { display: flex; flex-wrap: wrap; gap: 8px; }
.clients .tag { font-size: 11.5px; padding: 7px 13px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   19. AMPLIAR FOTO (lightbox)
   -------------------------------------------------------------------------- */
.media-grid .media { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(4, 7, 14, .94);
  backdrop-filter: blur(8px);
  padding: clamp(16px, 4vw, 48px);
}

.lightbox.is-open { display: grid; animation: lb-in .25s ease; }

@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }

.lightbox figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}

.lightbox figcaption {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C3CCDE;
  text-align: center;
  line-height: 1.8;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #EDF1F9;
  font-size: 20px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #0A0F1C; }
.lb-prev { left: clamp(10px, 3vw, 34px); }
.lb-next { right: clamp(10px, 3vw, 34px); }

.lb-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
  transform: none;
}

.lb-count {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: clamp(16px, 4vw, 40px);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .lb-btn { width: 42px; height: 42px; top: auto; bottom: 18px; transform: none; }
  .lb-close { top: 14px; bottom: auto; }
  .lightbox img { max-height: calc(100vh - 230px); }
}

/* faixa de foto em largura total */
.photo-band {
  position: relative;
  min-height: clamp(320px, 44vw, 540px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-band-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(34px, 6vw, 68px) 0 clamp(28px, 4vw, 46px);
  background: linear-gradient(to top,
    rgba(5, 9, 18, .92) 0%,
    rgba(5, 9, 18, .74) 45%,
    rgba(5, 9, 18, 0) 100%);
}

.photo-band-in h2 { color: #F2F5FB; margin-top: 14px; max-width: 18ch; }
.photo-band-in .lead { color: #C3CCDE; margin-top: 14px; max-width: 52ch; }
.photo-band-in .eyebrow { color: var(--accent); }
.photo-band-in .eyebrow::before { background: var(--accent); }

/* mural de logos dos clientes */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 10px;
}

.logo-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .6);
}

.logo-card img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .logo-card { min-height: 74px; padding: 12px 14px; }
  .logo-card img { max-height: 40px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.filter {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all .16s ease;
}

.filter:hover { color: var(--text); border-color: var(--text-mute); }
.filter.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   12. BLOG
   -------------------------------------------------------------------------- */
.post-list { display: flex; flex-direction: column; }

.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .2s ease;
}

.post-item:hover { padding-left: 10px; }
.post-item:last-child { border-bottom: 1px solid var(--line); }

.post-item p { color: var(--text-dim); font-size: 15.5px; margin-top: 8px; max-width: 62ch; }

.post-date {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .post-item { grid-template-columns: 1fr; gap: 6px; }
}

.prose { max-width: 68ch; }
.prose p { color: var(--text-dim); margin-top: 20px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 42px; }
.prose h3 { font-size: 19px; margin-top: 32px; }
.prose ul { color: var(--text-dim); margin-top: 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose blockquote {
  margin: 32px 0 0;
  padding: 18px 24px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   13. FORMULÁRIO
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .16s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-mute); }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 130px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 13.5px; color: var(--text-mute); }

.form-status {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--accent-2);
  min-height: 20px;
}

/* --------------------------------------------------------------------------
   14. CONTATO — LISTA DE DADOS
   -------------------------------------------------------------------------- */
.contact-list { display: flex; flex-direction: column; }

.contact-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.contact-row:last-child { border-bottom: 1px solid var(--line); }

.contact-row dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-row dd { margin: 0; font-size: 16px; }
.contact-row a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */
.cta {
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4.5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background:
    radial-gradient(120% 160% at 8% 0%, var(--accent-glow), transparent 62%),
    var(--surface);
}

.cta h2 { max-width: 20ch; }
.cta p { color: var(--text-dim); margin-top: 10px; max-width: 46ch; }

/* --------------------------------------------------------------------------
   16. RODAPÉ
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-title {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.footer-col a { color: var(--text-dim); font-size: 15px; transition: color .16s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bar {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer-bar .mono { font-size: 11.5px; letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   17. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 30px; }

.center { text-align: center; align-items: center; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  z-index: 200;
}

.skip:focus { left: 12px; top: 12px; }

.editable {
  border-left: 2px dashed var(--accent-2);
  padding-left: 14px;
}

.note {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent-2);
  line-height: 1.6;
}

.page-head { padding: clamp(44px, 6vw, 76px) 0 clamp(30px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }

/* entrada escalonada da capa */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: sobe .85s cubic-bezier(.2, .7, .3, 1) both; }
  .hero-in > *:nth-child(1) { animation-delay: .08s; }
  .hero-in > *:nth-child(2) { animation-delay: .18s; }
  .hero-in > *:nth-child(3) { animation-delay: .30s; }
  .hero-in > *:nth-child(4) { animation-delay: .42s; }
  .datastrip div { animation: sobe .7s cubic-bezier(.2, .7, .3, 1) both; }
  .datastrip div:nth-child(1) { animation-delay: .50s; }
  .datastrip div:nth-child(2) { animation-delay: .58s; }
  .datastrip div:nth-child(3) { animation-delay: .66s; }
  .datastrip div:nth-child(4) { animation-delay: .74s; }
}

@keyframes sobe {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* fio de sinal no topo da página */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   18. AJUSTES ESPECÍFICOS DO WORDPRESS
   ========================================================================== */

/* menus gerados pelo wp_nav_menu */
.nav ul, .mobile-nav ul, .footer-col ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav li, .mobile-nav li, .footer-col li { margin: 0; }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--accent); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.mobile-nav ul a { display: block; }
.mobile-nav .current-menu-item > a,
.mobile-nav .current_page_item > a { color: var(--accent); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { color: var(--text-dim); font-size: 15px; transition: color .16s ease; }
.footer-col ul a:hover { color: var(--accent); }

/* logo enviada pelo Personalizar */
.custom-logo { width: 34px; height: auto; border-radius: 2px; }

/* barra de administração do WP */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* conteúdo do editor dentro de .prose */
.prose img { border: 1px solid var(--line); border-radius: var(--r-lg); height: auto; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 26px 0 0; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text, .prose figcaption {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--text-mute); margin-top: 8px;
}
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-image img { height: auto; }

/* imagem destacada dentro de um quadro .media */
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media:has(img)::after { display: none; }
.media:has(img) .media-label { display: none; }

/* paginação do blog */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 13px; font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination a.page-numbers:hover { color: var(--accent); border-color: var(--accent); }

/* acessibilidade padrão do WP */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
