/* ============================================================
   Venno Diagnósticos — Humanistic redesign
   Warm, calm, focus on environment + immediate report
   ============================================================ */

:root {
  /* Brand — warmer */
  --brand:        oklch(0.46 0.11 254);   /* Venno blue, slightly softer */
  --brand-deep:   oklch(0.26 0.07 256);   /* warm navy */
  --brand-soft:   oklch(0.94 0.02 244);
  --accent:       oklch(0.68 0.13 45);    /* terracotta — warmth */
  --accent-soft:  oklch(0.93 0.04 60);    /* peach wash */

  /* Neutrals — warm cream */
  --ink:          oklch(0.22 0.025 60);
  --ink-2:        oklch(0.38 0.018 60);
  --muted:        oklch(0.54 0.015 65);
  --line:         oklch(0.90 0.015 75);
  --line-2:       oklch(0.84 0.018 70);
  --bg:           oklch(0.985 0.013 82);  /* cream */
  --surface:      oklch(0.96 0.018 78);
  --surface-2:    oklch(0.94 0.022 76);

  /* Type */
  --font-serif: "Source Serif 4", ui-serif, Georgia, serif;
  --font-sans:  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* type */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow.muted { color: var(--muted); }
.eyebrow .dot { color: var(--ink-2); margin: 0 .35em; opacity: .5; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
p  { margin: 0; }
.lede {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 54ch;
}
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ====================== Top utility ====================== */
.util {
  background: var(--brand-deep);
  color: oklch(0.92 0.018 70);
  font-size: 12.5px;
}
.util .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 24px;
}
.util a:hover { color: white; }
.util-left, .util-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.util-item { display: inline-flex; align-items: center; gap: 8px; }
.util-item svg { width: 13px; height: 13px; opacity: .8; }
.util .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  color: oklch(0.93 0.06 60);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.util .badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent);
  animation: gentle 2.2s var(--ease) infinite;
}
@keyframes gentle {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.15); opacity: .8; }
}
.util .sep {
  width: 1px; height: 14px;
  background: oklch(0.55 0.04 256);
  opacity: .35;
}

/* ====================== Header ====================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  gap: 32px;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px; height: 34px;
  background: var(--brand);
  display: grid; place-items: center;
  border-radius: 50%;
  color: white;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  align-self: center;
}
.brand .sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  align-self: center;
}
nav.primary {
  display: flex;
  gap: 2px;
  align-items: center;
}
nav.primary a {
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
nav.primary a:hover { color: var(--ink); background: var(--surface); }
nav.primary a.current { color: var(--ink); }

/* version switcher */
.version-switch {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 30px -16px oklch(0.30 0.05 60 / .35);
  font-size: 12.5px;
}
.version-switch a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.version-switch a.active {
  background: var(--brand-deep);
  color: white;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 1px 0 oklch(0.40 0.10 254) inset, 0 8px 20px -10px oklch(0.46 0.11 254 / .6);
}
.btn-primary:hover { background: oklch(0.42 0.12 254); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-warm {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-warm:hover { background: oklch(0.62 0.13 45); }
.btn-lg { padding: 15px 26px; font-size: 15px; }

/* ====================== Hero ====================== */
.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 26px; display: inline-block; }
.hero-headline {
  margin-bottom: 44px;
  padding-bottom: 4px;
}
.hero-lede { margin-bottom: 36px; }
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 50px;
  align-items: center;
}
.hero-ctas .secondary-note {
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
  line-height: 1.45;
  max-width: 200px;
}

