/* ==========================================================================
   Clínica Bartolli — folha de estilos principal
   Paleta: navy (confiança) + vermelho coração (ação) + neutros claros
   ========================================================================== */

:root {
  /* Cores */
  --navy-900: #081a2e;
  --navy-800: #0f2744;
  --navy-700: #16375c;
  --navy-600: #1e4a78;
  --blue-400: #3f8fd0;
  --blue-100: #e6f1fa;

  --red-600: #d32b42;
  --red-500: #e23b4e;
  --red-100: #fdeaec;

  --teal-500: #19a5a0;

  /* Dourado da logo */
  --gold-400: #e6c27a;
  --gold-500: #d9ac55;
  --gold-600: #c79a43;
  --gold-700: #8a6420;
  --gold-100: #faf3e4;

  --ink: #10243a;
  --ink-soft: #4a6076;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  /* Tipografia */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 36, 58, .06);
  --shadow: 0 14px 40px rgba(16, 36, 58, .10);
  --shadow-lg: 0 28px 70px rgba(16, 36, 58, .18);
  --header-h: 76px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  color: var(--navy-800);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Estrutura -------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 860px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }

.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }
.section__head--light h2, .section__head--light p { color: #fff; }
.section__head--light p { color: #c6d6e6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: .75rem;
}
.section--dark .eyebrow { color: #ff8a98; }

/* ------------------------------- Botões ---------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn--primary { --btn-bg: var(--red-500); }
.btn--primary:hover { --btn-bg: var(--red-600); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  border-color: rgba(15, 39, 68, .22);
}
.btn--ghost:hover { --btn-bg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Botão dourado — resultados de exames */
.btn--results {
  --btn-fg: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  box-shadow: 0 6px 18px rgba(199, 154, 67, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  position: relative; overflow: hidden;
}
.btn--results::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn--results:hover { box-shadow: 0 10px 26px rgba(199, 154, 67, .45); }
.btn--results:hover::after { transform: translateX(120%); }
.btn--results:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; }
.nav__results { padding: .7rem 1.1rem; }

/* Cartão de resultados (hero) */
.results-card {
  margin-top: 1.8rem; max-width: 520px;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1rem .9rem .9rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.results-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.results-card__icon {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--gold-100);
}
.results-card__icon svg { width: 26px; height: 26px; fill: var(--gold-700); }
.results-card__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.results-card__text strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy-800); }
.results-card__text span { font-size: .86rem; color: var(--ink-soft); }
.results-card__go {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 700; font-size: .86rem;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  padding: .5rem .85rem; border-radius: 999px;
}
.results-card__go svg { width: 16px; height: 16px; fill: currentColor; transition: transform .18s ease; }
.results-card:hover .results-card__go svg { transform: translateX(3px); }

/* Faixa de resultados (seção Exames) */
.results-banner {
  margin-top: 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow);
  color: #c9d6e3;
}
.results-banner__text { display: flex; align-items: center; gap: 1.1rem; }
.results-banner__text img { width: 56px; height: 56px; flex: none; }
.results-banner h3 { margin: 0 0 .2rem; font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.results-banner p { margin: 0; }

.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;
}

