:root {
  --navy: #0d2742;
  --navy-2: #163c61;
  --blue: #2367a4;
  --sky: #dce9f4;
  --paper: #f6f8fa;
  --white: #ffffff;
  --ink: #16202a;
  --muted: #5d6975;
  --line: #cbd5df;
  --gold: #b38a45;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(13, 39, 66, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
h1 { font-size: clamp(3.15rem, 7vw, 6.8rem); max-width: 980px; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.35rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 999; background: var(--white); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 250, .91); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(13, 39, 66, .12); }
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.12; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--serif); font-weight: 600; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; text-transform: uppercase; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.main-nav { display: flex; align-items: center; gap: 1.65rem; }
.main-nav a { text-decoration: none; font-size: .88rem; font-weight: 600; }
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { background: var(--navy); color: var(--white); padding: .65rem 1rem; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); }
.menu-button span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

.hero { position: relative; padding: 100px 0 0; overflow: hidden; background: linear-gradient(135deg, #f9fbfc 0%, #edf3f8 100%); border-bottom: 1px solid var(--line); }
.hero-lines { position: absolute; width: 720px; height: 720px; right: -170px; top: -190px; border: 1px solid rgba(35, 103, 164, .19); transform: rotate(45deg); }
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; inset: 90px; border: 1px solid rgba(35, 103, 164, .17); }
.hero-lines::after { inset: 180px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 5rem; }
.eyebrow, .section-index { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-lead { max-width: 760px; color: #3d4c59; font-size: 1.25rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 2rem 0 4.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .8rem 1.15rem; font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--white); background: var(--navy); }
.primary:hover { background: var(--blue); }
.text-button { padding-inline: 0; color: var(--navy); }
.text-button span { margin-left: .45rem; color: var(--blue); }
.hero-panel { position: relative; z-index: 2; padding: 2rem; color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.panel-number { color: #8eb5d8; font-size: .76rem; letter-spacing: .1em; }
.hero-panel p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; margin: 3.5rem 0; }
.panel-meta { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; display: flex; justify-content: space-between; color: #cbd9e5; font-size: .75rem; }
.trust-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.trust-strip span { padding: 1.25rem 1rem; border-right: 1px solid var(--line); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.trust-strip span:last-child { border-right: 0; }

.split-intro { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; }
.split-intro h2 { max-width: 850px; }
.large-copy { color: #344452; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.55; }
.practice-section { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 4rem; margin-bottom: 3.2rem; }
.section-heading h2 { margin-bottom: 0; max-width: 790px; }
.section-heading > p { color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice-card { min-height: 440px; padding: 2.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.practice-card.featured { background: var(--sky); }
.card-number { color: var(--blue); font-size: .76rem; font-weight: 700; }
.practice-card h3 { margin: 4rem 0 1rem; font-family: var(--serif); font-size: 2rem; }
.practice-card p { color: var(--muted); }
.practice-card ul { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.practice-card li { padding: .52rem 0; border-top: 1px solid rgba(13,39,66,.13); font-size: .9rem; }

.method { color: var(--white); background: var(--navy); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; }
.method-sticky { align-self: start; position: sticky; top: 130px; }
.eyebrow.light { color: #8eb5d8; }
.method-sticky p:last-child { color: #b9c8d5; max-width: 520px; }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps-list li { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.steps-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.steps-list li > span { color: #8eb5d8; font-size: .8rem; }
.steps-list h3 { margin-bottom: .5rem; }
.steps-list p { color: #b9c8d5; margin: 0; }

.brasilia { background: linear-gradient(90deg, #edf3f8 0 36%, var(--paper) 36%); }
.brasilia-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 7rem; }
.brasilia-title-block h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.service-list { margin-top: 3rem; }
.service-list div { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.service-list span { color: var(--blue); font-size: .75rem; font-weight: 700; }
.service-list p { margin: 0; font-weight: 600; }
.partner-note { color: var(--muted); font-size: .86rem; margin-top: 1.5rem; }

.diagnostics { background: var(--white); }
.section-heading.compact { margin-bottom: 2.5rem; }
.diagnostic-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnostic-row article { padding: 2rem 1.5rem 2.3rem; border-right: 1px solid var(--line); }
.diagnostic-row article:last-child { border-right: 0; }
.diagnostic-row span { color: var(--blue); font-size: .74rem; }
.diagnostic-row h3 { font-family: var(--serif); margin: 3rem 0 1rem; }
.diagnostic-row p { color: var(--muted); font-size: .9rem; }

.about { background: #e9eff4; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7rem; align-items: center; }
.monogram { position: relative; min-height: 510px; background: var(--navy); overflow: hidden; color: rgba(255,255,255,.08); font-family: var(--serif); font-size: 17rem; line-height: .8; }
.monogram span { position: absolute; }
.monogram span:first-child { left: -1rem; top: 2rem; }
.monogram span:last-child { right: -1rem; bottom: 1rem; }
.monogram::after { content: "Brasília"; position: absolute; bottom: 2rem; left: 2rem; color: var(--white); font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.about-copy h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
.about-copy > p { color: #465664; }
.credentials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.credentials span { border: 1px solid #afbdc9; padding: .5rem .75rem; font-size: .78rem; }

.contact { color: var(--white); background: var(--blue); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 7rem; align-items: center; }
.contact-panel { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.3); }
.contact-panel p { color: #e1edf7; }
.inverse { color: var(--navy); background: var(--white); margin: 1rem 0; }
.contact-panel small { display: block; color: #d6e6f3; font-size: .76rem; }

.site-footer { padding: 65px 0 30px; color: #c7d4df; background: #081a2c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .5fr; gap: 3rem; align-items: start; }
.footer-brand .brand-mark { background: var(--white); color: var(--navy); }
.footer-brand small { color: #8fa4b5; }
.footer-grid p { margin: 0 0 .3rem; font-size: .85rem; }
.footer-links { display: grid; gap: .4rem; }
.footer-links a { font-size: .85rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #8fa4b5; font-size: .76rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .menu-button { display: block; }
  .main-nav { position: absolute; display: none; top: 82px; left: 0; right: 0; padding: 1.2rem 20px 1.5rem; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .55rem 0; }
  .nav-cta { text-align: center; padding: .75rem 1rem !important; }
  .hero { padding-top: 70px; }
  .hero-grid, .split-intro, .section-heading, .method-grid, .brasilia-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-panel { max-width: 520px; margin-left: auto; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 0; }
  .method-sticky { position: static; }
  .brasilia { background: linear-gradient(180deg, #edf3f8 0 35%, var(--paper) 35%); }
  .diagnostic-row { grid-template-columns: repeat(2, 1fr); }
  .diagnostic-row article:nth-child(2) { border-right: 0; }
  .diagnostic-row article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .monogram { min-height: 360px; }
  .contact-panel { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 2rem; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand small { display: none; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.1rem); }
  .hero-lead { font-size: 1.08rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-button { justify-content: flex-start; }
  .hero-panel { margin-left: 0; }
  .trust-strip { width: 100%; grid-template-columns: 1fr; }
  .trust-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-card { padding: 1.6rem; }
  .practice-card h3 { margin-top: 2.5rem; font-size: 1.65rem; }
  .diagnostic-row { grid-template-columns: 1fr; }
  .diagnostic-row article { border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic-row article:last-child { border-bottom: 0; }
  .monogram { min-height: 300px; font-size: 12rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

:focus-visible { outline: 3px solid #d7a44f; outline-offset: 3px; }
