/* =========================================================
   Dr. Guilherme Laporti Brandão — Otorrinolaringologista
   V4.0 — Design system baseado nas cores da logo
   ========================================================= */

:root {
  /* Paleta extraída da logo (gradiente azul-céu -> navy) */
  --navy-900: #16233f;
  --navy-800: #1c2f52;
  --navy-700: #24406b;
  --navy-600: #2c4f83;
  --blue-600: #2c77b8;
  --blue-500: #3d94d1;
  --blue-400: #5aa9de;
  --blue-200: #b7d8f0;
  --blue-100: #e7f2fb;
  --blue-50:  #f4f9fd;

  --wa: #25d366;
  --wa-dark: #1da851;

  --ink: #1f2c3d;
  --muted: #5f7085;
  --line: #e4ebf2;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;

  --star: #f6b900;

  --shadow-sm: 0 1px 3px rgba(22, 35, 63, .06), 0 1px 2px rgba(22, 35, 63, .08);
  --shadow-md: 0 8px 24px rgba(22, 35, 63, .10);
  --shadow-lg: 0 18px 48px rgba(22, 35, 63, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --maxw: 1180px;
  --grad-brand: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  --grad-hero: linear-gradient(150deg, #12203c 0%, #223c69 48%, #2c77b8 100%);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-700); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.svg-i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.15em; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #06301a; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: var(--white); color: var(--navy-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue-400); color: var(--blue-600); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow .25s ease, height .3s ease;
}
/* Camada de vidro em pseudo-elemento — evita que backdrop-filter torne o
   header o "containing block" dos filhos position:fixed (menu mobile). */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 14px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex: none; }
.brand img { height: 52px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy-700); font-weight: 700; white-space: nowrap; }
.brand-txt span { font-size: .72rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }

