/* Dra. Virgínia Nanuncio · Conceito B: Luz de consultório */

:root {
  --bg: #F4EFE6;
  --bg-2: #EAE2D4;
  --surface: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #5A554D;
  --brass: #A8824B;
  --brass-text: #7A5C2E;
  --sage: #8C9A84;
  --sage-text: #4F5C48;
  --line: rgba(168, 130, 75, .4);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: 20px;
  --section-y: 80px;
  --container: 1280px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (min-width: 640px)  { :root { --pad-x: 32px; --section-y: 96px; } }
@media (min-width: 1024px) { :root { --pad-x: 48px; --section-y: 128px; } }
@media (min-width: 1440px) { :root { --pad-x: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 18px; } }

img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.narrow { max-width: calc(720px + 2 * var(--pad-x)); }

/* Tipografia */
.display, .h2, .h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }
.display { font-size: 44px; line-height: 1.02; letter-spacing: -.01em; }
.h2 { font-size: 34px; line-height: 1.08; letter-spacing: -.005em; }
.h3 { font-size: 24px; line-height: 1.2; }
@media (min-width: 1024px) {
  .display { font-size: 72px; }
  .h2 { font-size: 48px; }
  .h3 { font-size: 28px; }
}
.display em, .h2 em { font-style: italic; font-weight: 400; }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 16px;
}
@media (min-width: 1024px) { .label { font-size: 13px; } }
.label--brass { color: var(--brass-text); margin-top: 24px; margin-bottom: 0; }

.lead { color: var(--ink-2); max-width: 46ch; }
.note { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:hover { background: var(--brass); color: var(--bg); }
.btn:active { transform: scale(.98); }
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--compact { min-height: 44px; padding: 10px 18px; }
.btn--invert { background: var(--bg); color: var(--ink); }
.btn--invert:hover { background: var(--brass); color: var(--bg); }

.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .2s ease;
}
.link:hover { color: var(--brass-text); }

/* Header */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px; display: flex; align-items: center;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header.is-stuck {
  position: fixed; height: 64px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__brand { font-family: var(--font-display); font-size: 22px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header__nav { display: none; gap: 28px; margin-left: 48px; margin-right: auto; }
.header__nav a { font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.header__nav a:hover { color: var(--brass-text); }
@media (min-width: 1024px) { .header__nav { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 0; padding-left: 0; padding-right: 0; }
.hero__media { aspect-ratio: 4 / 5; overflow: hidden; margin-top: 72px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__text { padding: 40px var(--pad-x) 64px; }
.hero__lead { color: var(--ink-2); max-width: 42ch; margin: 24px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, 1fr); column-gap: 32px;
    padding-left: var(--pad-x); padding-right: 0;
    min-height: min(100svh, 820px); align-items: center;
  }
  .hero__text { grid-column: 1 / span 5; grid-row: 1; padding: 120px 0 96px; }
  .hero__media {
    grid-column: 7 / span 6; grid-row: 1; align-self: stretch;
    aspect-ratio: auto; min-height: 640px; margin-top: 0;
    margin-right: calc((100vw - min(var(--container), 100vw)) / -2);
  }
  .hero__media img { object-position: 50% 20%; }
  .display { min-height: calc(2 * 1.02em); }
}
@media (min-width: 1440px) {
  .hero__media { margin-right: calc((100vw - var(--container)) / -2); }
}

/* Seções */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--surface { background: var(--surface); }
.section__head { max-width: 560px; margin-bottom: 48px; }
.section__head .lead { margin-top: 20px; }
@media (min-width: 1024px) { .section__head { margin-bottom: 64px; } }

/* Tratamentos */
.treatments { border-top: 1px solid var(--line); }
.treatment {
  display: grid; grid-template-columns: 1fr; gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.treatment__num {
  font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--brass);
}
.treatment .h3 { margin-bottom: 8px; }
.treatment p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 1024px) {
  .treatment { grid-template-columns: 120px 1fr; padding: 40px 0; }
  .treatment__num { font-size: 96px; margin-top: -8px; }
  .treatment p { font-size: 17px; }
}
.treatments + .note { margin-top: 32px; }

/* Split (sobre, consulta) */
.split { display: grid; gap: 40px; }
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
#consulta .split__media img { object-position: 50% 25%; }
.split__text p + p { margin-top: 1em; }
.split__text .h2 { margin-bottom: 24px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: center; }
  .split__media { grid-column: 1 / span 6; }
  .split__text { grid-column: 8 / span 5; }
  .split--reverse .split__text { grid-column: 1 / span 5; grid-row: 1; }
  .split--reverse .split__media { grid-column: 7 / span 6; grid-row: 1; }
}

/* Passos */
.steps { margin: 32px 0 24px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--brass); }
.step .h3 { margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 1024px) { .step__num { font-size: 48px; } .step p { font-size: 16px; } }
#consulta .note { margin-bottom: 32px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 56px; padding: 20px 0; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .h3 { font-size: 22px; }
@media (min-width: 1024px) { .faq__q .h3 { font-size: 26px; } }
.faq__plus { position: relative; width: 20px; height: 20px; flex: none; transition: transform .2s ease; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; background: var(--brass); left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.faq__plus::before { width: 20px; height: 1.5px; }
.faq__plus::after { width: 1.5px; height: 20px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; color: var(--ink-2); max-width: 60ch; }

/* CTA final */
.cta { background: var(--ink); color: var(--bg); padding: var(--section-y) 0; }
.cta__inner { text-align: center; }
.cta__lead { opacity: .8; margin: 20px 0 32px; }

/* Rodapé */
.footer { padding: 56px 0 32px; font-size: 15px; line-height: 1.55; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer a:hover { color: var(--brass-text); }
.footer__links { margin-top: 12px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

/* Botão flutuante */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 20px rgba(28, 26, 23, .18);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.fab .ico { width: 26px; height: 26px; fill: currentColor; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--brass); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fab { transform: none; transition: opacity .2s ease; }
  .header, .faq__plus, .btn { transition: none; }
}
