/* =========================================================
   Clínica CEMA — folha de estilo única
   Tokens → base → componentes → seções → responsivo
   ========================================================= */

:root {
  /* Marca */
  --verde: #013e36;
  --verde-menu: #08564c;        /* fundo do menu fixo ao rolar */
  --verde-800: #012e29;
  --verde-600: #0a5a4f;
  --verde-300: #3f9c8c;
  --turquesa: #2fa8ac;          /* tom do logo/fachada */
  --areia: #b79a75;

  /* Neutros */
  --tinta: #21242d;
  --cinza-1: #4d5464;
  --cinza-2: #8e94a2;
  --cinza-3: #c0c4cd;
  --linha: #e2e4eb;
  --haze: #f4f5f8;
  --branco: #fff;

  --wpp: #25d366;

  /* Tipografia fluida */
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-texto: "Open Sans", system-ui, sans-serif;
  --t-h1: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  --t-h2: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --t-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);

  /* Layout */
  --shell: 1180px;
  --gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
  --secao-y: clamp(4rem, 2.6rem + 4.6vw, 7.5rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --sombra: 0 1px 2px rgb(33 36 45 / 6%), 0 12px 32px -12px rgb(33 36 45 / 18%);
  --sombra-alta: 0 24px 56px -20px rgb(1 62 54 / 32%);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cinza-1);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--tinta);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p  { text-wrap: pretty; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--verde); color: #fff; }

.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -100px; z-index: 200;
  background: var(--verde); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Utilitários ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.section { padding-block: var(--secao-y); }
.section--tight { padding-bottom: 0; }
.section--haze { background: var(--haze); }
.section--dark { background: var(--verde); color: #cfe0dc; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--verde-600);
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--turquesa); }

.accent { color: var(--verde); }
.accent-light { color: var(--turquesa); }