.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy-700);
  padding: 9px 11px; border-radius: 10px; position: relative; transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--blue-600); background: var(--blue-50); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.icon-link {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy-700); background: var(--blue-50); transition: transform .18s, background .2s, color .2s; font-size: 1.15rem;
}
.icon-link:hover { transform: translateY(-2px); background: var(--blue-100); color: var(--blue-600); }
.icon-link.instagram:hover { background: #fce4ef; color: #c13584; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: var(--blue-50);
  border-radius: 12px; color: var(--navy-700); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .svg-i { width: 24px; height: 24px; }

/* Elementos exclusivos do painel mobile (ocultos no desktop) */
.nav-mobile-head, .nav-mobile-foot { display: none; }

/* Esconde o nome ao lado da logo APENAS na faixa em que o menu horizontal
   completo disputa espaço (1181–1360). No mobile (≤1180) o nome volta,
   pois o menu vira off-canvas e há espaço. */
@media (min-width: 1181px) and (max-width: 1360px) {
  .brand-txt { display: none; }
}

/* =========================================================
   Menu mobile — painel lateral deslizante
   ========================================================= */
@media (max-width: 1180px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
    background: #fff; box-shadow: -24px 0 70px rgba(16,25,45,.28);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s cubic-bezier(.5,0,.15,1), visibility .4s;
    z-index: 80; display: flex; flex-direction: column; padding: 0; overflow-y: auto;
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); visibility: visible; }

  .nav-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none;
  }
  .nav-mobile-head img { height: 46px; width: auto; }
  .nav-close {
    width: 44px; height: 44px; border: 0; background: var(--blue-50); border-radius: 12px;
    color: var(--navy-700); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s;
  }
  .nav-close:hover { background: var(--blue-100); }
  .nav-close .svg-i { width: 22px; height: 22px; }

  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 14px; flex: 1 0 auto; }
  .nav li { opacity: 0; transform: translateX(22px); }
  .nav.open li { animation: navItemIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
  .nav.open li:nth-child(1) { animation-delay: .10s; }
  .nav.open li:nth-child(2) { animation-delay: .15s; }
  .nav.open li:nth-child(3) { animation-delay: .20s; }
  .nav.open li:nth-child(4) { animation-delay: .25s; }
  .nav.open li:nth-child(5) { animation-delay: .30s; }
  .nav.open li:nth-child(6) { animation-delay: .35s; }
  .nav.open li:nth-child(7) { animation-delay: .40s; }
  .nav.open li:nth-child(8) { animation-delay: .45s; }
  .nav a {
    display: flex; align-items: center; padding: 14px 16px; font-size: 1.06rem; border-radius: 12px;
    color: var(--navy-700); font-weight: 500;
  }
  .nav a:hover, .nav a.active { background: var(--blue-50); color: var(--blue-600); }

  .nav-mobile-foot { display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 26px; border-top: 1px solid var(--line); flex: none; }
  .nav-mobile-foot .btn { width: 100%; }
  .nav-mobile-foot .socials { display: flex; gap: 12px; justify-content: center; }
  .nav-mobile-foot .socials a {
    width: 46px; height: 46px; border-radius: 50%; background: var(--blue-50); color: var(--navy-700);
    display: grid; place-items: center; font-size: 1.15rem; transition: background .2s, transform .18s, color .2s;
  }
  .nav-mobile-foot .socials a:hover { transform: translateY(-2px); background: var(--blue-100); color: var(--blue-600); }

  .nav-toggle { display: inline-flex; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(16,25,45,.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .38s ease, visibility .38s; z-index: 79;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@keyframes navItemIn { to { opacity: 1; transform: none; } }

/* Nos celulares, o botão "Agendar" do topo é redundante (há a barra fixa
   inferior e o CTA no menu lateral). Escondê-lo abre espaço para o nome. */
@media (max-width: 620px) {
  .header-cta .btn--wa { display: none; }
}
@media (max-width: 480px) {
  .brand img { height: 44px; }
  .header-cta .icon-link.instagram { display: none; }
  .brand-txt strong { font-size: .92rem; }
  .brand-txt span { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav.open li { animation: none; opacity: 1; transform: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; color: #fff; background: var(--grad-hero);
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(90,169,222,.35), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(44,79,131,.5), transparent 46%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500;
  font-size: .86rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 4px rgba(110,231,168,.25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.35rem); line-height: 1.1; margin-bottom: 8px; letter-spacing: -.01em; }
.hero .role { font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; color: var(--blue-200); margin-bottom: 6px; }
.hero .crm { font-size: .95rem; color: rgba(255,255,255,.7); letter-spacing: .04em; margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 30px; }
.hero-trust .ht { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-trust .ht .svg-i { color: var(--blue-200); width: 1.3em; height: 1.3em; }

.hero-figure { position: relative; }
.hero-figure .photo {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.14);
  transform: rotate(1.4deg); background: #0d1a30;
}
.hero-figure .photo img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: center 20%; }
.hero-figure .float-card {
  position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.hero-figure .float-card .ficon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.hero-figure .float-card strong { display: block; font-family: var(--font-head); font-size: 1.32rem; color: var(--navy-700); line-height: 1; }
.hero-figure .float-card small { color: var(--muted); font-size: .8rem; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; color: var(--bg); }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* Retrato do topo — só no mobile (desktop mantém a foto de cirurgia) */
.hero-portrait { display: none; }

@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .hero-badge { margin-inline: auto; }
  /* A foto de cirurgia volta, logo abaixo do texto */
  .hero-figure { max-width: 360px; margin: 8px auto 0; }
  /* Retrato como faixa full-width no topo (encostado nas bordas); a base
     dissolve no azul do hero. */
  .hero-portrait {
    display: block; order: -1;
    width: calc(100% + 40px); max-width: none; margin: -56px -20px 6px;
  }
  .hero-portrait img {
    width: 100%; height: min(80vw, 360px); object-fit: cover; object-position: center 20%;
    -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
  }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { margin-top: -46px; position: relative; z-index: 5; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--blue-600); line-height: 1; }
.stat .num .suf { color: var(--navy-700); }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 760px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.about-media { position: relative; }
.about-media > img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.about-media .frame { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--blue-200); border-radius: var(--radius-lg); z-index: -1; }
.about h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 6px; }
.about .intro { font-size: 1.08rem; color: var(--ink); }
.about .muted { color: var(--muted); }
.feature-list { display: grid; gap: 18px; margin: 26px 0; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; box-shadow: var(--shadow-sm); }
.feature-list h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about .grid { grid-template-columns: 1fr; gap: 44px; } .about-media { max-width: 460px; margin: 0 auto; } .about-media .frame { inset: 14px -14px -14px 14px; } }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 20px; transition: background .25s, color .25s; }
.service:hover .ic { background: var(--grad-brand); color: #fff; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================================================
   EXPERIENCE (Equipe + Congressos)
   ========================================================= */
.exp .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.exp .grid + .grid { margin-top: 70px; }
.exp .grid.reverse .exp-text { order: 2; }
.exp-text h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.exp-text p { color: var(--muted); }
.exp-points { display: grid; gap: 12px; margin-top: 20px; }
.exp-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.exp-points .svg-i { color: var(--wa); width: 1.35em; height: 1.35em; margin-top: 2px; }
.exp-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.exp-gallery.tall { grid-template-columns: 1.2fr 1fr; }
.exp-gallery a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; display: block; }
.exp-gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; aspect-ratio: 3/3.6; }
.exp-gallery a:hover img { transform: scale(1.06); }
.exp-gallery a.span2 { grid-row: span 2; }
.exp-gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,32,60,.35), transparent 45%); opacity: 0; transition: opacity .3s; }
.exp-gallery a:hover::after { opacity: 1; }
@media (max-width: 900px) {
  .exp .grid { grid-template-columns: 1fr; gap: 34px; }
  .exp .grid.reverse .exp-text { order: 0; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; margin: 0 -4px; scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start; flex: 0 0 clamp(280px, 34%, 380px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.testi .stars { color: var(--star); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi .stars .svg-i { width: 1.05em; height: 1.05em; }
.testi blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); line-height: 1.6; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.testi .who strong { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: .98rem; }
.testi .who small { color: var(--muted); font-size: .82rem; }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.testi-controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-700); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .18s; box-shadow: var(--shadow-sm); }
.testi-controls button:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.google-badge { display: inline-flex; align-items: center; gap: 10px; justify-content: center; margin: 0 auto 34px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .95rem; }
.google-badge strong { color: var(--navy-700); font-family: var(--font-head); }
.google-badge .stars { color: var(--star); }

/* =========================================================
   CONVENIOS
   ========================================================= */
.conv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.conv {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 128px; justify-content: center;
}
.conv:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.conv img { height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s, opacity .25s; }
.conv:hover img { filter: grayscale(0); opacity: 1; }
.conv span { font-size: .82rem; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .conv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .conv-grid { grid-template-columns: repeat(2, 1fr); } .conv img { height: 40px; } }

/* =========================================================
   CONSULTORIO gallery
   ========================================================= */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.office {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: block;
}
.office img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .55s ease; }
.office:hover img { transform: scale(1.05); }
.office figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%; padding: 40px 22px 18px; color: #fff;
  font-family: var(--font-head); font-weight: 500; background: linear-gradient(to top, rgba(18,32,60,.78), transparent);
}
@media (max-width: 700px) { .office-grid { grid-template-columns: 1fr; } }

