/* ═══════════════════════════════════════════════════════════
   caioformiga.com — Tesla Dark Theme
   ═══════════════════════════════════════════════════════════ */

/* Inter font is loaded via <link> in each HTML <head> for non-blocking parallel fetch.
   Removido o @import original em 2026-05-09 para eliminar render-blocking duplo (CSS+@import).
   Famílias e pesos esperados: Inter 300, 400, 500, 600, 700, 800, 900 com display=swap. */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --teal:       #1B6CA8;
  --teal-light: #2286CC;
  --teal-pale:  rgba(27,108,168,0.18);
  --teal-glow:  rgba(27,108,168,0.35);

  --text:           rgba(255,255,255,0.88);   /* primary body text      */
  --text-secondary: rgba(255,255,255,0.68);   /* secondary/subtle text  */
  --text-muted:     rgba(255,255,255,0.48);   /* captions, small meta   */
  --text-faint:     rgba(255,255,255,0.38);   /* very light, rare use   */
  /* Legacy aliases — kept for backward compat, prefer the names above */
  --text-mid:   var(--text-secondary);
  --text-light: var(--text-faint);

  --bg:         #070E18;
  --bg-alt:     #0B1625;
  --bg-card:    #0F1E2E;
  --bg-card-hv: #132434;

  --border:     rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.13);

  --red:        #E05252;
  --gold:       #D4A82A;
  --gold-pale:  rgba(212,168,42,0.12);

  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 16px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 32px rgba(0,0,0,0.5);

  --max-w:     1100px;
  --section-py:72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Accessibility · Focus (WCAG 2.4.7) ───────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.12s ease;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
.tile-card:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(27,108,168,0.22);
  border-radius: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 1px;
}
/* Skip link — revealed on focus only */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff;
  padding: 10px 18px; font-weight: 600;
  border-radius: 0 0 6px 0; z-index: 200;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Container ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* ── Footer utility ───────────────────────────────────────── */
.footer-deemph { opacity: 0.55; font-size: 0.85em; }

/* ══════════════════════════════════════════════════════════════
   HEADER & NAV
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(7,14,24); /* opaco — sem backdrop-filter para perf no scroll */
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand .name  { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.nav-brand .title { font-size: 0.68rem; color: var(--text-light); font-weight: 400; text-transform: uppercase; letter-spacing: 0.07em; }
.nav-logo { height: 56px; width: 150px; display: block; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-mid);
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 11px; border-radius: 6px;
  transition: background-color 0.11s ease, color 0.11s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links .nav-cta {
  background: var(--teal); color: #fff !important;
  padding: 8px 18px; border-radius: 6px;
  font-weight: 600; font-size: 0.82rem;
  transition: background-color 0.11s ease;
}
.nav-links .nav-cta:hover { background: var(--teal-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ── Dropdown nav ─────────────────────────────────────────── */
.nav-group { position: relative; }
.nav-group > a {
  display: flex; align-items: center; gap: 3px;
}
.nav-group > a::after {
  content: '▾'; font-size: 0.6rem; opacity: 0.45; margin-top: 1px;
  transition: opacity 0.11s ease;
}
.nav-group:hover > a::after { opacity: 0.9; }

/* invisible bridge fills the gap so hover doesn't break */
.nav-group::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 14px;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: -10px;
  background: rgb(5,11,20); /* opaco — sem backdrop-filter para perf */
  border: 1px solid var(--border-mid);
  border-radius: 12px; padding: 6px;
  min-width: 218px; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-4px);
  transform-origin: top left;
  transition: opacity 0.1s ease-out, transform 0.1s ease-out, visibility 0s linear 0.1s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  will-change: opacity, transform;
}
.nav-group:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.08s ease-out, transform 0.08s ease-out, visibility 0s linear 0s;
}
.nav-dropdown a {
  display: block; padding: 9px 13px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.68); border-radius: 7px;
  transition: background-color 0.1s ease, color 0.1s ease;
  white-space: nowrap;
  background: none !important; width: auto;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.07) !important; color: #fff; }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 8px; }