/* ------------------------------- Topbar ---------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #c9d8e8;
  font-size: .82rem;
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--red-500); flex: none; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.topbar__phone {
  margin-left: auto; color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
}
.topbar__phone svg { width: 14px; height: 14px; fill: var(--red-500); }

/* ------------------------------- Header ---------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(16, 36, 58, .10); }
.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { white-space: nowrap;
  font-family: var(--font-head); font-size: 1.22rem; font-weight: 800;
  color: var(--navy-800); letter-spacing: -.02em;
}
.brand__text strong span { color: var(--gold-700); }
.brand__text small { font-size: .7rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.35rem; }
.nav__list a {
  font-family: var(--font-head); font-size: .93rem; font-weight: 600;
  color: var(--ink); padding: .4rem 0; position: relative; white-space: nowrap;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red-500); transition: width .22s ease;
}
.nav__list a:hover { text-decoration: none; color: var(--navy-800); }
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--navy-800); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy-800);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero ----------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(63, 143, 208, .16), transparent 70%),
    linear-gradient(180deg, #f7fafd 0%, #ffffff 100%);
  padding: clamp(48px, 7vw, 86px) 0 clamp(56px, 8vw, 96px);
}
.hero__glow {
  position: absolute; top: -140px; left: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 59, 78, .14), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red-100); color: var(--red-600);
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.tag svg { width: 15px; height: 15px; fill: currentColor; }

.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal; color: var(--red-500);
  background: linear-gradient(transparent 68%, rgba(226, 59, 78, .18) 0);
}
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--navy-800);
}
.hero__trust span { font-size: .85rem; color: var(--ink-soft); }

.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero__card-title { font-size: 1.4rem; margin-bottom: .2rem; }
.hero__card-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.1rem; }
.hero__card-note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin: .85rem 0 0; }

.ecg {
  background: var(--navy-800); border-radius: 14px;
  padding: .5rem .25rem; margin-bottom: 1.2rem; overflow: hidden;
}
.ecg svg { display: block; width: 100%; height: 74px; }
.ecg__line {
  fill: none; stroke: #6ef0c8; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(110, 240, 200, .55));
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: ecg-draw 3.2s linear infinite;
}
@keyframes ecg-draw { to { stroke-dashoffset: -700; } }

.checklist { display: grid; gap: .6rem; margin-bottom: 1.3rem; }
.checklist li {
  position: relative; padding-left: 1.9rem;
  font-size: .95rem; color: var(--ink);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28rem;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e4a78'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ------------------------------- Strip ----------------------------------- */
