/* =========================================================
   Consultório Dra. Vanessa Sena Garcia
   Paleta extraída do consultório: nude/rosé, dourado, off-white, grafite
   ========================================================= */

:root {
  --nude-50:  #FBF8F6;
  --nude-100: #F5EDE8;
  --nude-200: #EADCD3;
  --rose:     #D9B8A8;
  --gold:     #B08D57;
  --gold-100: #C9A96E;
  --ink:      #1C1A19;
  --ink-70:   #4A4441;
  --ink-50:   #6E6863;
  --line:     #E4D8D0;
  --wa:       #25D366;
  --wa-dark:  #128C7E;

  --ff-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ff-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(28,26,25,.04), 0 12px 32px -12px rgba(28,26,25,.16);
  --shadow-lg: 0 2px 4px rgba(28,26,25,.05), 0 32px 64px -24px rgba(28,26,25,.24);
  --t: .35s cubic-bezier(.2,.7,.3,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink-70);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--ff-display); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-50); font-size: .9375rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem;
}
.h2 { font-size: clamp(1.9rem, 1.5rem + 1.7vw, 2.9rem); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-family: var(--ff-body); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .68rem 1.2rem; font-size: .92rem; }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1.08rem; }

.btn--wa { background: var(--wa); color: #08301c; box-shadow: 0 8px 22px -8px rgba(37,211,102,.7); }
.btn--wa:hover { background: #1fbe5b; box-shadow: 0 14px 30px -10px rgba(37,211,102,.85); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--nude-50); }

.ico-wa { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(28,26,25,.6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-100), var(--gold));
  color: #fff; font-family: var(--ff-display); font-size: .95rem; letter-spacing: .06em;
}
.brand__mark--lg { width: 54px; height: 54px; font-size: 1.15rem; margin-bottom: .9rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.brand__text small { font-size: .75rem; color: var(--ink-50); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.9rem; }
.nav a:not(.btn) {
  position: relative; color: var(--ink-70); text-decoration: none; font-size: .96rem; font-weight: 500;
  transition: color var(--t);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width var(--t);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 1rem + 7vw, 6.5rem) 0 clamp(3rem, 1rem + 6vw, 5.5rem); background: linear-gradient(175deg, var(--nude-50) 0%, #fff 62%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -22%; right: -14%; width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(217,184,168,.36), rgba(217,184,168,0) 68%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr .82fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.15rem); margin-bottom: .55em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.2rem); max-width: 34em; color: var(--ink-70); }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.6rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.hero__badges li { display: flex; flex-direction: column; font-size: .875rem; color: var(--ink-50); }
.hero__badges strong { font-family: var(--ff-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); }
.hero__badges li:first-child { flex-direction: row; align-items: baseline; gap: .4rem; }
.stars { color: var(--gold-100); letter-spacing: .06em; font-size: .95rem; }

/* z-index cria contexto de empilhamento: mantém o ::after decorativo
   atrás da foto, mas à frente do fundo da .hero */
.hero__media { position: relative; z-index: 1; margin: 0; }
.hero__media picture { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 22%; }
.hero__media::after {
  content: ""; position: absolute; inset: auto -1.1rem -1.1rem auto; width: 62%; height: 58%;
  border: 1px solid var(--gold-100); border-radius: var(--r-lg); z-index: -1;
}
.hero__media figcaption {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: .85rem 1.1rem; border-radius: var(--r);
  font-family: var(--ff-display); font-size: 1.02rem; color: var(--ink); line-height: 1.35;
  box-shadow: var(--shadow);
}
.hero__media figcaption span { font-family: var(--ff-body); font-size: .8rem; color: var(--ink-50); letter-spacing: .04em; }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: var(--nude-200); padding: clamp(2.4rem, 1rem + 3.5vw, 3.6rem) 0; }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 1rem + 2vw, 3.2rem); }
.strip__item h2 { font-size: 1.22rem; color: #fff; margin-bottom: .45em; }
.strip__item p { font-size: .95rem; color: rgba(234,220,211,.72); margin: 0; }

/* ---------- seções ---------- */
.section { padding: clamp(3.6rem, 1.5rem + 6vw, 6.5rem) 0; }
.section--alt { background: var(--nude-50); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 1rem + 3vw, 3.6rem); }
.section__sub { font-size: 1.08rem; color: var(--ink-50); margin: 0; }
.section__note { margin-top: 2.4rem; font-size: .9rem; color: var(--ink-50); font-style: italic; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.15rem; }
.card {
  position: relative; padding: 1.9rem 1.6rem 1.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
  content: ""; position: absolute; left: 1.6rem; top: 0; width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transform: scaleX(.45); transform-origin: left; transition: transform var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--nude-200); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { font-size: .94rem; color: var(--ink-50); margin: 0; }

/* ---------- sobre ---------- */
.sobre__grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.sobre__media { margin: 0; }
.sobre__media img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 30% 60%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.checklist { margin: 1.8rem 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; font-size: .97rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.16);
}
.cro { font-size: .84rem; color: var(--ink-50); letter-spacing: .04em; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- localização ---------- */
.local__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.6rem, 1rem + 3vw, 3.2rem); align-items: start; }
.local__info { display: grid; gap: 1.15rem; }
.infoblock { background: var(--nude-50); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.5rem; }
.infoblock h3 { font-size: 1.05rem; margin-bottom: .6em; }
.infoblock address { margin-bottom: 1.1rem; color: var(--ink-70); }
.infoblock p { font-size: .94rem; }
.infoblock p:last-of-type { margin-bottom: 1rem; }

