/* Clínica Boqueirão — estilos do site (tokens do design system Clínica Boqueirão) */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lora-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/montserrat.woff2') format('woff2'); }
@font-face { font-family: 'Parisienne'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/parisienne-400.woff2') format('woff2'); }

:root {
  --navy-900:#141F38;--navy-800:#1A2A4A;--navy-700:#1E3264;--navy-100:#DCE3F0;
  --gold-700:#96702E;--gold-600:#B08A45;--gold-500:#C6A25C;--gold-400:#D6BA80;--gold-200:#EADFC4;--gold-100:#F5EEDD;
  --cream-100:#FBF8F3;--cream-200:#F5F0E6;--marble-line:#DED2B8;
  --neutral-700:#4A5160;--neutral-500:#767E8C;
  --surface-page:var(--cream-100);--surface-card:#fff;--surface-sunken:var(--cream-200);
  --text-primary:var(--navy-900);--text-body:var(--neutral-700);--text-muted:var(--neutral-500);--text-inverse:var(--cream-100);
  --border-hairline:var(--marble-line);
  --font-display:'Playfair Display',Georgia,serif;
  --font-script:'Parisienne',cursive;
  --font-body:'Lora',Georgia,serif;
  --font-sans:'Montserrat',Helvetica,Arial,sans-serif;
  --text-h2:2.75rem;
  --radius-lg:22px;--radius-pill:999px;
  --shadow-sm:0 2px 8px rgba(20,31,56,.06);
  --shadow-md:0 12px 32px rgba(20,31,56,.10);
  --shadow-lg:0 24px 56px rgba(20,31,56,.14);
  --gutter:clamp(18px,5vw,40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); }
img { max-width: 100%; }
h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@keyframes cbFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cbRise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes cbMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: .02em; padding: 14px 26px; border-radius: var(--radius-pill); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: 0 0 auto; }
.btn-lg { font-size: 16px; padding: 18px 34px; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }

/* ---------- Cabeçalho ---------- */
.site-header { position: relative; background: var(--surface-card); border-bottom: 1px solid var(--border-hairline); padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy-900); letter-spacing: .01em; }
.nav { display: none; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.nav a { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--navy-800); text-decoration: none; }
.nav a:hover { color: var(--gold-600); }
.burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border-hairline); border-radius: 8px; background: transparent; color: var(--navy-800); cursor: pointer; margin-right: 6px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.header-cta { font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; background: var(--navy-800); color: var(--text-inverse); padding: 12px 18px; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin: 14px 0; min-height: 44px; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-card); border-bottom: 1px solid var(--border-hairline); box-shadow: var(--shadow-md); display: flex; flex-direction: column; padding: 6px var(--gutter) 14px; z-index: 40; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--navy-800); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--gold-600); }
/* Sem JS o botão de menu não funciona: mostra os links direto no cabeçalho */
.no-js .burger { display: none; }
.no-js .nav { display: flex; order: 3; width: 100%; padding-bottom: 12px; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .no-js .nav { order: 0; width: auto; padding-bottom: 0; }
  .burger, .mobile-nav { display: none !important; }
}