.rule {
  display: block;
  width: 64px; height: 3px;
  margin-top: 1.25rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--verde), var(--turquesa));
}
.rule--center { margin-inline: auto; }
.rule--light { background: linear-gradient(90deg, var(--turquesa), #fff); }

.head { max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.head__lead { margin-top: 1.25rem; color: var(--cinza-1); }
.section--dark .head__lead { color: #cfe0dc; }

.lead { font-size: var(--t-lead); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Botões ---------- */
.btn {
  --bg: var(--verde);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 99px;
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 2rem; font-size: .98rem; }
.btn--primary { --bg: var(--verde); }
.btn--primary:hover { --bg: var(--verde-600); }
.btn--white { --bg: #fff; --fg: var(--verde); }
.btn--wpp { --bg: var(--wpp); --fg: #06331a; }
.btn--wpp:hover { --bg: #1fbb59; }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgb(255 255 255 / 55%); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--verde); border-color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgb(255 255 255 / 60%); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--verde); }
.btn .ico { width: 18px; height: 18px; fill: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
  color: var(--verde);
  margin-top: auto;
  padding-top: .35rem;
}
.link-arrow::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-stuck {
  background: var(--verde-menu);
  box-shadow: 0 10px 30px -22px rgb(0 0 0 / 55%);
  padding-block: .55rem;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand img {
  height: clamp(48px, 4vw, 66px);
  width: auto;
}
.site-header.is-stuck .brand img { height: clamp(42px, 3.4vw, 56px); }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.6rem); }
.nav__link {
  position: relative;
  font-family: var(--f-display);
  font-size: .86rem;
  font-weight: 600;
  color: #fff;
  padding: .35rem 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--turquesa); }
.nav__cta { margin-left: .5rem; padding: .65rem 1.2rem; font-size: .84rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 50%;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  margin: 3px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.burger[aria-expanded="true"] span { background: var(--tinta); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(1 46 41 / 55%) 0%, rgb(1 46 41 / 35%) 45%, rgb(1 46 41 / 78%) 100%),
    radial-gradient(80% 60% at 20% 40%, rgb(1 62 54 / 45%), transparent 70%);
}
.hero__inner { padding-block: clamp(8rem, 14vh, 11rem) clamp(5rem, 10vh, 8rem); max-width: 60rem; }
.hero__title { color: #fff; margin-bottom: 1.5rem; }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
  color: rgb(255 255 255 / 88%);
  max-width: 38rem;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .reveal:nth-child(2) { --d: 80ms; }
.hero .reveal:nth-child(3) { --d: 160ms; }
.hero .reveal:nth-child(4) { --d: 240ms; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 99px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: #fff;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--verde);
  color: #fff;
  padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute; left: -.75rem; top: 15%;
  width: 1px; height: 70%;
  background: rgb(255 255 255 / 18%);
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 72%);
}

/* ---------- Split (sobre / diferenciais) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: 1.15fr 1fr; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sombra-alta);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__main p + p { margin-top: 1.1rem; }

.dropcap {
  float: left;
  font-family: var(--f-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: .9;
  color: var(--verde);
  margin: .1rem .6rem 0 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .85rem 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linha);
}
.checks li {
  position: relative;
  padding-left: 2rem;
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tinta);
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  translate: 0 -50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem 2rem;
  margin: 2.25rem 0;
}
.benefit h3 {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.benefit h3::before {
  content: "";
  position: absolute; left: 0; top: .1rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--turquesa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.benefit p { padding-left: 1.9rem; font-size: .95rem; }

/* ---------- Faixa CTA ---------- */
.strip {
  background: linear-gradient(100deg, var(--verde-800), var(--verde) 45%, var(--verde-600));
  color: #fff;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
}
.strip p {
  font-family: var(--f-display);
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  font-weight: 600;
}

/* ---------- Cards de serviço ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gap);
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.card__media { overflow: hidden; aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.card:hover .card__media img { scale: 1.06; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}
.card__body p { font-size: .96rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.tags li {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .3rem .65rem;
  border-radius: 99px;
  background: var(--haze);
  color: var(--cinza-1);
}

/* ---------- Exames ---------- */
.exames {
  display: grid;
  grid-template-columns: .8fr 1.6fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--haze);
}
.exames__head h3 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); }
.exames__head p { margin-top: .6rem; font-size: .96rem; }
.exames__head .btn { margin-top: 1.5rem; }

.exames__lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .6rem 1.5rem;
}
.exames__lista li {
  position: relative;
  padding: .35rem 0 .35rem 1.75rem;
  font-size: .93rem;
  color: var(--tinta);
  border-bottom: 1px solid var(--linha);
}
.exames__lista li::before {
  content: "";
  position: absolute; left: 0; top: .72rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- Portal de resultados ---------- */
.section--pull { padding-block: clamp(2rem, 1rem + 2vw, 3rem); }

.portal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--verde-800), var(--verde) 55%, var(--verde-600));
  color: #cfe0dc;
  box-shadow: var(--sombra-alta);
}
.portal__ico {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: var(--r);
  background: rgb(255 255 255 / 10%);
}
.portal__ico svg { width: 38px; height: 38px; fill: #fff; }
.portal__texto h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: #fff; margin-bottom: .6rem; }
.portal__texto p { font-size: .96rem; max-width: 56ch; }
.portal__acao { display: grid; justify-items: center; gap: .75rem; }
.portal__acao .ico { width: 18px; height: 18px; }
.portal__nota { font-size: .82rem; text-align: center; }
.portal__nota a { text-decoration: underline; text-underline-offset: 3px; }
.portal__nota a:hover { color: #fff; }

/* ---------- Galeria / estrutura ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cinza-3);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .6s var(--ease), filter .35s var(--ease);
}
.gallery__item::after {
  content: "＋";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
  background: rgb(1 62 54 / 45%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { scale: 1.05; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }

/* ---------- Equipe ---------- */
/* flex em vez de grid: assim a última linha, se vier incompleta, fica centralizada */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) 1.5rem;
  text-align: center;
}
.member { flex: 0 1 200px; }
.member img {
  width: min(200px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .95rem;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--linha), var(--sombra);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.member:hover img {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px var(--verde), var(--sombra-alta);
}
.member h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.member p {
  font-size: .82rem;
  color: var(--cinza-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Depoimentos ---------- */
.quotes { max-width: 56rem; margin-inline: auto; }
.quotes__viewport { overflow: hidden; }
.quotes__track {
  display: flex;
  transition: transform .6s var(--ease);
}
.quote {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 clamp(.5rem, 3vw, 2.5rem);
}
.quote__stars { color: #f3af68; letter-spacing: .25em; font-size: 1.1rem; margin-bottom: 1.25rem; }
.quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, .95rem + .7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--tinta);
  letter-spacing: -0.01em;
  position: relative;
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: .8;
  color: var(--verde);
  opacity: .18;
  margin-bottom: .35rem;
}
.quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--verde);
}
.quotes__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.round {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linha);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--verde);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.round:hover { background: var(--verde); color: #fff; border-color: var(--verde); }
.dots { display: flex; gap: .5rem; }
.dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cinza-3);
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.dots button[aria-selected="true"] { width: 26px; border-radius: 99px; background: var(--verde); }

