:root {
  --black:   #0d0d0d;
  --white:   #f5f4f0;
  --accent:  #1a4f8a;
  --accent2: #2d7dd2;
  --muted:   #6b7280;
  --border:  #e2e1dc;
  --card-bg: #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1100px;
  --section-gap: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  font-size: 1rem;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-gap) 0;
}

/* ── Navigation ──────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: #3a3a3a;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,79,138,0.25);
}

.btn-primary:hover {
  background: #163f70;
  box-shadow: 0 4px 16px rgba(26,79,138,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: #bbb;
  background: rgba(0,0,0,0.03);
}

/* ── Section headings ────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Services ────────────────────────────────── */
#services {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-intro {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 4px 24px rgba(26,79,138,0.08);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── About ───────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-lead {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Credentials / highlights ────────────────── */
#credentials {
  background: var(--accent);
  color: #fff;
}

#credentials .section-tag { color: rgba(255,255,255,0.6); }
#credentials .section-title { color: #fff; }
#credentials .section-lead { color: rgba(255,255,255,0.75); max-width: 640px; }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cred-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1.75rem;
}

.cred-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cred-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ── Contact ─────────────────────────────────── */
#contact {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.contact-row .label {
  font-weight: 600;
  min-width: 80px;
  color: var(--black);
}

.contact-row .value {
  color: var(--muted);
}

.contact-cta {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}

.contact-cta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-cta p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.contact-email-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

/* ── Legal page ──────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.legal-page p, .legal-page address {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  font-style: normal;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }
}
