/* ============================================================
   GRUPO VIRTUAL — one-pager institucional (R4.3 FINAL)
   HTML/CSS/JS puro · zero dependência · mobile-first
   Caminhos relativos: abre por duplo-clique e hospedado.
   ============================================================ */

/* === TOKENS / PALETA (única e fixa) === */
:root {
  --bg-site:        #FAFAF8;
  --bg-card:        #FAFAF8;
  --bg-logo-emp:    #FFFFFF;
  --bg-subcard:     #FFFFFF;
  --bg-logo-prod:   #FAFAF8;

  --txt-1:          #1F2937;  /* principal   */
  --txt-2:          #4B5563;  /* secundário / ícones */
  --txt-3:          #6B7280;  /* muted       */
  --txt-4:          #4B5563;  /* rótulos pequenos uppercase — AA em #FAFAF8 */

  --accent:         #1B3E6F;  /* acento único forte (CTA / Secretária Virtual) */
  --accent-sv:      #0A1E3F;  /* SVTech border-top  */
  --footer-bg:      #0A1E3F;

  --border:         #E5E7EB;
  --border-2:       #D1D5DB;

  --font-serif:     Georgia, 'Times New Roman', 'Iowan Old Style', 'Apple Garamond', serif;
  --font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --maxw:           1180px;
  --radius:         12px;

  /* === TYPE SCALE FIXA — texto SEMPRE via var(--type-*), zero literal === */
  --type-display:   clamp(44px, 7vw, 64px);
  --type-h1:        clamp(32px, 5vw, 42px);
  --type-h2:        clamp(26px, 4vw, 36px);
  --type-h3:        24px;
  --type-h4:        16px;
  --type-body:      16px;
  --type-body-sm:   14px;
  --type-caption:   11px;
  --type-selo:      10px;  /* texto curto dentro da pílula de selo (R4.5) */
  --type-tooltip:    12px; /* corpo/título do tooltip custom (R4.7) */
  --type-tooltip-sm: 11px; /* texto do tooltip no fallback mobile (R4.7) */
  --type-footer-logo: 28px; /* texto "grupo virtual" ao lado do ícone branco no footer (R4.11) */

  /* === SELOS — CALIBRAÇÃO ÓPTICA (R4.4) ===
     Os PNGs *-trim.png foram recortados para que a caixa do <img>
     coincida com o MARK VISÍVEL (sem padding transparente). Assim a
     mesma `height` produz marks opticamente da MESMA altura.
       · abf-trim     267×51  (5.24:1)
       · anatel-trim  292×74  (3.95:1)
       · meta-bsp-trim 544×313 (1.74:1, cartão branco próprio)
     Pílula nos cards: mark ≈58px. Credibilidade: mark ≈80px (~70%
     de container de 116px). Pequeno ajuste fino por arquivo p/ o
     Meta (mais "encorpado") não pesar mais que os horizontais. */
  /* R4.6: selo do topo SÓ ÍCONE — pílula h:32px, img h:18px (w auto).
     ABF agora usa abf-icon.png (emblema compacto, ratio 2.16 → ~39px).
     Anatel ratio 3.95 → ~71px? não: trim 292×74 → a 18px = ~71px > 50px.
     Por isso Anatel/Meta também recebem max-width:50px de segurança. */
  --pill-mark:      18px;
  /* Reconhecimento: 3 logos alinhados pela MESMA max-height 60px */
  --cred-mark:      60px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
  font-family: var(--font-sans);
  background: var(--bg-site);
  color: var(--txt-1);
  line-height: 1.6;
  font-size: var(--type-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* foco visível em todos interativos */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; font-size: var(--type-body-sm);
}
.skip-link:focus { left: 0; }

/* === HEADER === */
.site-header {
  background: var(--bg-site);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 16px;
}
.header-logo img { height: 108px; width: auto; }
.cta-pill {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: var(--type-body);
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.cta-pill:hover { background: #15314f; transform: translateY(-1px); }

/* === HERO === */
.hero { padding: 92px 0 72px; }
.hero-eyebrow {
  font-size: var(--type-caption); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt-4); font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-display);
  line-height: 1.18;
  color: var(--txt-1);
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: var(--type-body);
  color: var(--txt-2);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero .cta-pill { display: inline-block; }

/* === SECTION SHELL === */
section { scroll-margin-top: 150px; }
.section-pad { padding: 80px 0; }
.section-line { border-top: 1px solid var(--border); }
.section-eyebrow {
  font-size: var(--type-caption); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt-4); font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-h2);
  line-height: 1.25;
  color: var(--txt-1);
  max-width: 22ch;
  margin-bottom: 22px;
}
.section-lead {
  font-size: var(--type-body); color: var(--txt-2); max-width: 60ch;
}

