/* =========================================================
   Dra. Luciane Pesqueira — folha de estilos principal
   Mobile-first · sem dependências externas
   ========================================================= */

/* ---------- Fontes (self-hosted, WOFF2, só os pesos usados) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens (manual da marca) ---------- */
:root {
  --color-graphite: #525152;
  --color-graphite-dark: #3F3E3F;   /* hover de botões / faixa CNPJ */
  --color-nude: #F6E2DA;
  --color-off-white: #FBF9F6;
  --color-sand: #D8C8BF;
  --color-taupe: #A58B80;            /* decorativo: linhas, ícones, números grandes */
  --color-taupe-text: #725B51;       /* taupe com contraste AA para textos pequenos */
  --color-white: #FFFFFF;
  --color-text: #525152;
  --color-text-soft: #6B686A;

  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 8px;
  --radius-button: 4px;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--color-graphite); letter-spacing: -.005em; }
h1 { font-size: clamp(2.125rem, 4.2vw + 1rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.55rem, 1vw + 1.1rem, 2rem); font-weight: 500; }

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

.sprite { display: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-fill { fill: currentColor; stroke: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--color-graphite); color: #fff; padding: 10px 16px; border-radius: var(--radius-button); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-header .container { max-width: 1440px; }

/* Conteúdo provisório: marcado visualmente para não ir ao ar por engano */
.pendente { color: var(--color-taupe-text); font-style: italic; }

/* ---------- Tipografia auxiliar ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-taupe-text); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--color-taupe); flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius-button); border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: .75rem; }
.btn-primary { background: var(--color-graphite); color: var(--color-white); }
.btn-primary:hover { background: var(--color-graphite-dark); }
.btn-secondary { background: transparent; color: var(--color-graphite); border-color: rgba(82, 81, 82, .45); }
.btn-secondary:hover { border-color: var(--color-graphite); background: rgba(255, 255, 255, .5); }
.btn-link { padding-inline: 0 4px; color: var(--color-graphite); }
.btn-link .icon, .link-arrow .icon { transition: transform .3s var(--ease); }
.btn-link:hover .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.btn-outline-light { color: var(--color-white); border-color: rgba(255, 255, 255, .45); padding-inline: 22px; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--color-graphite);
  padding-bottom: 6px; border-bottom: 1px solid var(--color-sand);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF; /* branco puro em todas as telas */
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(216, 200, 191, .7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 24px; height: 1.5px; background: var(--color-graphite); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile: painel abaixo do header */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--color-white);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 32px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-list > li { border-bottom: 1px solid rgba(216, 200, 191, .7); }
.nav-list a, .sub-label {
  display: block; padding: 16px 0; text-decoration: none;
  font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.2; color: var(--color-graphite);
}
.nav-list a[aria-current="page"] { color: var(--color-taupe-text); }
.sub-toggle { display: none; }
.sub-list { padding: 0 0 14px 20px; border-left: 1px solid var(--color-sand); margin: -4px 0 0 2px; }
.sub-list a { font-family: var(--font-body); font-size: 1rem; padding: 10px 0; }
.nav-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nav-actions .btn { width: 100%; min-height: 52px; font-size: .8125rem; }
.icon-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--color-graphite); font-size: .875rem; letter-spacing: .06em; }
body.menu-open { overflow: hidden; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.bg-white { background: var(--color-white); }
.bg-offwhite { background: var(--color-off-white); }
.bg-nude { background: var(--color-nude); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 0; }
.section-intro { color: var(--color-text-soft); max-width: 420px; margin: 20px 0 0; }
.section-foot { margin-top: clamp(40px, 5vw, 56px); display: flex; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 8px; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 18px; margin-inline: calc(var(--gutter) * -1); }
.hero-arch {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: min(70%, 320px); height: 90%;
  background: var(--color-nude);
  border-radius: 999px 999px 0 0;
}
.hero-arch::after { /* linha fina orgânica, elemento gráfico discreto */
  content: ""; position: absolute; inset: -14px -14px 0 -14px;
  border: 1px solid var(--color-sand); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.hero-portrait { position: relative; width: min(74%, 340px); height: auto; aspect-ratio: 4 / 5; object-fit: contain; object-position: bottom; }
.hero-content { position: relative; padding-top: 28px; }
.hero-content h1 { max-width: none; }
.hero .btn-row { flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-lead { font-size: 1.0625rem; color: var(--color-text-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-signature { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; padding-left: 18px; border-left: 1px solid var(--color-taupe); }
.hero-signature strong { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; color: var(--color-graphite); }
.hero-signature span { font-size: .8125rem; letter-spacing: .06em; color: var(--color-text-soft); }

/* ---------- Áreas de atuação ---------- */
.areas-grid { display: grid; gap: 56px; }
.area-card { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 28px; }
.area-body { order: 1; display: flex; flex-direction: column; align-items: flex-start; }
.area-body .link-arrow { margin-top: auto; }
.area-media { order: 2; }
.area-media { display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--color-nude); }
.area-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.area-card:hover .area-media img { transform: scale(1.03); }
.area-index { display: block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-taupe-text); letter-spacing: .1em; margin-bottom: 8px; }
.area-body h3 a { text-decoration: none; }
.area-body h3 a::after { content: ""; position: absolute; inset: 0; } /* card inteiro clicável */
.area-body p { color: var(--color-text-soft); max-width: 48ch; }
.area-body .link-arrow { position: relative; z-index: 1; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }
.about-role { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-taupe-text); margin-top: -.4em; }
.about-lead { font-family: var(--font-heading); font-size: clamp(1.4rem, 1vw + 1.1rem, 1.7rem); line-height: 1.35; color: var(--color-graphite); margin: 24px 0 20px; max-width: 30ch; }
.about-content > p:not(.eyebrow):not(.about-role):not(.about-lead) { color: var(--color-text-soft); max-width: 50ch; }
.about-content .btn-link { margin-top: 12px; }
.about-quote { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem); line-height: 1.35; color: var(--color-graphite); margin: 28px 0; max-width: 32ch; }
.cv-list { margin: 28px 0 32px; border-top: 1px solid rgba(165, 139, 128, .45); }
.cv-item { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(165, 139, 128, .45); }
.cv-item dd { font-size: .9375rem; line-height: 1.6; }
@media (min-width: 640px) { .cv-item { grid-template-columns: 150px 1fr; gap: 16px; } }
.cv-item dt { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--color-graphite); padding-top: 3px; }
.cv-item dd { margin: 0; }

