:root {
  --color-ink: #182033;
  --color-muted: #687083;
  --color-primary: #2952a3;
  --color-primary-dark: #183a78;
  --color-accent: #d7aa4b;
  --color-bg: #ffffff;
  --color-soft: #f4f7fb;
  --color-card: #ffffff;
  --shadow: 0 24px 70px rgba(24, 32, 51, 0.12);
  --radius: 24px;
  --max-width: 1180px;
  --font: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--color-muted); margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 1rem; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; }
h3 { font-size: 1.35rem; }

.container { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 96px 0; }
.section-light { background: var(--color-soft); }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--color-ink); color: white; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24,32,51,0.08);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), #67a1ff); color: white; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(41,82,163,0.25); }
.site-nav { display: flex; align-items: center; gap: 28px; font-weight: 650; }
.site-nav a { color: var(--color-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { padding: 10px 18px; border: 1px solid rgba(41,82,163,0.22); border-radius: 999px; color: var(--color-primary) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: var(--color-ink); margin: 5px 0; }

.hero { overflow: hidden; background: radial-gradient(circle at top right, rgba(41,82,163,0.14), transparent 34%), linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.hero-grid, .split-grid, .contact-grid, .story-grid, .cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-copy { max-width: 680px; }
.eyebrow { color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #4f586d; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--color-primary); background: var(--color-primary); color: white; font-weight: 800; box-shadow: 0 14px 30px rgba(41,82,163,0.22); cursor: pointer; }
.button:hover { background: var(--color-primary-dark); }
.button-secondary { background: transparent; color: var(--color-primary); box-shadow: none; }
.button-secondary:hover { background: #edf3ff; }
.text-link { color: var(--color-primary); font-weight: 800; }

.hero-card { position: relative; min-height: 520px; border-radius: 36px; padding: 26px; background: linear-gradient(135deg, #f7f0dc, #eef5ff); box-shadow: var(--shadow); }
.image-placeholder, .image-panel, .portrait-placeholder {
  min-height: 360px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(24,32,51,0.65), rgba(41,82,163,0.5)), url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="900" height="700" viewBox="0 0 900 700"%3E%3Cdefs%3E%3ClinearGradient id="g" x1="0" x2="1" y1="0" y2="1"%3E%3Cstop stop-color="%232952a3"/%3E%3Cstop offset="1" stop-color="%23d7aa4b"/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width="900" height="700" fill="url(%23g)"/%3E%3Ccircle cx="690" cy="140" r="170" fill="%23fff" opacity=".16"/%3E%3Ccircle cx="210" cy="520" r="240" fill="%23fff" opacity=".12"/%3E%3Cpath d="M120 430 C260 280 340 490 460 330 S650 210 780 280" fill="none" stroke="%23fff" stroke-width="24" opacity=".35"/%3E%3C/svg%3E') center/cover;
}
.hero-card .image-placeholder { min-height: 100%; }
.stat-card { position: absolute; top: 42px; left: -28px; z-index: 2; width: 210px; padding: 20px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.stat { display: block; color: var(--color-accent); font-size: 3rem; line-height: 1; font-weight: 900; }

.section-heading { max-width: 760px; margin-bottom: 38px; }
.cards { display: grid; gap: 24px; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .service-card, .values-grid article, .contact-panel, .contact-form, .mini-card {
  background: var(--color-card);
  border: 1px solid rgba(24,32,51,0.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 18px 50px rgba(24,32,51,0.07);
}
.card-icon { display: inline-flex; color: var(--color-accent); font-weight: 900; margin-bottom: 24px; }
.service-card ul, .check-list, .contact-list { padding-left: 1.2rem; color: var(--color-muted); }
.service-card li, .check-list li, .contact-list li { margin: 0.4rem 0; }

.testimonial-section { background: var(--color-ink); color: white; text-align: center; }
.testimonial-section p, .testimonial-section .eyebrow { color: rgba(255,255,255,0.72); }
blockquote { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; letter-spacing: -0.04em; font-weight: 700; }
.quote-author { margin-top: 24px; }

.page-hero { background: linear-gradient(180deg, #fff, #f7faff); }
.story-grid { align-items: start; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cta-band { background: linear-gradient(135deg, #f7f0dc, #eff5ff); }
.cta-grid { align-items: center; }
.cta-grid .button { justify-self: end; }

.contact-grid { align-items: start; }
.contact-panel { height: 100%; }
.contact-list { list-style: none; padding: 0; }
.contact-list a { color: var(--color-primary); font-weight: 700; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { font-weight: 800; }
input, textarea { width: 100%; border: 1px solid rgba(24,32,51,0.14); border-radius: 16px; padding: 14px 16px; font: inherit; color: var(--color-ink); background: white; }
input:focus, textarea:focus { outline: 3px solid rgba(41,82,163,0.16); border-color: var(--color-primary); }
.form-note { font-size: 0.92rem; margin: 0; }

.site-footer { background: #101827; color: white; padding: 56px 0 28px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 36px; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; }
.footer-brand { color: white; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 22px; color: rgba(255,255,255,0.66); font-size: 0.95rem; }
.footer-bottom a { display: inline; color: white; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero-grid, .split-grid, .contact-grid, .story-grid, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .three-col, .two-col, .values-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .stat-card { left: 18px; top: 18px; }
  .cta-grid .button { justify-self: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 82px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .nav-cta { border-radius: 14px; }
  .container { width: min(100% - 28px, var(--max-width)); }
  h1 { font-size: clamp(2.3rem, 13vw, 3.5rem); }
  .button { width: 100%; }
  .hero-card { min-height: 330px; padding: 18px; }
  .image-placeholder, .image-panel, .portrait-placeholder { min-height: 280px; }
}
