/* ============================================================
   MultiMed Segurança e Saúde do Trabalho
   Design System "Linha Vital" · tokens do Guia de Identidade Digital
   Tipografia: Montserrat (display) + Roboto (texto)
   ============================================================ */

:root {
  /* Marca */
  --brand-blue-logo: #026DB1;
  --brand-green-logo: #00BC06;

  /* Interface */
  --color-primary: #026DB1;
  --color-primary-hover: #014A78;
  --color-action: #0085CE;
  --color-nav: #217CAC;
  --color-secondary: #38AD75;
  --color-secondary-dark: #287F58;
  --color-campaign: #00C800;

  /* Texto */
  --color-text: #222222;
  --color-body: #333333;
  --color-muted: #69727D;

  /* Superfícies */
  --color-surface: #FFFFFF;
  --color-surface-soft: #F2FAF7;
  --color-info-soft: #EAF5FB;
  --color-border: #D8E1E6;
  --color-footer: #014A78;
  --footer-band: #E4FBEC;

  /* Escalas */
  --blue-50: #EAF5FB;
  --blue-200: #B8DFF1;
  --blue-800: #014A78;
  --green-50: #F2FAF7;
  --green-100: #D9F3E8;
  --green-300: #9EDCBF;

  /* Estados */
  --color-warning: #F4B400;
  --color-danger: #D92D20;
  --color-success: #287F58;

  /* Exceção registrada: verde oficial do WhatsApp (componente social) */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C4A;

  /* Tipografia */
  --font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(1, 74, 120, 0.07);
  --shadow-md: 0 10px 30px -12px rgba(1, 74, 120, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(1, 74, 120, 0.25);
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--color-primary); text-decoration: none; }
p a, li a.inline { text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
p a:hover { text-decoration: underline; }

ul[class], ol[class],
.nav ul, .footer ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Foco de teclado: anel 3px #0085CE afastado 2px (regra do guia) */
:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--blue-200); color: var(--color-text); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--color-footer);
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-cities { display: flex; align-items: center; gap: 8px; color: var(--green-100); }
.topbar-contacts { display: flex; align-items: center; gap: 20px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--green-100); text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { height: 50px; width: 50px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--brand-blue-logo);
  line-height: 1.05;
}
.logo-word .med { color: var(--brand-green-logo); }
.logo-word .logo-tag {
  display: block;
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 0.215em;
  color: var(--color-nav);
  text-transform: uppercase;
  margin-top: 2px;
}
.logo-white .logo-word { color: #fff; }
.logo-white .logo-word .med { color: var(--color-campaign); }
.logo-white .logo-word .logo-tag { color: var(--blue-200); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-nav);
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav a:hover { color: var(--color-primary-hover); background: var(--blue-50); }
.nav a.active { color: var(--brand-blue-logo); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand-blue-logo);
  border-radius: 2px;
}
.nav .nav-cta { margin-left: 10px; }
.nav a.nav-cta { color: #fff; background: var(--color-primary); }
.nav a.nav-cta:hover { color: #fff; background: var(--color-primary-hover); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  color: var(--color-nav);
}
.menu-toggle svg { width: 28px; height: 28px; display: block; }

/* ---------- Botões (receitas do guia) ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Brilho que varre no hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-22deg);
  transition: left 620ms ease;
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--blue-50); color: var(--color-primary-hover); border-color: var(--color-primary-hover); }

.btn-green { background: var(--color-secondary-dark); color: #fff; }
.btn-green:hover { background: #1F6546; color: #fff; box-shadow: var(--shadow-md); }

.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: var(--blue-50); color: var(--color-primary-hover); }

.btn-whatsapp { background: var(--color-whatsapp-dark); color: #fff; }
.btn-whatsapp:hover { background: #0E6E3A; color: #fff; box-shadow: var(--shadow-md); }

.btn[disabled] { background: var(--color-border); color: var(--color-muted); cursor: not-allowed; }

/* ---------- Eyebrow + títulos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--green-300); }
.eyebrow.on-dark::before { background: var(--green-300); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--color-muted); font-size: 18px; }

/* ---------- Seções ---------- */
.section { padding-block: 88px; }
.section-soft { background: var(--color-surface-soft); }
.section-info { background: var(--blue-50); }
.section-dark { background: var(--color-footer); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--blue-200); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 78%);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 88px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--brand-blue-logo); }
.hero h1 .hl-green { color: var(--color-secondary-dark); }
.hero-sub { font-size: 19px; color: var(--color-muted); max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--color-body); }
.hero-trust svg { width: 20px; height: 20px; color: var(--color-secondary-dark); flex-shrink: 0; }

