/* Dra. Érika Luana — paleta aprovada no site anterior:
   vinho, dourado, sálvia e base creme. */

:root {
  --vinho: #6E1B2E;
  --vinho-escuro: #4C1220;
  --dourado: #C2A14D;
  --dourado-claro: #E3CD94;
  --salvia: #9AA98F;
  --salvia-claro: #E9ECE2;
  --base: #FAF6EF;
  --branco: #FFFDF9;
  --grafite: #2A211E;
  --texto: #4A403C;
  --linha: #E6DED1;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--grafite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--vinho); line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(194, 161, 77, .8); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--vinho); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--vinho); background: var(--vinho); color: var(--base);
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: 999px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--dourado); border-color: var(--dourado); color: var(--grafite); }
.btn--small { min-height: 42px; padding: 0 22px; font-size: .95rem; }
.btn--gold { background: var(--dourado); border-color: var(--dourado); color: var(--grafite); }
.btn--gold:hover { background: var(--branco); border-color: var(--branco); }
.btn--ghost { background: transparent; border-color: rgba(255, 253, 249, .7); color: var(--branco); }
.btn--ghost:hover { background: var(--branco); border-color: var(--branco); color: var(--vinho); }
.btn--light { background: var(--dourado); border-color: var(--dourado); color: var(--grafite); }
.btn--light:hover { background: var(--branco); border-color: var(--branco); color: var(--vinho); }
.link {
  font-weight: 500; color: var(--vinho); text-decoration: underline; text-decoration-color: var(--dourado);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 2px; }
.link--light { color: var(--branco); text-decoration-color: var(--dourado); }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--linha); box-shadow: 0 10px 30px rgba(42, 33, 30, .06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--vinho); }
.brand__role { font-size: .82rem; color: var(--texto); letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { position: relative; text-decoration: none; font-size: .98rem; color: var(--grafite); }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--dourado);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* Abertura: foto do consultório com véu vinho */
.hero { position: relative; overflow: hidden; color: var(--branco); background: var(--vinho-escuro); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(42, 33, 30, .82) 0%, rgba(110, 27, 46, .64) 50%, rgba(42, 33, 30, .4) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: min(calc(100vh - 76px), 820px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px);
}
.hero__place { color: var(--dourado-claro); font-size: 1.02rem; margin-bottom: 16px; }
.hero__title {
  color: var(--branco);
  font-size: clamp(3rem, 7.6vw, 6.2rem);
  line-height: 1.02; letter-spacing: -.005em; max-width: 9.5em;
}
.glow {
  display: block; height: 2px; width: min(320px, 70%);
  margin: 30px 0 28px;
  background: linear-gradient(90deg, var(--dourado), rgba(194, 161, 77, 0));
  box-shadow: 0 0 14px 1px rgba(194, 161, 77, .5);
  border-radius: 2px;
  transform-origin: left center;
  animation: glow-in 1.4s cubic-bezier(.2, .7, .2, 1) .25s both;
}
@keyframes glow-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.hero__lede { max-width: 32em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; color: rgba(255, 253, 249, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts { display: flex; gap: 44px; margin: 52px 0 0; }
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts dt { font-size: .88rem; color: var(--dourado-claro); }
.hero__facts dd { margin: 2px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--branco); }

/* Sobre */
.about { padding: var(--section) 0; }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 18px 45px rgba(42, 33, 30, .11);
  aspect-ratio: 4 / 5;
}
.portrait::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(194, 161, 77, .6); border-radius: 8px; pointer-events: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__quote { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; }
.about__sign { margin: 14px 0 28px; color: var(--dourado); font-weight: 500; }
.about__body { max-width: 38em; }
.about__body > p:not(.about__sign) { color: var(--texto); }
.about__body > p + p:not(.about__sign) { margin-top: 1.1em; }
.about__subtitle { font-size: 1.35rem; margin: 40px 0 12px; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 11px 0 11px 22px; border-top: 1px solid var(--linha); position: relative; color: var(--texto); }
.creds li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dourado); }
.creds li:last-child { border-bottom: 1px solid var(--linha); }
.creds strong { font-weight: 500; color: var(--grafite); }