/* ---------- Depoimentos (carrossel com scroll-snap) ---------- */
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.testimonial {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--color-white); border: 1px solid rgba(216, 200, 191, .8); border-radius: var(--radius-card);
  padding: 36px 28px 28px;
}
.testimonial blockquote { margin: 0; position: relative; }
.testimonial blockquote::before { content: "“"; display: block; font-family: var(--font-heading); font-size: 4rem; line-height: .6; color: var(--color-taupe); margin-bottom: 16px; }
.testimonial blockquote p { font-size: 1rem; line-height: 1.75; margin: 0; }
.testimonial footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--color-nude); }
.t-author { font-weight: 500; font-size: .9rem; color: var(--color-graphite); }
.t-source { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-taupe-text); border: 1px solid var(--color-sand); border-radius: 99px; padding: 4px 12px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.carousel-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(82, 81, 82, .35); border-radius: 50%; color: var(--color-graphite);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s;
}
.carousel-btn:hover { border-color: var(--color-graphite); background: var(--color-white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-status { margin: 0; min-width: 4.5ch; text-align: center; font-size: .8125rem; letter-spacing: .14em; color: var(--color-text-soft); font-variant-numeric: tabular-nums; }

/* ---------- Protocolos ---------- */
.proto-grid { display: grid; gap: 40px; }
.proto-card { position: relative; display: flex; flex-direction: column; background: var(--color-off-white); border-radius: var(--radius-card); overflow: hidden; transition: background-color .3s var(--ease); }
.proto-card:hover { background: var(--color-nude); }
.proto-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proto-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.proto-body h3 a { text-decoration: none; }
.proto-body h3 a::after { content: ""; position: absolute; inset: 0; }
.proto-body p { color: var(--color-text-soft); flex: 1; }
.proto-body .link-arrow { align-self: flex-start; }

/* ---------- Clínica ---------- */
.clinic-grid { display: grid; gap: 48px; }
.clinic-content p { color: var(--color-text-soft); max-width: 46ch; }
.clinic-address { display: flex; gap: 14px; margin: 28px 0 36px; padding: 22px 0; border-block: 1px solid var(--color-sand); color: var(--color-graphite); line-height: 1.6; }
.clinic-address .icon { color: var(--color-taupe); margin-top: 2px; }
.clinic-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clinic-gallery img { width: 100%; object-fit: cover; border-radius: var(--radius-card); }
.clinic-gallery .g1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.clinic-gallery .g2 { aspect-ratio: 1; }
.clinic-gallery .g3 { aspect-ratio: 1; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 48px; }
.faq-head p { color: var(--color-text-soft); max-width: 36ch; }
.faq-head .btn { margin-top: 8px; }
.faq-list { border-top: 1px solid var(--color-sand); }
.faq-item { border-bottom: 1px solid var(--color-sand); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--font-heading); font-size: clamp(1.25rem, .6vw + 1.1rem, 1.5rem); font-weight: 500; line-height: 1.3; color: var(--color-graphite);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--color-graphite), var(--color-graphite)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--color-graphite), var(--color-graphite)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 48px 24px 0; color: var(--color-text-soft); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--color-graphite); }
.faq-item[open] .faq-answer { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-graphite); color: rgba(255, 255, 255, .82); font-size: .9375rem; }
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 48px; padding-block: 72px 56px; }
.footer-brand img { width: 240px; height: auto; margin-bottom: 24px; }
.footer-brand p { max-width: 34ch; }
.footer-pro { font-size: .8125rem; letter-spacing: .06em; line-height: 1.8; color: rgba(255, 255, 255, .78); margin-top: 24px; }
.footer-title { font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--color-nude); margin-bottom: 20px; }
.footer-col ul li + li { margin-top: 4px; }
.footer-col ul a { display: inline-flex; align-items: flex-start; gap: 10px; padding: 6px 0; min-height: 36px; }
.footer-contact .icon { margin-top: 4px; color: var(--color-sand); }
.footer-col .btn { margin-top: 8px; }
.footer-col .btn:hover { text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: rgba(255, 255, 255, .78); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; padding-block: 22px; }
.footer-bottom p { margin: 0; }
.footer-legal { background: var(--color-graphite-dark); font-size: .75rem; letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
.footer-legal p { text-align: center; margin: 0; padding-block: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* ---------- Botão flutuante WhatsApp (mobile) ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-graphite); color: var(--color-white);
  box-shadow: 0 6px 20px rgba(63, 62, 63, .22);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 640px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 16px) / 2); }
  .proto-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand img { height: 44px; }

  .hero { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: end; gap: 48px; }
  .hero-content { order: -1; padding: 0 0 clamp(40px, 5vw, 64px); }
  .hero-content { padding-top: 0; }
  .hero-content h1 { font-size: clamp(2.6rem, 3.5vw, 3.15rem); }
  /* A altura do texto define a altura da hero; o arco acompanha o texto
     (topo do arco alinhado ao topo do texto) e a foto escala junto. */
  .hero-grid { align-items: stretch; }
  .hero-media { margin: 0; padding: 0; align-self: stretch; min-height: 0; }
  .hero-arch { top: 14px; bottom: 0; height: auto; width: auto; aspect-ratio: 0.747; max-width: 100%; }
  .hero-portrait { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: auto; max-width: none; height: calc((100% - 14px) / 0.9); }

  .section-head--split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
  .section-head--split .section-intro { justify-self: end; margin-top: 0; }

  /* dois cards iguais: texto em cima, imagem embaixo, imagens alinhadas pela base */
  .areas-grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
  .area-media img { aspect-ratio: 3 / 2; }

  .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 120px); }

  .carousel-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; cursor: grab; }
  .carousel-controls { justify-content: flex-end; }

  .proto-grid { grid-template-columns: repeat(3, 1fr); }

  .clinic-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
  .clinic-gallery { grid-template-columns: 1.35fr 1fr; gap: 16px; }
  .clinic-gallery .g1 { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 520px; }
  .clinic-gallery .g2 { aspect-ratio: 1; }
  .clinic-gallery .g3 { aspect-ratio: 1; }

  .faq-grid { grid-template-columns: 4fr 7fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-block: 88px 64px; }

}