.pulse-line { display: block; width: min(360px, 80%); height: 36px; margin-bottom: 26px; overflow: visible; }
.pulse-line path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Traço-base: eco fantasma do batimento, sempre presente */
.pulse-base { stroke: var(--color-secondary); opacity: 0.32; }
/* Pulso vivo que varre a linha como um monitor cardíaco */
.pulse-run {
  stroke: var(--color-secondary);
  stroke-width: 3;
  stroke-dasharray: 20 80;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(56, 173, 117, 0.85));
  animation: ecg-run 2.4s linear infinite;
}
@keyframes ecg-run {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.hero-media { position: relative; }
.hero-media .photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 36px 150px 36px 36px;
  box-shadow: var(--shadow-lg);
}
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.float-chip .chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-chip .chip-icon svg { width: 21px; height: 21px; }
.float-chip small { display: block; color: var(--color-muted); font-weight: 400; font-size: 12.5px; }
.chip-green { background: var(--green-100); color: var(--color-secondary-dark); }
.chip-blue { background: var(--blue-50); color: var(--brand-blue-logo); }
.float-chip.pos-1 { top: 42px; left: -34px; animation: floaty 5.5s ease-in-out infinite; }
.float-chip.pos-2 { bottom: 56px; right: -18px; animation: floaty 6.5s ease-in-out infinite 0.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Faixa de dor ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.pain-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 223, 241, 0.25);
  border-radius: var(--radius);
  padding: 28px;
}
.pain-card svg { width: 26px; height: 26px; color: var(--color-warning); margin-bottom: 14px; }
.pain-card h3 { font-size: 18px; margin-bottom: 8px; }
.pain-card p { font-size: 15px; }
.pain-cta { text-align: center; }
.pain-cta p { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #fff; margin-bottom: 20px; }

/* ---------- Cards de serviço ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 280ms cubic-bezier(.16, .84, .34, 1),
    box-shadow 280ms ease, border-color 280ms ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue-logo), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(.16, .84, .34, 1);
}
.card:hover {
  transform: translateY(-9px);
  box-shadow: 0 26px 52px -20px rgba(2, 109, 177, 0.34);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--color-nav);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 320ms cubic-bezier(.16, .84, .34, 1), background 280ms ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; }
.card-icon.green { background: var(--green-100); color: var(--color-secondary-dark); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card h3 a { color: inherit; }
.card p { font-size: 15.5px; color: var(--color-muted); flex-grow: 1; }
.card .card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-primary);
}
.card .card-link svg { width: 17px; height: 17px; transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }
.card .card-link:hover { color: var(--color-primary-hover); text-decoration: underline; }

/* ---------- Stats ---------- */
.stats-band { padding-block: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 54px);
  color: #fff;
  line-height: 1;
}
.stat .stat-num .accent { color: var(--green-300); }
.stat .stat-label { color: var(--blue-200); font-size: 15px; margin-top: 10px; }