/* === QUEM SOMOS === */
.quem .grid-2 {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.quem-body p { color: var(--txt-2); font-size: var(--type-body); margin-bottom: 18px; max-width: 60ch; }
.quem-body p:last-child { margin-bottom: 0; }

/* === SEÇÃO CEO (discreta) === */
.ceo-block {
  margin-top: 36px;
  max-width: 64ch;
}
.ceo-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--type-body-sm);
  color: var(--txt-2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ceo-id { display: flex; align-items: center; gap: 16px; }
.ceo-avatar, .ceo-photo {
  width: 64px; height: 64px; border-radius: 50%;
  flex-shrink: 0;
}
.ceo-avatar {
  background: linear-gradient(135deg, #1B3E6F, #26B6E0);
  color: #fff; font-weight: 500; font-size: var(--type-h4);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.ceo-photo { object-fit: cover; }
.ceo-name { font-size: var(--type-body-sm); color: var(--txt-1); font-weight: 500; }
.ceo-role { font-size: var(--type-caption); color: var(--txt-3); }

/* === EMPRESAS + FRENTES === */
.empresas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 36px;
}

/* R4.12 — card-empresa height:100% + flex-column. Combinado com
   .empresas-grid{align-items:stretch} e .prod-block{margin-top:auto},
   garante que SV e SVTech terminem na MESMA linha de base e que o
   bloco "produtos" comece no MESMO Y nos dois cards. */
.empresa-card {
  position: relative;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.empresa-card.is-svtech { border-top-color: var(--accent-sv); }

/* wrapper: bloco do logo + pílula do selo EMPILHADOS em fluxo normal
   (desktop e mobile unificados — selo nunca sobrepõe o logo) */
.emp-logo-wrap {
  width: 280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* bloco do logo da empresa — SEM fundo/moldura: o logo repousa direto
   sobre a superfície do card (#FAFAF8). Padding só como respiro. */
.emp-logo-block {
  width: 100%;
  background: transparent;
  padding: 8px 0 22px;
  min-height: 130px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* R4.6: logo OCUPA ~95% do bloco branco. Bloco 280px, padding 14px →
   área útil 252px; logo width:95% dessa área ≈ 240px ≈ 85,5% da largura
   externa do bloco (≥85%, critério). max-height alto p/ quase-quadrados
   também encherem a largura. object-fit:contain — nunca corta/deforma. */
.emp-logo {
  height: auto;
  width: 95%;
  max-width: 95%;
  max-height: 152px;
  object-fit: contain;
}

/* R4.7: selo do topo SÓ ÍCONE + TOOLTIP CUSTOM (substitui title= nativo).
   Pílula absoluta no canto sup. direito, h:36px, sem texto visível.
   Mark escala proporcional (max-h 18 / max-w 50) → ≤50px, sem distorção.
   :hover/:focus-visible mostra o tooltip escuro. Mobile → static + tap. */
.seal-pill,
.prod-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: auto;
  min-width: 44px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 0.5px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: help;
  z-index: 5;
  transition: box-shadow .2s ease;
}
.seal-pill img,
.prod-seal img {
  height: auto;
  width: auto;
  max-height: var(--pill-mark);
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Teto de largura só para os emblemas compactos quadrados */
.seal-pill img.s-anatel,
.prod-seal img.s-anatel {
  max-width: 50px;
}

/* R4.11: selo ABF do topo = SÓ ícone elíptico (abf-icon.png 82×67,
   sem letra). A pílula adapta ao conteúdo — ícone NUNCA cortado. */
.seal-pill img.s-abf,
.prod-seal img.s-abf {
  height: 22px;
  max-height: 22px;
  width: auto;
  max-width: 100%;
}

.seal-pill:hover,
.seal-pill:focus-visible,
.seal-pill.is-open,
.prod-seal:hover,
.prod-seal:focus-visible,
.prod-seal.is-open {
  box-shadow: 0 0 0 4px rgba(27, 62, 111, .08);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* tooltip escuro custom */
.selo-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  max-width: 78vw;
  background: #1F2937;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  text-align: left;
}
.selo-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #1F2937;
  border-radius: 2px;
  transform: rotate(45deg);
}
.selo-tooltip-titulo {
  font-size: var(--type-tooltip);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.4;
}
.selo-tooltip-texto {
  font-size: var(--type-tooltip);
  color: #D1D5DB;
  line-height: 1.5;
}
.seal-pill:hover .selo-tooltip,
.seal-pill:focus-visible .selo-tooltip,
.seal-pill.is-open .selo-tooltip,
.prod-seal:hover .selo-tooltip,
.prod-seal:focus-visible .selo-tooltip,
.prod-seal.is-open .selo-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.emp-name {
  font-family: var(--font-serif);
  font-size: var(--type-h3);
  font-weight: 500;
  color: var(--txt-1);
  margin: 18px 0 8px;
}
/* R4.12 — descrição da empresa reserva PIOR CASO (3 linhas SV) via
   min-height; descrições mais curtas (SVTech 2 linhas) usam o MESMO
   bloco sem mostrar buraco. font-size via var(--type-body) (16px). */
.emp-desc {
  font-size: var(--type-body);
  color: var(--txt-2);
  line-height: 1.55;
  min-height: calc(1.55em * 3);
  margin: 8px 0 16px;
}

/* ícones de rede empresa (3 slots fixos, pílulas 38×38, ícone 19)
   R4.12 — altura fixa 38px + margin-bottom fixo 24px (simetria entre
   os 2 cards, antes do bloco produtos colado embaixo). */
.social-row {
  display: flex;
  gap: 8px;
  height: 38px;
  margin: 0 0 24px;
}
.soc {
  width: 38px; height: 38px;
  background: #fff;
  border: 0.5px solid var(--border-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.soc svg { width: 19px; height: 19px; }
a.soc:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.soc.is-disabled { color: var(--border-2); cursor: default; pointer-events: none; opacity: .3; }

/* Frentes (sub-cards) — encostado embaixo p/ simetria (R4.12).
   O card empresa é flex-column; .prod-block com margin-top:auto cola
   no fim, garantindo que SV e SVTech terminem na MESMA linha de base
   e o fluxograma+produtos comece no MESMO Y nos dois cards. */
.prod-block { margin-top: auto; }

/* R4.5: FLUXOGRAMA Y invertido — conecta a empresa aos 2 sub-cards.
   tronco vertical (::before) → linha horizontal (::after) → 2 pernas. */
.fluxograma-y {
  position: relative;
  height: 28px;
  margin: 4px 0;
}
.fluxograma-y::before {           /* tronco vertical central */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--border-2);
}
.fluxograma-y::after {            /* linha horizontal */
  content: "";
  position: absolute;
  top: 14px;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--border-2);
}
.fluxograma-y .fy-leg {           /* pernas descendo p/ cada sub-card */
  content: "";
  position: absolute;
  top: 14px;
  width: 2px;
  height: 14px;
  background: var(--border-2);
}
.fluxograma-y .fy-leg-l { left: 22%; }
.fluxograma-y .fy-leg-r { right: 22%; }
/* R4.12 — grid dos 4 sub-cards: align-items:stretch força MESMA altura
   nas 2 colunas; cada sub-card cresce até a altura do pior caso. */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

/* sub-card de produto — height:100% + flex-column para que o grid
   estique todos para a MESMA altura (R4.12). */
.prod-card {
  position: relative;
  background: var(--bg-subcard);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* wrapper: bloco do logo + pílula do selo EMPILHADOS em fluxo,
   largura total do sub-card — nada vaza. R4.12: flex-shrink:0 para
   não esticar e manter altura previsível, igual ao .prod-logo-block. */
.prod-logo-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}
/* bloco do logo do produto — SEM fundo/moldura: logo direto sobre o
   fundo do sub-card. R4.12: min-height fixo 78px e flex-shrink:0 para
   que ele NÃO estique (mantém altura previsível enquanto o resto do
   sub-card cresce). */
.prod-logo-block {
  width: 100%;
  background: transparent;
  padding: 6px 0 12px;
  min-height: 78px;
  flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* logo preenche o bloco: largura util ~135px (155-20) ~= 87% do bloco;
   max-height 70 garante que os quase-quadrados também encham (>=70%) */
.prod-logo-block img:not(.prod-seal) {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

/* R4.7: selo do sub-card (Meta) usa o mesmo estilo unificado .seal-pill
   /.prod-seal definido acima — pílula + tooltip custom. */

/* R4.11: sub-card SVchat → SÓ o símbolo infinity Meta (sem texto, sem
   pílula branca). Container limpo no canto, img ~28px. Tooltip R4.7 mantido. */
.prod-seal--meta {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: help;
  z-index: 5;
}
.prod-seal--meta img.s-meta-infinity {
  height: 20px;
  max-height: 20px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.prod-seal--meta:hover,
.prod-seal--meta:focus-visible,
.prod-seal--meta.is-open {
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.prod-name {
  font-family: var(--font-serif);
  font-size: var(--type-h4); font-weight: 500;
  color: var(--txt-1);
  margin: 10px 0 6px;
}
/* R4.12 — descrição do produto reserva PIOR CASO (3 linhas AVHT) via
   min-height; descrições de 2 linhas (SVchat, Clínica, SVvoIP) usam
   o MESMO bloco sem mostrar buraco. font-size via var(--type-body-sm). */
.prod-desc {
  font-size: var(--type-body-sm);
  color: var(--txt-3);
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  margin: 0 0 10px;
}
/* R4.12 — social do produto: altura fixa 30px + margin-top:auto (cola
   no fim do sub-card) → MESMA base inferior nos 4 sub-cards. */
.social-row.sm {
  gap: 6px;
  height: 30px;
  margin: auto 0 0;
}
.soc.sm {
  width: 30px; height: 30px;
  background: var(--bg-logo-prod);
  border: 0.5px solid var(--border);
  border-radius: 6px;
}
.soc.sm svg { width: 15px; height: 15px; }

/* === EXPERTS === */
.experts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
.expert-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.expert-card.core { border-left: 3px solid var(--accent); }
.expert-kicker {
  font-size: var(--type-caption); text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--txt-4); font-weight: 600; margin-bottom: 12px;
}
.expert-card h3 {
  font-family: var(--font-serif);
  font-size: var(--type-h3); font-weight: 500;
  color: var(--txt-1); margin-bottom: 12px;
}
.expert-card p { font-size: var(--type-body); color: var(--txt-2); }

/* === SELOS / CREDIBILIDADE (R4.9) === */
/* 3 containers de LARGURA IDÊNTICA (repeat(3,1fr)), logos com height
   FIXA 50px e ALINHADOS PELA BASE (align-items:flex-end). Sem caixa
   interna: o logo fica direto sobre o fundo do card. */
.selos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
.selo {
  background: #FAFAF8;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center;
}
/* wrapper do logo: SEM fundo/borda — só posiciona; alinha pela BASE */
.selo-mark {
  flex: 1;
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* R4.11: alinhamento pela BASE (flex-end no .selo-mark) preservado.
   ABF/Anatel = 50px; Meta = 75px (+30% presença, símbolo mais quadrado)
   → conteúdo visual equilibrado, base inferior dos 3 na mesma linha. */
.selo-mark img {
  max-width: 90%;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
.selo-mark img.logo-abf,
.selo-mark img.logo-anatel { height: 50px; }
.selo-mark img.logo-meta   { height: 75px; }
.selo > div { text-align: center; }
.selo-title {
  margin: 18px 0 0;
  font-size: var(--type-body-sm);
  font-weight: 500;
  color: #1F2937;
}
.selo-sub {
  margin-top: 4px;
  font-size: var(--type-body-sm);
  color: var(--txt-3);
  line-height: 1.5;
}

/* === CONTATO === */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 36px;
}
.contato-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contato-list li:last-child { border-bottom: 0; }
.contato-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px; background: #fff;
  border: 0.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contato-ico svg { width: 17px; height: 17px; }
.contato-k { font-size: var(--type-caption); text-transform: uppercase; letter-spacing: 1.5px; color: var(--txt-4); font-weight: 600; }
.contato-v { font-size: var(--type-body); color: var(--txt-1); }
.contato-v a { color: var(--accent); }
.contato-v a:hover { text-decoration: underline; }
.contato-social { display: flex; gap: 10px; margin-top: 6px; }

.contato-cta {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}
.contato-cta h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--type-h3); color: var(--txt-1); margin-bottom: 12px;
}
.contato-cta p { font-size: var(--type-body); color: var(--txt-2); margin-bottom: 24px; }

/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
/* R4.11: footer-logo = ícone GV BRANCO monocromático + texto branco */
.footer-brand-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.footer-brand-id img { height: 96px; width: auto; }
.footer-brand-id .fb-name {
  font-family: var(--font-sans);
  font-size: var(--type-footer-logo);
  font-weight: 400;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  color: #FFFFFF;
}
.footer-tagline { font-size: var(--type-body-sm); color: rgba(255,255,255,.62); max-width: 32ch; }
.footer-col h4 {
  font-size: var(--type-caption); text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; font-size: var(--type-body-sm); color: rgba(255,255,255,.8); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px;
  font-size: var(--type-caption); color: rgba(255,255,255,.55);
}

/* === REVEAL ON SCROLL === */
/* Estado padrão: VISÍVEL. Só esconde quando JS está presente (html.js). */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* === RESPONSIVO (mobile-first → expande) === */
@media (min-width: 720px) {
  .quem .grid-2 { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .experts-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contato-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 940px) {
  .empresas-grid { grid-template-columns: 1fr 1fr; }
  /* 3 colunas IDÊNTICAS (R4.5) */
  .selos-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* === MOBILE ≤768px (R4.5) — aplicar exatamente === */
@media (max-width: 768px) {
  /* tamanhos de texto novos do R4.5 SÓ via redefinição de variável
     (continua "via var(--type-*)" — zero valor literal em elemento) */
  :root { --type-h3: 21px; }

  /* R4.13: logo GV no header em mobile (≤768px) = 72px de altura.
     Mantém o header curto e impede sangramento em telas estreitas. */
  .header-logo img { height: 72px; }

  /* 2 empresas empilhadas */
  .empresas-grid { grid-template-columns: 1fr; gap: 16px; }
  .empresa-card  { padding: 18px; }

  /* bloco do logo da empresa — segue ocupando ~95% (≥85%) do bloco */
  .emp-logo-wrap  { width: 100%; }
  .emp-logo-block { width: 100%; padding: 14px; min-height: 140px; }
  .emp-logo       { width: 95%; max-width: 95%; height: auto; max-height: 120px; }

  /* SELO DO TOPO desce p/ linha própria abaixo do bloco do logo.
     Continua relative (contém o tooltip), SÓ ÍCONE. Toque alterna
     .is-open via JS; o tooltip abre abaixo, alinhado à esquerda. */
  .seal-pill,
  .prod-seal {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    height: 36px;
    margin: 12px 0 0;
  }
  /* tooltip ancorado à esquerda no mobile p/ não vazar a viewport */
  .selo-tooltip {
    right: auto;
    left: 0;
    width: 240px;
    max-width: calc(100vw - 60px);
  }
  .selo-tooltip::before {
    right: auto;
    left: 18px;
  }
  /* no touch o hover não existe — só .is-open (tap) mostra o tooltip */
  .seal-pill:hover .selo-tooltip,
  .prod-seal:hover .selo-tooltip {
    opacity: 0;
    pointer-events: none;
  }
  .seal-pill.is-open .selo-tooltip,
  .prod-seal.is-open .selo-tooltip,
  .seal-pill:focus-visible .selo-tooltip,
  .prod-seal:focus-visible .selo-tooltip {
    opacity: 1;
    pointer-events: auto;
  }

  /* ícones de rede encolhem 32×32, ícone interno 16 */
  .soc        { width: 32px; height: 32px; }
  .soc svg    { width: 16px; height: 16px; }

  /* FLUXOGRAMA Y do desktop some; vira ÁRVORE VERTICAL (file-tree) */
  .fluxograma-y { display: none; }
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    padding-left: 22px;
  }
  .prod-grid::before {              /* tronco vertical contínuo à esquerda */
    content: "";
    position: absolute;
    left: 9px;
    top: -4px;
    bottom: 25%;                    /* alcança o L do 2º (último) sub-card */
    width: 2px;
    background: var(--border-2);
  }
  .prod-card { position: relative; }
  .prod-card::before {              /* L horizontal entrando em cada sub-card */
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    width: 13px;
    height: 2px;
    background: var(--border-2);
  }

  /* bloco do logo do produto full width + logo no mobile */
  .prod-logo-block { width: 100%; }
  .prod-logo-block img:not(.prod-seal) { max-width: 180px; width: 100%; height: auto; }

  /* descrição e ícones full width */
  .emp-desc, .prod-desc { width: 100%; }
  .social-row, .social-row.sm { width: 100%; }

  /* seção credibilidade: empilha em 1 coluna (R4.9) */
  .selos-grid { grid-template-columns: 1fr; gap: 12px; }
  .selo       { padding: 24px 18px; }
  .selo-mark  { min-height: 72px; }

  /* footer 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand-id img { height: 80px; }
}

@media (max-width: 560px) {
  /* R4.13: ≤560px mantém o logo em 72px (mesmo valor do ≤768px) para
     não criar regressão em telas menores. */
  .header-logo img { height: 72px; }
  .cta-pill { padding: 12px 18px; font-size: var(--type-body-sm); }
  .section-pad, .hero { padding-top: 56px; padding-bottom: 56px; }
}

/* === ACESSIBILIDADE: reduz movimento === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .cta-pill:hover, a.soc:hover { transform: none; }
  .cta-pill, .soc, .reveal { transition: none; }
  .seal-pill, .prod-seal, .selo-tooltip { transition: none; }
}