/* Navegação desktop */
@media (min-width: 1240px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; inset: auto; padding: 0; overflow: visible; background: none;
    flex-direction: row; align-items: center; gap: 36px;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list { display: flex; align-items: center; gap: 32px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .sub-toggle {
    font-family: var(--font-body); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; color: var(--color-graphite);
    position: relative; white-space: nowrap;
  }
  .nav-list > li > a::after, .sub-toggle::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--color-taupe);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .sub-toggle:hover::after { transform: scaleX(1); }
  .sub-toggle .icon { transition: transform .3s var(--ease); }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav-list a[aria-current="page"] { color: var(--color-graphite); }
  .sub-label { display: none; }
  .sub-list {
    position: absolute; top: calc(100% + 12px); left: -24px; min-width: 230px;
    margin: 0; padding: 12px 0; border: 1px solid rgba(216, 200, 191, .8); border-radius: var(--radius-card);
    background: var(--color-white); box-shadow: 0 12px 32px rgba(82, 81, 82, .08);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .sub-list::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* ponte do hover */
  .has-sub:hover .sub-list, .has-sub:focus-within .sub-list, .has-sub.is-open .sub-list {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .sub-list a { display: block; padding: 10px 24px; font-size: .8125rem; letter-spacing: .08em; }
  .sub-list a::after { display: none; }
  .sub-list a:hover { background: var(--color-off-white); }
  .nav-actions { flex-direction: row; align-items: center; gap: 20px; }
  .nav-actions .btn { width: auto; min-height: 46px; font-size: .75rem; white-space: nowrap; }
  .nav-list { gap: 26px; }
  .main-nav { gap: 24px; }
  .nav-actions { gap: 12px; }
  .icon-link-text { display: none; }
  .icon-link { width: 44px; justify-content: center; }
}

@media (min-width: 1280px) {
  .main-nav { gap: 44px; }
  .nav-list { gap: 40px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Landing pages de tratamento (Tricologia, Rejuvenescimento)
   ========================================================= */
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .75rem; letter-spacing: .08em; color: var(--color-text-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--color-taupe); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-graphite); }

.lp-hero { padding: 32px 0 clamp(64px, 9vw, 112px); }
.lp-hero-grid { display: grid; gap: 40px; }
.lp-hero-content h1 { font-size: clamp(2.125rem, 3.6vw + 1rem, 4.2rem); max-width: 16ch; }
.lp-hero-sign { margin: 28px 0 0; font-size: .8125rem; letter-spacing: .06em; color: var(--color-text-soft); padding-left: 16px; border-left: 1px solid var(--color-taupe); }
.lp-hero-media { position: relative; padding: 14px 14px 0; }
.lp-hero-media::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-sand); border-bottom: 0; border-radius: 999px 999px 0 0; }
.lp-hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 999px 999px 0 0; background: #3b3029; }