.hours { margin: 0 0 .9rem; display: grid; gap: .45rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--line); }
.hours dt { font-size: .93rem; }
.hours dd { margin: 0; font-weight: 600; font-size: .93rem; color: var(--ink); }

.local__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.local__map iframe { width: 100%; height: 100%; min-height: 460px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--nude-100), var(--nude-200));
  padding: clamp(3.2rem, 1.5rem + 5vw, 5.5rem) 0; text-align: center;
}
.cta__inner { max-width: 40rem; margin-inline: auto; }
.cta h2 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.9rem); }
.cta p { color: var(--ink-70); margin-bottom: 2rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(234,220,211,.68); padding: clamp(3rem, 1.5rem + 3.5vw, 4.5rem) 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(234,220,211,.14); }
.footer h2 { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-100); font-family: var(--ff-body); margin-bottom: 1rem; }
.footer__name { font-family: var(--ff-display); font-size: 1.12rem; color: #fff; margin-bottom: .3rem; }
.footer address { margin-bottom: .8rem; }
.footer a { color: rgba(234,220,211,.9); text-decoration: none; transition: color var(--t); }
.footer a:hover { color: var(--gold-100); }
.footer__nav { display: grid; gap: .55rem; }
.footer .muted { color: rgba(234,220,211,.5); }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.8rem; font-size: .84rem; color: rgba(234,220,211,.5); }
.footer__bottom p { margin: 0; }
.footer__dev a { font-weight: 600; color: var(--gold-100); }
.footer__dev a:hover { text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem; border-radius: 999px;
  background: var(--wa); color: #08301c; font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(37,211,102,.75);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px); background: #1fbe5b; box-shadow: 0 16px 34px -10px rgba(37,211,102,.9); }

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- logo (dente + bráquete) ---------- */
.brand__ico { width: 24px; height: 24px; }
.brand__mark--lg .brand__ico { width: 30px; height: 30px; }
.brand__ico path:first-of-type { fill: #fff; stroke: none; }
.brand__ico rect, .brand__ico path:last-of-type { fill: none; stroke: #fff; }

/* ---------- galeria de resultados ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.chip {
  padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer;
  font: 600 .9rem var(--ff-body); color: var(--ink-70);
  background: #fff; border: 1px solid var(--line);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.gallery__empty { color: var(--ink-50); font-style: italic; }

.shot {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden;
  background: var(--nude-100); box-shadow: var(--shadow);
  animation: shotIn .5s ease both;
}
.shot[hidden] { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: .7rem; bottom: .7rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: rgba(28,26,25,.72); color: #fff; backdrop-filter: blur(4px);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
@keyframes shotIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- avaliações ---------- */
.reviews { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(1.4rem, 1rem + 2vw, 2.6rem); align-items: start; }
.reviews__score {
  text-align: center; padding: 2rem 1.5rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--nude-50), var(--nude-100));
  border: 1px solid var(--line); position: sticky; top: 96px;
}
.reviews__value { font-family: var(--ff-display); font-size: 3.6rem; line-height: 1; color: var(--ink); margin: 0; }
.stars { color: var(--gold-100); letter-spacing: .08em; margin: 0; }
.stars--lg { font-size: 1.35rem; margin: .5rem 0 .3rem; }
.reviews__count { font-size: .9rem; color: var(--ink-50); margin: 0 0 1.3rem; }

.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.review {
  padding: 1.6rem 1.5rem; border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .8rem;
}
.review .stars { font-size: 1rem; }
.review blockquote { margin: 0; font-size: .96rem; color: var(--ink-70); line-height: 1.6; }
.review__author { margin: 0; font-weight: 600; color: var(--ink); font-size: .9rem; }
.review__author span { font-weight: 400; color: var(--ink-50); }

/* ---------- estrutura (fotos do consultório) ---------- */
.estrutura { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.estrutura .shot { aspect-ratio: 3 / 4; }

/* ---------- banner de cookies (discreto, rodapé) ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120;
  margin-inline: auto; max-width: 640px;
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  justify-content: space-between;
  padding: .9rem 1.1rem; border-radius: var(--r);
  background: rgba(28,26,25,.96); color: var(--nude-200);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  transform: translateY(140%); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s;
}
.cookie-bar.is-visible { transform: none; opacity: 1; }
.cookie-bar p { margin: 0; font-size: .85rem; line-height: 1.5; flex: 1 1 15rem; color: rgba(234,220,211,.82); }
.cookie-bar__actions { display: flex; gap: .5rem; flex: none; }
.cookie-bar .btn--ghost { color: var(--nude-200); border-color: rgba(234,220,211,.3); }
.cookie-bar .btn--ghost:hover { color: #fff; border-color: var(--nude-200); background: rgba(234,220,211,.08); }

@media (max-width: 480px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-bar__actions { justify-content: flex-end; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 430px; }
  .hero__media::after { display: none; }
  .sobre__grid, .local__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 400px; }
  .local__map iframe { min-height: 380px; }
  .strip__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__score { position: static; display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.1rem; }

  .hero__badges { gap: 1rem 1.6rem; }
  .estrutura { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
  .wa-float span { display: none; }
  .wa-float { padding: .95rem; }
}

/* ---------- preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .nav, .wa-float, .local__map, .cta { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