/* ── Wide 2-column dropdown · auto-detected via :has() ─────── */
/* Targets the Doenças menu (29 itens) — usa qualquer dropdown que
   contenha links doencas-* como gatilho, sem precisar editar HTML.
   Usa CSS multi-column (column-count) para preencher coluna-por-
   coluna (top→bottom), preservando a ordem alfabética visual.
   Itens herdam o tamanho dos outros dropdowns (sem override). */
@media (min-width: 821px) {
  .nav-dropdown:has(a[href^="doencas-"]) {
    column-count: 2;
    column-gap: 4px;
    width: min(540px, calc(100vw - 32px));
    min-width: 0;
    /* Ancora pela direita: Doenças fica meio-direita no nav, então o
       dropdown se expande pra esquerda sem ultrapassar a viewport */
    left: auto;
    right: -10px;
    transform-origin: top right;
  }
  .nav-dropdown:has(a[href^="doencas-"]) a {
    display: block;
    break-inside: avoid;
    white-space: normal;
    line-height: 1.4;
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7,14,24,0.98); padding: 16px 24px 24px;
    border-top: 1px solid var(--border); gap: 4px; overflow-y: auto; max-height: calc(100dvh - 64px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 12px; }
  .nav-group { width: 100%; }
  .nav-group > a::after { display: none; }
  .nav-dropdown {
    position: static; background: rgba(255,255,255,0.03);
    backdrop-filter: none; border: none; border-radius: 0;
    padding: 0 0 0 14px; opacity: 1; visibility: visible;
    pointer-events: auto; transform: none;
    box-shadow: none; min-width: 0;
    border-left: 2px solid rgba(27,108,168,0.35);
    margin: 4px 0 6px;
  }
  .nav-dropdown a { font-size: 0.78rem; padding: 8px 12px; color: rgba(255,255,255,0.55); }
  .nav-dropdown hr { display: none; }
}

/* ── Desktop nav · compact tier (821-1100px, laptops 13-15") ── */
@media (min-width: 821px) {
  .nav-inner { height: 76px; }
  .nav-links { gap: 4px; }
  .nav-links a {
    font-size: 0.92rem;
    padding: 8px 12px;
    border-radius: 7px;
  }
  .nav-links .nav-cta {
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 7px;
  }
  .nav-group > a::after { font-size: 0.7rem; }
  .nav-dropdown { min-width: 230px; padding: 7px; }
  .nav-dropdown a {
    font-size: 0.92rem;
    padding: 10px 14px;
    border-radius: 7px;
  }
}

/* ── Desktop nav · full tier (≥1101px, telas amplas) ───────── */
@media (min-width: 1101px) {
  .nav-inner { height: 84px; }
  .nav-links { gap: 6px; }
  .nav-links a {
    font-size: 1.05rem;
    padding: 10px 15px;
  }
  .nav-links .nav-cta {
    font-size: 1.05rem;
    padding: 12px 22px;
  }
  .nav-group > a::after { font-size: 0.78rem; }
  .nav-dropdown { min-width: 248px; padding: 8px; }
  .nav-dropdown a {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════
   TESLA FULL-SCREEN SECTIONS (home page)
   ══════════════════════════════════════════════════════════════ */
.ts-section {
  position: relative;
  width: 100%;
  height: 100vh; /* fallback */
  height: 100dvh;
  min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  overflow: hidden;
}
.ts-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s ease;
}
.ts-section:hover .ts-bg { transform: scale(1.018); }
.ts-overlay { position: absolute; inset: 0; pointer-events: none; }
.ov-bottom  { background: linear-gradient(to top, rgba(7,14,24,0.92) 0%, rgba(7,14,24,0.55) 40%, transparent 72%); }
.ov-top     { background: linear-gradient(to bottom, rgba(7,14,24,0.85) 0%, rgba(7,14,24,0.3) 50%, transparent 100%); }
.ov-center  { background: radial-gradient(ellipse at center, rgba(7,14,24,0.05) 0%, rgba(7,14,24,0.72) 100%); }
.ov-side-left  { background: linear-gradient(to right, rgba(7,14,24,0.95) 0%, rgba(7,14,24,0.6) 40%, transparent 100%); }
.ov-side-right { background: linear-gradient(to left, rgba(7,14,24,0.95) 0%, rgba(7,14,24,0.6) 40%, transparent 100%); }

.ts-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px 60px;
  max-width: 700px; width: 100%;
}
.ts-tag {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.ts-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 12px;
}
.ts-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.65; margin-bottom: 32px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.ts-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ts-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.22s; white-space: nowrap;
}
.ts-btn-solid { background: rgba(255,255,255,0.94); color: #07111E; }
.ts-btn-solid:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.4); }
.ts-btn-ghost {
  background: rgba(0,0,0,0.28); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}
