:root {
  /* Brand palette */
  --navy: #000080;
  --slate: #708090;
  --blue: #0000ff;
  --white: #ffffff;
  /* Tints & shades derived from the palette */
  --navy-dark: #00005c;
  --ink: var(--navy);
  --muted: #4f5d6b;        /* darkened slate for readable body text */
  --line: #d4d9de;         /* light slate */
  --tint: #f0f2f4;         /* very light slate for alternating sections */
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 128, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Merriweather", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-small { padding: 0.45em 1.1em; font-size: 0.95rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 44px; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.nav-toggle, .nav-toggle-label { display: none; }

/* Hero */
.hero { background: var(--tint); padding: 90px 0 80px; }
.hero-inner { max-width: 820px; }
.hero h1 em { color: var(--blue); font-style: normal; box-shadow: inset 0 -0.3em 0 rgba(0, 0, 255, 0.18); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero { background: var(--tint); padding: 64px 0 48px; }
.page-hero .lead { margin-bottom: 0; }
.page-body { padding: 56px 20px 64px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--tint); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-bottom: 28px; }
/* Cards share their grid's rows (subgrid), so icons, titles, text and buttons
   line up across a row even when one card's title wraps to two lines. */
.card {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.card h3 { font-size: 1.08rem; margin: 0 0 8px; align-self: start; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; line-height: 1.6; }
.card-link { text-decoration: none; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 6px 18px rgba(0, 0, 128, 0.12); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--tint); font-size: 1.6rem; line-height: 1;
}
.card-more {
  justify-self: start; align-self: end; margin-top: 20px; padding: 0.45em 1.1em;
  border: 2px solid var(--navy); border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--navy);
  transition: background 0.15s, color 0.15s;
}
a.card:hover .card-more { background: var(--navy); color: var(--white); }

/* Websites page */
.breadcrumb { font-size: 0.95rem; margin: 0 0 12px; }
.breadcrumb a { text-decoration: none; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 0 0 56px; }
.value-grid h3 { font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.split .checklist { margin-top: 8px; }
.service-people { margin-top: 56px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.client-logo { height: 110px; display: flex; align-items: center; margin-bottom: 18px; }
.client-logo img { max-height: 110px; max-width: 100%; width: auto; }
.client-card h3 { margin-bottom: 4px; }
.client-url { font-size: 0.95rem; margin: 0 0 12px !important; }
.client-url a { color: var(--blue); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 0.8rem; display: grid; place-items: center;
}

/* About */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.team-heading { margin-top: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
/* Same subgrid trick as .card: photo, name, role tags and bio line up per row. */
.team-card {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  text-align: center; padding: 28px 24px 26px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.team-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.team-card .role-tags { display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 6px; margin-bottom: 18px; }
.role-tag {
  padding: 0.2em 0.75em; border-radius: 999px;
  background: var(--tint); color: var(--navy);
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.team-card .bio { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 2rem; }

/* Services */
.service-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.service-jump a { padding: 0.4em 1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.service-jump a:hover { border-color: var(--blue); }
.service-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.steps { padding-left: 1.3em; max-width: 720px; }
.steps li { margin-bottom: 10px; }

/* CTA */
.cta { background: var(--blue); color: var(--white); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: var(--white); }
.cta p { margin: 0; max-width: 600px; opacity: 0.9; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0 0 0.5em; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); }
.footer-heading { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: block; width: 32px; height: 32px; cursor: pointer; position: relative;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 4px; width: 24px; height: 2px; background: var(--ink); content: "";
  }
  .nav-toggle-label span { top: 15px; }
  .nav-toggle-label span::before { top: -7px; left: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; }
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: var(--white); padding: 20px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero { padding: 60px 0; }
  .why, .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
