:root {
  --navy: #142c32;
  --navy-2: #21434a;
  --blue: #006f62;
  --water: #e5f1ec;
  --paper: #f7f7f0;
  --ink: #1b3034;
  --muted: #485d60;
  --line: #d6e3dd;
  --wa: #08783f;
  --wa-hover: #076533;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; color: var(--navy); letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.areas :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: #b3e6d4; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 8px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.skip-link:focus { left: max(12px, env(safe-area-inset-left)); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent;
  font: 700 1.0625rem/1.25 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-call { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-call:hover { background: var(--water); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--water); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; flex: none; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1rem; line-height: 1.1; }
.logo img { height: 36px; width: auto; }
.logo small { display: block; margin-top: 4px; color: var(--blue); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); padding: 8px 4px; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; flex: none; align-items: center; gap: 10px; }
.header-phone { display: none; }
.menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.3rem; color: var(--navy); cursor: pointer; }

/* Plantão em Campinas */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 32px; padding-block: 36px 40px; }
.hero-copy { min-width: 0; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-tag::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px var(--water); }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 4.15rem); font-weight: 800; max-width: 15ch; line-height: 1.04; }
.hero h1 span { color: var(--blue); white-space: nowrap; }
.hero-lede { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.hero-assurance { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--blue); font-size: .9rem; font-weight: 700; }
.hero-assurance svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.problem-picker {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  max-width: 36rem;
}
.picker-mascot { width: 76px; height: auto; }
.picker-hint { margin-top: 4px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.problem-picker .chips { grid-column: 1 / -1; }
.problem-label { font: 700 1.2rem/1.2 var(--font-display); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chip {
  min-height: 44px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 .875rem/1.3 var(--font-body); transition: background-color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--blue); background: var(--water); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.picker-note { grid-column: 1 / -1; margin-top: 12px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn-wa { flex: 1 1 220px; }
.hero-actions .btn-call { flex: 1 1 150px; }
.hero-note { margin-top: 10px; font-size: .83rem; line-height: 1.5; color: var(--muted); }
.hero-visual { display: none; }
.mascot-stage { position: relative; display: grid; justify-items: center; overflow: hidden; padding: 26px 28px 0; border-radius: 120px 120px 24px 24px; background: var(--water); border: 1px solid var(--line); }
.visual-kicker { position: relative; z-index: 1; text-align: center; font-size: .83rem; font-weight: 700; color: var(--blue); }
.hero-mascot { width: 270px; height: auto; margin-top: 14px; }
.visit-note { position: relative; z-index: 1; justify-self: stretch; margin: -28px -8px 22px; padding: 16px 20px; background: var(--navy); color: #fff; border-radius: 12px; }
.visit-note span { display: block; font-size: .85rem; color: #c7e6da; }
.visit-note strong { display: block; font: 700 1.45rem/1.3 var(--font-display); }
.visual-stamp { position: absolute; right: 20px; top: 112px; display: grid; place-content: center; width: 86px; height: 86px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--blue); text-align: center; font-size: .75rem; line-height: 1.45; transform: rotate(8deg); }
.visual-stamp strong { font-size: .95rem; }
.hero-photo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.hero-photo img { width: 112px; height: 112px; object-fit: cover; object-position: center 50%; }
.hero-photo figcaption { padding: 14px 18px 14px 0; }
.hero-photo figcaption span { display: block; margin-bottom: 5px; color: var(--blue); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-photo figcaption strong { color: var(--navy); font: 700 1.2rem/1.2 var(--font-display); }

.trust { background: var(--water); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; list-style: none; margin: 0; padding: 20px 0; font-weight: 700; color: var(--navy); font-size: .98rem; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--blue); }

/* Seções */
.section { padding-block: 56px; }
.section-head { max-width: 44rem; }
.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Serviços */
.services-grid { display: grid; gap: 18px; margin-top: 36px; }
.service {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 30, 66, 0.08);
  border-color: var(--blue);
}
.service img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--water); }
.service-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.service h3 { font-size: 1.25rem; font-weight: 700; }
.service p { color: var(--muted); font-size: .95rem; }
.service-cta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--wa); }
.service-cta::after { content: " \2197"; display: inline-block; margin-left: 4px; }
.service-eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 700; }
.service-featured { background: var(--water); }
.service:hover .service-cta { text-decoration: underline; text-underline-offset: 4px; }

