/* Matrix visual refresh. Original grids, page order, imagery and content retained. */
:root {
  --bg: #f5f7fa;
  --text: #162b42;
  --muted: #52657b;
  --primary: #1768bb;
  --primary-strong: #114e8d;
  --primary-soft: #eaf2fa;
  --line: #dde5ee;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 28px rgba(20,47,77,.055);
  --shadow: 0 18px 50px rgba(20,47,77,.09);
  --container: 1240px;
  --nav-h: 88px;
}
body { background: #fff; font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1680d6; outline-offset: 4px; }
[id] { scroll-margin-top: 110px; }
.container { width: min(var(--container), calc(100% - 64px)); }
.site-header, .site-header.scrolled, .site-header.nav-open {
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
  box-shadow: none; backdrop-filter: blur(16px);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.brand img { width: 150px; height: auto; object-fit: contain; }
.site-header:not(.scrolled):not(.nav-open) .brand img { filter: none; }
.site-header .nav-link, .site-header:not(.scrolled):not(.nav-open) .nav-link { color: #43566c; font-size: .85rem; padding: 9px 10px; }
.site-header .nav-link:hover, .site-header .nav-link.active,
.site-header:not(.scrolled):not(.nav-open) .nav-link:hover,
.site-header:not(.scrolled):not(.nav-open) .nav-link.active { color: var(--primary-strong); background: var(--primary-soft); box-shadow: none; transform: none; }
.nav-link, .nav-dashboard, .nav-cta { border-radius: 8px; }
.site-header .nav-dashboard, .site-header.scrolled .nav-dashboard, .site-header.nav-open .nav-dashboard { color: var(--primary-strong); background: #f0f5fa; border: 1px solid #d7e3f0; font-size: .85rem; padding: 10px 13px; }
.site-header .nav-dashboard:hover { background: #e2edf8; }
.nav-cta { font-size: .85rem; padding: 12px 15px; box-shadow: none; background: var(--primary-strong); }
.hero { margin-top: var(--nav-h); min-height: 650px; min-height: clamp(620px, 77vh, 780px); }
.hero-overlay, .page-hero-overlay { background: linear-gradient(90deg, rgba(8,27,48,.92), rgba(8,27,48,.73) 48%, rgba(8,27,48,.19)); }
.hero-grid { padding: 86px 0 126px; grid-template-columns: 1fr; }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(2.6rem, 4.65vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero p { max-width: 660px; font-size: 1.1rem; line-height: 1.8; color: #e2eaf3; }
.eyebrow { border-radius: 5px; font-size: .72rem; letter-spacing: .12em; padding: 7px 11px; }
.eyebrow::before { width: 5px; height: 5px; border-radius: 1px; box-shadow: none; }
.hero-actions { margin-top: 30px; }
.btn, .pill-btn, .pill-link, .map-link, .article-link { border-radius: 8px; }
.btn-primary, .pill-btn { background: var(--primary-strong); box-shadow: none; }
.btn { padding: 14px 23px; }
.btn-secondary { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); }
.btn:hover, .pill-btn:hover { box-shadow: 0 8px 20px rgba(10,40,80,.15); }
.hero-support { position: relative; z-index: 3; margin-top: -54px; padding-bottom: 22px; }
.hero-support .container { gap: 16px; }
.hero-support .stat-card { border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid #3b7fc2; padding: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.stat-card strong { font-size: 1.1rem; margin-bottom: 7px; }
.stat-card span, .stat-card p { font-size: .93rem; }
.section { padding: 86px 0; }
.section-muted { background: var(--bg); }
.section-head { margin-bottom: 32px; }
h2 { letter-spacing: -.035em; text-wrap: balance; }
.section h2, .page-body h2 { line-height: 1.18; }
.section-head p, .lead { line-height: 1.8; }
.section-blue { background: #103d6c; }
.section-blue .pill-btn { background: #fff; color: #103d6c; }
.section-blue .pill-link { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.section-blue .eyebrow { background: rgba(255,255,255,.09); }
.page-hero { margin-top: var(--nav-h); }
.page-hero .container { padding: 72px 0 66px; }
.page-hero h1 { max-width: 930px; font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.1; text-wrap: balance; }
.page-hero p { max-width: 800px; line-height: 1.8; }
.page-body { padding: 64px 0 80px; }
.card, .feature-card, .support-item, .blog-card, .team-card, .panel, .contact-card, .form-card, .map-card, .quote-card { box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.feature-card:hover, .blog-card:hover, .team-card:hover { box-shadow: var(--shadow); }
.icon-chip { border-radius: 10px; box-shadow: none; }
.support-highlights { padding-top: 64px; }
.package-card { border: 1px solid var(--line); box-shadow: var(--shadow-soft); border-radius: 18px; }
.package-card::after { opacity: .35; }
.package-card h3 { font-size: 2rem; }
.price-pill { border-radius: 10px; box-shadow: none; }
.package-tag { letter-spacing: .06em; }
.team-card .contact-list li { display: list-item; }
.team-card .contact-list li::before { display: none; }
.team-card .contact-list li a { display: inline-block; overflow-wrap: anywhere; }
.team-card .contact-list { gap: 4px; }
.team-card img { height: 350px; }
.input, .textarea { border-radius: 8px; background: #fff; border: 1px solid #b6c5d5; }
select.input { width: 100%; min-height: 52px; color: var(--text); padding: 12px 14px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b32132; }
.form-success.is-error { color: #a91f31; background: #fff1f3; }
.form-actions { flex-wrap: wrap; }
.form-actions [type="submit"]:disabled { opacity: .65; cursor: wait; }
.accordion-trigger { text-align: left; min-height: 56px; }
.accordion-trigger[aria-expanded="true"] { color: var(--primary-strong); }
.footer { background: #102d4a; }
.footer .brand { background: #fff; padding: 10px 16px; border-radius: 8px; margin-bottom: 8px; }
.footer .brand img { width: 140px; }
.footer-pills .pill-link { overflow-wrap: anywhere; max-width: 100%; }
.footer-bottom { background: rgba(0,0,0,.12); }
.footer-bottom a:hover { text-decoration: underline; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 2000; padding: 12px 18px; background: #fff; color: #123c70; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* Content stays visible when JavaScript is disabled or fails. */
.reveal { opacity: 1; transform: none; }
[hidden] { display: none !important; }
html:not(.has-js) .accordion-panel { grid-template-rows: 1fr; }
html:not(.has-js) .accordion-body { padding-bottom: 24px; }
@media (max-width: 1190px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 24px; right: 24px; top: calc(100% + 10px); padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; max-height: calc(100dvh - 112px); overflow-y: auto; }
  .site-header.nav-open .nav-menu { display: flex; }
  .site-header .nav-link { padding: 10px 14px; text-align: left; }
  .nav-cta { margin-left: 0; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  html:not(.has-js) .site-header { position: relative; }
  html:not(.has-js) .nav-toggle { display: none; }
  html:not(.has-js) .nav-shell { flex-wrap: wrap; padding: 16px 0; }
  html:not(.has-js) .nav-menu { position: static; display: flex; max-height: none; box-shadow: none; border: none; flex-direction: row; flex-wrap: wrap; flex-basis: 100%; padding: 0; }
  html:not(.has-js) .hero, html:not(.has-js) .page-hero { margin-top: 0; }
}
@media (max-width: 860px) {
  :root { --nav-h: 78px; }
  .container { width: calc(100% - 40px); }
  .hero { min-height: 660px; }
  .hero-grid { padding: 68px 0 110px; }
  .hero-support .container { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-support { margin-top: -40px; }
  .section { padding: 58px 0; }
  .page-hero .container { padding: 55px 0; }
  .section-head { gap: 18px; }
  .page-body { padding: 44px 0 60px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .hero { min-height: auto; }
  .hero-grid { padding: 52px 0 90px; }
  .hero h1 { font-size: clamp(2.25rem, 9.7vw, 3.3rem); }
  .hero p { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-support .container { grid-template-columns: 1fr; }
  .hero-support { margin-top: -30px; }
  .hero-support .stat-card { padding: 20px; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .team-card img { height: 340px; }
  .footer-bottom .container { align-items: flex-start; gap: 8px; }
  .nav-menu { left: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
