:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2f7;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #d8deea;
  --accent: #335c81;
  --accent-dark: #24435f;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.narrow { width: min(calc(100% - 2rem), 860px); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface-alt); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 222, 234, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text);
}
.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero-grid,
.two-column,
.contact-grid,
.service-grid,
.cards-grid,
.cta-box {
  display: grid;
  gap: 1.5rem;
}
.hero-grid { grid-template-columns: 1.25fr 0.9fr; align-items: center; }
.two-column { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.cards-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: 1fr 1fr; }
.cta-box { grid-template-columns: 1fr auto; align-items: center; }

.hero h1,
.page-header h1,
.section-heading h2,
.two-column h2,
.cta-box h2 {
  line-height: 1.15;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-heading h2,
.two-column h2,
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hero .lead,
.page-header .lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.button-secondary:hover { background: #fff; color: var(--accent-dark); }

.check-list,
.service-card ul,
.legal-text ul {
  padding-left: 1.1rem;
}
.check-list li,
.service-card li { margin-bottom: 0.45rem; }
.muted-list li { color: var(--muted); }
.section-heading { margin-bottom: 1.8rem; }
.section-cta { margin-top: 1rem; }
.text-link { font-weight: 700; }
.emphasis-card { background: linear-gradient(180deg, #fff 0%, #f7fafc 100%); }
.cta-section { padding-top: 0; }
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.legal-text h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal-text h2:first-child { margin-top: 0; }

.profile-figure {
  padding: 0;
  overflow: hidden;
}
.profile-figure img,
.profile-mini img,
.contact-profile-card img {
  width: 100%;
  height: auto;
  display: block;
}
.profile-figure figcaption {
  padding: 1rem 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.profile-grid { align-items: stretch; }
.profile-side {
  display: grid;
  gap: 1.2rem;
}
.profile-mini {
  padding: 0;
  overflow: hidden;
}
.contact-grid-enhanced {
  grid-template-columns: 1fr 1fr 0.9fr;
  align-items: start;
}
.contact-profile-card {
  padding: 0;
  overflow: hidden;
}
.contact-profile-text {
  padding: 1rem 1.2rem 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.footer-inner p,
.footer-inner a { color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .contact-grid,
  .contact-grid-enhanced,
  .service-grid,
  .cards-grid,
  .cta-box {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
  }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .service-grid,
  .cards-grid,
  .cta-box,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .cards-grid { gap: 1rem; }
  .footer-inner { justify-items: start; }
  .section { padding: 3.5rem 0; }
}
