/* ===== Design tokens ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f6f7f9;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e40af;
  --color-card: #ffffff;
  --color-navy: #0f1b3d;
  --max-width: 1120px;
  --radius: 16px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin: 1.25rem 0 0.5rem;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 800px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section { padding: 5rem 0; }
.section-muted { background: var(--color-bg-muted); }

.section-lead {
  max-width: 720px;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-text-muted); }

.btn-light {
  background: #fff;
  color: var(--color-navy);
}
.btn-light:hover { background: #e8edf8; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--color-text); }

.site-nav .nav-cta {
  color: #fff;
  background: var(--color-primary);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
}
.site-nav .nav-cta:hover { background: var(--color-primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 6.5rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(29, 78, 216, 0.07), transparent),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hero h1 { max-width: 820px; }

.hero-sub {
  max-width: 660px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.two-col { grid-template-columns: repeat(2, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card p { color: var(--color-text-muted); font-size: 0.97rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.service-card li {
  padding-left: 1.1rem;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-step {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.process-step p { color: var(--color-text-muted); font-size: 0.95rem; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== About ===== */
.about-callout {
  margin-top: 2.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.about-callout p { color: var(--color-text-muted); font-size: 0.97rem; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 { color: #fff; }

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

/* ===== Contact form ===== */
.contact-form { margin-top: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-field textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.footer-brand { max-width: 380px; }
.footer-brand p { font-size: 0.95rem; margin-top: 1rem; }

.logo-light { color: #fff; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: #fff; }

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0 4rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  .four-col,
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-card ul { grid-template-columns: 1fr; }
}
