:root {
  --navy: #0a2d4d;
  --navy-dark: #061e33;
  --navy-light: #1a4a73;
  --accent: #2b6cb0;
  --accent-light: #5ba4e6;
  --gray-900: #1a2332;
  --gray-700: #3d4f63;
  --gray-500: #6b7c8f;
  --gray-300: #c5d0db;
  --gray-200: #e8eef3;
  --gray-100: #f4f7fa;
  --white: #ffffff;
  --highlight: #8ec5ff;
  --shadow: 0 12px 40px rgba(10, 45, 77, 0.12);
  --radius: 6px;
  --container: 1140px;
  --header-h: 80px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy-light); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header--overlay {
  background: linear-gradient(180deg, rgba(6,30,51,0.85) 0%, rgba(6,30,51,0) 100%);
}
.site-header--solid, .site-header.is-scrolled {
  background: rgba(6,30,51,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand img { height: 44px; width: auto; }

.nav-menu ul {
  display: flex; align-items: center; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > ul > li { position: relative; }
.nav-menu a {
  color: var(--white); font-size: 0.9rem; font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--highlight); }

.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 220px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a { color: var(--gray-700); display: block; padding: 0.45rem 1rem; font-size: 0.88rem; }
.dropdown a:hover { background: var(--gray-100); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn, .header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.35rem; border-radius: 4px; font-family: var(--font);
  font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.btn-primary, .header-cta { background: var(--accent); color: var(--white) !important; }
.btn-primary:hover, .header-cta:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-secondary { background: var(--gray-200); color: var(--navy); }
.btn-secondary:hover { background: var(--gray-300); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }

.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center; color: var(--white);
  background: center / cover no-repeat; padding-top: var(--header-h);
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  color: var(--highlight); margin: 0 0 0.75rem; font-weight: 600;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.15; margin: 0 0 1.25rem;
}
.hero-highlight { color: var(--highlight); }
.hero p { font-size: 1.05rem; max-width: 620px; margin: 0 0 1.75rem; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}
.page-hero--compact { padding-bottom: 2rem; }
.page-hero h1 { margin: 0 0 0.75rem; font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,0.88); }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-100); }
.section-header { max-width: 720px; margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700; color: var(--navy); margin: 0 0 1rem; line-height: 1.2;
}
.section-lead { font-size: 1.05rem; max-width: 680px; margin: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin: 0 0 0.5rem;
}

.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.split-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.card-grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.service-card, .service-overview-card, .info-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.service-card:hover, .service-overview-card:hover { transform: translateY(-3px); }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-card-body, .service-overview-card { padding: 1.25rem 1.35rem 1.5rem; }
.service-card h5, .service-overview-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.service-card p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.service-card-icon {
  font-size: 1.5rem; color: var(--accent); padding: 1.25rem 1.35rem 0;
}
.service-num { font-size: 2rem; font-weight: 700; color: var(--accent-light); opacity: 0.5; }
.link-arrow { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; }
.icon-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.support-panel {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.support-panel h3 { margin: 0 0 0.75rem; font-family: var(--font-serif); }

.client-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem;
}
.client-logo { height: 36px; width: auto; opacity: 0.85; filter: grayscale(20%); }

.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
}

.info-card { padding: 1.75rem; }
.info-card h3 { margin: 0 0 0.75rem; color: var(--navy); font-family: var(--font-serif); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start;
}
.contact-info .info-block { margin-bottom: 1.75rem; }
.contact-info h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-title { margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.form-intro { margin: 0 0 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--gray-300);
  border-radius: 4px; font-family: var(--font); font-size: 0.95rem;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.9rem; }
.form-status--success { background: #e8f4ea; color: #1e5c2e; }
.form-status--error { background: #fdecea; color: #8b1a12; }

.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-link {
  display: block; padding: 0.55rem 0.85rem; border-radius: 4px;
  color: var(--gray-700); font-size: 0.9rem; background: var(--gray-100);
}
.sidebar-link:hover, .sidebar-link.active { background: var(--navy); color: var(--white); }
.detail-hero-img { border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.prose-content h2, .prose-content h3, .prose-content h4 { color: var(--navy); font-family: var(--font-serif); margin-top: 1.5rem; }
.prose-content ul { padding-left: 1.25rem; }
.prose-content li { margin-bottom: 0.35rem; }
.detail-cta {
  margin-top: 2rem; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius);
}
.detail-cta h3 { margin: 0 0 0.5rem; color: var(--navy); }

.footer-note { font-size: 0.9rem; margin: 0 0 0.75rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter-form input[type="email"] {
  flex: 1 1 180px; padding: 0.65rem 0.85rem; border: 1px solid var(--gray-300);
  border-radius: 4px; font-family: var(--font);
}

.legal-content h1 { margin-top: 0; font-family: var(--font-serif); color: var(--navy); }
.legal-content p { margin: 0 0 1rem; }
.legal-content strong { display: block; margin-top: 1.25rem; color: var(--navy); }

.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.78); padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h3 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin: 0 0 0.85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.footer-col a:hover { color: var(--highlight); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255,255,255,0.78); }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split-grid, .contact-layout, .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .detail-sidebar { position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto;
    background: rgba(6,30,51,0.98); padding: 1.25rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > ul { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0.25rem 0 0.5rem 1rem; display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.85); padding: 0.35rem 0; background: transparent; }
  .header-actions .btn-outline { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
