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

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f8fc;
  --surface:   #ffffff;
  --surface-2: #eef3fa;
  --surface-3: #e6edf9;
  --navy:      #282160;
  --navy-2:    #1f3f95;
  --red:       #ef1824;
  --red-soft:  rgba(239,24,36,0.08);
  --blue:      #1f3f95;
  --blue2:     #355fc2;
  --blue-soft: rgba(31,63,149,0.08);
  --border:    #d9e3f0;
  --border-2:  #c7d4e7;
  --text:      #1f2b3a;
  --heading:   #282160;
  --muted:     #5f6f84;
  --safe-bot:  env(safe-area-inset-bottom, 0px);
  --shadow-sm: 0 10px 24px rgba(31,63,149,0.06);
  --shadow-md: 0 16px 40px rgba(31,63,149,0.08);
  /* Hero & section fills — balanced: visible color without feeling heavy */
  --hero-surface: linear-gradient(155deg, #c8d7ee 0%, #d6e3f5 26%, #e6f0fb 58%, #f5f9fe 96%);
  --hero-radials:
    radial-gradient(ellipse 92% 78% at 10% 16%, rgba(31, 63, 149, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 72% 62% at 94% 76%, rgba(40, 33, 96, 0.16) 0%, transparent 56%),
    radial-gradient(ellipse 52% 48% at 68% 10%, rgba(239, 24, 36, 0.08) 0%, transparent 52%);
  --hero-bottomwash: linear-gradient(180deg, transparent 0%, rgba(31, 63, 149, 0.075) 100%);
  --section-surface: linear-gradient(180deg, #e8f0f9 0%, #dfe9f5 100%);
  --card-surface: linear-gradient(165deg, #f3f8fc 0%, #e8f1fa 52%, #ddeaf4 100%);
  --card-surface-link: linear-gradient(155deg, #f3f8fc 0%, #eaf1fa 50%, #e0eaf6 100%);
  /* Brand bars — slightly softer navy (still readable on white nearby) */
  --brand-bar: linear-gradient(135deg, #35327a 0%, #2a52a8 100%);
}

html { scroll-behavior: smooth; }
img { max-width: 100%; }

body {
  background: linear-gradient(180deg, #d9e6f6 0%, #e6eef9 42%, #f2f7fc 100%);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(31,63,149,0.075) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 100% 12%, rgba(40,33,96,0.055) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(239,24,36,0.04) 0%, transparent 62%);
}

.site-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(20, 34, 61, 0.04);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  height: 86px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark { display:flex; align-items:center; flex-shrink: 0; }
/* Horizontal wordmark (stellar-logo.png) */
.nav-logo-mark img {
  display: block;
  max-height: 44px;
  max-width: min(200px, 46vw);
  width: auto;
  height: auto;
  background: transparent;
  object-fit: contain;
}
.nav-logo-mark-only { line-height: 0; }
.nav-logo-text { display:none; }
.nav-logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}
.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.nav-links a {
  font-size: 12px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--heading); background: var(--blue-soft); }
.nav-links a.active { color: var(--heading); }

/* Primary nav CTA — always last in the row */
.nav-links a.nav-link-cta {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--blue) 100%);
  color: #fff !important;
  border: 1px solid rgba(31, 63, 149, 0.35);
  padding: 9px 18px;
  border-radius: 50px;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(31, 63, 149, 0.22);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links a.nav-link-cta:hover {
  background: linear-gradient(135deg, var(--blue2) 0%, var(--navy-2) 100%);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 22px rgba(31, 63, 149, 0.28);
}
.nav-links a.nav-link-cta.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--heading);
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid var(--border-2);
  background: #fff;
  padding: 8px 14px; border-radius: 50px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow .2s;
}
.nav-phone:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.nav-phone svg { width: 13px; height: 13px; flex-shrink: 0; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--heading); border-radius: 2px; transition: all 0.3s; }

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 32px 32px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .footer-logo {
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand .nav-logo-title, .footer-brand .nav-logo-sub { color: #fff; }
.footer-brand .nav-logo-sub { color: #c8d8ff; }
.footer-brand .nav-logo-mark img {
  max-height: 42px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}
/* Full-wordmark image: hide duplicate title stack */
.footer-brand .nav-logo-text {
  display: none;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.75); }
.footer-bottom a { color: rgba(255,255,255,0.84); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.section { padding: 5rem 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* First content block after interior hero — was padding-top:0 inline, looked crushed */
.page-hero + .section {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

/* Home: second marketing section sits closer under the block above */
.section.section--tight-top {
  padding-top: 3rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--red); flex-shrink: 0;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.15; color: var(--heading); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #cc1020 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(239,24,36,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(239,24,36,0.24); }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.card {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/*
 * Interior pages (under main, with nav): match homepage — light hero, navy side panel, light cards.
 * Selectors beat per-page <style> blocks without editing every PHP file.
 */
.site-wrap main .page-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-surface);
}
.site-wrap main .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--hero-radials), var(--hero-bottomwash);
}
.site-wrap main .page-hero .page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 32px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
  align-items: center;
}
.site-wrap main .page-hero h1 {
  color: var(--heading);
}
.site-wrap main .page-hero > .page-hero-inner > div:first-child > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 720px;
}

