:root {
  color-scheme: light;
  --paper: #faf5ef;
  --white: #fffaf5;
  --ink: #302521;
  --muted: #66534c;
  --accent: #794941;
  --soft: #f1e2da;
  --line: #dcc9bf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--white); padding: 8px 16px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 80px; }
.brand img { display: block; width: 132px; height: auto; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; width: fit-content; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 6px; font-size: 14px; font-weight: 650; }
.outline, .text-link { color: var(--accent); }
.outline:hover { background: var(--soft); }
.primary { color: var(--white); background: var(--accent); }
.primary:hover { background: #603a34; }
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 6vw, 84px); }
.eyebrow, .number { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: 20px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; }
h1 { max-width: 10ch; margin-block: 18px 24px; font-size: clamp(54px, 7.7vw, 108px); letter-spacing: -.065em; line-height: .95; }
h1 em { color: var(--accent); font-weight: 400; }
.lead { max-width: 38ch; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; margin-top: 26px; }
.text-link { font-size: 14px; font-weight: 650; }
.hero-portrait { justify-self: center; width: min(100%, 390px); padding: 10px; background: #f0ddd2; border: 1px solid var(--line); border-radius: 6px; }
.hero-portrait img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hero-portrait figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.hero-portrait strong { margin-right: 8px; color: var(--ink); }
.section, .about { padding-block: 76px; }
#servicos, #sobre, .footer { border-top: 1px solid var(--line); }
.section-intro, .about-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 32px; }
.section-intro { margin-bottom: 30px; }
h2 { margin-top: 9px; font-size: clamp(37px, 4.5vw, 57px); letter-spacing: -.05em; }
h3 { font-size: 26px; letter-spacing: -.025em; }
.section-intro > p, .services article p:last-child, .difference-grid p, .about-copy, .contact p:not(.eyebrow), .case-total, .case-note, .case-stats dt { color: var(--muted); }
.services, .difference-grid, .journey, .case-stats { display: grid; gap: 12px 26px; }
.services, .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.difference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services article, .difference-grid article, .journey li, .case-stats div { border-top: 1px solid var(--line); padding: 18px 0; }
.services h3 { margin: 9px 0; }
.difference-grid h3 { margin-bottom: 7px; }
.services article p:last-child, .difference-grid p { font-size: 15px; }
.soft-band, #caso { background: var(--soft); }
.journey { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: journey; list-style: none; padding: 0; margin: 0; }
.journey li { font-size: 14px; font-weight: 600; }
.journey li::before { counter-increment: journey; content: counter(journey, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--accent); font-size: 11px; }
.case-total strong, .case-stats dd { color: var(--accent); font: 36px/1 var(--serif); }
.case-stats { margin: 18px 0; }
.case-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.case-stats dd { margin: 0 0 7px; }
.case-stats dt, .case-note { font-size: 14px; }
.about-copy p + p { margin-top: 12px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 26px; border-radius: 8px; background: #efdcd2; padding: 38px; }
.contact p:not(.eyebrow) { margin-top: 12px; }
.contact-channels { display: grid; justify-items: end; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.footer { padding-block: 22px 30px; color: var(--muted); font-size: 13px; }
.footer .brand img { width: 105px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand img { width: 100px; }
  nav { gap: 14px; font-size: 13px; }
  .header-button { display: none; }
  .hero { padding: 38px 0 52px; }
  .hero-grid, .section-intro, .about-grid, .services, .difference-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-grid { gap: 30px; }
  .hero-portrait { width: min(100%, 325px); }
  .lead { font-size: 17px; }
  .section, .about { padding-block: 48px; }
  .section-intro { margin-bottom: 21px; }
  .journey, .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { padding: 24px; }
  .footer { flex-wrap: wrap; }
}
.governance { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); align-items: center; }
.governance figure { width: min(100%, 420px); }
.governance img { display: block; width: 100%; height: auto; border-radius: 8px; }
.governance h3 { margin: 8px 0 12px; color: var(--ink); font-size: clamp(28px, 3vw, 38px); }
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 16px 0; color: var(--accent); font-weight: 650; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq-list p { padding: 0 0 16px; color: var(--muted); }
@media (max-width: 640px) { .faq { grid-template-columns: 1fr; gap: 16px; } nav { gap: 8px; flex-wrap: wrap; justify-content: flex-end; } }

.services article { padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }

#nossa-historia {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-block: clamp(64px, 8vw, 112px);
}

#nossa-historia .about-grid {
  align-items: start;
}

.contact-channels a[href="mailto:santeassessoriamedica@gmail.com"] {
  white-space: nowrap;
  font-size: clamp(12px, 3.4vw, 14px);
}

@media (max-width: 900px) {
  .contact-channels { align-self: stretch; }
}