.hero-promise {
  display: flex; gap: 14px;
  align-items: center;
  padding: 18px 22px;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  max-width: 520px;
  box-shadow: 0 10px 30px -22px oklch(0.30 0.05 60 / .35);
}
.hero-promise .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-promise .icon svg { width: 22px; height: 22px; }
.hero-promise .text { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.hero-promise .text b { font-weight: 600; }
.hero-promise .text small { display:block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stamp {
  position: absolute;
  left: -28px; bottom: 38px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  box-shadow: 0 16px 40px -16px oklch(0.45 0.12 45 / .6);
  transform: rotate(-8deg);
  padding: 18px;
}
.hero-stamp b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero-stamp i {
  display: block;
  font-size: 11px;
  font-style: normal;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
  opacity: .85;
}

/* ====================== Sections ====================== */
section { padding: clamp(72px, 9vw, 120px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 72px);
  align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head .desc { max-width: 56ch; color: var(--ink-2); }

/* ====================== Promise section ====================== */
.promise {
  background: var(--surface);
  border-radius: 28px;
  margin: 0 var(--gutter);
}
.promise-inner {
  padding: clamp(48px, 6vw, 88px) clamp(36px, 5vw, 72px);
}
.promise-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.promise-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}
.promise-head .desc { color: var(--ink-2); max-width: 50ch; font-size: 16px; line-height: 1.65; }
.promise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.promise-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 32px 30px 36px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.promise-card .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.promise-card .ico svg { width: 24px; height: 24px; }
.promise-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.promise-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.promise-card .tag {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ====================== Environment / Ambiente ====================== */
.ambient .gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px;
}
.ambient .ph {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.ambient .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ambient .ph.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
  z-index: 1;
}
.ambient .ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--surface) 0 12px,
    var(--surface-2) 12px 24px
  );
}
.ambient .ph.has-img::before { display: none; }
.ambient .ph .cap {
  position: absolute;
  left: 18px; bottom: 18px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  z-index: 2;
}
.ambient .ph-tall { grid-row: 1 / 3; }

.ambient-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  flex-wrap: wrap; gap: 12px;
}
.ambient-foot p { font-size: 14.5px; color: var(--ink-2); max-width: 56ch; }

/* ====================== Exams ====================== */
.exams .exams-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.exam-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), padding .25s var(--ease);
}
.exam-row:hover { background: var(--surface); padding-left: 18px; padding-right: 0px; }
.exam-row .num {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.exam-row .body { display: flex; flex-direction: column; gap: 4px; }
.exam-row .name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}
.exam-row .cat {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-2);
}
.exam-row .arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.exam-row:hover .arrow { background: var(--brand); border-color: var(--brand); color: white; }

/* ====================== Doctor ====================== */
.doctor {
  background: var(--brand-deep);
  color: oklch(0.94 0.018 70);
}
.doctor-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.doctor-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: oklch(0.32 0.07 256);
  position: relative;
  overflow: hidden;
  border: 1px solid oklch(0.40 0.07 256);
}
.doctor-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doctor-portrait.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.18 0.05 256 / .55) 100%);
  pointer-events: none;
}
.doctor-portrait .ph {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(0.34 0.07 256) 0 14px,
    oklch(0.30 0.07 256) 14px 28px
  );
}
.doctor-portrait .ph-label {
  position: absolute; left: 18px; bottom: 18px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.95 0.02 65);
  background: oklch(0.20 0.05 256 / .7);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid oklch(0.55 0.05 256 / .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doctor h2 { color: white; }
.doctor h2 .serif-em { color: var(--accent); }
.doctor .pull {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  font-style: italic;
  color: oklch(0.92 0.025 70);
  margin: 28px 0 28px;
  max-width: 30ch;
  letter-spacing: -0.01em;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}
.doctor .bio {
  font-family: var(--font-sans);
  color: oklch(0.82 0.02 70);
  margin-bottom: 30px;
  max-width: 56ch;
  font-size: 15.5px;
}
.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  border-top: 1px solid oklch(0.42 0.07 256 / .6);
  padding-top: 26px;
}
.cred {
  display: flex; flex-direction: column; gap: 4px;
}
.cred .k {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.72 0.04 70);
}
.cred .v {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.005em;
}

