/* Dr. Pedro Lourega — LP
   Paleta: 2 claros (gelo quente e cinza-verde da parede) + 1 escuro (parede das fotos).
   Marca (manual 2019): roxo #8C74A1 e azul-água #8ECEDA, só em destaque. */
:root {
  --escuro: #262E2F;      /* parede das fotos; hero, fechamento e rodapé */
  --escuro-2: #1F2627;
  --claro-a: #F7F6F3;
  --claro-b: #EDF0EE;
  --roxo: #8C74A1;
  --roxo-bt: #6C5683;     /* botão: roxo da marca escurecido para contraste com texto branco */
  --roxo-bt-h: #5C4872;
  --agua: #8ECEDA;
  --texto: #1E2425;
  --texto-2: #4B5557;
  --filete: #D9DEDC;
  --branco: #FFFFFF;
  --raio: 6px;
  --f-tit: "Montserrat", system-ui, sans-serif;
  --f-txt: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--claro-a); color: var(--texto);
  font-family: var(--f-txt); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-tit); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.55rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
address { font-style: normal; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.estreito { max-width: 760px; }
.centro { text-align: center; }


/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 2.6rem; border-radius: var(--raio);
  background: var(--roxo-bt); color: var(--branco); text-decoration: none;
  font-family: var(--f-tit); font-weight: 600; font-size: 1.02rem; letter-spacing: .04em;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .28);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--roxo-bt-h); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .32); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; }