.ts-btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.ts-btn-teal { background: var(--teal); color: #fff; }
.ts-btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,108,168,0.4); }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.5; animation: bounce 2s infinite;
}
.scroll-hint span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); }
.scroll-hint-arrow { width: 18px; height: 18px; border-right: 2px solid rgba(255,255,255,0.65); border-bottom: 2px solid rgba(255,255,255,0.65); transform: rotate(45deg); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════════════════════════════
   STAT STRIP
   ══════════════════════════════════════════════════════════════ */
.stat-strip {
  background: #0A1828;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px;
  display: flex; justify-content: center;
  gap: clamp(28px, 5vw, 80px); flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num  { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.stat-label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 4px; }

/* Mobile: 4 stats em uma única fileira (sem wrap), top-alinhados */
@media (max-width: 640px) {
  .stat-strip {
    padding: 20px 10px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start !important;     /* sobrepõe align-items:center inline */
  }
  .stat-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .stat-num,
  .stat-item .stat-num[style] {
    font-size: 1rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    min-height: 1.15em;                    /* todos os números mesma altura */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .stat-label {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-top: 6px;
    min-height: calc(1.3em * 3);            /* reserva 3 linhas (a mais comprida) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (subpages & hubs — smaller than full-screen)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  height: clamp(360px, 45vh, 520px);
  display: flex; align-items: flex-end;
}
.page-hero .ph-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #0A1420;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(27,108,168,0.28) 0%, rgba(27,108,168,0) 55%),
    radial-gradient(ellipse at 85% 100%, rgba(27,108,168,0.18) 0%, rgba(27,108,168,0) 60%),
    linear-gradient(135deg, #0A1420 0%, #0E1C2E 50%, #0A1420 100%);
}
/* Hero do câncer de pele · prioriza o dermatoscópio em contato com a pele
   (parte inferior da imagem) — afeta cancer-de-pele.html, cancer-basocelular,
   cancer-espinocelular, cancer-melanoma, cancer-ceratose, cancer-campo,
   cancer-mapeamento. Usa atributo[style*=...] para detectar sem editar HTML. */
.page-hero .ph-bg[style*="cancer-page-hero"] {
  background-position: center 80%;
}

/* Hero da cirurgia · sobe a imagem para revelar a lupa por inteiro.
   Os 11 arquivos cirurgia-* têm `background-position:center top` inline,
   por isso precisamos de !important para sobrescrever o style attribute. */
.page-hero .ph-bg[style*="cirurgia-page-hero"] {
  background-position: center 30% !important;
}

/* Hero do laser · reduz a posição vertical (foco mais alto na imagem) —
   afeta laser.html, laser-co2, laser-redtouch, laser-smartpico,
   laser-rejuvenescimento, laser-manchas-rosto, laser-cicatriz-acne,
   laser-campo-canceriza, laser-onicomicose. */
.page-hero .ph-bg[style*="laser-page-hero"] {
  background-position: center 30%;
}

/* Hero das doenças de pele · aumenta a posição vertical para descer o foco —
   afeta as 27 páginas doencas-* + doencas-de-pele.html (hub). Os arquivos
   têm `background-position:center top` inline, por isso !important. */
.page-hero .ph-bg[style*="doencas-page-hero"] {
  background-position: center 22% !important;
}

/* Hero da hanseníase · imagem própria (hanseniase-page-hero.jpg).
   Foco em 25% para enquadrar melhor o assunto da foto. */
.page-hero .ph-bg[style*="hanseniase-page-hero"] {
  background-position: center 25%;
}

/* Hero dos sintomas · ajusta a posição vertical —
   afeta sintomas.html (hub) + 13 subpáginas sintomas-*. */
.page-hero .ph-bg[style*="sintomas-page-hero"] {
  background-position: center 40%;
}

/* Hero do sobre · ajusta a posição vertical na página sobre.html */
.page-hero .ph-bg[style*="sobre-page-hero"] {
  background-position: center 30%;
}

/* Hero do contato/agenda · ajusta a posição vertical em contato.html */
.page-hero .ph-bg[style*="contato-page-hero"] {
  background-position: center 30%;
}
.page-hero .ph-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,14,24,0.95) 0%, rgba(7,14,24,0.6) 45%, rgba(7,14,24,0.25) 100%);
}
.page-hero .ph-content {
  position: relative; z-index: 2;
  padding: 0 0 44px;
  width: 100%;
}
.page-hero .ph-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--teal-light); margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 10px; max-width: 680px;
}
.page-hero .ph-sub {
  font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 540px; line-height: 1.65;
}