/* ---------- Passos ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: passo; }
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(.16, .84, .34, 1),
    box-shadow 300ms ease, border-color 300ms ease, background 300ms ease;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--green-50), #fff 62%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 0;
}
.step > * { position: relative; z-index: 1; }
.step:hover {
  transform: translateY(-9px);
  box-shadow: 0 26px 52px -20px rgba(56, 173, 117, 0.32);
  border-color: var(--green-300);
}
.step:hover::before { opacity: 1; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-secondary-dark);
  background: var(--green-100);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 320ms cubic-bezier(.16, .84, .34, 1),
    background 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.step:hover .step-num {
  transform: scale(1.1);
  background: var(--color-secondary-dark);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(40, 127, 88, 0.6);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--color-muted); }

/* ---------- Split (texto + foto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 560ms cubic-bezier(.16, .84, .34, 1), box-shadow 400ms ease;
}
.split-media { cursor: pointer; }
.split-media:hover .photo { transform: scale(1.035); box-shadow: var(--shadow-lg); }
.split .photo.lobe { border-radius: 36px 120px 36px 36px; }
.split .photo.lobe-l { border-radius: 120px 36px 36px 36px; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 16px; }
.split .lead { color: var(--color-muted); font-size: 17.5px; margin-bottom: 22px; }

.check-list { display: grid; gap: 14px; margin-bottom: 0; }
/* CTA que segue lista/tags: centralizado no conteúdo, com respiro extra */
.check-list + .btn,
.tag-row + .btn {
  display: flex;
  width: fit-content;
  margin: 48px auto 0;
}
.check-list + .hero-ctas { justify-content: center; margin-top: 48px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check-list svg { width: 21px; height: 21px; color: var(--color-secondary-dark); flex-shrink: 0; margin-top: 3px; }
.check-list strong { color: var(--color-text); }

/* ---------- Chips / tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--brand-blue-logo);
  border: 1px solid var(--blue-200);
}
.tag.green { background: var(--green-100); color: var(--color-secondary-dark); border-color: var(--green-300); }
.tag.new {
  background: var(--color-campaign);
  color: #003300;
  border-color: transparent;
}

/* ---------- eSocial: cards de evento ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.event-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--brand-blue-logo);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card {
  transition: transform 280ms cubic-bezier(.16, .84, .34, 1),
    box-shadow 280ms ease, border-left-width 280ms ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -20px rgba(2, 109, 177, 0.32);
  border-left-width: 8px;
}
.event-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-blue-logo);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.event-code .badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--color-secondary-dark);
  padding: 4px 10px;
  border-radius: 999px;
}
.event-code .badge.warn { background: #FDF3D7; color: #8A6400; }
.event-card h3 { font-size: 18px; margin-bottom: 10px; }
.event-card p { font-size: 15px; color: var(--color-muted); }

/* ---------- NR grid ---------- */
.nr-featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 60px; }
.nr-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.nr-chip {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 10px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.nr-chip:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(2, 109, 177, 0.35);
}
.nr-chip .nr-num { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--brand-blue-logo); display: block; }
.nr-chip .nr-name { font-size: 12px; color: var(--color-muted); line-height: 1.35; display: block; margin-top: 4px; }
.nr-chip.revogada { opacity: 0.55; background: var(--color-surface-soft); }
.nr-chip.revogada .nr-num { color: var(--color-muted); text-decoration: line-through; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--color-text);
  transition: background var(--transition);
}
.faq summary:hover { background: var(--blue-50); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; transition: transform var(--transition); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--color-muted); font-size: 15.5px; }

/* ---------- Unidades ---------- */
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.unit-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.unit-card { transition: transform 280ms cubic-bezier(.16, .84, .34, 1), box-shadow 280ms ease, border-color 280ms ease; }
.unit-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -20px rgba(2, 109, 177, 0.30);
  border-color: var(--green-300);
}
.unit-card .unit-uf {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--color-secondary-dark);
  text-transform: uppercase;
}
.unit-card h3 { font-size: 21px; margin: 6px 0 14px; }
.unit-card p { font-size: 15px; color: var(--color-muted); display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.unit-card p svg { width: 18px; height: 18px; color: var(--color-nav); flex-shrink: 0; margin-top: 4px; }
.unit-card .unit-link { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; }
.unit-card .unit-link svg { width: 16px; height: 16px; }
.unit-card .unit-link:hover { text-decoration: underline; }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(120deg, var(--color-secondary-dark), #1F6546); }
.cta-final .container { text-align: center; padding-block: 80px; }
.cta-final h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta-final p { color: var(--green-100); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.cta-final .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative;
  background: var(--color-footer);
  color: #fff;
  overflow: hidden;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Overlay azul-escura 35-55% aplicada via ::after (regra do guia) */
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(1, 42, 68, 0.92) 20%, rgba(1, 74, 120, 0.55) 100%);
}
.page-hero .container { position: relative; z-index: 2; padding-block: 96px; max-width: var(--container); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.page-hero .lead { color: var(--blue-200); font-size: 19px; max-width: 640px; margin-bottom: 30px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--blue-200); margin-bottom: 26px; }
.breadcrumb a { color: var(--green-100); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Formulário (receita do guia) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--color-text); }
.form-field .hint { font-size: 13px; color: var(--color-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-body);
  background: #fff;
  border: 1.5px solid var(--color-muted);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(0, 133, 206, 0.22);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--color-danger); }
