:root {
  --ci-navy: #0b2e4f;
  --ci-deep-blue: #0a4f8a;
  --ci-brand-blue: #1172c7;
  --ci-cyan: #18b5e5;
  --ci-graphite: #26323b;
  --ci-steel: #66727c;
  --ci-light-grey: #e9eef2;
  --ci-off-white: #f7f9fb;
  --ci-white: #ffffff;

  --text: var(--ci-graphite);
  --muted: var(--ci-steel);
  --bg: var(--ci-white);
  --bg-alt: var(--ci-off-white);
  --border: var(--ci-light-grey);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1120px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(11, 46, 79, 0.08);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ci-brand-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ci-cyan);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ci-navy); }
h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.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(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ci-brand-blue); color: var(--ci-white); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.35rem;
  border-radius: 10px;
  background: var(--ci-brand-blue);
  color: var(--ci-white);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ci-brand-blue);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  font-size: .95rem;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible {
  background: var(--ci-deep-blue);
  border-color: var(--ci-deep-blue);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ci-brand-blue);
  border-color: var(--ci-brand-blue);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(17, 114, 199, 0.08);
  color: var(--ci-deep-blue);
  border-color: var(--ci-deep-blue);
}
.btn-dark {
  background: var(--ci-navy);
  border-color: var(--ci-navy);
  color: var(--ci-white);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ci-white);
}
.btn-small { padding: .45rem 1rem; font-size: .9rem; min-height: 44px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header-h);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 9rem);
}
.brand-logo {
  display: block;
  object-fit: contain;
  object-position: left center;
}
.brand-logo--full {
  height: 40px;
  width: auto;
  max-width: min(280px, 100%);
}
.brand-mobile {
  display: none;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.brand-logo--symbol {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-wordmark {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.15;
  color: var(--ci-navy);
  letter-spacing: -0.02em;
}
.header-cta { display: none; flex-shrink: 0; }
.site-header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav a:not(.btn) {
  color: var(--ci-graphite);
  text-decoration: none;
  font-weight: 500;
  padding: .35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:not(.btn):hover { color: var(--ci-brand-blue); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--ci-white);
  align-items: center;
  justify-content: center;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ci-graphite);
  border-radius: 1px;
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

/* Hero (default text) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; z-index: 2; max-width: 42rem; }
.eyebrow {
  color: var(--ci-brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: .75rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}
.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ci-navy);
  font-weight: 700;
  max-width: 22ch;
}
.lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 38em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero with background image */
.hero--cover {
  display: flex;
  align-items: center;
  min-height: clamp(420px, 68svh, 720px);
  max-height: 85vh;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-bottom: none;
}
.hero--cover .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.hero--cover .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero--cover .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(11, 46, 79, 0.92) 0%,
    rgba(11, 46, 79, 0.78) 45%,
    rgba(10, 79, 138, 0.55) 100%
  );
}
.hero--cover .hero-inner { max-width: 36rem; }
.hero--cover .eyebrow { color: var(--ci-cyan); }
.hero--cover h1 { color: var(--ci-white); max-width: 16ch; }
.hero--cover .lead { color: rgba(255, 255, 255, 0.92); }
.hero--cover .btn-hero-primary { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.hero--cover .btn-outline.btn-hero-secondary {
  color: var(--ci-white);
  border-color: rgba(255, 255, 255, 0.85);
}
.hero--cover .btn-outline.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ci-white);
}

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); margin-bottom: 1.5rem; max-width: 42em; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--ci-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-2px); border-color: rgba(17, 114, 199, 0.35); }
.card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ci-navy);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--ci-brand-blue); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(17, 114, 199, 0.1);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--ci-brand-blue); }

.about { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}
.about p { color: var(--muted); max-width: 70ch; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.highlights li {
  background: var(--ci-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ci-brand-blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.highlights strong { font-size: 1.1rem; color: var(--ci-navy); }
.highlights span { color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.contact-list span {
  display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ci-brand-blue); font-weight: 600;
}
.contact-card {
  background: var(--ci-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card p { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--ci-navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.25rem;
  margin-top: auto;
}
.site-footer a { color: var(--ci-cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
}
.footer-title {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 .75rem;
  color: var(--ci-white);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-legal { margin-top: .75rem; opacity: 0.85; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: .85rem;
  opacity: 0.9;
}
.footer-bottom p { margin: 0; }

.page-hero {
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero--media { padding-bottom: 0; }
.page-hero h1 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  max-width: 24ch;
}
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--ci-steel); }
.breadcrumb a { color: var(--ci-brand-blue); text-decoration: none; }

.prose { max-width: 42rem; color: var(--muted); }
.prose-wide {
  max-width: min(48rem, 70ch);
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.0625rem;
}
.prose-wide h2 { margin-top: 2rem; }
.prose-wide h3 { margin-top: 1.25rem; font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--ci-navy); }
.prose-wide ul { margin: 0 0 1.25rem 1.1rem; }
.prose p, .prose-wide p { margin: 0 0 1rem; }

.content-hero, .content-img {
  margin: 1.25rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ci-light-grey);
}
.content-hero img, .content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.key-takeaways {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ci-brand-blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}
.takeaways-title { font-size: .9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: .75rem; color: var(--ci-navy); }
.key-takeaways ul { margin: 0; padding-left: 1.1rem; color: var(--text); }

.cta-band { text-align: center; padding: clamp(2rem, 5vw, 3rem) 0; }
.cta-inner h2 { text-transform: none; letter-spacing: -0.02em; }
.cta-inner p { color: var(--muted); max-width: 36em; margin-inline: auto; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ci-white);
  box-shadow: var(--shadow);
  height: 100%;
}
.blog-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.blog-card h2 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1.15rem 0;
  margin: 0;
  color: var(--ci-navy);
}
.blog-card p { padding: .5rem 1.15rem 1.15rem; color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.post-meta { font-size: .85rem; color: var(--ci-steel); margin: 0 0 .35rem; padding: 0 1.15rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: .65rem;
  background: var(--ci-white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ci-navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-item p { margin: .75rem 0 0; color: var(--muted); }

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: .5rem; }
.related-list a { font-weight: 600; }

.card--media .card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.35rem -1.35rem 1rem;
  max-width: calc(100% + 2.7rem);
}
.card--media { padding-top: 0; overflow: hidden; }

.quote-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ci-navy); }
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--ci-white);
  min-height: 44px;
}
.quote-form textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status--error { color: #b42318; }
.form-status--success { color: #0a6e3c; }

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .brand-logo--full { display: none; }
  .brand-mobile { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle-label { display: inline-flex; flex-shrink: 0; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ci-white);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 55;
  }
  .nav-toggle:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header .nav { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0;
  }
  .site-nav a:not(.btn) {
    padding: .85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .site-nav-cta { margin-top: 1rem; }
  .site-nav-cta .btn { width: 100%; }
  .hero-cta-extra { display: none; }
  .cta-band--sticky-mobile {
    position: sticky;
    bottom: 0;
    z-index: 40;
    box-shadow: 0 -8px 24px rgba(11, 46, 79, 0.12);
    border-top: 1px solid var(--border);
  }
}

@media (min-width: 901px) {
  .brand-mobile { display: none; }
  .header-cta { display: none; }
  .site-nav-cta { display: none; }
  .nav-toggle-label { display: none; }
  .site-nav { display: block; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
