/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy: #164B5E; --navy-deep: #0E3A48; --navy-soft: #2D7389;
  --sage: #7C9471; --sage-hover: #647C5C; --sage-soft: #EEF2E8;
  --silver: #A3A79C; --silver-light: #E7E9E1; --silver-lighter: #F5F5F1;
  --ink: #1D2420; --muted: #5C6459; --white: #ffffff; --cream: #FAF8F2;
}

/* ── Lock Out Astra's Global Color Palette ───────────────────
   Astra (parent theme) injects its own Customizer-driven colors as
   CSS custom properties and applies them to un-classed elements —
   links, headings, buttons, forms — on any page our custom templates
   don't fully cover (404, search, blog, comments, etc). Overriding
   Astra's own variable names here means a Customizer color change in
   wp-admin can never leak into this design, no matter the CSS load
   order or theme updates. */
:root {
  --ast-global-color-0: #7C9471 !important; /* Astra "Primary" → sage */
  --ast-global-color-1: #164B5E !important; /* Astra "Secondary" → navy */
  --ast-global-color-2: #1D2420 !important; /* Astra "Text" → ink */
  --ast-global-color-3: #ffffff !important; /* Astra "Background" → white */
  --ast-global-color-4: #F5F5F1 !important;
  --ast-global-color-5: #ffffff !important;
  --ast-global-color-6: #164B5E !important;
  --ast-global-color-7: #2D7389 !important;
  --ast-global-color-8: #E7E9E1 !important;
}

/* Baseline elements outside our custom classes (blog posts, 404,
   search results, comment forms) still resolve to our palette
   instead of Astra defaults. */
a { color: var(--sage-hover); }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-family: 'Poppins', sans-serif; }
button, input[type="submit"], input[type="button"] { font-family: inherit; }
blockquote { color: var(--navy); border-left: 3px solid var(--sage); padding-left: 20px; }
::selection { background: var(--sage-soft); color: var(--navy); }

/* ── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.nav-open { overflow: hidden; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar-left  { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item  { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item i { color: var(--sage); }
.topbar-right a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 18px; transition: color 0.2s; }
.topbar-right a:hover { color: var(--sage); }

/* ── Navigation ────────────────────────────────────────────── */
nav.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--silver-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-logo  { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 58px; width: auto; }
.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--navy);
  display: none;
}
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: white;
  box-shadow: 0 1px 0 rgba(20,41,61,0.08), 0 6px 16px -6px rgba(124,148,113,0.5);
}
.btn-primary:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(20,41,61,0.08), 0 10px 22px -8px rgba(124,148,113,0.55);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--silver);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--silver-lighter); }
.btn-ghost-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: white; color: var(--navy); border-color: white; }
.btn-large { padding: 16px 30px; font-size: 14px; }

/* ── Mobile Menu Button ─────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--silver-lighter);
  border: 1.5px solid var(--silver-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: var(--sage-soft); }
.mobile-menu-btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Mobile Nav Overlay ─────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,26,40,0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.mobile-nav-overlay.open { opacity: 1; }
.mobile-nav-sheet {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 60px -15px rgba(11,26,40,0.28);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.mobile-nav-overlay.open .mobile-nav-sheet { transform: translateY(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--silver-light);
}
.mobile-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mobile-nav-logo img { height: 56px; width: auto; }
.mobile-nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.04em;
  display: none;
}
.mobile-nav-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--silver-lighter);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.2s;
}
.mobile-nav-close:hover { background: var(--silver-light); }
.mobile-nav-close svg {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 20px !important;
  height: 20px !important;
  stroke: #164B5E !important;
  fill: none !important;
}
.mobile-nav-close svg path {
  stroke: #164B5E !important;
  fill: none !important;
}
.mobile-nav-links { padding: 8px 0; flex: 1; }
.mobile-nav-item { border-bottom: 1px solid var(--silver-light); }
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.18s;
}
.mobile-nav-row:hover { background: var(--silver-lighter); }
.mobile-nav-row .chevron { color: var(--silver); transition: transform 0.25s ease; flex-shrink: 0; }
.mobile-nav-item.open .mobile-nav-row .chevron { transform: rotate(180deg); }
.mobile-nav-sub {
  display: none;
  flex-direction: column;
  background: var(--silver-lighter);
  border-top: 1px solid var(--silver-light);
}
.mobile-nav-item.open .mobile-nav-sub { display: flex; }
.mobile-nav-sub a {
  padding: 14px 28px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--silver-light);
  transition: color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-sub a:last-child { border-bottom: none; }
.mobile-nav-sub a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.mobile-nav-sub a:hover { color: var(--navy); background: var(--sage-soft); }
.mobile-nav-ctas {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--silver-light);
}
.mobile-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 20px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-cta-call:hover { background: var(--navy-soft); }
.mobile-cta-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px 20px;
  background: var(--sage);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 6px 20px -6px rgba(124,148,113,0.55);
  transition: background 0.2s;
}
.mobile-cta-apply:hover { background: var(--sage-hover); }
.mobile-nav-trust {
  text-align: center;
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px 22px;
  margin: 0;
}

/* ── Section Scaffolding ────────────────────────────────────── */
section.module { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.section-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--sage); }
.section-head.centered .section-eyebrow::before { display: none; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.012em;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--sage); }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 620px; }
.section-head.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy) center/cover no-repeat;
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,26,40,0.72);
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,148,113,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.page-hero-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--sage); }
h1.page-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: white;
  margin: 0 0 20px;
}
h1.page-hero-title em { font-style: italic; font-weight: 300; color: #c3d4b9; }
.page-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-footer { background: white; color: rgba(0,0,0,0.65); padding: 80px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-logo img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 16px; line-height: 1.7; color: rgba(0,0,0,0.55); max-width: 360px; margin: 0 0 24px; }
.footer-contact { font-size: 15px; color: rgba(0,0,0,0.6); line-height: 1.75; }
.footer-contact a { color: rgba(0,0,0,0.85); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--sage); }
.footer-col h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin: 0 0 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: rgba(0,0,0,0.6); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--sage); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}
.footer-bottom a { color: rgba(0,0,0,0.55); text-decoration: none; margin-left: 22px; }
.footer-bottom a:hover { color: var(--sage); }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0.15;
  transform: translateY(40px);
  filter: blur(10px);
  transition:
    opacity   0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter    0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ── Screen Reader Utility ─────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .nav-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
  section.module { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topbar-left { gap: 14px; font-size: 11px; }
  .topbar-right { display: none; }
  .nav-inner { padding: 14px 0; }
  .nav-logo img { height: 54px; }
  .footer-logo img { height: 72px; }
  .page-hero { padding: 56px 0 64px; }
  h1.page-hero-title { font-size: clamp(30px, 8vw, 40px); }
  section.module { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
}