/* Diferenciais / Por que escolher */
.features-section { background: var(--paper); border-top: 1px solid var(--line); }
.features-grid { display: grid; gap: 18px; margin-top: 36px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 30, 66, 0.06);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--water);
  color: var(--blue); display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* Como funciona */
.steps-section { background: #fff; border-block: 1px solid var(--line); }
.steps { display: grid; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 64px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 1.35rem/1 var(--font-display);
}
.steps h3 { font-size: 1.3rem; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Cidades e Bairros */
.areas { background: var(--navy); color: #fff; }
.areas .section-kicker { color: #b3e6d4; }
.areas h2 { color: #fff; }
.areas .section-head p { color: #d2e5dd; }
.neighborhood-groups { display: grid; gap: 24px; margin-top: 32px; }
.neighborhood-block { padding: 20px; border: 1px solid #ffffff2b; border-radius: var(--radius); }
.neighborhood-block h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.neighborhood-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.neighborhood-tags li {
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08); border-radius: 999px; font-size: .9rem;
  color: #f0f5fc; font-weight: 500;
}
.city-title { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; }
.city-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.city-list li { padding: 10px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 600; }
.areas-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 26px; color: #d2e5dd; }
.areas-contact .btn { min-height: 46px; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item { padding: 0 22px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; font-size: 1.7rem; font-weight: 400; color: var(--blue); transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* CTA final */
.final-cta { background: var(--navy-2); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.final-cta p { margin: 12px auto 0; max-width: 40ch; color: #ffffff; font-weight: 500; }
.final-actions { display: grid; gap: 12px; justify-content: center; margin-top: 26px; }

/* Rodapé */
.site-footer { background: #0d2025; color: #c4d5cf; }
.footer-row { display: grid; gap: 22px; padding-block: 36px; }
.footer-logo { display: inline-block; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-logo img { height: 36px; width: auto; }
.footer-row p { margin-top: 12px; font-size: .95rem; }
.footer-links { display: grid; gap: 8px; font-size: .95rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; text-align: center; font-size: .85rem; color: #a8c0b7; }

/* Barra fixa no celular */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; gap: 8px; padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(7,30,66,.12); }
.mobile-bar .btn { flex: 1; min-width: 0; min-height: 52px; padding: 10px; font-size: 1rem; }

@media (width < 1100px) {
  .nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; max-height: calc(100dvh - 148px - env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; padding: 12px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(7,30,66,.1); }
  .nav.is-open a { padding: 12px 0; }
}

@media (min-width: 640px) {
  .container { width: min(1120px, 100% - 48px); }
  .header-phone { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: .9rem; }
  .hero-actions { flex-wrap: nowrap; justify-content: start; }
  .hero-actions .btn { flex: 0 1 auto; }
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .service-featured img { height: 100%; min-height: 240px; aspect-ratio: 4 / 3; }
  .service-featured .service-body { align-self: center; gap: 10px; padding: 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-groups { grid-template-columns: repeat(2, 1fr); }
  .final-actions { grid-template-columns: auto auto; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 44px; padding-block: 56px 64px; }
  .hero-visual { display: block; min-width: 0; }
  .hero-actions .btn { font-size: .98rem; padding-inline: 18px; }
  .problem-picker { grid-template-columns: minmax(0, 1fr); }
  .picker-mascot { display: none; }
  .section { padding-block: 80px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .neighborhood-groups { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .footer-row { grid-template-columns: 1fr auto; align-items: center; }
  .footer-links { text-align: right; }
  .footer-links a { justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .nav { display: flex; gap: 14px; font-size: .88rem; }
  .menu-toggle { display: none; }
  .header-phone { padding-inline: 18px; }
  .hero-grid { gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