/* Tratamentos */
.treatments { padding: var(--section) 0; background: var(--branco); }
.section-head { max-width: 40em; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .steps h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.section-head p { margin-top: 18px; color: var(--texto); }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.group {
  padding: 30px 26px 24px; border-radius: var(--radius);
  background: var(--base); border: 1px solid rgba(110, 27, 46, .08);
}
.group:first-child { background: var(--vinho); border-color: var(--vinho); }
.group:first-child h3 { color: var(--branco); }
.group:first-child .group__note { color: var(--dourado-claro); }
.group:first-child li { color: rgba(255, 253, 249, .92); border-bottom-color: rgba(255, 253, 249, .16); }
.group h3 { font-size: 1.4rem; line-height: 1.2; }
.group__note { margin-top: 8px; color: var(--texto); font-size: .95rem; min-height: 3.2em; }
.group ul { list-style: none; margin: 18px 0 0; padding: 0; }
.group li { padding: 9px 0; border-bottom: 1px solid var(--linha); }
.group li:last-child { border-bottom: 0; }

/* Primeira consulta */
.steps { background: var(--salvia-claro); padding: var(--section) 0; }
.steps__list { list-style: none; margin: clamp(40px, 6vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: step; }
.steps__list li { counter-increment: step; border-top: 1px solid rgba(110, 27, 46, .18); padding-top: 22px; }
.steps__list li::before {
  content: counter(step);
  display: block; font-family: var(--serif); font-weight: 500; font-size: 2.8rem; line-height: 1; color: var(--dourado);
  margin-bottom: 16px;
}
.steps__list h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps__list p { color: var(--texto); }

/* Avaliações */
.reviews { padding: var(--section) 0; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.reviews__score { margin-top: 0 !important; color: var(--grafite) !important; font-weight: 500; }
.stars { color: var(--dourado); letter-spacing: 2px; margin-right: 6px; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.quotes blockquote {
  margin: 0; padding: 32px 32px 28px; border-radius: var(--radius);
  background: var(--branco); border: 1px solid rgba(110, 27, 46, .08);
  box-shadow: 0 14px 35px rgba(42, 33, 30, .05);
}
.quotes blockquote::before {
  content: "“"; display: block; font-family: var(--serif); font-size: 3.6rem; line-height: .7; color: var(--dourado); margin-bottom: 14px;
}
.quotes p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.4; color: var(--grafite); }
.quotes footer { margin-top: 16px; color: var(--texto); font-size: .95rem; }

/* Contato */
.contact { background: var(--vinho); color: rgba(255, 253, 249, .92); padding: var(--section) 0; }
.contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: stretch; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--branco); }
.contact__lede { margin: 18px 0 32px; color: rgba(255, 253, 249, .78); max-width: 32em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; margin-top: 56px; }
.contact h3 { font-size: 1.15rem; color: var(--dourado-claro); margin-bottom: 10px; }
.contact address { font-style: normal; margin-bottom: 10px; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; color: rgba(255, 253, 249, .7); padding: 2px 18px 2px 0; white-space: nowrap; }
.hours td { padding: 2px 0; white-space: nowrap; }
.social { list-style: none; margin: 0; padding: 0; }
.social li + li { margin-top: 6px; }
.social a { text-decoration: none; }
.social a:hover { text-decoration: underline; text-decoration-color: var(--dourado); text-underline-offset: 4px; }
.contact__map { min-height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--vinho-escuro); box-shadow: 0 18px 45px rgba(0, 0, 0, .18); }
.contact__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* Rodapé */
.footer { background: var(--vinho-escuro); color: rgba(250, 246, 239, .72); padding: 36px 0 44px; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: baseline; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--branco); }
.footer p:last-child { text-align: right; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vinho); color: var(--base);
  box-shadow: 0 14px 30px rgba(42, 33, 30, .25);
  transition: background-color .2s ease, color .2s ease;
}
.wa-float:hover { background: var(--dourado); color: var(--grafite); }

/* Telas médias */
@media (max-width: 1024px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
}

/* Celular */
@media (max-width: 820px) {
  .menu-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--vinho);
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .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 {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--base); border-bottom: 1px solid var(--linha);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 18px; }

  .hero::before { background: linear-gradient(180deg, rgba(42, 33, 30, .7) 0%, rgba(110, 27, 46, .72) 100%); }
  .hero__inner { min-height: 0; }
  .hero__facts { margin-top: 40px; gap: 32px; }

  .about__inner { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  .steps__list { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .groups { grid-template-columns: 1fr; }
  .group__note { min-height: 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .btn { width: 100%; padding: 0 20px; }
  .menu .btn { width: auto; }
  .quotes blockquote { padding: 26px 24px 22px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
}