.signs-grid { display: grid; gap: 40px; }
.signs-head p:last-child { color: var(--color-text-soft); max-width: 44ch; }
.signs-list { border-top: 1px solid var(--color-sand); }
.signs-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--color-sand); font-size: 1.0625rem; color: var(--color-graphite); }
.sign-index { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-taupe-text); letter-spacing: .08em; }

.causes-grid { display: grid; gap: 16px; }
.cause-card { background: var(--color-white); border: 1px solid rgba(216, 200, 191, .8); border-radius: var(--radius-card); padding: 32px 28px; }
.cause-index { display: block; font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; color: var(--color-taupe); margin-bottom: 20px; }
.cause-card p { color: var(--color-text-soft); margin: 0; }

.process-grid { display: grid; gap: 48px; align-items: start; }
.process-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 20%; border-radius: var(--radius-card); }
.process-intro { color: var(--color-text-soft); max-width: 46ch; }
.steps { list-style: none; margin: 32px 0 40px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-taupe);
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-graphite); background: var(--color-white);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 1px; background: var(--color-sand); }
.steps h3 { font-size: 1.4rem; margin-bottom: .3em; }
.steps p { color: var(--color-text-soft); margin: 0; }

.about-strip { display: grid; gap: 32px; align-items: center; }
.about-strip-photo { width: 180px; height: 180px; object-fit: cover; object-position: center 20%; border-radius: 50%; background: var(--color-sand); }
.about-strip p { max-width: 56ch; }

.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-band-inner { display: grid; gap: 28px; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--color-text-soft); margin: 0; max-width: 48ch; }