.btn--linha { background: transparent; color: var(--roxo-bt); box-shadow: inset 0 0 0 2px var(--roxo-bt); }
.btn--linha:hover { background: var(--roxo-bt); color: var(--branco); }
.btn--nav { min-height: 46px; padding: 0 1.4rem; font-size: .9rem; box-shadow: none; }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--filete); backdrop-filter: blur(8px); }
.nav__in { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.marca__simb { width: 44px; height: auto; }
.marca__txt { display: flex; flex-direction: column; line-height: 1.15; }
.marca__nome { font-family: var(--f-tit); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; text-transform: uppercase; color: #7D6597; }
.marca__esp { font-family: var(--f-tit); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #3A7F8B; margin-top: 3px; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-family: var(--f-tit); font-weight: 500; font-size: .88rem; color: var(--texto-2); }
.nav__links a:hover { color: var(--roxo-bt); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--escuro); color: var(--branco); overflow: clip; }
.hero__foto img { position: absolute; top: 0; right: max(0px, calc((100vw - 1240px) / 2 - 60px)); height: 100%; width: auto; max-width: none; }
.hero__in { position: relative; z-index: 1; min-height: clamp(560px, calc(100svh - 76px - 58px), 700px); display: flex; align-items: center; padding-block: 56px; }
.hero__txt { max-width: 560px; }
.hero h1 { margin-bottom: 1.4rem; }
.h1__nome { display: block; font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
.h1__esp { display: block; margin-top: .55rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 500; line-height: 1.3; color: var(--agua); letter-spacing: 0; }
.hero__lead { font-size: 1.12rem; color: rgba(255, 255, 255, .86); max-width: 500px; }
.hero__cred { font-style: italic; color: rgba(255, 255, 255, .7); font-size: .98rem; margin-bottom: 2rem; }

/* faixa que roda sob o hero */
.faixa { background: var(--escuro-2); color: rgba(255, 255, 255, .82); border-top: 1px solid rgba(142, 206, 218, .18); overflow: clip; }
.faixa__trilho { display: flex; width: max-content; animation: rola 46s linear infinite; }
.faixa__lista { display: flex; list-style: none; margin: 0; padding: 0; }
.faixa__lista li { font-family: var(--f-tit); font-weight: 500; font-size: .98rem; letter-spacing: .01em; padding: 18px 0; white-space: nowrap; display: flex; align-items: center; }
.faixa__lista li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--agua); margin: 0 2.2rem; }
@keyframes rola { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .faixa__trilho { animation: none; width: auto; justify-content: center; }
  .faixa__lista[aria-hidden] { display: none; }
  .faixa__lista { flex-wrap: wrap; justify-content: center; }
}

/* ---------- seções ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec--a { background: var(--claro-a); }
.sec--b { background: var(--claro-b); }
.sec p { color: var(--texto-2); }

/* foto + texto alinhados ao topo e à base */
.duo { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.duo--inv { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.duo__txt { display: flex; flex-direction: column; align-items: flex-start; }
.duo__fim { margin-top: auto; }
/* texto curto ao lado de foto alta: bloco centralizado na vertical, botão logo abaixo do texto */
.duo--inv .duo__txt { justify-content: center; }
.duo--inv .duo__fim { margin-top: 0; }
.foto { position: relative; border-radius: var(--raio); overflow: hidden; background: var(--escuro); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--alta { min-height: 560px; }
.foto--alta img { position: absolute; inset: 0; object-position: center 20%; }

.passos { list-style: none; margin: .6rem 0 2.4rem; padding: 0; display: grid; gap: 1.3rem; }
.passos li { padding-top: 1.3rem; border-top: 1px solid var(--filete); }
.passos h3 { margin-bottom: .35rem; }
.passos p { margin: 0; }

/* linha de cuidado */
.linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.linha h2 { margin: 0; }
.linha__txt p { max-width: 62ch; }
.frase { margin: 1.6rem 0 0; font-family: var(--f-tit); font-size: 1.15rem; line-height: 1.55; color: var(--texto) !important; }
.frase strong { font-weight: 600; color: var(--roxo-bt); }

/* tratamentos */
.cabeca { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 3rem; }
.cabeca h2 { margin-bottom: 0; }
.cabeca > p { margin: 0; }
/* 4 blocos num painel só, divididos por linhas finas, mesma altura */
.trat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; background: var(--branco); border: 1px solid var(--filete); border-radius: var(--raio); overflow: hidden; margin-bottom: 3rem; box-shadow: 0 1px 2px rgba(30, 36, 37, .04), 0 12px 32px -18px rgba(30, 36, 37, .18); }
.trat__item { padding: clamp(1.8rem, 3vw, 2.6rem); border-top: 1px solid var(--filete); border-left: 1px solid var(--filete); }
.trat__item:nth-child(-n+2) { border-top: 0; }
.trat__item:nth-child(odd) { border-left: 0; }
.trat__item h3 { font-size: 1.25rem; margin-bottom: .7rem; color: var(--roxo-bt); }
.trat__item p { margin: 0; }

/* sobre */
.cred { font-style: italic; color: var(--roxo-bt) !important; margin-top: -.4rem; margin-bottom: 1.4rem; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; padding-top: 1.4rem; }
.link-ig { font-family: var(--f-tit); font-weight: 500; font-size: .95rem; color: var(--texto-2); text-underline-offset: 4px; }

/* onde atende */
.onde { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(40px, 6vw, 88px); align-items: stretch; margin-bottom: 40px; }
.onde__txt { display: flex; flex-direction: column; align-items: flex-start; }
.onde address { font-size: 1.12rem; line-height: 1.7; color: var(--texto); margin-bottom: 1rem; }
.foto--larga { aspect-ratio: 3 / 2; }
.foto--larga img { object-position: left center; }
.mapa { border-radius: var(--raio); overflow: hidden; border: 1px solid var(--filete); height: 340px; background: var(--claro-a); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__cab { position: relative; }
@media (min-width: 861px) { .faq__cab { position: sticky; top: 110px; } }
.faq__lista { border-top: 1px solid var(--filete); }
details { border-bottom: 1px solid var(--filete); }
summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.6rem 1.35rem 0; position: relative;
  font-family: var(--f-tit); font-weight: 600; font-size: 1.05rem; color: var(--texto);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--roxo); border-bottom: 2px solid var(--roxo); transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding-bottom: 1.4rem; margin: 0; max-width: 640px; }

/* fechamento + rodapé */
.fim { background: var(--escuro); color: var(--branco); padding-block: clamp(80px, 10vw, 128px); }
.fim h2 { margin-bottom: 1.2rem; font-size: clamp(2rem, 1.3rem + 2vw, 2.8rem); }
.fim p { color: rgba(255, 255, 255, .8); margin: 0 auto 2.2rem; font-size: 1.1rem; max-width: 66ch; }
.rodape { background: var(--escuro); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-block: 48px 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rodape__marca { display: flex; align-items: center; gap: 1rem; }
.rodape__marca img { width: 52px; }
.rodape__marca strong { display: block; font-family: var(--f-tit); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--branco); font-size: 1rem; }
.rodape__marca span { font-size: .88rem; }
.rodape__dados { text-align: right; }
.rodape__dados p { margin: 0 0 .3rem; }
.rodape a { color: rgba(255, 255, 255, .88); text-underline-offset: 3px; }
.rodape__aviso { padding-bottom: 36px; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.rodape__aviso p { margin: 0; }

/* whatsapp flutuante (aparece quando houver número em main.js) */
.wpp { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); }
.wpp[hidden] { display: none; }
.wpp svg { width: 32px; height: 32px; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: .82rem; }
}
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav__toggle span { display: block; height: 2px; background: var(--texto); border-radius: 2px; transition: transform .2s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--branco); border-bottom: 1px solid var(--filete); padding: .5rem 16px 1rem; display: none; }
  .nav__links.aberto { display: flex; }
  .nav__links a { font-size: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--claro-b); }
  .nav__in { gap: .8rem; }
}
@media (max-width: 1000px) {
  .hero__foto { display: block; }
  .hero__foto img { position: static; width: 100%; height: auto; aspect-ratio: 720 / 575; max-height: 70svh; object-fit: cover; object-position: center top; }
  .hero__in { min-height: 0; padding-block: 32px 56px; }
}
@media (max-width: 860px) {
  .btn--nav { display: none; }
  .duo, .duo--inv, .cabeca, .onde, .faq, .linha, .trat { grid-template-columns: 1fr; }
  .trat { grid-auto-rows: auto; }
  .trat__item { border-left: 0 !important; border-top: 1px solid var(--filete) !important; }
  .trat__item:first-child { border-top: 0 !important; }
  .cabeca { margin-bottom: 2rem; }
  .duo--inv .foto { order: -1; }
  .foto--alta { min-height: 0; aspect-ratio: 4 / 5; }
  .rodape__dados { text-align: left; }
  .mapa { height: 280px; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .btn { width: 100%; padding: 0 1.4rem; }
  .acoes { width: 100%; }
  .acoes .link-ig { width: 100%; text-align: center; }
  .marca__nome { font-size: .9rem; }
  .marca__simb { width: 36px; }
}