/* ---------- Instagram ---------- */
.ig {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

.ig__badge {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 1.5rem;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sombra);
}
.ig__badge svg { width: 30px; height: 30px; fill: var(--verde); }

.ig h2 { margin-bottom: .25rem; }
.ig h2 em {
  font-style: italic;
  color: var(--turquesa);
}
.ig__lead { margin-top: 1.5rem; max-width: 34ch; }
.ig__btn { margin-top: 2rem; }
.ig__btn .ico { width: 20px; height: 20px; }

/* grade 3×2 */
.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ig__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r);
  /* placeholder em gradiente enquanto a foto carrega */
  background: linear-gradient(135deg, var(--verde-600), var(--turquesa));
}
.ig__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .6s var(--ease);
}
.ig__item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgb(1 46 41 / 62%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.2c3.2 0 3.6 0 4.9.07 1.2.05 1.8.25 2.2.42.6.22 1 .48 1.4.9.4.4.7.8.9 1.4.2.4.4 1 .4 2.2.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c0 1.2-.2 1.8-.4 2.2-.2.6-.5 1-.9 1.4-.4.4-.8.7-1.4.9-.4.2-1 .4-2.2.4-1.3.1-1.7.1-4.9.1s-3.6 0-4.9-.1c-1.2 0-1.8-.2-2.2-.4-.6-.2-1-.5-1.4-.9-.4-.4-.7-.8-.9-1.4-.2-.4-.4-1-.4-2.2C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.9c0-1.2.2-1.8.4-2.2.2-.6.5-1 .9-1.4.4-.4.8-.7 1.4-.9.4-.2 1-.4 2.2-.4C8.4 2.2 8.8 2.2 12 2.2Zm0 5.1a4.7 4.7 0 1 0 0 9.4 4.7 4.7 0 0 0 0-9.4Zm0 7.7a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm6-7.9a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Z'/%3E%3C/svg%3E") center / 30px no-repeat;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.ig__item:hover img, .ig__item:focus-visible img { scale: 1.06; }
.ig__item:hover::after, .ig__item:focus-visible::after { opacity: 1; }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--gap);
  align-items: stretch;
}
.contact__list { display: grid; gap: .85rem; align-content: start; }
.info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--linha);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.info:hover { border-color: var(--verde); transform: translateX(4px); box-shadow: var(--sombra); }
.info__ico {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--haze);
  color: var(--verde);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.info__ico svg { width: 22px; height: 22px; fill: currentColor; }
.info:hover .info__ico { background: var(--verde); color: #fff; }
.info__body { display: grid; }
.info__body strong {
  font-family: var(--f-display);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cinza-2);
}
.info__body span { color: var(--tinta); font-weight: 600; line-height: 1.45; }

