/* =========================================================
   Dra. Mariane Branco — Urologia e Andrologia
   Design system · mobile-first · vanilla CSS
   Paleta: Navy #292F49 · Bege #D7D1CA · Off-white #F6F6F7 · Grafite #333
   Tipografia: Cormorant Garamond (display) + Montserrat (corpo/UI)
   ========================================================= */

:root {
  /* Cores da marca */
  --navy: #292F49;
  --navy-700: #1f2438;
  --bege: #D7D1CA;
  --bege-claro: #ece8e3;
  --off-white: #F6F6F7;
  --grafite: #333333;
  --branco: #ffffff;

  /* Aplicação semântica */
  --cor-primaria: var(--navy);
  --cor-secundaria: var(--bege);
  --cor-fundo: var(--branco);
  --cor-superficie: var(--off-white);
  --cor-texto: var(--grafite);
  --cor-texto-suave: #6b6f7a;
  --cor-borda: #e6e3df;

  /* Tipografia */
  --fonte-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --fonte-corpo: "Montserrat", system-ui, -apple-system, sans-serif;

  /* Espaçamento (base 8) */
  --esp-1: .5rem;  --esp-2: 1rem;   --esp-3: 1.5rem;
  --esp-4: 2rem;   --esp-5: 2.5rem; --esp-6: 3rem;   --esp-8: 5rem;

  /* Forma */
  --radius: 14px;
  --radius-sm: 8px;
  --sombra: 0 10px 40px rgba(41,47,73,.10);
  --sombra-sm: 0 4px 18px rgba(41,47,73,.07);
  --container: 1180px;
  --container-estreito: 820px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--fonte-corpo);
  color: var(--cor-texto);
  background: var(--cor-fundo);
  line-height: 1.7;
  font-weight: 400;
  font-size: 1rem;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--fonte-display); line-height: 1.12; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
p { color: var(--cor-texto); }
.eyebrow {
  font-family: var(--fonte-corpo);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy);
  display: inline-block;
}
.eyebrow--bege { color: var(--bege); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--esp-3); }
.container-estreito { max-width: var(--container-estreito); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-header { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.sec-header p { color: var(--cor-texto-suave); margin-top: var(--esp-2); }
.bg-superficie { background: var(--cor-superficie); }
.bg-navy { background: var(--navy); color: #e9eaee; }
.bg-bege { background: var(--bege-claro); }

/* divisor decorativo */
.divisor { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: var(--esp-2); }
.divisor::before, .divisor::after { content: ""; height: 1px; width: 46px; background: var(--bege); }
.divisor span { width: 7px; height: 7px; border-radius: 50%; background: var(--bege); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.8rem;
  border: 0; border-radius: 999px;
  font-family: var(--fonte-corpo); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  background: var(--navy); color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--sombra-sm);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-bege { background: var(--bege); color: var(--navy); }
.btn-bege:hover { background: #c8c0b6; }
.btn-claro { background: #fff; color: var(--navy); }
.btn-wpp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cor-borda);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: var(--esp-2); }
.nav-logo img { height: 40px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .3s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu { display: flex; align-items: center; gap: var(--esp-4); }
.nav-menu a:not(.btn) {
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); position: relative; padding: .3rem 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--bege); transition: width .25s ease;
}
.nav-menu a:not(.btn):hover::after { width: 100%; }

@media (max-width: 959px) {
  .nav-menu {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: var(--esp-3);
    background: #fff; padding: var(--esp-4) var(--esp-3) var(--esp-5);
    border-bottom: 1px solid var(--cor-borda); box-shadow: var(--sombra);
    transform: translateY(-130%); transition: transform .35s ease;
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu .btn { width: 100%; }
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--off-white); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,209,202,.4), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: var(--esp-5); grid-template-columns: 1fr; align-items: center; }
.hero-texto .eyebrow { margin-bottom: var(--esp-2); }
.hero-texto h1 { margin-bottom: var(--esp-3); }
.hero-texto h1 .destaque { color: var(--bege); font-style: italic; }
.hero-texto p { color: var(--cor-texto-suave); font-size: 1.05rem; max-width: 46ch; margin-bottom: var(--esp-4); }
.hero-acoes { display: flex; flex-wrap: wrap; gap: var(--esp-2); }
.hero-media { position: relative; display: grid; place-items: center; }
.hero-foto {
  width: 100%; max-width: 440px; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bege-claro), var(--bege));
  border-radius: 260px 260px var(--radius) var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--navy); box-shadow: var(--sombra); overflow: hidden;
  position: relative;
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.placeholder-nota {
  font-family: var(--fonte-corpo); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(41,47,73,.55); padding: var(--esp-3);
}
.hero-selo {
  position: absolute; bottom: -22px; left: -22px;
  width: 116px; height: 116px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--sombra);
  padding: 16px;
}
.hero-selo img { width: 100%; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--esp-8); }
}