/* ---------- Títulos de seção ---------- */
.section { padding: clamp(48px,9vw,72px) var(--gutter); }
.container { max-width: 1440px; margin: 0 auto; }
.heading { max-width: 640px; text-align: center; margin: 0 auto; }
.heading-left { text-align: left; margin: 0; }
.kicker { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
.heading h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); line-height: 1.1; color: var(--text-primary); }
.heading-inverse h2 { color: var(--text-inverse); }
@media (max-width: 640px) { .heading h2 { font-size: 2.1rem; } }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: center; gap: clamp(32px,5vw,56px); padding: clamp(36px,8vw,80px) var(--gutter); max-width: 1440px; margin: 0 auto; flex-wrap: wrap; }
.hero-text, .hero-photo { flex: 1; min-width: min(300px, 100%); }
.hero h1 { font-weight: 400; margin: 0 0 12px; }
.hero-brand { height: 56px; display: flex; align-items: flex-end; gap: 14px; animation: cbRise 700ms cubic-bezier(.22,.7,.3,1) 40ms both; }
.hero-brand img { width: 88px; height: auto; object-fit: contain; }
.hero-brand span { font-family: var(--font-script); font-size: 30px; color: var(--gold-600); line-height: 1; }
.hero-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px,7vw,52px); line-height: 1.08; color: var(--navy-900); margin-top: 8px; animation: cbRise 700ms cubic-bezier(.22,.7,.3,1) 160ms both; }
.hero-sub { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #87652A; margin: 0 0 20px; animation: cbRise 700ms cubic-bezier(.22,.7,.3,1) 220ms both; }
.hero-intro { font-size: 17px; line-height: 1.7; max-width: 460px; margin: 0 0 32px; animation: cbRise 700ms cubic-bezier(.22,.7,.3,1) 280ms both; }
.hero-intro p + p { margin-top: 1.7em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: cbRise 700ms cubic-bezier(.22,.7,.3,1) 400ms both; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-photo img { width: 100%; height: clamp(300px,62vw,440px); object-fit: cover; display: block; }

/* ---------- Missão / Visão / Valores ---------- */
.mvv { margin-top: clamp(16px,3vw,32px); padding: clamp(48px,9vw,72px) var(--gutter); position: relative; overflow: hidden; }
.mvv .leaf { position: absolute; opacity: .55; pointer-events: none; }
.mvv .leaf-tl { top: 4px; left: 4px; }
.mvv .leaf-br { bottom: 4px; right: 4px; transform: rotate(180deg); }
.mvv-grid { max-width: 1200px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr; row-gap: 32px; }
.mvv-item { text-align: center; padding: 0 32px 32px; border-bottom: 1px solid var(--border-hairline); }
.mvv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mvv-item svg { margin: 0 auto 18px; display: block; }
.mvv-item h2 { font-family: var(--font-sans); font-weight: 400; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 14px; }
.mvv-item p { font-size: 15.5px; line-height: 1.7; }
@media (min-width: 960px) {
  .mvv-grid { grid-template-columns: repeat(3,1fr); row-gap: 0; }
  .mvv-item { border-bottom: 0; padding-bottom: 32px; }
  .mvv-item:not(:last-child) { border-right: 1px solid var(--border-hairline); }
}

/* ---------- Especialidades ---------- */
.grid-services { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .grid-services { grid-template-columns: repeat(3,1fr); } }
.service-card { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.tag { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.service-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy-900); margin: 10px 0 8px; }
.service-card p { font-size: 14.5px; line-height: 1.6; }

/* ---------- Estrutura ---------- */
.grid-estrutura { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 960px) { .grid-estrutura { grid-template-columns: repeat(4,1fr); } }
.grid-estrutura figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.grid-estrutura img { width: 100%; height: 280px; object-fit: cover; display: block; }

/* ---------- Resultados (marquee) ---------- */
.resultados { background: var(--surface-sunken); }
.marquee { overflow: hidden; margin-top: 36px; -webkit-mask-image: linear-gradient(90deg,transparent,#000 1.5%,#000 98.5%,transparent); mask-image: linear-gradient(90deg,transparent,#000 1.5%,#000 98.5%,transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: cbMarquee 42s linear infinite; }
.marquee-track:hover, .marquee-track:focus-within { animation-play-state: paused; }
.marquee-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: block; flex: 0 0 auto; }
.marquee-item:hover { box-shadow: var(--shadow-md); }
.marquee-item img { width: clamp(200px,30vw,260px); height: clamp(220px,32vw,290px); object-fit: cover; display: block; transition: transform 200ms ease; }
.marquee-item:hover img { transform: scale(1.04); }
.hint { text-align: center; font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 22px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(26,42,74,.88); display: flex; align-items: center; justify-content: center; padding: clamp(16px,5vw,40px); cursor: zoom-out; animation: cbFade 200ms ease both; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1000px,92vw); max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-family: var(--font-sans); font-size: 20px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.14); }

/* ---------- Profissionais ---------- */
.pros { display: flex; flex-direction: column; gap: 32px; margin-top: 44px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.pro-card { display: flex; flex-wrap: wrap; gap: 24px 32px; background: var(--surface-card); border-radius: var(--radius-lg); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm); padding: 28px; transition: box-shadow 200ms ease, transform 200ms ease; }
.pro-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.pro-card picture { flex: 1 1 150px; max-width: 220px; }
.pro-card img { width: 100%; height: clamp(200px,42vw,240px); object-fit: cover; border-radius: var(--radius-lg); display: block; }
.pro-info { flex: 2 1 300px; }
.pro-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy-900); margin: 10px 0 2px; }
.pro-reg { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.pro-info p { font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.badge { display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); background: transparent; color: var(--navy-700); border: 1px solid var(--border-hairline); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); border-color: var(--gold-200); }
.badge-navy { background: var(--navy-100); color: var(--navy-700); border-color: var(--navy-100); }