.form-error {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--color-danger);
  font-size: 13.5px;
}
.form-error svg { width: 15px; height: 15px; flex-shrink: 0; }
.form-field.has-error .form-error { display: flex; }
.form-success {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--green-100);
  border: 1px solid var(--green-300);
  color: var(--color-secondary-dark);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  margin-top: 18px;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.form-success.visible { display: flex; }

/* ---------- Mapa ---------- */
.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
/* Layout espelhado no site original: faixa verde clara, logo + unidades + telefones */
.footer { background: var(--footer-band); color: var(--color-body); }
.footer-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  padding-block: 34px;
}
.footer .logo img { height: 58px; width: 58px; }
.footer .logo-word { font-size: 34px; }
.footer .logo-word .logo-tag { font-size: 10.5px; letter-spacing: 0.16em; }
.footer-list { display: grid; gap: 14px; }
.footer-list li { display: flex; gap: 12px; align-items: center; }
.footer-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-action); }
.footer-list a, .footer-list span {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.35;
}
.footer-list a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-phones { justify-self: end; }

/* Barra inferior: institucional, social e navegação */
.footer-bottom {
  background: var(--color-footer);
  color: var(--blue-200);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-block: 20px;
  font-size: 13.5px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--blue-200); }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom a { color: var(--green-100); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(184, 223, 241, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(18, 140, 74, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(18, 140, 74, 0.55); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  opacity: 0;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Reveal on scroll (convergência das laterais) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1150ms cubic-bezier(.16, 1, .3, 1),
    transform 1150ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal[data-dir="left"] { transform: translateX(-44px); }
.reveal[data-dir="right"] { transform: translateX(44px); }
.reveal[data-dir="up"] { transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 150ms; }
.reveal.d2 { transition-delay: 290ms; }
.reveal.d3 { transition-delay: 430ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal[data-dir="left"],
  .reveal[data-dir="right"],
  .reveal[data-dir="up"] { opacity: 1; transform: none; transition: none; }
  .pulse-run { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .pulse-base { opacity: 0; }
  .wa-float::after,
  .float-chip.pos-1,
  .float-chip.pos-2 { animation: none; }
  .btn::after { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1080px) {
  .hero .container { gap: 32px; padding-block: 56px; }
  .hero h1 { font-size: clamp(30px, 4.4vw, 44px); }
  .hero-sub { font-size: 17px; margin-bottom: 24px; }
  .hero-media .photo { height: 420px; }
  .float-chip.pos-1 { top: auto; bottom: 58px; left: 8px; }
  .float-chip.pos-2 { bottom: -14px; right: 8px; }
  .cards-grid, .steps-grid, .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .nr-featured { grid-template-columns: repeat(2, 1fr); }
  .nr-grid { grid-template-columns: repeat(4, 1fr); }
  .units-grid { grid-template-columns: 1fr 1fr; }
  .footer-band { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-phones { justify-self: start; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.media-first .split-media { order: 2; }
}

@media (max-width: 1080px) {
  .topbar-cities { display: none; }
  .topbar .container { justify-content: center; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 150;
    padding: 90px 32px 32px;
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 19px; padding: 15px 16px; display: block; }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--blue-50); }
  .nav .nav-cta { margin: 18px 0 0; }
  .nav-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--color-nav);
    padding: 10px;
  }
  .nav-close svg { width: 28px; height: 28px; }

  .section { padding-block: 64px; }
  .event-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (min-width: 1081px) { .nav-close { display: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .cards-grid, .steps-grid, .pain-grid, .units-grid, .nr-featured { grid-template-columns: 1fr; }
  .nr-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero-media { max-width: 560px; margin-block: 26px 30px; }
  .hero-media .photo { height: 340px; border-radius: 28px 90px 28px 28px; }
  .float-chip { padding: 11px 14px; font-size: 13px; }
  .float-chip.pos-1 { top: auto; bottom: 46px; left: 4px; }
  .float-chip.pos-2 { bottom: -20px; right: 4px; }
  .footer-band { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { justify-content: flex-start; }
  .hero-ctas .btn { width: 100%; }
  .cta-final .btn-row .btn { width: 100%; }
}