/* ---------- Faixa de destaques ---------- */
.faixa { background: var(--navy); }
.faixa .container { display: grid; gap: var(--esp-3); grid-template-columns: 1fr; padding-block: var(--esp-5); }
.faixa-item { display: flex; gap: var(--esp-2); align-items: flex-start; color: #e9eaee; }
.faixa-item .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(215,209,202,.16); display: grid; place-items: center; }
.faixa-item .ic svg { width: 20px; height: 20px; stroke: var(--bege); fill: none; stroke-width: 1.6; }
.faixa-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: .15rem; }
.faixa-item p { color: #b9bcc6; font-size: .9rem; line-height: 1.5; }
@media (min-width: 768px) { .faixa .container { grid-template-columns: repeat(3, 1fr); gap: var(--esp-5); } }

/* ---------- Sobre ---------- */
.sobre-grid { display: grid; gap: var(--esp-5); grid-template-columns: 1fr; align-items: center; }
.sobre-media { position: relative; }
.sobre-foto {
  width: 100%; aspect-ratio: 3/4; max-width: 420px; margin-inline: auto;
  background: linear-gradient(160deg, var(--bege-claro), var(--bege));
  border-radius: var(--radius); display: grid; place-items: center;
  box-shadow: var(--sombra); overflow: hidden;
}
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
.sobre-texto .eyebrow { margin-bottom: var(--esp-2); }
.sobre-texto h2 { margin-bottom: var(--esp-3); }
.sobre-texto p { color: var(--cor-texto-suave); margin-bottom: var(--esp-3); }
.sobre-texto .assinatura { font-family: var(--fonte-display); font-style: italic; font-size: 1.5rem; color: var(--navy); margin-top: var(--esp-2); }
@media (min-width: 960px) { .sobre-grid { grid-template-columns: .85fr 1.15fr; gap: var(--esp-8); } }

/* ---------- Formação ---------- */
.formacao-lista { display: grid; gap: var(--esp-2); max-width: 760px; margin: 0 auto; }
.formacao-item {
  display: flex; gap: var(--esp-3); align-items: flex-start;
  background: #fff; border: 1px solid var(--cor-borda); border-radius: var(--radius);
  padding: var(--esp-3) var(--esp-4); box-shadow: var(--sombra-sm);
}
.formacao-item .ano { flex: 0 0 auto; }
.formacao-item .marca { width: 12px; height: 12px; border-radius: 50%; background: var(--bege); margin-top: .5rem; box-shadow: 0 0 0 4px rgba(215,209,202,.3); }
.formacao-item h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.formacao-item p { color: var(--cor-texto-suave); font-size: .92rem; }

/* ---------- Áreas de atuação ---------- */
.areas-grid { display: grid; gap: var(--esp-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .areas-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .areas-grid { grid-template-columns: repeat(3,1fr); } }
.area-card {
  background: #fff; border: 1px solid var(--cor-borda); border-radius: var(--radius);
  padding: var(--esp-4); text-align: left; box-shadow: var(--sombra-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.area-card .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--bege-claro); display: grid; place-items: center; margin-bottom: var(--esp-3); }
.area-card .ic svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.area-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.area-card p { color: var(--cor-texto-suave); font-size: .92rem; line-height: 1.55; }

/* ---------- Tratamentos (grid) ---------- */
.trat-grid { display: grid; gap: var(--esp-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .trat-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .trat-grid { grid-template-columns: repeat(3,1fr); } }
.trat-card {
  display: flex; flex-direction: column; gap: var(--esp-2);
  background: #fff; border: 1px solid var(--cor-borda); border-radius: var(--radius);
  padding: var(--esp-4); box-shadow: var(--sombra-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trat-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--bege); }
.trat-card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--bege-claro); display: grid; place-items: center; }
.trat-card .ic svg { width: 28px; height: 28px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.trat-card h3 { font-size: 1.2rem; }
.trat-card p { color: var(--cor-texto-suave); font-size: .9rem; flex: 1; }
.trat-card .leia {
  font-family: var(--fonte-corpo); font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--esp-1);
}
.trat-card .leia svg { width: 16px; height: 16px; transition: transform .2s ease; }
.trat-card:hover .leia svg { transform: translateX(4px); }

/* ---------- Página de procedimento ---------- */
.proc-hero { background: var(--off-white); border-bottom: 1px solid var(--cor-borda); }
.proc-hero .container { padding-block: clamp(2.5rem,6vw,4rem); }
.breadcrumb { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cor-texto-suave); margin-bottom: var(--esp-2); }
.breadcrumb a:hover { color: var(--navy); }
.proc-hero h1 { max-width: 18ch; }
.proc-body { max-width: var(--container-estreito); margin-inline: auto; }
.proc-body p { color: var(--grafite); margin-bottom: var(--esp-3); }
.proc-body h2 { font-size: clamp(1.5rem,3vw,2rem); margin: var(--esp-5) 0 var(--esp-2); }
.proc-body ul.lista { display: grid; gap: var(--esp-1); margin: var(--esp-2) 0 var(--esp-3); }
.proc-body ul.lista li { position: relative; padding-left: 1.6rem; color: var(--grafite); }
.proc-body ul.lista li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--bege); box-shadow: 0 0 0 3px rgba(215,209,202,.35); }