/* ====================== Process ====================== */
.process .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface);
  border-radius: 18px;
  padding: 36px 32px 38px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  position: relative;
  border: 1px solid var(--line);
}
.step.featured {
  background: oklch(0.94 0.04 60);
  border-color: oklch(0.85 0.06 55);
}
.step .num {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}
.step .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--brand);
}
.step.featured .icon { background: var(--accent); color: white; border-color: var(--accent); }
.step .icon svg { width: 20px; height: 20px; }
.step h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.step .featured-tag {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* ====================== Location ====================== */
.location-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.location-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.location-card h2 { font-size: clamp(28px, 2.8vw, 38px); }
.location-card .lede { font-size: 15.5px; }
.loc-rows {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 12px;
}
.loc-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
}
.loc-row:first-of-type { border-top: 0; padding-top: 4px; }
.loc-row .k {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.loc-row .v { font-size: 15px; line-height: 1.6; color: var(--ink); }
.loc-row .v b { font-weight: 600; }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 480px;
  background: var(--surface-2);
}
.map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ====================== Footer ====================== */
.footer {
  background: var(--brand-deep);
  color: oklch(0.86 0.018 70);
  padding: 72px 0 32px;
  margin-top: 48px;
}
.footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid oklch(0.42 0.07 256 / .5);
}
.footer .brand-block .mark {
  width: 44px; height: 44px;
  background: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 22px;
}
.footer .brand-block h3 {
  color: white;
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 400;
}
.footer .brand-block p { font-size: 14.5px; line-height: 1.65; max-width: 36ch; color: oklch(0.78 0.025 70); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul li, .footer ul a { font-size: 14px; color: oklch(0.82 0.02 70); }
.footer ul a:hover { color: white; }
.footer .meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: oklch(0.72 0.02 70);
  flex-wrap: wrap; gap: 12px;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6);
  z-index: 100;
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* Density tweaks */
[data-density="comfy"] section { padding: clamp(88px, 11vw, 150px) 0; }
[data-density="comfy"] .hero { padding: clamp(80px, 12vw, 150px) 0 clamp(72px, 10vw, 120px); }
[data-density="compact"] section { padding: clamp(44px, 6vw, 80px) 0; }
[data-density="compact"] .hero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 6vw, 70px); }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .promise-head { grid-template-columns: 1fr; }
  .promise-cards { grid-template-columns: 1fr; }
  .ambient .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; height: 720px; }
  .ambient .ph-tall { grid-row: 1 / 2; grid-column: 1 / 3; }
  .section-head { grid-template-columns: 1fr; }
  .doctor-inner { grid-template-columns: 1fr; }
  .doctor-portrait { aspect-ratio: 5 / 4; }
  .creds { grid-template-columns: 1fr 1fr; }
  .location-inner { grid-template-columns: 1fr; }
  .exams .exams-list { grid-template-columns: 1fr; }
  .process .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  nav.primary { display: none; }
}
@media (max-width: 720px) {
  .util .util-right .util-item:not(.hours), .util-left .util-item:not(.hours) { display: none; }
  .util .badge { display: none; }
  .ambient .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5, 1fr); height: auto; }
  .ambient .ph { aspect-ratio: 4 / 3; height: auto; }
  .ambient .ph-tall { grid-row: 1 / 2; grid-column: 1; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
  .header .container { height: 68px; }
  .brand .sub { display: none; }
  .creds { grid-template-columns: 1fr; }
  .hero-stamp { left: 16px; bottom: 16px; transform: rotate(-6deg) scale(.85); }
  .version-switch { font-size: 11.5px; }
  .version-switch a { padding: 6px 11px; }
}

/* ============================================================
   INTERNAL PAGE PATTERNS
   For: Quem Somos, Exames, Contato, Ambientes, exam pages, ASP
   ============================================================ */

.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(28px, 4vw, 48px);
  position: relative;
  background: var(--bg);
}
.page-hero .crumbs {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.page-hero .crumbs a { color: var(--ink-2); }
.page-hero .crumbs a:hover { color: var(--brand); }
.page-hero .crumbs .sep { opacity: .5; }
.page-hero .crumbs .current { color: var(--ink); font-weight: 500; }

.page-hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 22px;
}
.page-hero .page-lede {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
}
.page-hero .actions {
  display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap;
}

.page-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ── Content layout: main + sidebar ───────────────────────── */
.content-wrap {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 110px);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

