/* ==========================================================================
   Landing — composição das seções (v2 · registro saúde estética).
   Tokens e componentes vêm de tokens.css e components.css.
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { padding-bottom: 4.75rem; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 60; }
.skip:focus { top: 0.75rem; }

.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head .h2 { max-width: 18ch; }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
@media (min-width: 1000px) {
  .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 5rem; }
  .sec-head--split .eyebrow { grid-column: 1 / -1; }
}

/* --- Cabeçalho ------------------------------------------------------------ */
.site-head { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .container { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brandmark { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.brandmark img { width: 2.25rem; }
.brandmark__text { display: grid; gap: 0.35rem; }
.brandmark__name { font: 400 1.1875rem / 1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.brandmark__tag { font: var(--weight-body) 0.5625rem / 1 var(--font-sans); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-subtle); }
.nav { display: none; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.875rem; font: var(--weight-body) 0.8125rem / 1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; background: linear-gradient(var(--gold-mid), var(--gold-mid)) center calc(100% - 0.9rem) / 0 1px no-repeat; transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease-out); }
.nav a:hover, .nav a[aria-current='true'] { color: var(--ink); background-size: calc(100% - 1.75rem) 1px; }
.head-cta { display: none; }
@media (min-width: 1120px) { .nav { display: flex; } }
@media (min-width: 900px) { .head-cta { display: inline-flex; } }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(4rem, 3rem + 4vw, 7rem); }
.hero__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero__copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero .h1 { max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__visual { display: grid; gap: 1.5rem; justify-items: center; }
.hero__visual .frame { width: min(100%, 27rem); aspect-ratio: 4 / 5; }

/* Faixa de credenciais (art. 4º e 6º) */
.credbar { background: var(--pearl); }
.credbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 2.25rem; padding-block: 1.75rem; text-align: center; }
.credbar img { width: 2rem; }
.credbar span { font: var(--weight-body) var(--fs-sm) / 1.5 var(--font-sans); color: var(--ink-muted); font-variant-numeric: lining-nums; }
.credbar b { color: var(--ink); }

/* --- A médica ------------------------------------------------------------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.about .frame { aspect-ratio: 4 / 5; }
.about__text { display: grid; gap: 1.5rem; }
.about__text > p { max-width: var(--measure); color: var(--ink-muted); }
.about__text > p.lead { color: var(--ink); }
.pillars { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars > div { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gold-mid); }
.pillars b { font: 400 1.1875rem / 1.3 var(--font-display); }
.pillars span { font-size: var(--fs-sm); color: var(--ink-muted); }

/* --- Procedimentos ------------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.area-tab { min-height: var(--tap); padding: 0 0.25rem; border: 0; background: none; cursor: pointer; font: var(--weight-body) 0.8125rem / 1 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-subtle); background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-position: center calc(100% - 0.75rem); background-repeat: no-repeat; transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease-out); }
.area-tab:hover { color: var(--ink); }
.area-tab[aria-selected='true'] { color: var(--ink); background-size: 100% 1px; }
.proc { display: grid; background: var(--bg); border-radius: var(--radius-soft); overflow: hidden; }
@media (min-width: 960px) { .proc { grid-template-columns: 19rem 1fr; } }
.proc__list { list-style: none; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .proc__list { padding: 2rem 0; border-bottom: 0; border-right: 1px solid var(--line); } }
.proc__item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: 0 clamp(1.25rem, 3vw, 2rem); border: 0; background: none; cursor: pointer; text-align: left; font: 400 1.1875rem / 1.3 var(--font-display); color: var(--ink-subtle); transition: color var(--dur) var(--ease); }
.proc__item::after { content: ''; width: 1.5rem; height: 1px; background: var(--gold-mid); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.proc__item:hover { color: var(--ink); }
.proc__item[aria-selected='true'] { color: var(--ink); }
.proc__item[aria-selected='true']::after { transform: none; }
.proc__panel { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.75rem; align-content: start; }
.proc__panel[hidden] { display: none; }
.proc__panel .lead { font-size: var(--fs-base); line-height: var(--lh-body); }
@media (min-width: 960px) { .proc__panel > .btn { justify-self: start; } }
@media (prefers-reduced-motion: no-preference) {
  .proc__panel:not([hidden]) { animation: fade-in var(--dur-slow) var(--ease); }
  @keyframes fade-in { from { opacity: 0; } }
}
.note { font-size: var(--fs-sm); color: var(--ink-subtle); max-width: 70ch; }

/* --- Jornada ------------------------------------------------------------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.journey li { display: grid; gap: 0.875rem; align-content: start; }
.journey__num { font: 400 var(--fs-numeral) / 1 var(--font-display); color: var(--gold-mid); }
.journey .label { color: var(--gold); }
.journey p { color: var(--ink-muted); font-size: var(--fs-sm); }

/* --- Casos ---------------------------------------------------------------- */
.case-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-bottom: 2.5rem; }
.case__info { display: grid; gap: 2rem; }
@media (min-width: 960px) { .case__info { grid-template-columns: 1.4fr 0.6fr; gap: 4rem; } }
.case__aside { display: grid; gap: 1rem; align-content: start; }
.case__aside .h3 { font-size: 1.5rem; }

/* --- Relatos ------------------------------------------------------------- */
.testimonials { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonials .quote { align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--gold-mid); }
.testimonials .quote p { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }

/* --- Clínica e valores ---------------------------------------------------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.gallery { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(0.75rem, 1.5vw, 1rem); }
.gallery .frame:first-child { grid-row: span 2; aspect-ratio: 3 / 4.4; }
.gallery .frame { aspect-ratio: 1; }
.price-box { display: grid; gap: 1.5rem; }
.price-box > p { font-size: var(--fs-sm); color: var(--ink-muted); }

/* --- Agendamento (banda espresso) ---------------------------------------- */
.book { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .book { grid-template-columns: 1fr 1fr; } }
.book__copy { display: grid; gap: 1.5rem; justify-items: start; }
.book__contacts { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.book__contacts a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-espresso); text-decoration: none; border-bottom: 1px solid rgb(213 172 124 / 0.5); width: fit-content; }
.book__contacts a:hover { border-bottom-color: var(--gold-on-espresso); }
.book__form { display: grid; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); background: var(--bg); color: var(--ink); border-radius: var(--radius-soft); }
.book__form .btn { width: 100%; }
.book__form .h3 { font-size: 1.625rem; }
.form-note { font-size: 0.8125rem; color: var(--ink-subtle); }
.form-msg { font-size: var(--fs-sm); min-height: 1.5em; }

/* --- Rodapé --------------------------------------------------------------- */
.site-foot { padding-top: var(--section-space); overflow: hidden; }
.foot-top { display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.foot-top img { width: 4rem; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); font: var(--weight-body) 0.8125rem / 1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }
.site-foot .swash-row { margin-top: 3rem; }
.site-foot .legal { margin-top: 2rem; }
.site-foot .wordmark { margin: 2rem 0 -0.14em; text-align: center; }

@media (max-width: 520px) {
  .areas, .case-tabs { gap: 0 1.25rem; }
  .area-tab { letter-spacing: 0.14em; font-size: 0.75rem; }
}

/* Retrato do hero — rosto no terço superior do arco */
.frame picture { display: block; width: 100%; height: 100%; }
.frame--portrait img { object-position: 50% 20%; }