/* placeholders de mídia */
.media-ph {
  border: 1.5px dashed var(--bege); border-radius: var(--radius);
  background: var(--off-white); display: grid; place-items: center; text-align: center;
  color: var(--cor-texto-suave); padding: var(--esp-4);
}
.media-ph .rotulo { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy); }
.media-ph .descr { font-size: .85rem; margin-top: .4rem; }
.media-banner { width: 100%; aspect-ratio: 21/7; margin: var(--esp-4) 0; }
.media-video { width: 100%; aspect-ratio: 16/9; margin: var(--esp-4) 0; }
.media-video iframe, .media-video video { width: 100%; height: 100%; border: 0; border-radius: var(--radius); display: block; }

.proc-cta {
  text-align: center; background: var(--bege-claro);
  border-radius: var(--radius); padding: var(--esp-6) var(--esp-4); margin-top: var(--esp-5);
}
.proc-cta h2 { margin-bottom: var(--esp-2); }
.proc-cta p { color: var(--cor-texto-suave); max-width: 50ch; margin: 0 auto var(--esp-4); }

/* ---------- Contato ---------- */
.contato-intro { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.contato-intro p { color: var(--cor-texto-suave); margin-top: var(--esp-2); }
.clinicas { display: grid; gap: var(--esp-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .clinicas { grid-template-columns: repeat(2,1fr); } }
.clinica-card {
  background: #fff; border: 1px solid var(--cor-borda); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sombra-sm); display: flex; flex-direction: column;
}
.clinica-mapa { width: 100%; aspect-ratio: 16/9; }
.clinica-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.clinica-corpo { padding: var(--esp-4); display: flex; flex-direction: column; gap: var(--esp-2); flex: 1; }
.clinica-corpo .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bege); font-weight: 700; }
.clinica-corpo h3 { font-size: 1.5rem; }
.clinica-corpo .bairro { color: var(--cor-texto-suave); font-size: .9rem; }
.info-linha { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--grafite); }
.info-linha svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.6; margin-top: .2rem; }
.horarios { font-size: .88rem; color: var(--cor-texto-suave); }
.horarios strong { color: var(--grafite); font-weight: 600; }
.clinica-card .btn { margin-top: auto; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--navy); text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,209,202,.14), transparent 65%); pointer-events: none;
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #c2c5cf; max-width: 52ch; margin: var(--esp-2) auto var(--esp-4); }
.cta-final .simbolo { width: 64px; margin: 0 auto var(--esp-3); opacity: .9; }

/* ---------- Redes ---------- */
.redes { display: flex; gap: var(--esp-2); justify-content: center; }
.redes a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(215,209,202,.14); transition: background .2s ease, transform .2s ease;
}
.redes a:hover { background: var(--bege); transform: translateY(-3px); }
.redes svg { width: 22px; height: 22px; fill: #fff; transition: fill .2s ease; }
.redes a:hover svg { fill: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-700); color: #b9bcc6; padding-block: var(--esp-6) var(--esp-4); }
.footer-grid { display: grid; gap: var(--esp-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo img { height: 46px; margin-bottom: var(--esp-3); }
.footer-col h4 { color: #fff; font-family: var(--fonte-corpo); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--esp-3); }
.footer-col a, .footer-col p { color: #b9bcc6; font-size: .9rem; display: block; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--bege); }
.footer-redes { display: flex; gap: .6rem; margin-top: var(--esp-2); }
.footer-redes a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; margin: 0; }
.footer-redes a:hover { background: var(--bege); }
.footer-redes svg { width: 18px; height: 18px; fill: #fff; }
.footer-redes a:hover svg { fill: var(--navy); }
.footer-base {
  margin-top: var(--esp-5); padding-top: var(--esp-3); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--esp-2); justify-content: space-between; align-items: center;
  font-size: .8rem; color: #8b8f9c;
}
.footer-base .crm { color: #b9bcc6; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* utilitário */
.mt-4 { margin-top: var(--esp-4); }
.center { text-align: center; }
