/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy: #0F1F3D;
  --navy-mid: #1A3260;
  --teal: #00C9A7;
  --teal-dark: #00A589;
  --teal-light: #E0FAF5;
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-50: #F1F3F7;
  --gray-100: #E2E6EE;
  --gray-400: #8B92A5;
  --gray-600: #5A6177;
  --gray-800: #2D3248;
  --text-primary: #0F1F3D;
  --text-body: #3D4560;
  --text-muted: #6B738A;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15,31,61,0.08), 0 1px 2px rgba(15,31,61,0.06);
  --shadow-md: 0 4px 16px rgba(15,31,61,0.10), 0 2px 6px rgba(15,31,61,0.07);
  --shadow-lg: 0 12px 40px rgba(15,31,61,0.14);
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.2s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.logo-wordmark span:first-child { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.3px; }
.logo-wordmark span:last-child  { font-size: 10px; font-weight: 500; color: var(--teal-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: stretch; gap: 4px; list-style: none; height: 100%; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a {
  display: block; padding: 6px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-body);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--gray-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── Nav Dropdown ──────────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; background: transparent; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-body); font-family: inherit;
  border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
  line-height: 1;
  height: 100%;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { color: var(--navy); background: var(--gray-50); }
.nav-dropdown-toggle svg { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute; 
  top: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 300px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,31,61,0.14);
  padding: 8px;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { 
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 9px;
  text-decoration: none; color: inherit;
  transition: background 0.12s;
  white-space: normal;
}
.nav-dropdown-menu a:hover { background: var(--off-white); }
.nav-dropdown-menu a.active { background: var(--teal-light); }
.dd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.nav-dropdown-menu a:hover .dd-dot,
.nav-dropdown-menu a.active .dd-dot { background: var(--teal-dark); }
.dd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dd-text strong { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; line-height: 1.3; }
.dd-text span { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; line-height: 1.4; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 0.18s; cursor: pointer; border: none; font-family: inherit;
}
.btn-ghost { color: var(--navy); background: transparent; border: 1.5px solid var(--gray-100); }
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,201,167,0.3); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-outline-white { color: white; background: transparent; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.6px; color: var(--text-primary); line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-muted); line-height: 1.65; }

/* ── Page hero (shared across inner pages) ─────────────────────────────────── */
.page-hero { padding-top: 68px; background: var(--navy); padding-bottom: 80px; position: relative; overflow: hidden; }
.page-hero-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.page-hero-glow { position: absolute; top: -80px; right: -80px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,201,167,0.10) 0%, transparent 65%); pointer-events: none; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 60px 24px 0; position: relative; z-index: 1; }
.page-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; letter-spacing: -1.2px; color: white; line-height: 1.1; margin-bottom: 18px; max-width: 680px; }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 560px; line-height: 1.65; }

/* ── Service sub-nav (shared across service pages) ──────────────────────────── */
.service-subnav { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--gray-100); margin-bottom: 48px; }
.service-subnav a { padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--text-muted); border: 1px solid var(--gray-100); transition: all 0.15s; }
.service-subnav a:hover { color: var(--text-primary); background: var(--gray-50); }
.service-subnav a.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Checklist utility ─────────────────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-body); }
.check-list li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: var(--teal-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 5' stroke='%2300A589' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer { background: #080E1C; color: rgba(255,255,255,0.5); padding: 48px 0 32px; font-size: 13px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 10px; line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); text-decoration: none; margin-bottom: 9px; font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }

/* ── Flash messages ────────────────────────────────────────────────────────── */
.flash-success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.flash-error   { background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; font-weight: 500; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
