/* Clínica AMEP — réplica estática do site Wix */
:root {
  --navy: #0b2d3e;
  --blue: #1e77a4;
  --blue-dark: #093246;
  --teal: #24aeae;
  --teal-light: #72d1d1;
  --steel: #7094a7;
  --ice: #f0faff;
  --bg: #eeeeee;
  --muted: #989797;
  --muted-dark: #595959;
  --header-h: 94px;
  --wrap: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Sora', Arial, sans-serif;
  color: #000;
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 28px); margin: 0 auto; padding: 0 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  height: var(--header-h);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo img { width: 223px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14px; text-decoration: none; text-transform: uppercase;
  padding: 10px 10px; color: #000; white-space: nowrap; transition: color .2s;
}
.nav a:hover, .nav a.ativo { color: var(--teal); }
.nav .btn-whats-top {
  margin-left: 12px; display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 10px;
  background: linear-gradient(var(--teal), var(--teal-light));
  color: #fff; font-size: 11px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
  white-space: nowrap; transition: filter .2s;
}
.nav .btn-whats-top:hover { filter: brightness(1.08); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; margin-left: auto; }
.menu-toggle svg { width: 30px; height: 30px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(var(--teal), var(--teal-light));
  color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600;
  border-radius: 12px; height: 49px; min-width: 220px; padding: 0 22px; font-size: 13px;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-lg { height: 81px; min-width: 326px; border-radius: 20px; font-size: 17px; }
.btn-md { height: 56px; min-width: 288px; border-radius: 20px; font-size: 17px; }
.btn-steel {
  background: linear-gradient(var(--steel), var(--blue));
  border-radius: 9px; height: 52px; min-width: 164px; font-size: 14px; font-weight: 500;
}
.btn-steel.largo { min-width: 242px; }
.cta { text-align: center; margin-top: 56px; }

/* ---------- Tipografia ---------- */
.titulo { font-size: 40px; font-weight: 700; color: var(--navy); text-align: center; line-height: 1.3; }
.subtitulo { font-size: 16px; color: var(--muted); text-align: center; max-width: 460px; margin: 6px auto 0; }
.texto p { font-size: 16px; }
.texto p + p { margin-top: 1.4em; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 26px; border-radius: 100px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
}
.pill.claro { background: var(--ice); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 615px; display: flex; align-items: center;
  background-color: var(--blue); background-size: cover; background-position: center;
  color: #fff;
}
.hero .conteudo { max-width: 500px; padding: 40px 0; }
.hero .pre { font-size: 20px; margin-bottom: 18px; }
.hero h1 { font-size: 36px; font-weight: 700; line-height: 1.3; }
.hero.home h1 { font-size: 48px; line-height: 1.2; }
.hero .lead { font-size: 22px; color: #eaeaea; margin-top: 20px; line-height: 1.4; }
.hero.home .lead { font-size: 23px; color: #fff; }
.hero .btn { margin-top: 34px; }
.hero .marca-inst { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.hero .marca-inst img:first-child { width: 54px; }
.hero .marca-inst img:last-child { width: 78px; }
.hero .destaque { color: var(--teal-light); }

/* ---------- Barra de ícones ---------- */
.barra-icones { position: relative; z-index: 2; margin-top: -49px; }
.barra-icones .faixa {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: url(../img/barra-icones.webp) center / 100% 100% no-repeat;
  border-radius: 20px; min-height: 173px; padding: 36px 0 24px;
}
.barra-icones .item { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-align: center; font-size: 17px; padding: 0 8px; position: relative; }
.barra-icones .item + .item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.7); }
.barra-icones svg { width: 45px; height: 45px; }

/* ---------- Seções ---------- */
.secao { padding: 100px 0; background: var(--bg); }
.secao.branca { background: #fff; }
.secao.compacta { padding: 48px 0; }

/* Nossos serviços */
.servicos-grid { display: grid; grid-template-columns: repeat(3, 300px); justify-content: space-between; gap: 24px 0; margin-top: 68px; }
.card-servico {
  background: linear-gradient(var(--blue), var(--navy));
  border-radius: 17px; box-shadow: 0 3.4px 4.6px rgba(0,0,0,.25);
  padding: 30px 33px 30px; display: flex; flex-direction: column; align-items: center; color: #fff; min-height: 300px;
}
.card-servico img { width: 234px; height: 115px; object-fit: cover; border-radius: 17px; }
.card-servico h3 { font-size: 22px; font-weight: 400; margin: 20px 0 21px; text-align: center; }

/* Bloco Instituto (home) */
.bloco-instituto { background: var(--bg); padding: 0 0 124px; }
.bloco-instituto .caixa {
  background: linear-gradient(0deg, var(--blue), var(--navy));
  border-radius: 30px; padding: 48px 53px 49px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; color: #fff;
  margin: 0 48px;
}
.bloco-instituto h2 { font-size: 40px; font-weight: 400; margin-bottom: 25px; }
.bloco-instituto .texto p { font-size: 18px; }
.bloco-instituto .btn { margin-top: 30px; }

/* Vídeo */
.video-box { position: relative; width: 340px; aspect-ratio: 340 / 605; background: #000; overflow: hidden; cursor: pointer; }
.video-box video, .video-box img { width: 100%; height: 100%; object-fit: cover; }
.video-box .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
.video-box .play svg { width: 80px; height: 80px; transition: transform .2s; }
.video-box:hover .play svg { transform: scale(1.08); }
.video-box.tocando .play, .video-box.tocando img { display: none; }

/* Faixa paralax / chamada */
.paralax {
  min-height: 500px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center;
}
.paralax h2 { font-size: 36px; font-weight: 400; max-width: 922px; padding: 0 14px; line-height: 1.3; }
.paralax h2 + p { font-size: 16px; max-width: 615px; margin: 14px auto 0; padding: 0 14px; }
.paralax .btn { margin-top: 18px; }

/* Grade de imagens circulares (exames/procedimentos) */
.grade-circulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 20px; margin-top: 55px; }
.grade-circulos figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grade-circulos img { width: 220px; height: 220px; object-fit: contain; }
.grade-circulos figcaption { font-size: 22px; color: var(--navy); margin-top: 17px; max-width: 260px; }
.grade-circulos.menor figcaption { font-size: 20px; margin-top: 12px; }

/* Sobre (fundo escuro) */
.sobre { background: var(--navy) url(../img/sobre-bg.webp) center / cover no-repeat; color: #fff; padding: 83px 0; min-height: 680px; }
.sobre .coluna { margin-left: 52.6%; max-width: 430px; }
.sobre .coluna > img { width: 216px; height: auto; }
.sobre .btn { margin-top: 20px; min-width: 210px; height: 50px; }

/* Procedimentos */
.procedimentos { background: #f4f4f4 url(../img/procedimentos-bg.webp) center / cover no-repeat; padding: 90px 0; min-height: 635px; }
.lista-check { display: grid; grid-template-columns: 285px auto; gap: 8px 14px; margin-top: 60px; max-width: 600px; }
.lista-check li { list-style: none; display: flex; align-items: center; gap: 7px; font-size: 22px; color: var(--navy); }
.lista-check li.largo { grid-column: 1 / -1; }
.lista-check svg { width: 25px; height: 22px; color: var(--blue); flex: none; }

/* Equipe */
.equipe { background: #f4f4f4 url(../img/equipe-bg.webp) center / cover no-repeat; min-height: 550px; padding: 130px 0 80px; }
.equipe .coluna { margin-left: 56.9%; max-width: 380px; color: var(--navy); }
.equipe h2 { font-size: 40px; font-weight: 700; margin-bottom: 18px; }

/* Onde estamos */
.onde { background: #f4f4f4 url(../img/onde-bg.webp) center top / cover no-repeat; padding-top: 20px; }
.contatos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 60px; max-width: 690px; margin: 44px auto 0; }
.contato { display: flex; align-items: center; gap: 15px; font-size: 18px; color: var(--navy); text-decoration: none; }
.contato svg { width: 40px; height: 40px; color: var(--blue); flex: none; }
.contatos .linha2 { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.onde .cta { margin-top: 48px; padding-bottom: 54px; }
.mapa { width: 100%; height: 300px; border: 0; display: block; }

/* Rodapé */
.site-footer { background: linear-gradient(var(--blue), var(--navy)); color: #fff; text-align: center; padding: 33px 14px 36px; }
.site-footer p { font-size: 16px; }
.site-footer a { display: inline-block; color: #c7c7c7; font-size: 14px; margin-top: 10px; }

/* ---------- Páginas internas ---------- */
.dupla { display: grid; grid-template-columns: 439px 1fr; gap: 46px; align-items: center; margin-top: 48px; padding: 0 50px; }
.dupla .foto { width: 439px; height: 492px; object-fit: cover; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dupla .texto { max-width: 410px; }
.dupla .btn { margin-top: 30px; }
.dupla.invertida { grid-template-columns: 1fr 425px; }
.dupla.invertida .foto { width: 425px; }

.grade-cards { display: grid; grid-template-columns: repeat(3, 300px); justify-content: space-between; gap: 39px 0; margin-top: 60px; }
.grade-cards img { width: 300px; height: 320px; object-fit: cover; border-radius: 20px; }
.grade-cards.duas { grid-template-columns: repeat(2, 340px); justify-content: center; gap: 61px 60px; }
.grade-cards.duas img { width: 340px; height: 362px; }

/* Cards azuis com texto (psiquiatria, instituto, laudos) */
.cards-azuis { display: grid; grid-template-columns: repeat(3, 300px); justify-content: space-between; gap: 40px 0; margin-top: 56px; }
.card-azul {
  background: var(--blue); border-radius: 17px; box-shadow: 0 4px 6px rgba(0,0,0,.25);
  color: var(--ice); padding: 25px 29px 30px; min-height: 310px;
}
.card-azul h3 { font-size: 20px; font-weight: 700; text-align: center; line-height: 1.2; margin-bottom: 18px; }
.card-azul p { font-size: 16px; }
.card-azul .btn { margin-top: 26px; min-width: 0; width: 100%; height: 56px; border-radius: 20px; font-size: 15px; }
.cards-azuis.baixos .card-azul { min-height: 260px; }
.subtitulo.largo { max-width: 656px; color: var(--muted-dark); }

/* Lista de exames laboratoriais */
.lista-exames { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 90px; margin: 60px 40px 0; }
.lista-exames li { list-style: none; display: flex; align-items: center; gap: 17px; font-size: 20px; color: var(--navy); min-height: 54px; }
.lista-exames li img { width: 50px; height: 50px; flex: none; }
.lista-exames li span { flex: 1; text-align: center; }
.nota { font-size: 20px; color: var(--navy); text-align: center; max-width: 685px; margin: 56px auto 0; }

/* Doppler */
.doppler { background: var(--navy) url(../img/ultra-doppler.webp) center / cover no-repeat; color: #fff; min-height: 463px; padding: 93px 0; }
.doppler .coluna { margin-left: 48%; max-width: 400px; }
.doppler h2 { font-size: 30px; font-weight: 400; text-align: center; margin-bottom: 37px; }

/* Laudos */
.beneficios { display: grid; grid-template-columns: 270px 280px 280px; justify-content: center; gap: 15px; margin-top: -91px; position: relative; z-index: 2; padding: 0 60px; }
.beneficio { background: var(--ice); border-radius: 10px; min-height: 220px; padding: 28px 16px; text-align: center; color: var(--navy); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.beneficio svg { width: 43px; height: 43px; color: var(--navy); margin: 0 auto 20px; }
.beneficio h3 { font-size: 18px; font-weight: 400; }
.beneficio p { font-size: 15px; margin-top: 15px; }
.centro { text-align: center; }
.publicos { background: linear-gradient(var(--blue), var(--navy)); color: #fff; padding: 63px 0 80px; }
.publicos .titulo, .publicos .subtitulo { color: #fff; }
.publicos-grid { display: grid; grid-template-columns: repeat(3, 300px); justify-content: space-between; margin-top: 58px; }
.publico { background: rgba(112,148,167,.75); border: .8px solid rgba(240,250,255,.27); border-radius: 10px; min-height: 245px; padding: 34px 17px; }
.publico svg { width: 43px; height: 43px; }
.publico h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.publico p { font-size: 15px; color: #eee; }
.cards-brancos { display: grid; grid-template-columns: repeat(3, 310px); justify-content: space-between; margin-top: 60px; }
.card-branco { background: #fff; border-radius: 17px; box-shadow: 0 4px 10px rgba(0,0,0,.12); padding: 22px 29px; min-height: 230px; color: #083a53; }
.card-branco h3 { font-size: 20px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid #d5dde2; margin-bottom: 14px; }
.card-branco p { font-size: 16px; }

.vazio { min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; color: var(--navy); padding: 80px 14px; }

/* ---------- Animação de entrada ---------- */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .nav a { padding: 10px 6px; font-size: 12px; }
  .logo img { width: 170px; }
  .servicos-grid, .grade-cards, .cards-azuis, .publicos-grid, .cards-brancos { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 30px; }
  .dupla, .dupla.invertida { grid-template-columns: minmax(0, 1fr) !important; padding: 0 !important; gap: 36px !important; justify-items: center; }
  .dupla .foto, .dupla.invertida .foto { width: 100% !important; max-width: 439px; height: auto !important; aspect-ratio: 439 / 492; }
  .dupla .texto { max-width: 100% !important; }
  .dupla.invertida .foto { order: -1; }
  .bloco-instituto .caixa { grid-template-columns: 1fr; margin: 0; justify-items: center; }
  .beneficios { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; padding: 0; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px; transform: translateX(100%); transition: transform .3s;
  }
  .nav.aberto { transform: none; }
  .nav a { font-size: 16px; padding: 16px 8px; border-bottom: 1px solid #ddd; }
  .nav .btn-whats-top { margin: 20px 0 0; height: 50px; font-size: 13px; border-bottom: 0; }
  .hero { min-height: 560px; background-position: 70% center; }
  .hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,45,62,.85), rgba(11,45,62,.35)); }
  .hero .conteudo { position: relative; }
  .sobre .coluna, .equipe .coluna, .doppler .coluna { margin-left: 0; max-width: none; }
  .equipe { background-position: 20% center; padding-top: 300px; }
  .equipe .coluna { background: rgba(255,255,255,.88); padding: 20px; border-radius: 16px; }
  .sobre { background-position: 20% center; }
  .procedimentos { background-position: 85% center; }
}
@media (max-width: 640px) {
  :root { --header-h: 74px; }
  .logo img { width: 150px; }
  .secao { padding: 64px 0; }
  .titulo { font-size: 30px; }
  .hero h1, .hero.home h1 { font-size: 30px; }
  .hero .lead, .hero.home .lead { font-size: 18px; }
  .hero .pre { font-size: 16px; }
  .btn-lg, .btn-md { min-width: 0; width: 100%; max-width: 326px; height: 64px; font-size: 15px; }
  .barra-icones { margin-top: -30px; }
  .barra-icones .faixa { grid-template-columns: repeat(3, 1fr); gap: 22px 0; background: linear-gradient(#72d1d1, #24aeae); padding: 24px 0; }
  .barra-icones .item { font-size: 14px; }
  .barra-icones .item:nth-child(4)::before { display: none; }
  .barra-icones svg { width: 36px; height: 36px; }
  .servicos-grid, .grade-cards, .cards-azuis, .publicos-grid, .cards-brancos, .grade-cards.duas { grid-template-columns: minmax(0, 340px); }
  .grade-cards img, .grade-cards.duas img { width: 100%; height: auto; }
  .grade-circulos { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .grade-circulos img { width: 100%; max-width: 160px; height: auto; }
  .grade-circulos figcaption, .grade-circulos.menor figcaption { font-size: 16px; }
  .bloco-instituto .caixa { padding: 32px 22px; border-radius: 22px; }
  .bloco-instituto h2 { font-size: 30px; }
  .video-box { width: 100%; max-width: 340px; }
  .paralax { min-height: 360px; }
  .paralax h2 { font-size: 24px; }
  .lista-check { grid-template-columns: 1fr; }
  .lista-check li { font-size: 18px; }
  .procedimentos { background-image: none; }
  .contatos { grid-template-columns: 1fr; gap: 22px; }
  .contatos .linha2 { flex-direction: column; gap: 22px; }
  .contato { font-size: 16px; }
  .lista-exames { grid-template-columns: 1fr; margin: 40px 0 0; gap: 20px; }
  .lista-exames li { font-size: 17px; }
  .lista-exames li span { text-align: left; }
  .doppler h2 { font-size: 26px; }
  .equipe h2 { font-size: 30px; }
}