/* ---------- Avaliações ---------- */
.avaliacoes { background: var(--navy-900); }
.grid-2 { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0,1fr); }
.grid-2 > * { min-width: 0; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.aval-texto { text-align: center; }
.aval-texto .heading { margin: 0 auto; text-align: center; }
.stars { margin-top: 20px; font-family: var(--font-display); font-size: 30px; letter-spacing: .12em; color: var(--gold-400); }
.aval-nota { font-family: var(--font-sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-100); opacity: .85; margin: 10px 0 34px; }
@media (min-width: 960px) {
  .aval-texto, .aval-texto .heading { text-align: left; margin: 0; }
}
.carousel { max-width: 520px; width: 100%; margin: 0 auto; }
.carousel-viewport { overflow: hidden; height: clamp(360px,58vw,380px); }
.carousel-track { display: flex; align-items: stretch; height: 100%; list-style: none; margin: 0; padding: 0; transition: transform 460ms cubic-bezier(.22,.7,.3,1); }
.carousel-track > li { flex: 0 0 100%; padding: 0 6px; height: 100%; }
.review { height: 100%; overflow: hidden; background: var(--surface-card); border-radius: var(--radius-lg); padding: clamp(24px,4vw,36px); display: flex; flex-direction: column; margin: 0; }
.review::before { content: '\201C'; font-family: var(--font-display); font-size: 40px; line-height: .8; color: var(--gold-500); }
.review blockquote { margin: 14px 0 22px; flex: 1; }
.review blockquote p { font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review-avatar { position: relative; display: inline-flex; flex: 0 0 auto; }
.review-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.review-avatar .g { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px #fff; }
.review-name { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--navy-900); }
.review-name, .review-meta { display: block; }
.review-meta { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(232,225,213,.35); background: transparent; color: var(--cream-100); font-family: var(--font-sans); font-size: 16px; cursor: pointer; transition: background 180ms ease; }
.carousel-btn:hover { background: rgba(232,225,213,.14); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(232,225,213,.32); transition: background 200ms ease; }
.carousel-dots button[aria-current="true"] { background: var(--gold-500); }
/* Sem JS: avaliações em rolagem horizontal */
.no-js .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.no-js .carousel-track > li { scroll-snap-align: start; }
.no-js .carousel-controls { display: none; }

/* ---------- Localização ---------- */
.localizacao { padding: clamp(56px,10vw,92px) var(--gutter); max-width: 1440px; margin: 0 auto; gap: 56px; }
.endereco { margin-top: 24px; font-size: 18px; line-height: 1.7; }
.actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.actions .btn { padding: 12px 22px; }
.map { width: 100%; height: clamp(300px,44vw,420px); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block; }

/* ---------- CTA final ---------- */
.cta { padding: clamp(44px,9vw,80px) var(--gutter); text-align: center; background: var(--navy-900); }
.cta .btn { margin-top: 28px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); padding: clamp(32px,5vw,44px) var(--gutter) 30px; color: var(--cream-100); }
.footer-top { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 42px; height: 42px; border-radius: 50%; background: var(--cream-100); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.footer-logo img { width: 34px; height: 34px; object-fit: contain; }
.footer-name { font-family: var(--font-display); font-size: 19px; letter-spacing: .01em; }
.footer-slogan { font-family: var(--font-script); font-size: 19px; color: var(--gold-400); line-height: 1.3; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--font-sans); font-size: 13px; }
.footer-contact > * { display: inline-flex; align-items: center; gap: 7px; }
.footer-contact span { opacity: .75; }
.footer-contact a { color: var(--gold-400); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { max-width: 1320px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid rgba(232,225,213,.16); font-family: var(--font-sans); font-size: 11px; line-height: 1.6; opacity: .65; text-align: center; }

/* WhatsApp flutuante */
.wa-float { position: fixed; bottom: clamp(14px,3vw,28px); right: clamp(14px,3vw,28px); display: flex; align-items: center; gap: 10px; background: #127C46; color: #fff; padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow-md); font-family: var(--font-sans); font-weight: 600; font-size: 14px; text-decoration: none; z-index: 10; transition: transform 180ms ease, box-shadow 180ms ease; }
.wa-float:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Animação de entrada (aplicada pelo JS) */
[data-reveal="pending"] { opacity: 0; }
[data-reveal="in"] { animation: cbRise 900ms cubic-bezier(.22,.7,.3,1) var(--delay, 0ms) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; }
}