/* Full hero variant (hubs) */
.page-hero-full {
  height: 75vh; /* fallback */
  height: clamp(520px, 75dvh, 880px);
  min-height: 520px;
}
.page-hero-full .ph-content { padding-bottom: 56px; }
.page-hero-full h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero-full .ts-actions { margin-top: 28px; }

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.breadcrumb {
  background: #070E18;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-inner { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-light); }
.breadcrumb-inner a { color: var(--teal-light); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }
.breadcrumb-cur { color: var(--text-mid); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #050C17; }

.section-label { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--teal-light); margin-bottom: 10px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px; }
.section-sub { font-size: 1.02rem; color: var(--text-mid); max-width: 600px; line-height: 1.75; }
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: all 0.25s;
}
.card:hover { border-color: rgba(27,108,168,0.5); transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--bg-card-hv); }
.card-link:hover .card-title { color: var(--teal-light); }

.card-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.3rem; }
.card-tag  { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--teal-light); margin-bottom: 5px; }
.card-title { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; transition: color 0.2s; }
.card-text  { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }
.card-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--teal-light); margin-top: 16px; }

/* Subpage listing card */
.subpage-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.25s;
}
.subpage-card:hover { border-color: rgba(27,108,168,0.5); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--bg-card-hv); }
.subpage-card:hover .subpage-title { color: var(--teal-light); }
.subpage-num { width: 34px; height: 34px; border-radius: 8px; background: var(--teal-pale); color: var(--teal-light); font-weight: 800; font-size: 0.86rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.subpage-body { flex: 1; }
.subpage-title { font-size: 0.93rem; font-weight: 700; color: #fff; margin-bottom: 5px; transition: color 0.2s; }
.subpage-desc  { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }
.subpages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ══════════════════════════════════════════════════════════════
   ABOUT / BIO
   ══════════════════════════════════════════════════════════════ */
.bio-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: center; }
.bio-photo { aspect-ratio: 3/4; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 4rem; overflow: hidden; }
.bio-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.credential-tag { background: var(--teal-pale); color: var(--teal-light); border: 1px solid rgba(27,108,168,0.3); font-size: 0.75rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.bio-text  { font-size: 0.97rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; }
.stats-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stat-num-sm { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.stat-label-sm { font-size: 0.76rem; color: var(--text-light); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   TECH GRID (laser section)
   ══════════════════════════════════════════════════════════════ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: all 0.25s;
}
.tech-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(27,108,168,0.4); }
.tech-card .tech-nm { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-light); font-weight: 700; margin-bottom: 6px; }
.tech-card h3 { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.tech-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tech-tag { background: rgba(27,108,168,0.2); color: var(--teal-light); font-size: 0.7rem; padding: 3px 9px; border-radius: 12px; }

/* ══════════════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, #050D1A 0%, #0A2038 60%, #0E2D50 100%);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; color: #fff; max-width: 480px; line-height: 1.3; }
.cta-band p  { color: var(--text-mid); font-size: 0.93rem; margin-top: 8px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #22C55E; color: #fff;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  white-space: nowrap; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
}
.btn-whatsapp:hover { background: #16A34A; transform: translateY(-2px); }
.wa-icon { font-size: 1.15rem; }

/* ══════════════════════════════════════════════════════════════
   ALERT / INFO BOXES
   ══════════════════════════════════════════════════════════════ */
.alert { padding: 16px 20px; border-radius: var(--radius); font-size: 0.88rem; line-height: 1.6; display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; }
.alert-warning { background: var(--gold-pale); border-left: 4px solid var(--gold); color: rgba(255,220,100,0.9); }
.alert-info    { background: var(--teal-pale);  border-left: 4px solid var(--teal-light); color: rgba(150,210,255,0.9); }
.alert-danger  { background: rgba(224,82,82,0.1); border-left: 4px solid var(--red); color: rgba(255,160,160,0.9); }
.alert-icon    { font-size: 1.05rem; margin-top: 1px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   ARTICLE / PROSE (dark)
   ══════════════════════════════════════════════════════════════ */
.article-body { max-width: 780px; }
.article-body h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.55rem); font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
  margin: 34px 0 14px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 { font-size: 1.13rem; font-weight: 700; color: rgba(255,255,255,0.9); margin: 26px 0 10px; letter-spacing: -0.01em; }
.article-body p  { font-size: 0.98rem; color: rgba(255,255,255,0.68); line-height: 1.82; margin-bottom: 15px; }
.article-body ul, .article-body ol { margin: 12px 0 18px; padding-left: 0; display: flex; flex-direction: column; gap: 9px; }
.article-body ul li, .article-body ol li { font-size: 0.97rem; color: rgba(255,255,255,0.68); line-height: 1.7; display: flex; gap: 10px; align-items: flex-start; }
.article-body ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); margin-top: 8px; flex-shrink: 0; }
.article-body ol { counter-reset: ol-c; }
.article-body ol li { counter-increment: ol-c; }
.article-body ol li::before { content: counter(ol-c); color: var(--teal-light); font-weight: 700; font-size: 0.78rem; flex-shrink: 0; width: 22px; height: 22px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.article-body strong { color: rgba(255,255,255,0.92); font-weight: 600; }
.article-body blockquote { border-left: 4px solid var(--teal); padding: 14px 20px; background: var(--teal-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; font-size: 0.93rem; color: rgba(150,210,255,0.9); line-height: 1.7; }
.article-body .disclaimer { border-left: 4px solid var(--gold); padding: 14px 20px; background: var(--gold-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; font-size: 0.86rem; color: rgba(255,220,100,0.85); line-height: 1.7; }

/* Clinical figure — inline educational images */
.article-body figure.clinical {
  margin: 26px 0 28px; padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.article-body figure.clinical img {
  width: 100%; height: auto; display: block;
}
.article-body figure.clinical figcaption {
  padding: 12px 18px 14px;
  font-size: 0.82rem; color: rgba(255,255,255,0.58);
  line-height: 1.55; letter-spacing: 0.01em;
  border-top: 1px solid var(--border);
}
.article-body figure.clinical figcaption strong {
  display: block; color: rgba(255,255,255,0.82);
  font-weight: 600; margin-bottom: 4px; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.article-body figure.clinical figcaption .consent {
  color: var(--teal-light); font-size: 0.72rem;
  display: inline-block; margin-top: 6px; opacity: 0.85;
}
/* Device (equipment) variant — portrait product shot, contained width */
.article-body figure.clinical.device {
  max-width: 360px; margin-inline: auto;
}
.article-body figure.clinical.device img {
  background: var(--bg-card);
}
.article-body figure.clinical.device figcaption {
  text-align: center;
}

/* Device float — magazine-style product shot that text wraps around */
.article-body figure.device-float {
  float: right;
  width: 240px;
  max-width: 45%;
  margin: 4px 0 18px 28px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  shape-outside: inset(0 round 6px);
}
.article-body figure.device-float picture,
.article-body figure.device-float img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55))
          drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.article-body figure.device-float figcaption {
  margin-top: 10px;
  padding: 0;
  border: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.article-body figure.device-float figcaption strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  margin-bottom: 2px;
}
.article-body figure.device-float figcaption span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
}
@media (max-width: 640px) {
  .article-body figure.device-float {
    float: none;
    width: 220px;
    max-width: 60%;
    margin: 10px auto 22px;
  }
}

/* Before/After — par de imagens lado a lado (antes/depois de tratamento).
   No mobile, empilha verticalmente. */
.article-body figure.before-after {
  margin: 26px 0 28px;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.article-body figure.before-after .ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.article-body figure.before-after .ba-frame {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
}
.article-body figure.before-after .ba-frame img {
  width: 100%;
  height: auto;
  display: block;
}
/* Uniform pair: clínica + dermatoscopia em quadrado fixo, sem corte */
.article-body figure.before-after.dermato-pair .ba-frame {
  background: #0a0f17;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-body figure.before-after.dermato-pair .ba-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.article-body figure.before-after .ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.95);
  background: rgba(7,14,24,0.78);
  padding: 5px 11px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.article-body figure.before-after figcaption {
  padding: 12px 18px 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.article-body figure.before-after figcaption strong {
  display: block;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-body figure.before-after figcaption .consent {
  color: var(--teal-light);
  font-size: 0.72rem;
  display: inline-block;
  margin-top: 6px;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .article-body figure.before-after .ba-pair {
    grid-template-columns: 1fr;
  }
}

/* Two-column layout */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 288px; gap: 52px; align-items: start; }
.sidebar-sticky { position: sticky; top: 84px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.sidebar-card h3 { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sidebar-card ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card ul li { font-size: 0.83rem; color: var(--text-mid); }
.sidebar-card ul li a { color: var(--teal-light); transition: color 0.2s; }
.sidebar-card ul li a:hover { color: #fff; }

/* Profile treatment boxes */
.profile-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 26px; margin: 14px 0; transition: border-color 0.2s; }
.profile-box:hover { border-color: rgba(27,108,168,0.4); }
.profile-box .profile-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-light); margin-bottom: 5px; }
.profile-box h4 { font-size: 0.97rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.profile-box p  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   SYMPTOM CARDS
   ══════════════════════════════════════════════════════════════ */
.symptom-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: all 0.25s; }
.symptom-card:hover { border-color: rgba(224,82,82,0.45); box-shadow: 0 4px 24px rgba(224,82,82,0.1); background: var(--bg-card-hv); }
.symptom-card .sym-icon { font-size: 1.9rem; margin-bottom: 12px; }
.symptom-card h3 { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.symptom-card p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }
.symptom-card .urgency { margin-top: 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.urgency-high { color: var(--red); }
.urgency-mid  { color: var(--gold); }

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,108,168,0.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border-mid); color: var(--text-mid);
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.92rem;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.05); }

/* ══════════════════════════════════════════════════════════════
   TILE CARDS (hub subpage showcase)
   ══════════════════════════════════════════════════════════════ */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tiles-grid-3 { grid-template-columns: repeat(3, 1fr); }

.tile-card {
  position: relative; display: block;
  height: clamp(260px, 36vw, 360px); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  text-decoration: none;
}
.tile-card:focus-visible { outline: 2px solid var(--teal-light); }

.tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #0C1828;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(27,108,168,0.22) 0%, rgba(27,108,168,0) 60%),
    linear-gradient(160deg, #0C1828 0%, #13253A 100%);
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.tile-card:hover .tile-bg { transform: scale(1.07); }

.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,14,24,0.95) 0%,
    rgba(7,14,24,0.60) 45%,
    rgba(7,14,24,0.18) 100%
  );
  transition: opacity 0.3s;
}
.tile-card:hover .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(7,14,24,0.90) 0%,
    rgba(7,14,24,0.45) 45%,
    rgba(7,14,24,0.10) 100%
  );
}

