:root {
  --color-navy: #0a2540;
  --color-navy-dark: #061a2e;
  --color-accent: #2563eb;
  --color-text: #1f2933;
  --color-text-muted: #52606d;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-border: #e2e8f0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.2;
  margin-top: 0;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  font-size: 1.1rem;
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.primary-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
}

/* Hero */

.hero {
  padding: 4rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo.photo-fallback img {
  visibility: hidden;
}

.hero-photo.photo-fallback {
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.hero-text h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.lead {
  max-width: 60ch;
  color: var(--color-text-muted);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
}

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

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

/* Sections */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 65ch;
}

/* Services cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Certifications */

.cert-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 6px;
}

.cert-name {
  font-weight: 600;
  color: var(--color-navy);
}

.cert-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Contact */

.contact-inner {
  text-align: center;
}

.contact-links {
  margin-top: 1rem;
}

.contact-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: none;
  }

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .lead {
    max-width: none;
  }
}