/* ── Prose (long-form text) ──────────────────────────────── */
.prose {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 1.4em;
  margin-bottom: 0.3em;
  font-weight: 500;
}
.prose .lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.2em;
}
.prose .lead::first-letter {
  font-size: 1.8em;
  font-family: var(--font-serif);
  float: left;
  line-height: 0.9;
  padding: 0.08em 0.12em 0 0;
  color: var(--brand);
  font-weight: 500;
}
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--brand);
  border-bottom: 1px solid color-mix(in oklch, var(--brand) 30%, transparent);
  transition: border-color .2s var(--ease);
}
.prose a:hover { border-bottom-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose blockquote, .prose .pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 1.6em 0;
  letter-spacing: -0.01em;
}
.prose figure {
  margin: 1.6em 0;
}
.prose figure img {
  width: 100%; height: auto;
  border-radius: var(--radius-sm);
  display: block;
}
.prose figure figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Article hero image ──────────────────────────────────── */
.article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 3vw, 40px);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Sidebar card ────────────────────────────────────────── */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 10px;
}
.sidebar-card .group + .group {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.sidebar-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.sidebar-card .contact-rows {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px;
}
.sidebar-card .contact-rows a, .sidebar-card .contact-rows span {
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-card .contact-rows a:hover { color: var(--brand); }
.sidebar-card .contact-rows svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.sidebar-card .cta {
  display: block;
  text-align: center;
  background: var(--brand);
  color: white;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .2s var(--ease);
}
.sidebar-card .cta:hover { background: oklch(0.42 0.12 254); }

/* ── Exams list page ─────────────────────────────────────── */
.exam-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.exam-catalog .exam-card {
  background: var(--bg);
  padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  transition: background .2s var(--ease);
  position: relative;
}
.exam-catalog .exam-card:hover { background: var(--surface); }
.exam-catalog .exam-card .num {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.exam-catalog .exam-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.exam-catalog .exam-card .desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.exam-catalog .exam-card .meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.exam-catalog .exam-card .cat {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.exam-catalog .exam-card .arr {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.exam-catalog .exam-card:hover .arr { background: var(--brand); border-color: var(--brand); color: white; }

/* ── Ambientes page large gallery ────────────────────────── */
.ambient-page-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.ambient-page-grid .a-img {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.ambient-page-grid .a-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ambient-page-grid .a-img .cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  z-index: 2;
}
.ambient-page-grid .a-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.ambient-page-grid .span-3 { grid-column: span 3; grid-row: span 2; }
.ambient-page-grid .span-2 { grid-column: span 2; }
.ambient-page-grid .span-2-tall { grid-column: span 2; grid-row: span 2; }
.ambient-page-grid .span-4 { grid-column: span 4; }

/* ── Contact form / map ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-info .info-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-info .info-row .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-info .info-row .ico svg { width: 20px; height: 20px; }
.contact-info .info-row .k {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info .info-row .v {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--font-sans);
}
.contact-info .info-row .v b { font-weight: 600; }
.contact-info .info-row .v a:hover { color: var(--brand); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 520px;
  background: var(--surface-2);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* ── ASP / Admin form styles ─────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.form-card h2 { margin-bottom: 12px; }
.form-card .form-sub {
  font-size: 15px; color: var(--ink-2); margin-bottom: 32px;
}
.form-card label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-card .field {
  margin-bottom: 18px;
}
.form-card input[type=text],
.form-card input[type=password],
.form-card input[type=email],
.form-card input[type=date],
.form-card input[type=number],
.form-card select,
.form-card textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 12%, transparent);
}
.form-card .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-card .actions {
  display: flex; gap: 10px; margin-top: 24px; align-items: center;
  flex-wrap: wrap;
}
.form-card button[type=submit],
.form-card input[type=submit] {
  background: var(--brand);
  color: white;
  border: 0;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s var(--ease);
}
.form-card button[type=submit]:hover,
.form-card input[type=submit]:hover { background: oklch(0.42 0.12 254); }
.form-card .alt-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
}
.form-card .alt-btn:hover { border-color: var(--ink-2); }

/* Admin shortcuts list */
.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 8px;
}
.admin-actions a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  transition: border-color .15s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.admin-actions a:hover {
  background: var(--bg);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.admin-actions .step {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.admin-actions h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.admin-actions p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.admin-actions .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--brand);
  margin-bottom: 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .exam-catalog { grid-template-columns: 1fr; }
  .ambient-page-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
  .ambient-page-grid .span-3 { grid-column: span 4; }
  .ambient-page-grid .span-2-tall { grid-column: span 2; }
  .ambient-page-grid .span-4 { grid-column: span 4; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-actions { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ambient-page-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .ambient-page-grid > * { grid-column: span 2 !important; grid-row: span 1 !important; }
  .form-card .row-2 { grid-template-columns: 1fr; }
}

