/* =====================================================================
   Dra. Beatris Jantsch — landing page
   Paleta: marfim, areia e marrom café (o marrom da marca jantsch.)
   ===================================================================== */
:root {
  --ivory: #f7f2ec;
  --sand: #ece2d6;
  --sand-2: #e2d3c2;
  --brown: #7a4a2e;
  --brown-2: #5c3620;
  --espresso: #2b1d16;
  --ink: #2b1d16;
  --muted: #7a6a5e;
  --line: rgba(43, 29, 22, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brown); color: var(--ivory); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--ivory); padding: 8px 14px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 16px; }

/* ---------------------------------------------------------------- Tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 26px; }
h1 em, h2 em { font-style: italic; color: var(--brown); font-weight: 400; }
p { margin: 0 0 1em; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }

/* ---------------------------------------------------------------- Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; background: var(--brown); color: var(--ivory);
  text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(122, 74, 46, 0.6);
}
.btn:hover { background: var(--brown-2); transform: translateY(-2px); }
.btn--small { padding: 10px 20px; font-size: 14px; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--brown); border: 1px solid var(--brown); box-shadow: none; }
.btn--ghost:hover { background: var(--brown); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--espresso); box-shadow: none; }
.btn--light:hover { background: #fff; }
.link { text-decoration: none; font-weight: 600; color: var(--espresso); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.link:hover { border-color: var(--brown); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- Topo */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.topbar.is-scrolled { background: rgba(247, 242, 236, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 0.01em; }
.brand__tag { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--brown); transition: width 0.3s var(--ease); }
.nav a:not(.btn):hover::after { width: 100%; }
.menu { display: none; }

/* ---------------------------------------------------------------- Abertura */
.hero { padding: 140px 0 80px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 46%; height: 88%;
  background: linear-gradient(180deg, var(--sand), rgba(236, 226, 214, 0)); border-bottom-left-radius: 240px; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero__text .lead { margin: 28px 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__photo { margin: 0; position: relative; justify-self: end; width: min(100%, 500px); }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 7 / 9; object-fit: cover; object-position: 50% 22%; background: #2b1d16; border-radius: 260px 260px var(--radius) var(--radius); box-shadow: 0 40px 80px -40px rgba(43, 29, 22, 0.45); }
.hero__badge {
  position: absolute; left: -36px; bottom: 48px; background: var(--ivory); padding: 16px 22px; border-radius: 18px;
  box-shadow: 0 20px 40px -20px rgba(43, 29, 22, 0.35); display: flex; flex-direction: column; line-height: 1.3;
}
.hero__badge strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.hero__badge span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- Valores */
.values { padding: 24px 0 40px; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 36px 32px 8px 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line); }
.value__n { font-family: var(--serif); font-style: italic; color: var(--brown); font-size: 18px; }
.value h3 { margin: 6px 0 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- Seções */
.section { padding: 120px 0; }
.section__head { margin-bottom: 56px; }
.section__head h2 { margin-bottom: 18px; }

.about { background: var(--sand); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 13 / 16; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.about__text h2 { margin-bottom: 28px; }
.about__text > p { color: #4a3a30; }
.creds { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 12px; }
.creds li::before { content: "—"; color: var(--brown); }
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--brown); margin: 0; }

/* Método ELEVE: fundo café, no tom das fotos da Dra. */
.method { background: var(--espresso); color: var(--ivory); position: relative; overflow: hidden; }
.method::after {
  content: "ELEVE"; position: absolute; right: -2vw; top: 40px; font-family: var(--serif); font-style: italic;
  font-size: clamp(120px, 20vw, 280px); line-height: 1; color: rgba(216, 184, 156, 0.06); pointer-events: none;
}
.method .eyebrow, .method h2 em { color: #d8b89c; }
.method .lead { color: rgba(247, 242, 236, 0.72); }
.method__head { max-width: 760px; margin-bottom: 56px; position: relative; z-index: 1; }
.method__head h2 { margin-bottom: 20px; }
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(247, 242, 236, 0.16); position: relative; z-index: 1; }
.pillar { padding: 32px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid rgba(247, 242, 236, 0.16); }
.pillar span { font-family: var(--serif); font-style: italic; color: #d8b89c; font-size: 20px; }
.pillar h3 { margin: 8px 0 10px; }
.pillar p { color: rgba(247, 242, 236, 0.7); font-size: 15px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fbf8f4; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(43, 29, 22, 0.4); border-color: transparent; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card--wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr 2fr; align-items: center; gap: 8px 32px;
  background: var(--sand);
}
.card--wide h3 { margin: 0; }
.card .card__kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brown); font-weight: 600; }
@media (max-width: 760px) { .card--wide { grid-template-columns: 1fr; } }

.clinic { background: var(--espresso); color: var(--ivory); }
.clinic .eyebrow, .clinic h2 em { color: #d8b89c; }
.clinic .lead { color: rgba(247, 242, 236, 0.7); }
.clinic__media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: min(70vh, 620px); }
.clinic__video { grid-row: span 2; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #3a2a21; }
.clinic__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { margin: 0; }
.case figcaption { margin-top: 14px; font-family: var(--serif); font-size: 22px; }
.compare { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ivory); transform: translateX(-1px); pointer-events: none; }
.compare__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); color: var(--brown);
  display: grid; place-items: center; font-size: 16px; letter-spacing: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.compare__tag { position: absolute; top: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(247, 242, 236, 0.85); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* Galeria de antes e depois: fotos lado a lado, deslizando na horizontal (cada uma no seu formato) */
.gallery { position: relative; }
.gallery__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--sand-2) transparent;
  margin-inline: calc((100vw - min(var(--wrap), 100vw - 32px)) / -2); padding-inline: calc((100vw - min(var(--wrap), 100vw - 32px)) / 2);
  scroll-padding-inline: calc((100vw - min(var(--wrap), 100vw - 32px)) / 2);
}
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--sand-2); border-radius: 99px; }
.shot { position: relative; margin: 0; flex: none; scroll-snap-align: start; height: 480px; border-radius: 22px; overflow: hidden; background: var(--sand); }
.shot img { height: 100%; width: auto; max-width: none; }
.shot__tag {
  position: absolute; top: 14px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(247, 242, 236, 0.88); padding: 5px 10px; border-radius: 999px; pointer-events: none;
}
.shot__tag--l { left: 14px; }
.shot__tag--r { left: calc(50% + 10px); }
.gallery__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.gallery__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--brown);
  font-size: 20px; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.gallery__btn:hover { background: var(--brown); color: var(--ivory); border-color: var(--brown); }