/* Right column: same language as homepage .hero-panel */
.site-wrap main .page-hero .page-meta {
  background: var(--brand-bar);
  border: 1px solid rgba(40, 33, 96, 0.14);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 16px 40px rgba(31, 63, 149, 0.1);
}
.site-wrap main .page-hero .page-meta h3 {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}
.site-wrap main .page-hero .page-meta p {
  color: #e6eeff;
  font-size: 14px;
  line-height: 1.65;
}
.site-wrap main .page-hero .page-meta .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.site-wrap main .page-hero .page-meta .btn-outline:hover {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

/* Body sections — match lightened homepage */
.site-wrap main > section.section {
  background: var(--section-surface);
}

.site-wrap main .content-card,
.site-wrap main .side-card {
  background: var(--card-surface);
  border: 1px solid rgba(31, 63, 149, 0.09);
  box-shadow: 0 12px 28px rgba(31, 63, 149, 0.045);
}
.site-wrap main .content-card h2,
.site-wrap main .content-card h3,
.site-wrap main .side-card h3 {
  color: var(--heading);
}
.site-wrap main .content-card p,
.site-wrap main .side-card p,
.site-wrap main .side-card li {
  color: var(--muted);
}
.site-wrap main .bullets li {
  color: var(--text);
}
.site-wrap main .bullets li span {
  color: var(--red);
  font-weight: 700;
}

.site-wrap main a.coverage-card {
  background: var(--card-surface-link);
  border: 1px solid rgba(31, 63, 149, 0.09);
  box-shadow: 0 10px 24px rgba(31, 63, 149, 0.045);
}
.site-wrap main a.coverage-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(31, 63, 149, 0.1);
}
.site-wrap main .coverage-card h3 {
  color: var(--heading);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.site-wrap main .coverage-card p {
  color: var(--muted);
}
.site-wrap main .coverage-icon {
  background: rgba(31, 63, 149, 0.08);
  border: 1px solid rgba(31, 63, 149, 0.15);
  color: var(--blue);
}
.site-wrap main .coverage-arrow {
  color: var(--red);
}

.cta-band {
  background: var(--brand-bar) !important;
  border: 1px solid rgba(40, 33, 96, 0.14) !important;
  color: #fff !important;
  box-shadow: 0 14px 36px rgba(31, 63, 149, 0.12);
}
.cta-band h2,
.cta-band p { color: #fff !important; }
.cta-band .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.cta-band .btn-outline:hover {
  background: #fff;
  color: var(--blue);
}

/* Homepage hero — same tokens as interior .page-hero */
.site-wrap main > .hero {
  background: var(--hero-surface);
}
.site-wrap main > .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--hero-radials);
}
.site-wrap main > .hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42%, 320px);
  pointer-events: none;
  z-index: 0;
  background: var(--hero-bottomwash);
}

@media (max-width: 980px) {
  .nav-inner { height: 76px; }
  .nav-logo-mark img { max-height: 40px; max-width: min(180px, 50vw); }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; align-items: stretch; }
  .nav-links a.nav-link-cta { margin-left: 0; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); text-align: center; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-phone { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 56px 20px; }
  .site-wrap main .page-hero .page-hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 20px 40px;
    gap: 28px;
    align-items: stretch;
  }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 18px; height: 70px; }
  .nav-logo-mark img { max-height: 36px; max-width: min(160px, 52vw); }
    .nav-links { top: 72px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Note: avoid content-visibility:auto on layout sections — it can skip painting of
   backgrounds/gradients in Chromium until scroll/resize, making the site look “flat”. */
