:root {
  --teal: #229996;
  --teal-dark: #1e5382;
  --teal-darker: #123249;
  --teal-light: #e5f2f1;
  --whats: #25d366;
  --whats-dark: #1ebe5a;
  --ink: #10251f;
  --ink-soft: #4b5f5a;
  --bg: #ffffff;
  --bg-soft: #f6faf9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 148, 136, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0 0 .5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.btn--whats {
  background: var(--whats);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn--whats:hover { background: var(--whats-dark); }

.btn--solid {
  background: var(--teal);
  color: #fff;
  width: 100%;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(14, 148, 136, 0.25);
}
.btn--solid:hover { background: var(--teal-dark); }

.btn--light-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--light-outline:hover { background: rgba(255,255,255,0.12); }

.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--header { padding: 10px 18px; font-size: .9rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid #eef3f2;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* logo art is white; render it dark so it reads on the light header */
  filter: brightness(0);
}
.logo-img--footer {
  height: 44px;
  filter: none;
  margin-bottom: 14px;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav a:hover { color: var(--teal-dark); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  transition: transform .15s ease, background .15s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: var(--teal-dark); }
.social-icon:hover { transform: translateY(-2px); background: var(--teal); }
.social-icon:hover svg { fill: #fff; }

/* Eyebrow */
.eyebrow {
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 10px;
}
.eyebrow--light { color: #9be3d8; text-align: center; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  position: relative;
  padding: 0;
}
.hero__panel {
  background: linear-gradient(135deg, var(--teal-darker), var(--teal-dark));
  display: flex;
  align-items: center;
  padding: 60px 6vw 60px 5vw;
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(14,148,136,0.55), transparent 70%);
  border-radius: 50%;
  top: -140px;
  right: -140px;
}
.hero__content { position: relative; z-index: 1; max-width: 480px; }
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: #fff;
}
.hero h1 span { color: #7fe0d1; }
.hero__sub { font-size: 1.02rem; color: #cfe9e4; max-width: 48ch; }
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfe9e4;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.icon-pin { width: 16px; height: 16px; fill: #7fe0d1; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__image { position: relative; overflow: hidden; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }

/* Quick action cards (overlap hero) */
.quick-actions { padding: 0; }
.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}
.qa-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef3f2;
  padding: 26px 24px;
}
.qa-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.qa-card__icon svg { width: 22px; height: 22px; fill: var(--teal-dark); }
.qa-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.qa-card p { font-size: .9rem; margin-bottom: 16px; }

/* Section shared */
section { padding: 70px 0; }
section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
}
.h2--light { color: #fff; text-align: center; }
.local .h2--light { text-align: left; }
.section__sub {
  text-align: center;
  margin-top: -6px;
  margin-bottom: 30px;
}
.section__sub--light { color: #cfe9e4; text-align: center; margin-top: -6px; margin-bottom: 40px; }
.section__sub--left { text-align: left; margin: 0 0 24px; }

/* Serviços */
.servicos { background: var(--bg-soft); }
.grid-servicos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.card-servico {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #eef3f2;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-servico:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14,148,136,0.18); }
.card-servico img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.card-servico__body { padding: 18px 20px 22px; }
.card-servico__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-servico__body p { font-size: .9rem; margin-bottom: 12px; }
.card-servico__link {
  font-weight: 600;
  font-size: .88rem;
  color: var(--teal-dark);
}

/* Como funciona */
.como-funciona { background: #fff; }
.grid-passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.passo {
  text-align: center;
  padding: 10px 16px;
}
.passo__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
}
.passo h3 { font-size: 1.05rem; margin-bottom: 6px; }
.passo p { font-size: .9rem; max-width: 32ch; margin-left: auto; margin-right: auto; }

/* Exames grid */
.exames { background: var(--bg-soft); }
.grid-exames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card-exame {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid #eef3f2;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.card-exame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle--light { background: rgba(255,255,255,0.12); }
.icon-exame { width: 26px; height: 26px; fill: var(--teal-dark); color: var(--teal-dark); }

/* Equipe */
.equipe { padding: 70px 0; background: var(--bg-soft); }
.equipe__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.equipe__photo {
  width: 280px;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.equipe__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.equipe__text { max-width: 62ch; text-align: left; }
.equipe__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; text-align: left; }
.equipe__text p { margin: 0; font-size: 1.05rem; text-align: left; }

/* Diferenciais (dark) */
.diferenciais {
  background: linear-gradient(135deg, var(--teal-darker), var(--teal-dark));
}
.grid-diferenciais {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.item-diferencial {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 22px;
}
.item-diferencial .icon-circle svg { width: 22px; height: 22px; fill: #fff; }
.item-diferencial h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.item-diferencial p { color: #cfe9e4; font-size: .9rem; margin: 0; }

/* Local */
.local { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.local__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.local__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: #fff;
}
.stat span { color: #d7f0ec; font-size: .85rem; }
.local__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e4f5f2;
  font-size: .92rem;
  max-width: 40ch;
}
.local__address .icon-pin { flex-shrink: 0; margin-top: 3px; fill: #fff; }
.local__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.local__map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.local__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: block;
}
.local__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* CTA final */
.cta-final {
  text-align: center;
  background: var(--bg-soft);
}
.cta-final h2 { color: var(--ink); }

/* Footer */
.footer {
  background: var(--ink);
  color: #cfe3df;
}
.footer p { color: #cfe3df; margin: 4px 0; font-size: .92rem; }
.footer p a { color: #cfe3df; text-decoration: none; }
.footer p a:hover { text-decoration: underline; }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  padding: 56px 20px 40px;
}
.footer__col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer__brand p { max-width: 32ch; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: #cfe3df; text-decoration: none; font-size: .92rem; }
.footer__nav a:hover { color: #fff; }

.footer__social {
  display: flex;
  margin-top: 6px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background .15s ease;
}
.footer__social svg { width: 18px; height: 18px; fill: #cfe3df; }
.footer__social a:hover { background: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
}
.footer__bottom p { margin: 0; font-size: .85rem; color: #9fb3ad; }

/* Floating WhatsApp pill */
.whats-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px 12px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  z-index: 60;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  animation: pulse 2.4s infinite;
}
.whats-float .icon { width: 26px; height: 26px; fill: var(--whats); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), 0 10px 26px rgba(0,0,0,0.18); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 26px rgba(0,0,0,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 26px rgba(0,0,0,0.18); }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .grid-servicos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image { height: 320px; order: -1; }
  .hero__panel { padding: 40px 6vw; }
  .quick-actions__grid { grid-template-columns: 1fr; margin-top: 30px; }
  .grid-passos { grid-template-columns: 1fr; }
  .grid-exames { grid-template-columns: repeat(2, 1fr); }
  .grid-diferenciais { grid-template-columns: 1fr; }
  .local__inner { grid-template-columns: 1fr; }

  section { padding: 50px 0; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eef3f2;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f4;
  }
  .nav a:last-child { border-bottom: none; }

  .header { position: sticky; }
  .header__inner { position: relative; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .grid-servicos { grid-template-columns: 1fr; }
  .equipe__inner { flex-direction: column; }
  .equipe__text { max-width: none; }
  .footer__top { grid-template-columns: 1fr; text-align: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer__social { justify-content: center; }
  .footer__nav { align-items: center; }
  .local__address { max-width: none; }
  .quick-actions__grid { padding-left: 4px; padding-right: 4px; }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 16px; }
  .btn--header span { display: none; }
  .btn--lg { padding: 14px 24px; font-size: 1rem; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__image { height: 240px; }
  .hero__panel { padding: 34px 6vw; }
  .local__stats { gap: 16px; }
  .local__ctas { flex-direction: column; align-items: stretch; }
  .local__ctas .btn { justify-content: center; }
  .whats-float span { display: none; }
  .whats-float { padding: 12px; }
  .header__actions { gap: 8px; }
}