.strip { background: var(--navy-800); color: #fff; padding: clamp(36px, 5vw, 54px) 0; }
.strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 38px);
}
.strip__item svg { width: 26px; height: 26px; fill: #ff8a98; margin-bottom: .6rem; }
.strip__item h3 { color: #fff; font-size: 1rem; margin-bottom: .35rem; }
.strip__item p { color: #b9cade; font-size: .88rem; margin: 0; }

/* ------------------------------- Cards ----------------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdcea; }
.card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--red-100); margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; fill: var(--red-500); }
.card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ------------------------------- Exames ---------------------------------- */
.exams {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.exam {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red-500);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.exam:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.exam h3 { margin-bottom: .4rem; }
.exam p { color: var(--ink-soft); font-size: .93rem; margin-bottom: .7rem; }
.exam__meta {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: var(--navy-600); background: var(--blue-100);
  padding: .25rem .6rem; border-radius: 999px;
}
.exams__note { margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------- Equipe ---------------------------------- */
.team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.doc {
  text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doc__avatar {
  width: 78px; height: 78px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(30, 74, 120, .28);
}
.doc h3 { margin-bottom: .2rem; }
.doc__crm { display: block; font-size: .76rem; color: var(--ink-soft); margin-bottom: .7rem; }
.doc p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* --------------------------- Perfil do médico ---------------------------- */
.doctor-profile {
  display: flex; align-items: flex-start; gap: 1.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
}
.doctor-profile__avatar {
  width: 112px; height: 112px; flex: none; object-fit: cover;
  border: 3px solid #fff; outline: 2px solid var(--gold-500);
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  box-shadow: 0 8px 20px rgba(30, 74, 120, .28);
}
.doctor-profile__body h3 { margin-bottom: .2rem; }
.doctor-profile__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: .8rem 0 1rem;
}
.doctor-profile__list li {
  font-size: .82rem; font-weight: 600; color: var(--navy-700);
  background: var(--blue-100); padding: .35rem .75rem; border-radius: 999px;
}
.doctor-profile__body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 560px) {
  .doctor-profile { flex-direction: column; align-items: center; text-align: center; }
  .doctor-profile__list { justify-content: center; }
}

/* ----------------------------- Depoimentos ------------------------------- */
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.quote {
  margin: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  color: #e8f0f8;
}
.quote__stars { color: #ffc33d; letter-spacing: .14em; margin-bottom: .7rem; }
.quote p { font-size: .98rem; line-height: 1.7; }
.quote cite { font-style: normal; font-size: .82rem; color: #9fb6cd; font-weight: 600; }

/* ------------------------------ Convênios -------------------------------- */
.logos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.logos li {
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--navy-700);
  transition: border-color .2s ease, color .2s ease;
}
.logos li:hover { border-color: var(--red-500); color: var(--red-600); }

/* --------------------------------- FAQ ----------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy-800);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2.4px solid var(--red-500); border-bottom: 2.4px solid var(--red-500);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #cfdcea; }
.faq__body { padding: 0 1.3rem 1.2rem; }
.faq__body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ------------------------------- Contato --------------------------------- */
.contact {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact__intro { color: var(--ink-soft); margin-bottom: 1.6rem; }

.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--navy-800);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: .78rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(63, 143, 208, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #9bacbe; }

.field__error { color: var(--red-600); font-size: .78rem; min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-500); }

.check {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: var(--ink-soft);
}
.check input { margin-top: .22rem; width: 17px; height: 17px; accent-color: var(--red-500); flex: none; }

.form__status { font-size: .9rem; font-weight: 600; margin: 0; min-height: 1.2em; }
.form__status.is-ok { color: #0d7a52; }
.form__status.is-err { color: var(--red-600); }
.form__legal { font-size: .76rem; color: var(--ink-soft); margin: 0; }

.contact__info {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
}
.contact__info-title { font-size: 1.3rem; }

.info-list { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.info-list li { display: flex; gap: .85rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.info-list strong { color: var(--navy-800); font-family: var(--font-head); font-size: .9rem; }
.info-list__ico {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
}
.info-list__ico svg { width: 18px; height: 18px; fill: var(--red-500); }

.map {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: #dfe7ef;
}
.map iframe { display: block; width: 100%; height: 230px; border: 0; }
.map__link {
  display: inline-block; margin-top: .8rem;
  font-size: .86rem; font-weight: 600; color: var(--navy-600);
}

/* ------------------------------ CTA final -------------------------------- */
.cta {
  background: linear-gradient(120deg, var(--red-600), #8f1b2c);
  color: #fff; padding: clamp(42px, 6vw, 68px) 0;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 46em; }

/* -------------------------------- Footer --------------------------------- */
.footer { background: var(--navy-900); color: #a9bdd1; font-size: .9rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(40px, 6vw, 64px) 20px clamp(28px, 4vw, 40px);
}
.footer h3 {
  color: #fff; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: #a9bdd1; }
.footer__col a:hover { color: #fff; }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text strong span { color: var(--gold-500); }
.brand--footer .brand__text small { color: #7f97ae; }
.footer__about { max-width: 34em; }
.footer__crm { font-size: .78rem; color: #7f97ae; margin: 0; }
.footer__emergency {
  margin-top: 1.2rem; font-size: .82rem; color: #ffb3bd;
  background: rgba(226, 59, 78, .14); border: 1px solid rgba(226, 59, 78, .3);
  border-radius: 10px; padding: .6rem .8rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.1rem 20px 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: #7f97ae;
}
.footer__bottom p { margin: 0; }

/* ----------------------------- Flutuantes -------------------------------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .2s ease;
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

.totop {
  position: fixed; right: 22px; bottom: 86px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800);
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ----------------------------- Animações --------------------------------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ecg__line { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}

/* ----------------------------- Responsivo -------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 861px) and (max-width: 1400px) {
  .nav { gap: 1rem; }
  .nav__list { gap: .9rem; }
  .nav__list a { font-size: .86rem; }
  .nav__results, .nav__cta { padding: .62rem .9rem; font-size: .86rem; }
  .brand__text small { display: none; }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .nav__list li:nth-child(5) { display: none; } /* "Dúvidas" sai do menu em telas médias (continua no rodapé) */
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; /* relativo ao .header (backdrop-filter cria o bloco de contenção) */
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0 20px; border-bottom-width: 0; box-shadow: none;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    margin-left: 0;
  }
  .nav.is-open { max-height: 80vh; overflow: auto; padding: .5rem 20px 1.3rem; border-bottom-width: 1px; box-shadow: var(--shadow); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: .6rem; width: 100%; }
  .nav__results { margin-top: 1rem; width: 100%; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .topbar__item, .topbar__sep { display: none; }
  .topbar__phone { margin: 0 auto; }
  .hero__trust { gap: 1.3rem; }
  .hero__trust li { min-width: 44%; }
  .form__row { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .btn--lg { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .results-card__go { padding: .5rem; }
  .results-card__go { font-size: 0; gap: 0; }
  .results-banner { padding: 1.3rem; }
  .results-banner .btn { width: 100%; }
}

/* -------------------------------- Print ---------------------------------- */
@media print {
  .topbar, .header, .wa, .totop, .cta, .map, .form { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