.hours {
  margin-top: .5rem;
  padding: 1.25rem;
  border-radius: var(--r);
  background: var(--haze);
}
.hours strong {
  display: block;
  font-family: var(--f-display);
  color: var(--tinta);
  margin-bottom: .2rem;
}
.hours p { font-size: .93rem; }

.contact__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 380px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.25); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tinta);
  color: rgb(255 255 255 / 65%);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.footer__brand img { filter: brightness(0) invert(1); margin-bottom: 1.25rem; height: 44px; width: auto; }
.footer__brand p { font-size: .93rem; max-width: 30ch; }
.site-footer h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer__nav { display: grid; gap: .55rem; align-content: start; }
.footer__nav a, .footer__contact a {
  font-size: .93rem;
  transition: color .25s var(--ease);
  width: fit-content;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--turquesa); }
.footer__contact p + p { margin-top: .55rem; }
.footer__contact .btn { margin-top: 1.35rem; }

.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--verde); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: .84rem;
}
.footer__bottom a:hover { color: var(--turquesa); }

/* ---------- Flutuantes ---------- */
.wpp-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wpp);
  box-shadow: 0 10px 30px -8px rgb(37 211 102 / 60%);
  transition: transform .3s var(--ease);
}
.wpp-float svg { width: 30px; height: 30px; fill: #fff; }
.wpp-float:hover { transform: scale(1.08); }
.wpp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wpp);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: calc(clamp(1rem, 2vw, 1.75rem) + 70px);
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--verde);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--verde); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  height: auto;
  max-height: 92vh;
  /* centraliza a imagem ampliada na tela, na vertical e na horizontal */
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgb(1 30 26 / 88%); backdrop-filter: blur(3px); }
.lightbox__figure { margin: 0; flex: 1; min-width: 0; }
.lightbox__figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r);
  background: #000;
}
.lightbox__figure figcaption {
  margin-top: .85rem;
  text-align: center;
  color: rgb(255 255 255 / 85%);
  font-size: .9rem;
}
.lightbox__close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  transition: background-color .25s var(--ease);
}
.lightbox__close:hover { background: rgb(255 255 255 / 26%); }
.lightbox__nav {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  transition: background-color .25s var(--ease);
}
.lightbox__nav:hover { background: rgb(255 255 255 / 26%); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 991px) {
  .exames { grid-template-columns: 1fr; }
  .portal { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portal__acao { width: 100%; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  /* mostra a foto inteira, sem recorte (o original é retrato) */
  .split__media img { aspect-ratio: auto; object-fit: contain; max-height: 70svh; }
  .contact { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(odd) + .stat::before { display: none; }
  .stat:nth-child(3)::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }

  /* menu mobile */
  .burger { display: grid; position: relative; z-index: 100; } /* acima do painel deslizante */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: .35rem;
    padding: 5rem 2rem 2rem;
    background: #fff;
    box-shadow: -20px 0 60px -30px rgb(0 0 0 / 45%);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 99;
  }
  .nav.is-open { transform: none; }
  .nav__link, .is-stuck .nav__link {
    color: var(--tinta);
    font-size: 1.05rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--linha);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.5rem 0 0; padding: .9rem 1.2rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgb(1 30 26 / 45%);
    z-index: 98;
  }
}

/* Instagram: empilha em coluna única com a grade centralizada */
@media (max-width: 900px) {
  .ig {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
  }
  .ig__badge { margin-inline: auto; }
  .ig .rule { margin-inline: auto; }
  .ig__lead { margin-inline: auto; }
  .ig__grid { width: 100%; max-width: 520px; }
}

@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* corpo clínico: um card por linha, ocupando 100% da largura */
  .team { gap: 2.25rem; }
  .member { flex: 1 1 100%; }
  .member img { width: min(220px, 62%); }
  .member p { font-size: .8rem; }
  .quotes__nav { gap: .75rem; }
  .strip__inner { flex-direction: column; text-align: center; }
  .lightbox__nav { position: absolute; bottom: -3.5rem; }
  .lightbox__nav--prev { left: 25%; }
  .lightbox__nav--next { right: 25%; }
}
