*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #faf6ef;
  --sand: #f2eadd;
  --oak: #e2d2b8;
  --tan: #cbb58c;
  --gold: #a6832b;
  --gold-deep: #86691f;
  --ink: #3a3531;
  --ink-soft: #7b7168;
  --espresso: #2b2622;
  --line: #e4d9c6;
  --white: #fffdf9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --glow: 0 0 0 1px rgba(203, 181, 140, 0.35), 0 18px 50px -18px rgba(166, 131, 43, 0.35);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--espresso); color: var(--paper); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

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

/* TYPE */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--tan); flex-shrink: 0; }

.display, .display-sm, .title, .statement {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; color: var(--espresso);
}
.display { font-size: clamp(64px, 10.5vw, 156px); line-height: 0.92; }
.display-sm { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; }
.title { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; }
.display em, .display-sm em, .title em, .statement em { font-style: italic; color: var(--gold); }

.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.7; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px;
  font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(134, 105, 31, 0.7); }
.btn-line { border: 1px solid var(--tan); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid var(--tan); padding-bottom: 4px;
  transition: gap 0.3s, border-color 0.3s;
}
.link-arrow:hover { gap: 16px; border-color: var(--gold); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(250, 246, 239, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { width: 107px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  font-size: 14px; font-weight: 400; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-cta { padding: 12px 24px; font-size: 13px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.3s; }
.menu-toggle.open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* HERO */
.hero { padding: 150px 0 0; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -120px; right: -160px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(226, 210, 184, 0.75) 0%, rgba(226, 210, 184, 0) 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-head {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end;
  margin-bottom: 64px;
}
.hero-side .lead { margin-bottom: 32px; max-width: 440px; }
.hero-photo { position: relative; }
.hero-photo > img {
  width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 45%;
  border-radius: 220px 220px 28px 28px;
  box-shadow: var(--glow);
}
.seal {
  position: absolute; left: 56px; bottom: -64px; width: 148px; height: 148px;
  background: var(--paper); border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(58, 53, 49, 0.35);
}
.seal svg { position: absolute; inset: 0; animation: spin 36s linear infinite; }
.seal text { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; fill: var(--gold-deep); }
.seal img { width: 52px; height: 52px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MANIFESTO */
.manifesto { padding: 170px 0 130px; }
.statement { font-size: clamp(30px, 3.7vw, 52px); line-height: 1.22; max-width: 1020px; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--line);
}
.pillar-n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 6px 0 10px; color: var(--espresso); }
.pillar p { color: var(--ink-soft); font-size: 16px; }

/* CLINIC */
.clinic { background: var(--sand); padding: 130px 0; }
.clinic-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 88px; align-items: center; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pill {
  aspect-ratio: 9 / 19; border-radius: 999px;
  background-image: url('assets/clinica-recepcao.jpg'); background-size: auto 100%; background-repeat: no-repeat;
  box-shadow: var(--glow);
}
.pill-a { background-position: 0% 50%; margin-top: 56px; }
.pill-b { background-position: 58% 50%; }
.pill-c { background-position: 100% 50%; margin-top: 96px; }
.clinic-copy .title { margin-bottom: 26px; }
.clinic-copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 480px; }
.ticks { margin: 30px 0 38px; }
.ticks li {
  position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 50%; width: 9px; height: 18px; margin-top: -9px;
  border: 1px solid var(--gold); border-radius: 99px;
}

/* SECTION HEAD */
.section-head {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; margin-bottom: 72px;
}
.section-note { color: var(--ink-soft); max-width: 420px; }

/* TREATMENTS */
.treatments { padding: 140px 0; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.t-card {
  position: relative; padding: 40px 36px 48px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background 0.4s;
}
.t-card:nth-child(3n) { border-right: 0; }
.t-card::after {
  content: ''; position: absolute; left: 36px; right: 36px; bottom: -1px; height: 1px;
  background: var(--gold); box-shadow: 0 0 14px 1px rgba(203, 181, 140, 0.9);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.t-card:hover { background: var(--white); }
.t-card:hover::after { transform: scaleX(1); }
.t-n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.t-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--espresso);
  margin: 34px 0 14px; max-width: 260px;
}
.t-card p { color: var(--ink-soft); font-size: 16px; }

/* DOCTOR */
.doctor { background: var(--sand); padding: 140px 0; }
.doctor-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 96px; align-items: center; }
.doctor-photo { position: relative; }
.doctor-photo::before {
  content: ''; position: absolute; inset: -16px; border: 1px solid var(--tan); border-radius: 999px 999px 24px 24px;
  pointer-events: none;
}
.doctor-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 12px 12px;
}
.doctor-photo figcaption {
  position: absolute; right: -28px; bottom: 44px;
  background: var(--paper); padding: 16px 24px; border-radius: 14px;
  font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--espresso);
  box-shadow: 0 20px 40px -22px rgba(58, 53, 49, 0.45);
}
.doctor-photo figcaption span {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep);
}
.doctor-copy .title { margin-bottom: 30px; }
.doctor-copy blockquote {
  font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--ink);
  padding-left: 26px; border-left: 1px solid var(--gold); margin-bottom: 28px;
}
.doctor-copy > p:not(.eyebrow) { color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 1; color: var(--gold); }
.stats dd { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

/* PROGRAMS */
.programs { background: var(--espresso); color: #e9dfcf; padding: 140px 0; }
.programs .title { color: var(--paper); }
.programs .title em { color: var(--tan); }
.programs .eyebrow { color: var(--tan); }
.programs .section-note { color: #b3a797; }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.p-card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 30px 34px; border: 1px solid rgba(203, 181, 140, 0.22); border-radius: 26px;
  transition: border-color 0.4s, transform 0.4s;
}
.p-card:hover { border-color: rgba(203, 181, 140, 0.6); transform: translateY(-4px); }
.p-card.is-featured {
  background: linear-gradient(180deg, rgba(203, 181, 140, 0.14), rgba(203, 181, 140, 0.03));
  border-color: var(--tan); box-shadow: 0 0 46px -14px rgba(203, 181, 140, 0.55);
}
.p-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--tan); color: var(--espresso);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px;
}
.p-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan); }
.p-card h3 { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.05; color: var(--paper); margin: 22px 0 12px; }
.p-desc { font-size: 15.5px; color: #b3a797; min-height: 80px; }
.p-card ul { margin: 22px 0 32px; border-top: 1px solid rgba(203, 181, 140, 0.22); flex: 1; }
.p-card li { padding: 12px 0; border-bottom: 1px solid rgba(203, 181, 140, 0.12); font-size: 15px; line-height: 1.5; }
.p-card .link-arrow { color: var(--tan); border-color: rgba(203, 181, 140, 0.4); align-self: flex-start; }

/* JOURNEY */
.journey { padding: 140px 0 60px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); }
.steps li { position: relative; }
.steps span {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--tan);
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold);
}
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--espresso); margin: 26px 0 10px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