/* Top accent line on hover */
.tile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--teal), var(--teal-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 3;
}
.tile-card:hover::before { transform: scaleX(1); }

.tile-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 28px 26px; z-index: 2;
}
.tile-num {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal-light); margin-bottom: 7px;
  display: block;
}
.tile-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700;
  color: #fff; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.tile-desc {
  font-size: 0.84rem; color: rgba(255,255,255,0.58);
  line-height: 1.55; margin: 0;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
}
.tile-card:hover .tile-desc { max-height: 80px; opacity: 1; }

.tile-arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--teal-light); margin-top: 12px;
  opacity: 0; transform: translateX(-10px);
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}
.tile-card:hover .tile-arrow { opacity: 1; transform: translateX(0); }

/* Large tile variant (featured — spans 2 cols) */
.tile-card-lg { height: clamp(280px, 42vw, 420px); grid-column: span 2; }

@media (max-width: 820px) {
  .tiles-grid, .tiles-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tile-desc { max-height: 80px !important; opacity: 1 !important; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer { background: #040C17; border-top: 1px solid var(--border); color: var(--text-mid); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .name  { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-brand .title { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.07em; }
.footer-brand p { font-size: 0.83rem; margin-top: 12px; line-height: 1.65; color: var(--text-mid); max-width: 250px; }
.footer-logo { height: 56px; width: 150px; display: block; margin-bottom: 12px; opacity: 0.88; }
.footer-logo-link:hover .footer-logo { opacity: 1; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-light); transition: color 0.2s, border-color 0.2s; }
.social-icon:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li { font-size: 0.83rem; color: var(--text-mid); }
.footer-col a  { font-size: 0.83rem; color: var(--text-mid); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-crm { color: var(--text-light); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --section-py: 52px; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-photo { aspect-ratio: 16/7; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
  .sidebar-sticky { position: static; }
}
@media (max-width: 640px) {
  :root { --section-py: 40px; }
  body { line-height: 1.55; }
  .ts-h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .subpages-grid { grid-template-columns: 1fr; }
  .tiles-grid, .tiles-grid-3 { grid-template-columns: 1fr; }
  .tile-card-lg { grid-column: span 1; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .btn-whatsapp { width: 100%; justify-content: center; }
  .stats-row {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-top: 18px;
  }
  .stats-row .stat-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stats-row .stat-num-sm {
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    min-height: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .stats-row .stat-label-sm {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-top: 6px;
    text-transform: uppercase;
    min-height: calc(1.3em * 2);
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .ts-btn { padding: 12px 24px; font-size: 0.84rem; }
  .page-hero { height: clamp(280px, 42dvh, 360px); }
  .page-hero-full {
    height: 55vh; /* fallback */
    height: clamp(380px, 65dvh, 520px);
  }
}

/* ══════════════════════════════════════════════════════════════
   FAB · WhatsApp flutuante (mobile only)
   Aparece sobre o conteúdo no canto inferior direito em telas ≤820px.
   ══════════════════════════════════════════════════════════════ */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: none;                      /* ativado no media query mobile */
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45),
              0 2px 8px rgba(0,0,0,0.3);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fab-wa:hover, .fab-wa:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55),
              0 3px 12px rgba(0,0,0,0.35);
  outline: none;
}
.fab-wa svg { width: 28px; height: 28px; display: block; }
@media (max-width: 820px) {
  .fab-wa { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   Dropdown nav · estado touch-open (iPad/touch desktop)
   Ativado pelo app.js em pointer:coarse + min-width:821px.
   ══════════════════════════════════════════════════════════════ */
.nav-dropdown.touch-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.08s ease-out, transform 0.08s ease-out, visibility 0s linear 0s;
}

/* ══════════════════════════════════════════════════════════════
   MEDICAL FOOTER (minimal) — autor, aviso e referências (E-E-A-T)
   Versão discreta: 2 linhas pequenas, fonte muted, divisor sutil.
   ══════════════════════════════════════════════════════════════ */
.medical-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.article-body .medical-footer p {
  margin: 0 0 6px !important;
  font-size: 0.76rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
}
.article-body .medical-footer p:last-child { margin-bottom: 0 !important; }
.medical-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.22);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.medical-footer a:hover {
  color: var(--teal-light);
  border-bottom-color: var(--teal-light);
}
.medical-footer .medical-disclaimer { font-style: italic; opacity: 0.78; }
.medical-footer .medical-refs em {
  font-style: italic;
  color: var(--text-secondary);
}
.medical-footer .medical-refs-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 6px;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   BUSCA — botão na navbar + modal overlay (Ctrl+K)
   ══════════════════════════════════════════════════════════════ */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-search-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(56,167,232,0.45);
  color: #fff;
}
.nav-search-btn:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 6vh, 80px) 12px 12px;
  box-sizing: border-box;
}
.search-modal[hidden] { display: none !important; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,14,24,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.search-panel {
  position: relative;
  width: 100%;
  max-width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #0f1925;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
  overflow: hidden;
  box-sizing: border-box;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  box-sizing: border-box;
}
.search-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  color: #2286CC;
}
#search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  padding: 6px 0;
}
#search-input::placeholder { color: rgba(255,255,255,0.45); }
.search-close {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.search-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.search-results {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  flex: 1 1 auto;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}
.search-hint {
  padding: 22px 14px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.search-hint strong { color: rgba(255,255,255,0.78); font-weight: 600; }
.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2px;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.search-result:hover,
.search-result.is-active {
  background: rgba(56,167,232,0.10);
  border-color: rgba(56,167,232,0.32);
}
.sr-title { color: #fff; font-weight: 600; font-size: 0.94rem; margin-bottom: 3px; line-height: 1.3; }
.sr-sub { color: #2286CC; font-size: 0.72rem; margin-bottom: 4px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-snip { color: rgba(255,255,255,0.62); font-size: 0.82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-wrap: break-word; }
.sr-snip mark { background: rgba(56,167,232,0.28); color: #fff; border-radius: 2px; padding: 0 2px; }

@media (max-width: 640px) {
  .search-modal { padding: 12px 10px; }
  .search-panel { border-radius: 10px; max-height: calc(100vh - 24px); max-width: calc(100vw - 20px); }
  .search-input-wrap { padding: 11px 12px; gap: 8px; }
  #search-input { font-size: 16px; }  /* 16px previne zoom no iOS */
  .search-close { font-size: 0.65rem; padding: 4px 6px; }
  .nav-search-btn { width: 36px; height: 36px; }
}
/* ══════════════════════════════════════════════════════════════
   CERT-WALL — parede de certificados responsiva (sobre.html)
   Desktop ≥960px : 4 colunas
   Tablet  ≥560px : 2 colunas
   Mobile  <560px : 1 coluna (largura total)
   ══════════════════════════════════════════════════════════════ */

/* Mobile: 2 colunas */

/* ══════════════════════════════════════════════════════════════
   CERT-WALL — parede de certificados (sobre.html)
   Seletor sem prefixo .article-body para evitar conflitos de especificidade
   ══════════════════════════════════════════════════════════════ */
.cert-wall {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 0;
  width: 100%;
}
.cert-wall .cert-card {
  flex: 0 0 calc(25% - 9px) !important;
  max-width: calc(25% - 9px);
  display: flex;
  flex-direction: column;
  background: #0F1E2E;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  min-width: 0;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.cert-wall .cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 167, 232, 0.45);
  box-shadow: 0 16px 28px rgba(0,0,0,0.45);
}
.cert-wall .cert-card img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  background: #f5f1e8;
  border-radius: 4px;
  margin: 0 0 10px 0;
}
.cert-wall .cert-cap {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.48);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .cert-wall .cert-card {
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px);
  }
}

/* ══════════════════════════════════════════════════════════════
   Imagem única de certificados (sobre.html)
   ══════════════════════════════════════════════════════════════ */
.certificados-img {
  margin: 32px 0 40px;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.certificados-img picture,
.certificados-img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;        /* preserva proporção, sem distorção */
  border-radius: 8px;
}