@media (min-width: 640px) {
  .causes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .lp-hero { padding-top: 40px; }
  .lp-hero-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
  .signs-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); }
  .signs-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .causes-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .process-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 120px); }
  .process-media { position: sticky; top: calc(var(--header-h) + 32px); }
  .process-media img { aspect-ratio: 4 / 5; }
  .lp-hero { padding-bottom: 0; }
  .lp-hero-grid { align-items: end; }
  .lp-hero-content { padding-bottom: clamp(48px, 6vw, 80px); }
  /* o arco acompanha a altura do texto: topo do arco alinhado ao topo do selo */
  .lp-hero-grid { align-items: stretch; }
  .lp-hero-content { align-self: end; }
  .lp-hero-media { align-self: stretch; justify-self: center; width: auto; max-width: 100%; aspect-ratio: 0.8; padding: 16px 16px 0; display: flex; }
  .lp-hero-media img { position: absolute; top: 16px; left: 16px; right: 16px; bottom: 0; width: calc(100% - 32px); height: calc(100% - 16px); aspect-ratio: auto; } /* não influencia a altura: quem manda é o texto */
  .lp-hero-content h1 { font-size: clamp(2.6rem, 3.5vw, 3.15rem); max-width: none; text-wrap: balance; } /* mesmo tamanho do h1 da Home */
  .about-strip { grid-template-columns: auto 1fr; gap: 56px; }
  .about-strip-photo { width: 240px; height: 240px; }
  .cta-band-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}
@media (min-width: 1240px) {
  .sub-toggle.is-current::after { transform: scaleX(1); }
}

/* Mobile: hero na ordem selo → título → texto → foto → assinatura/botões.
   display: contents "solta" os filhos do bloco de texto no grid para reordená-los. */
@media (max-width: 899px) {
  .hero { padding-top: 28px; }
  .hero-grid, .lp-hero-grid { gap: 0; }
  .hero-content, .lp-hero-content { display: contents; }
  .hero-grid .eyebrow, .lp-hero-grid .eyebrow { order: 1; letter-spacing: .16em; }
  .hero-grid h1, .lp-hero-grid h1 { order: 2; max-width: none; font-size: clamp(1.875rem, 8vw, 2.25rem); }
  .hero-lead { order: 3; margin-bottom: 0; }
  .hero-media { order: 4; margin-top: 8px; margin-bottom: 28px; }
  .lp-hero-media { order: 4; margin: 28px auto; width: min(82%, 340px); }
  .hero-signature { order: 5; }
  .hero-grid .btn-row, .lp-hero-grid .btn-row { order: 6; }
  .lp-hero-sign { order: 7; }
}

/* Hero: foto de estúdio dentro do arco, com linha fina ao redor */
.hero-media--arch { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 4px auto 28px; padding: 14px 14px 0; width: min(84%, 360px); }
.hero-media--arch::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-sand); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-media--arch .hero-portrait { position: relative; translate: none; width: 100%; height: auto; max-width: none; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 999px 999px 0 0; background: #3b3029; }
@media (min-width: 900px) {
  .hero:has(.hero-media--arch) { padding-bottom: 0; }
  .hero-grid:has(.hero-media--arch) { align-items: end; }
  .hero-media--arch { width: min(100%, 480px); margin: 0; justify-self: center; align-self: end; padding: 16px 16px 0; }
  .hero-media--arch .hero-portrait { position: relative; left: auto; bottom: auto; height: auto; }
}
@media (max-width: 899px) {
  .hero-media--arch { margin: 4px auto 28px; }
}

/* Imagem abaixo do texto de "Sinais" (Tricologia) */
.signs-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); margin-top: 28px; }

/* Antes e depois: uma foto por caso, já montada com antes | depois separados por uma linha */
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cases-grid::-webkit-scrollbar { display: none; }
.case-card { scroll-snap-align: start; margin: 0; background: var(--color-white); border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(216, 200, 191, .8); }
.case-media { position: relative; }
.case-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.case-tag { position: absolute; top: 14px; background: rgba(255, 255, 255, .92); color: var(--color-graphite); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; }
.case-tag--antes { left: 14px; }
.case-tag--depois { right: 14px; }
.case-card figcaption { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.case-card figcaption strong { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; color: var(--color-graphite); }
.case-card figcaption span { font-size: .875rem; line-height: 1.6; }
@media (min-width: 900px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  #resultados .section-head { margin-bottom: 32px; }
  .case-card figcaption { padding: 16px 20px 20px; }
}
.bg-white .cause-card { background: var(--color-off-white); }
.cases-note { margin: 24px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--color-text-soft); max-width: 70ch; }