.steps { background: var(--sand); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps__list li { background: var(--ivory); border-radius: var(--radius); padding: 36px 32px; }
.steps__list span { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--brown); font-style: italic; }
.steps__list h3 { margin: 16px 0 10px; }
.steps__list p { color: var(--muted); font-size: 15px; margin: 0; }

.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.faq__grid .section__head { position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-family: var(--serif); font-size: 24px; line-height: 1.25;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--brown); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; }

.contact { background: var(--brown); color: var(--ivory); }
.contact .eyebrow { color: #f0dccb; }
.contact h2 em { color: #f0dccb; }
.contact .lead { color: rgba(247, 242, 236, 0.78); margin-bottom: 32px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact__info { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact__info dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #f0dccb; margin-bottom: 6px; }
.contact__info dd { margin: 0; font-size: 15px; }
.contact__info a { color: var(--ivory); }
.contact__map { border-radius: var(--radius); overflow: hidden; height: 440px; background: var(--brown-2); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) sepia(0.2); }

.footer { background: var(--espresso); color: rgba(247, 242, 236, 0.75); padding: 56px 0; font-size: 14px; }
.footer__inner { text-align: center; }
.footer .brand__name { color: var(--ivory); font-size: 30px; margin-bottom: 12px; }
.footer__small { font-size: 12px; color: rgba(247, 242, 236, 0.5); max-width: 40em; margin: 18px auto 0; }

.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.whats-float:hover { transform: scale(1.07); }
.whats-float svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- Chamadas para agendar */
.cta-row {
  margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.cta-row p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.cta-row em { color: var(--brown); }
.cta-row--dark { border-color: rgba(247, 242, 236, 0.16); }
.cta-row--dark em { color: #d8b89c; }
.about__cta { margin-top: 32px; }

/* ---------------------------------------------------------------- Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 116px; }
  .hero::before { width: 100%; height: 60%; top: auto; bottom: 0; border-radius: 0; }
  .hero__photo { justify-self: center; }
  .hero__badge { left: 16px; }
  .cards, .cases, .steps__list, .method__grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid rgba(247, 242, 236, 0.16); }
  .faq__grid .section__head { position: static; }
  .clinic__media { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .clinic__video { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .clinic__img { aspect-ratio: 1; }
}
@media (max-width: 760px) {
  .menu {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border: 0; border-radius: 50%;
    background: var(--sand); cursor: pointer;
  }
  .menu span { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px;
    background: var(--ivory); box-shadow: 0 20px 40px -20px rgba(43, 29, 22, 0.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 18px; }
  .section { padding: 84px 0; }
  .values__grid, .cards, .cases, .steps__list, .method__grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0 4px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(247, 242, 236, 0.16); }
  .value, .value + .value { padding: 28px 0 4px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .contact__info { grid-template-columns: 1fr; }
  .contact__map { height: 320px; }
  .shot { height: 380px; }
  .gallery__nav { display: none; }
  summary { font-size: 21px; }
  .hero__actions { gap: 20px; }
}
