:root {
  color-scheme: light;
  --ink: #1d2926;
  --muted: #53625c;
  --paper: #f4f0e8;
  --ivory: #fbfaf6;
  --sage: #e6ece5;
  --line: #c9d0c8;
  --forest: #19352e;
  --forest-deep: #122821;
  --accent: #a15f43;
  --accent-dark: #77432f;
  --white: #fff;
  --radius: 1.5rem;
  --content: 72rem;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #a15f43;
  outline-offset: 4px;
  border-radius: .2rem;
}
.skip-link {
  position: fixed;
  z-index: 1200;
  left: 1rem;
  top: .6rem;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--white);
  color: var(--forest-deep);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.reading-progress {
  position: fixed;
  z-index: 1100;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  pointer-events: none;
}
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .75rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(29, 41, 38, .13);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 4.6rem; max-width: 12rem; object-fit: contain; background: transparent; }
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .15rem .55rem;
  border: 1px solid #b6c2b9;
  border-radius: 999px;
  background: #edf1ed;
  color: #28453a;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
}
.desktop-nav ul, .mobile-nav ul, .site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.7vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-nav a, .mobile-nav a {
  color: #34423d;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav a:hover, .mobile-nav a:hover, .site-footer a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "  +"; color: var(--accent-dark); }
.mobile-menu[open] summary::after { content: "  −"; }
.mobile-nav {
  position: absolute;
  top: calc(100% + .7rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--ivory);
  box-shadow: 0 1rem 2.5rem rgba(18, 40, 33, .14);
}
.mobile-nav ul { display: grid; gap: .2rem; align-items: stretch; }
.mobile-nav a { display: block; padding: .65rem .7rem; border-radius: .55rem; font-size: .95rem; }
.mobile-nav a:hover { background: var(--sage); }

.stack { position: relative; isolation: isolate; }
.panel {
  position: sticky;
  top: 0;
  z-index: var(--stack-order, 1);
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding: 8rem clamp(1.25rem, 7vw, 7rem) 5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ivory);
  box-shadow: 0 -1.5rem 4rem rgba(18, 40, 33, .11);
  scroll-margin-top: 5rem;
}
.panel:first-child { border-radius: 0; box-shadow: none; }
/* Seções longas precisam rolar até o fim antes de a próxima camada subir. */
#clinica, #especialidades, #equipe, #duvidas { position: relative; top: auto; align-content: start; }
.inner { width: min(100%, var(--content)); margin-inline: auto; }
.hero {
  height: 100svh;
  min-height: 42rem;
  padding: 0;
  overflow: hidden;
  align-content: stretch;
  border-radius: 0;
  background: #000;
  color: #fff;
}
.panel-ivory { background: var(--ivory); }
.panel-sage { background: var(--sage); }
.panel-dark { background: var(--forest); color: #f9f7f1; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: min(100%, var(--content));
  min-height: 100%;
  margin-inline: auto;
  padding: 8rem clamp(1.25rem, 5vw, 4.5rem) 6rem;
}
.hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.hero-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.52) 34%, rgba(0,0,0,.1) 69%, transparent 82%), linear-gradient(90deg, rgba(0,0,0,.28), transparent 70%);
  content: "";
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #000;
  object-fit: cover;
  object-position: center top;
}
.hero-copy { grid-column: 1; width: min(100%, 42rem); min-width: 0; max-width: 42rem; color: #fff; }
.hero .eyebrow { color: #e8c9a8; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .text-link { color: #fff; }
.hero h1 { max-width: 11ch; font-size: clamp(4.5rem, 11.8vw, 10.5rem); line-height: .86; }
.hero-statement { max-width: 42rem; margin: 1.6rem 0 0; color: #fff; font-size: clamp(1.12rem, 1.8vw, 1.55rem); font-weight: 650; line-height: 1.35; text-wrap: balance; }
.hero-audience { max-width: 39rem; margin: .65rem 0 0; color: #e6ebe6; font-size: clamp(.93rem, 1.1vw, 1.05rem); line-height: 1.5; }
.hero .hero-actions { margin-top: 1.45rem; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel-dark .eyebrow { color: #e8c9a8; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: .9;
  text-transform: uppercase;
}
h1 { max-width: 13ch; font-size: clamp(2.5rem, 5.3vw, 5.6rem); }
h2 { max-width: 17ch; font-size: clamp(2.1rem, 4.1vw, 4.2rem); }
h3 { margin: .6rem 0 .55rem; font-family: "Oswald", sans-serif; font-size: 1.16rem; font-weight: 500; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.lead, .section-intro {
  max-width: 58rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.7;
}
.panel-dark .section-intro, .panel-dark .small-note { color: #e0e8e2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--forest); color: var(--white); }
.button-dark:hover { background: var(--forest-deep); }
.button-light { border-color: #e7e6dc; background: #f9f7f1; color: var(--forest-deep); }
.button-light:hover { background: var(--white); }
.text-link { color: var(--forest); font-size: .9rem; font-weight: 700; text-underline-offset: .25em; }
.small-note { max-width: 52rem; margin: 1.5rem 0 0; color: #58645f; font-size: .83rem; line-height: 1.55; }
.section-inner { padding-block: 1rem; }
.section-inner > .eyebrow { margin-bottom: .65rem; }
.placeholder-card {
  max-width: 54rem;
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2.25rem);
  border: 1px solid rgba(29, 41, 38, .15);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 .7rem 2rem rgba(29, 41, 38, .06);
}
.placeholder-card p { margin: .55rem 0 0; color: #465650; }
.placeholder-card strong { color: var(--ink); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.service-grid .placeholder-card { max-width: none; margin: 0; }
.professional-id { padding-top: .9rem; border-top: 1px solid #d5dcd5; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.8rem; }
.team-grid .team-card { height: 100%; margin: 0; }
.team-card h3, .team-card .professional-id { color: #1d2926; font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.status-chip { margin-bottom: .45rem; }
.team-card { display: grid; grid-template-columns: 10rem minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.team-card .team-portrait { display: block; width: 10rem; max-width: 100%; height: auto; aspect-ratio: 768 / 1376; object-fit: contain; object-position: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.team-intro-inner { max-width: 86rem; }
.team-intro-title { max-width: 12ch; font-size: clamp(4rem, 9vw, 8.5rem); letter-spacing: -.035em; line-height: .82; }
.team-intro-panel .section-intro { max-width: 52rem; }
.team-photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.team-photo-tile, .team-photo-placeholder { display: flex; min-width: 0; flex-direction: column; justify-content: flex-start; margin: 0; overflow: hidden; border-radius: 1rem; background: #ebe7de; }
.team-photo-tile img { display: block; width: 100%; height: auto; aspect-ratio: 768 / 1376; object-fit: contain; object-position: center; background: #ebe7de; }
.team-photo-tile--fernando img { object-fit: cover; object-position: center; background: #1d344a; }
.team-photo-tile figcaption { padding: .8rem .9rem; color: #465650; font-size: .78rem; line-height: 1.45; }
.team-photo-placeholder { min-height: 16rem; align-items: center; justify-content: center; padding: 1rem; border: 1px dashed #9aa69d; background: linear-gradient(145deg, #f3efe6, #e5ebe5); color: #43554b; font-family: "Oswald", sans-serif; font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: .04em; line-height: 1.15; text-align: center; text-transform: uppercase; }
.doctor-intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.4rem; border-top: 1px solid rgba(29, 41, 38, .24); border-bottom: 1px solid rgba(29, 41, 38, .24); }
.doctor-intro-card { min-width: 0; padding: 1.4rem 1.1rem; border-right: 1px solid rgba(29, 41, 38, .16); }
.doctor-intro-card:last-child { border-right: 0; }
.doctor-number { color: var(--accent-dark); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.doctor-intro-card h3 { margin: .8rem 0 .55rem; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.05; }
.doctor-intro-card p { margin: 0; color: #465650; font-size: .88rem; line-height: 1.6; }
.clinic-registry { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(29, 41, 38, .16); }
.clinic-registry p { margin: .35rem 0; color: #465650; font-size: .84rem; line-height: 1.55; }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-card--text { display: block; }
.doctor-priorities { margin: .6rem 0 0; padding-left: 1.15rem; }
.doctor-priorities li { padding: .35rem 0; color: #465650; font-size: .88rem; line-height: 1.5; }
.doctor-priorities li::marker { color: var(--accent-dark); font-weight: 800; }
.team-card .doctor-scope-note { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #d5dcd5; font-size: .84rem; }
.avatar-placeholder {
  display: grid;
  min-height: 10rem;
  place-items: center;
  border: 1px dashed #839188;
  border-radius: 50% 50% .8rem .8rem;
  background: linear-gradient(150deg, #eee7da, #dfe8df);
  color: #43554b;
  font-size: .8rem;
  font-weight: 700;
}
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.step-list .placeholder-card { min-width: 0; margin: 0; }
.step-number { color: var(--accent-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.faq-groups { display: grid; gap: clamp(2rem, 4vw, 3.4rem); max-width: 64rem; margin-top: 2.4rem; }
.faq-group { min-width: 0; }
.faq-group h3 { margin: 0; padding-bottom: .7rem; border-bottom: 1px solid #c9d0c8; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.faq-list { display: grid; gap: .8rem; max-width: 64rem; margin-top: 1rem; }
.faq-item { border: 1px solid #c9d0c8; border-radius: .85rem; background: #fff; }
.faq-item summary { padding: 1rem 1.15rem; color: var(--ink); cursor: pointer; font-weight: 700; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.faq-item p { margin: 0; padding: 0 1.15rem 1.1rem; color: var(--muted); overflow-wrap: anywhere; }
.faq-item p a { color: var(--forest); text-underline-offset: .2em; }
.contact-inner { max-width: 64rem; }
.panel-dark .contact-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; margin-top: 1.8rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.27); border-radius: 1.1rem; background: rgba(255,255,255,.06); }
.contact-card p { margin: 0; color: #f9f7f1; }
.contact-card a { color: #fff; font-weight: 700; text-underline-offset: .22em; }
.panel-dark .button { margin-top: 1.5rem; }
.site-footer {
  position: relative;
  z-index: 500;
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 2.5rem 1.25rem;
  background: var(--forest-deep);
  color: #f6f2e8;
  text-align: center;
}
.footer-brand { color: #fff; font-family: "Oswald", sans-serif; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.site-footer p { margin: 0; color: #d3ded5; font-size: .82rem; }
.site-footer nav { justify-content: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .6rem; }
.site-footer nav a { color: #f6f2e8; font-size: .8rem; text-underline-offset: .2em; }

.legal-page {
  min-height: 100svh;
  padding: 8rem 1.25rem 4rem;
  background: var(--paper);
}
.legal-wrap { width: min(100%, 54rem); margin-inline: auto; }
.legal-wrap h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.legal-wrap h2 { margin-top: 2rem; font-family: inherit; font-size: 1.25rem; font-weight: 750; letter-spacing: 0; }
.draft-banner { margin: 1.2rem 0 2rem; padding: 1rem 1.1rem; border: 1px solid #a15f43; border-radius: .75rem; background: #f9eadd; color: #492b1e; font-weight: 700; }
.legal-wrap li { margin: .55rem 0; }
.back-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; text-underline-offset: .2em; }
.legal-wrap h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; }

@media (max-width: 940px) {
  .desktop-nav ul { gap: .75rem; }
  .desktop-nav a { font-size: .7rem; }
}
@media (max-width: 1000px), (orientation: portrait) {
  html { scroll-padding-top: 6rem; }
  .site-header { min-height: 86px; padding-inline: 1rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .brand-logo { height: 3.8rem; max-width: 10rem; }
  .panel {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 6.8rem 1.15rem 4rem;
    border-radius: 1.2rem 1.2rem 0 0;
    box-shadow: 0 -.7rem 2rem rgba(18, 40, 33, .08);
  }
  .panel:first-child { padding-top: 6.4rem; border-radius: 0; }
  .panel.hero:first-child { padding: 86px 0 0; border-radius: 0; }
  .hero { height: auto; min-height: 0; padding: 0; overflow: visible; display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: auto; width: 100%; padding: 2.2rem 1.15rem 3rem; }
  .hero-visual {
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    margin: 0;
  }
  .hero-visual::after { display: none; }
  .hero-visual img { border-radius: 0; object-fit: contain; object-position: center; }
  .hero-copy { order: 1; width: 100%; max-width: 48rem; margin-inline: auto; color: #fff; }
  .hero h1 { max-width: 10ch; font-size: clamp(3.3rem, 14vw, 5.2rem); line-height: .9; }
  .hero .lead { color: rgba(255,255,255,.88); }
  .hero-statement { margin-top: 1.2rem; font-size: clamp(1.05rem, 4.6vw, 1.35rem); }
  .hero-audience { font-size: .95rem; }
  .hero .text-link { color: #fff; }
  h1 { max-width: 15ch; font-size: clamp(2.55rem, 10vw, 4.4rem); }
  h2 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
  .service-grid, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-intro-title { max-width: 15ch; font-size: clamp(2.8rem, 11vw, 4.6rem); line-height: .86; }
  .team-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .doctor-intro-card { padding: 1.2rem .2rem; border-right: 0; border-bottom: 1px solid rgba(29, 41, 38, .16); }
  .doctor-intro-card:last-child { border-bottom: 0; }
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 420px) {
  .brand { gap: .45rem; }
  .brand-logo { height: 3.5rem; max-width: 9.5rem; }
  .mobile-menu summary { padding: .45rem .65rem; font-size: .8rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .team-card { grid-template-columns: minmax(0, 1fr); }
  .team-card .team-portrait { width: 8.5rem; }
  .avatar-placeholder { width: 8.5rem; min-height: 9rem; }
  .team-photo-row { grid-template-columns: minmax(0, 1fr); }
  .team-photo-tile { width: min(100%, 20rem); margin-inline: auto; }
  .team-photo-placeholder { min-height: 12rem; }
  .site-footer nav { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
