/* Dra. Bruna Proença - Design System (Navy + Marrom + Creme + Off-white) */

:root {
  --primary: #103A5C;
  --primary-dark: #0A2A43;
  --primary-light: #DCE6EE;
  --primary-50: #F0F4F8;
  --accent: #2C7A9E;
  --accent-light: #A9CEDD;
  --ink: #102A40;
  --ink-2: #3C4F5E;
  --muted: #6B7682;
  --line: #E6EAEF;
  --line-strong: #CBD4DD;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --bg-card: #FFFFFF;
  --warn: #B5470F;
  --success: #2E7D6B;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14,34,51,.05), 0 1px 3px rgba(14,34,51,.07);
  --shadow-md: 0 6px 18px -8px rgba(14,34,51,.16), 0 2px 6px rgba(14,34,51,.07);
  --shadow-lg: 0 24px 48px -16px rgba(14,34,51,.20), 0 4px 12px rgba(14,34,51,.09);
  --shadow-blue: 0 12px 32px -8px rgba(4,38,63,.32);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1200px;
  --section-pad: 96px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 0 12px rgba(4,38,63,.5);
  transition: width .1s ease-out;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

p { color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.section { padding: var(--section-pad) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { height: 64px; padding: 0 40px; font-size: 14px; }

/* Section header */
.s-head {
  text-align: center; max-width: 760px; margin: 0 auto 64px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.s-head p { font-size: 18px; color: var(--muted); }

/* Section header — split (esq/dir) */
.s-head--split {
  text-align: left; max-width: 1040px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end;
}
.s-head--split h2 { text-align: left; }
.s-head--split p { text-align: left; max-width: none; }
@media (max-width: 880px) {
  .s-head--split { grid-template-columns: 1fr; gap: 18px; }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

/* Density */
body[data-density="compact"] { --section-pad: 64px; }
body[data-density="comfy"] { --section-pad: 128px; }

body[data-typo="modern"] {
  --font-display: 'DM Serif Display', Georgia, serif;
}
body[data-typo="clean"] {
  --font-display: 'Manrope', system-ui, sans-serif;
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --gutter: 20px; }
  .s-head { margin-bottom: 40px; }
}
