:root {
  --navy: #17324a;
  --navy-dark: #0f2436;
  --teal: #2f8f8a;
  --teal-dark: #24726e;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #223140;
  --text-muted: #55697a;
  --border: #e2e6e9;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 1.25em; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); }

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 80px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--navy);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Nav toggle */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { color: var(--navy); }

.nav-link.is-active {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.nav-link.is-active:hover { color: #fff; }

.header-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Compact header contact block */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.contact-email {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
}
.contact-email:hover { color: var(--teal-dark); }

.contact-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.contact-phone:hover { color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0;
}

.hero h1, .hero .hero-subhead { color: #fff; }

.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-subhead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #d7e2e8;
  margin-bottom: 1em;
}

.hero-body {
  color: #c3d1d9;
  font-size: 1.05rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* The source SVG (400x480 viewBox) has extra canvas space around the card
   (card body sits at x:16-376, y:16-464) to let its drop-shadow breathe.
   Rather than a centered auto-crop (which leaves uneven margins since the
   card isn't centered in its own canvas), scale/translate by the exact
   offset so the crop window lands flush on the card's own edges. */
.hero-card-crop {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 360 / 448;
  overflow: hidden;
  border-radius: 16px;
}

.hero-card {
  display: block;
  width: 111.111%;   /* 400/360 */
  height: auto;
  transform: translate(-4%, -3.3333%);   /* 16/400, 16/480 */
}

@media (max-width: 720px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { order: -1; justify-content: center; }
  .hero-card-crop { max-width: 240px; border-radius: 12px; }
}

/* Services */
.services {
  padding: 64px 0;
}

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.service-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

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

/* Certifications */
.certifications {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cert-badge {
  height: 96px;
  width: auto;
}

.cert-verify {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.9rem;
}

.cert-verify a {
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #9fb2bd;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.site-footer a { color: #9fb2bd; }

@media (max-width: 640px) {
  .header-divider,
  .header-contact { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0; }
  .brand-name { display: none; }
  .nav-link { padding: 8px 14px; font-size: 0.9rem; }
}