/* =========================================================
   LOCATIONS
   ========================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.loc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.loc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.loc .city { display: flex; align-items: center; gap: 8px; font-size: 1.18rem; margin-bottom: 4px; }
.loc .city .svg-i { color: var(--blue-500); }
.loc .clinic { color: var(--muted); font-weight: 500; margin-bottom: 18px; font-size: .96rem; }
.loc .lines { display: grid; gap: 10px; margin-bottom: 20px; }
.loc .lines a, .loc .lines span { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink); transition: color .2s; }
.loc .lines a:hover { color: var(--blue-600); }
.loc .lines .svg-i { color: var(--blue-500); margin-top: 3px; width: 1.05em; height: 1.05em; }
.loc .lines .tag { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--blue-100); color: var(--blue-600); padding: 2px 7px; border-radius: 6px; align-self: flex-start; }
.loc .loc-actions { margin-top: auto; display: flex; gap: 10px; }
.loc .loc-actions .btn { flex: 1; padding: 11px 14px; font-size: .9rem; }
@media (max-width: 980px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .loc-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(90,169,222,.35), transparent 45%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; font-size: 1.06rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 68px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .f-brand img { height: 56px; background: #fff; border-radius: 12px; padding: 5px; }
.footer .f-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }
.footer p { font-size: .95rem; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-links a { display: block; padding: 6px 0; color: rgba(255,255,255,.72); transition: color .2s, padding-left .2s; font-size: .95rem; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact .svg-i { color: var(--blue-400); margin-top: 3px; width: 1.05em; height: 1.05em; }
.f-social { display: flex; gap: 12px; margin-top: 18px; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-size: 1.1rem; transition: background .2s, transform .18s; }
.f-social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.copyright { text-align: center; padding: 24px 0; font-size: .86rem; }
.copyright p { margin: 4px 0; }
.copyright a { color: var(--blue-400); }
.copyright .disc { color: rgba(255,255,255,.5); font-size: .8rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================
   Sticky mobile CTA bar
   ========================================================= */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 55; display: none;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(22,35,63,.08);
}
.mobile-bar .btn { flex: 1; padding: 13px; font-size: .96rem; }
.mobile-bar .btn--call { background: var(--blue-600); color: #fff; }
@media (max-width: 768px) { .mobile-bar { display: flex; } body { padding-bottom: 74px; } }

/* Floating WhatsApp (desktop) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 768px) { .wa-float { display: none; } }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 92px; z-index: 54; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-700); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .28s; box-shadow: var(--shadow-md); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top .svg-i { width: 24px; height: 24px; }
@media (max-width: 768px) { .to-top { bottom: 84px; right: 14px; } }

/* =========================================================
   MODAL (location picker)
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,25,45,.55); backdrop-filter: blur(3px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .28s cubic-bezier(.34,1.56,.64,1); display: flex; flex-direction: column; max-height: 90vh; }
.modal--wide { max-width: 760px; }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); flex: none; }
.modal-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); text-align: center; flex: none; }
.modal-foot .btn { min-width: 240px; }
.conv-modal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.conv-modal-grid .conv { min-height: 112px; padding: 16px 10px; }
.conv-modal-grid .conv img { height: 40px; }
@media (max-width: 640px) { .conv-modal-grid { grid-template-columns: repeat(2, 1fr); } .modal-foot .btn { min-width: 0; width: 100%; } }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-head .close { width: 38px; height: 38px; border: 0; background: var(--bg-soft); border-radius: 10px; cursor: pointer; font-size: 1.2rem; color: var(--muted); display: grid; place-items: center; }
.modal-head .close:hover { background: var(--line); color: var(--ink); }
.modal-body { padding: 18px 24px 26px; overflow-y: auto; flex: 1 1 auto; }
.modal-body > p { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.loc-pick { display: grid; gap: 10px; }
.loc-pick button {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.loc-pick button:hover { border-color: var(--wa); background: #f0fdf5; transform: translateX(3px); }
.loc-pick .wa-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.loc-pick .txt strong { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: .98rem; }
.loc-pick .txt small { color: var(--muted); font-size: .82rem; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox { position: fixed; inset: 0; background: rgba(10,16,30,.92); z-index: 95; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fade .2s; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox .lb-close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 1.6rem; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
@media (max-width: 600px) { .lightbox .lb-nav { width: 44px; height: 44px; } }

/* =========================================================
   Reveal on scroll + transições avançadas
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* Reveal direcional */
.reveal--left { transform: translateX(-42px); }
.reveal--right { transform: translateX(42px); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* Zoom reveal em imagens (não quebra cantos arredondados) */
.zoom-media > img { transition: transform 1.1s cubic-bezier(.16,.84,.32,1), opacity .8s ease; }
.zoom-media:not(.in) > img { transform: scale(1.14); opacity: .55; }

/* Stagger dos filhos de um container (container em si não se move) */
.reveal.stagger { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px) scale(.98); }
.stagger.in > * {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .6s cubic-bezier(.2,.75,.25,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* Count-up com blur-in */
.stat .num { transition: filter .8s ease, opacity .8s ease; }
.stat .num.num--go { animation: numIn .8s ease both; }
@keyframes numIn { from { filter: blur(9px); opacity: 0; transform: translateY(6px); } to { filter: blur(0); opacity: 1; transform: none; } }

/* =========================================================
   Marquee (convênios)
   ========================================================= */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 8px 0; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .conv { flex: 0 0 auto; width: 168px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 520px) { .marquee .conv { width: 140px; } .marquee-track { animation-duration: 34s; } }

/* =========================================================
   Microinterações
   ========================================================= */
.btn .svg-i { transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.btn:hover .svg-i { transform: translateX(3px) scale(1.08); }
.btn--wa:hover .svg-i, .wa-float:hover .svg-i { transform: scale(1.12) rotate(-6deg); }
/* Underline animado no menu (desktop) */
@media (min-width: 1181px) {
  .nav a::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
    background: var(--blue-500); border-radius: 2px; transform: scaleX(0); transform-origin: center;
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
  }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
}
/* Header encolhe ao rolar */
.header .container, .brand img { transition: none; }
.brand img { transition: height .3s ease; }
.header { transition: box-shadow .25s ease, height .3s ease, background .3s ease; }
.header.scrolled { height: 62px; }
.header.scrolled .brand img { height: 42px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; transition: none; }
  .stagger > * { opacity: 1 !important; transform: none !important; }
  .zoom-media > img { transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .stat .num.num--go { animation: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
  .cookie-banner { transition: none; }
  * { transition: none !important; }
}

/* =========================================================
   Banner de cookies (LGPD)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 92;
  max-width: 940px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 20px;
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease, visibility .5s;
}
.cookie-banner.show { transform: none; opacity: 1; visibility: visible; }
.cookie-text strong { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: 1.02rem; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cookie-text a { color: var(--blue-600); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 12px 24px; font-size: .95rem; }
@media (max-width: 680px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-actions { flex-direction: row; }
  .cookie-actions .btn { flex: 1; }
}
/* Não deixar o banner colar na barra fixa mobile */
@media (max-width: 768px) {
  .cookie-banner { bottom: 84px; }
}
#cookieSettings { cursor: pointer; }