/* CONTACT */
.contact { padding: 100px 0 140px; }
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--sand); border-radius: 44px; padding: 110px 40px 80px;
  box-shadow: var(--glow);
}
.contact-mark {
  position: absolute; width: 560px; height: 560px; right: -170px; top: -170px; opacity: 0.16;
  animation: spin 120s linear infinite; pointer-events: none;
}
.contact-card > *:not(.contact-mark) { position: relative; }
.contact-card .eyebrow { justify-content: center; }
.contact-card .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--tan); }
.contact-card .lead { max-width: 520px; margin: 26px auto 38px; }
.contact-card .actions { justify-content: center; }
.contact-info {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 72px;
  margin-top: 68px; padding-top: 36px; border-top: 1px solid var(--line);
}
.contact-info dt { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.contact-info dd { font-family: var(--serif); font-size: 24px; color: var(--espresso); }
.contact-info dd small {
  display: block; margin-top: 4px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-soft);
}

/* FOOTER */
.footer { background: var(--espresso); color: #b3a797; padding: 84px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 56px; }
.footer-logo { width: 150px; height: auto; }
.footer h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tan); margin-bottom: 18px; }
.footer-grid a, .footer-grid span { display: block; text-decoration: none; padding: 5px 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--paper); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(203, 181, 140, 0.18); font-size: 13px;
}

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(134, 105, 31, 0.75);
  transition: transform 0.3s, background 0.3s;
}
.wa-float:hover { transform: scale(1.07); background: var(--gold-deep); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.t-card.reveal:nth-child(3n + 2), .pillar:nth-child(2), .p-card:nth-child(2), .steps li:nth-child(2) { transition-delay: 0.1s; }
.t-card.reveal:nth-child(3n), .pillar:nth-child(3), .p-card:nth-child(3), .steps li:nth-child(3) { transition-delay: 0.2s; }
.p-card:nth-child(4), .steps li:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .seal svg, .contact-mark { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .p-desc { min-height: 0; }
  .clinic-grid, .doctor-grid { gap: 56px; }
  .nav-links { gap: 24px; }
}

@media (max-width: 900px) {
  .container, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 22px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { margin-top: 20px; padding: 16px 24px; }

  .hero { padding-top: 124px; }
  .hero-head, .section-head, .clinic-grid, .doctor-grid { grid-template-columns: 1fr; }
  .hero-head { gap: 28px; margin-bottom: 44px; }
  .hero-photo > img { aspect-ratio: 4 / 3; border-radius: 120px 120px 22px 22px; }
  .seal { left: 20px; bottom: -48px; width: 112px; height: 112px; }
  .seal img { width: 38px; height: 38px; }

  .manifesto { padding: 120px 0 90px; }
  .pillars { grid-template-columns: 1fr; gap: 34px; margin-top: 56px; padding-top: 40px; }
  .clinic, .treatments, .doctor, .programs { padding: 90px 0; }
  .journey { padding: 90px 0 30px; }
  .section-head { gap: 22px; margin-bottom: 48px; }
  .clinic-grid { gap: 56px; }
  .pills { gap: 12px; }
  .pill-a { margin-top: 32px; }
  .pill-c { margin-top: 56px; }

  .t-grid { grid-template-columns: 1fr; }
  .t-card { padding: 30px 4px 34px; border-right: 0; }
  .t-card::after { left: 4px; right: 4px; }
  .t-card h3 { margin-top: 12px; max-width: none; }

  .doctor-grid { gap: 64px; }
  .doctor-photo { max-width: 440px; margin: 16px; }
  .doctor-photo figcaption { right: -8px; bottom: 28px; }
  .stats { gap: 16px; }
  .stats dt { font-size: 44px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .steps::before { display: none; }

  .contact { padding: 70px 0 90px; }
  .contact-card { padding: 80px 24px 56px; border-radius: 30px; }
  .contact-mark { width: 380px; height: 380px; right: -150px; top: -150px; }
  .contact-info { gap: 22px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .p-grid, .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .doctor-copy blockquote { font-size: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
