:root {
  --dark: #0b1f2a;
  --dark-2: #10293a;
  --accent: #0057a3;
  --cta: #0078d4;
  --cta-hover: #0068b8;
  --bg: #f5f7fa;
  --bg-2: #eef3f7;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #1a1a1a;
  --muted: #5a6b7b;
  --border: #e1e6eb;
  --border-2: #e7edf2;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: .18s ease;
}
.btn-primary {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: #b8c7d4; }

.hero {
  padding: 112px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow-light { color: #6fb6ff; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -.03em;
}
h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1px;
}
h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.6px;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
}
p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 700px;
}
.lead-sm { font-size: 17px; }
.actions,
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.stat-grid,
.service-grid,
.ind-grid,
.proc-grid,
.cards,
.steps,
.deliverables,
.footer-grid,
.form-grid,
.faq-wrap,
.contact-grid,
.section-header,
.statement-grid,
.hero-meta,
.hero-panel {
  display: grid;
}
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-grid,
.ind-grid,
.proc-grid,
.cards,
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.deliverables { grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-wrap { grid-template-columns: .9fr 1.1fr; gap: 42px; }
.contact-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.section-header { grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: start; margin-bottom: 38px; }
.statement-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero-meta { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-panel { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); background: #fff; }

.card,
.step,
.pane,
.form-card,
.statement-card,
.faq-list,
.cta-wrap {
  background: #fff;
  border: 1px solid var(--border);
}
.card {
  border-radius: 4px;
  padding: 28px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; }
.card-muted { background: var(--bg); }
.card-dark {
  background: var(--dark-2);
  border-color: #223544;
}
.card-dark h3,
.card-dark h4,
.card-dark strong { color: #fff; }
.card-dark p { color: #d6dee6; }

.accent-bar {
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

.slim,
.statement,
.process-light,
.faq {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.slim { padding: 18px 0; }
.slim-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.section { padding: 104px 0; background: #fff; }
.section.alt { background: var(--bg); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.bullets {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.bullets div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
}
.process-dark {
  background: var(--dark);
  color: #fff;
}
.process-dark h2,
.process-dark h3 { color: #fff; }
.cta-wrap {
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.cta-band { padding: 0; background: transparent; }
.cta-shell {
  background: var(--dark);
  color: #fff;
  padding: 62px 64px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.cta-shell h2,
.cta-shell p { color: #fff; }
.cta-shell p { color: rgba(255,255,255,.82); margin-top: 14px; }
.cta-actions { justify-content: flex-end; align-items: center; margin-top: 0; }
.cta-shell .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.hero h1 + .lead,
.hero h1 + p {
  margin-top: 22px;
}
.hero-panel .cell {
  padding: 26px 24px;
  min-height: 152px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-panel .cell:nth-child(2n) { border-right: none; }
.hero-panel .cell:nth-last-child(-n+2) { border-bottom: none; }
.hero-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-panel p { font-size: 15px; }
.hero-meta .item strong {
  display: block;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 6px;
}
.hero-meta .item span {
  display: block;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

.subnav-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  display: flex;
  gap: 48px;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  overflow: auto;
}
.subnav-inner a {
  font-size: 1rem;
  font-weight: 500;
  color: #304152;
  white-space: nowrap;
}
.subnav-inner a:hover,
.subnav-inner a.active { color: var(--accent); }

.statement-card { padding: 28px; }
.statement-card h3 { margin-bottom: 12px; }
.statement-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.statement-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border-2);
  font-size: 1rem;
  color: #314252;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #607284;
}
.inline-link {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  color: var(--accent);
}
.step {
  padding: 24px 22px 22px;
  background: var(--surface);
}
.step .num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a7c8d;
  margin-bottom: 16px;
}
.pane { padding: 28px; }
.pane ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #324455;
}
.pane li { margin: 10px 0; line-height: 1.6; }
.faq-list { background: #fff; }
.faq-item {
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 8px;
  color: var(--text);
}
.contact-panel { padding-top: 8px; }
.contact-panel p { margin-top: 16px; }
.form-card { padding: 34px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }
label {
  font-size: .9rem;
  font-weight: 600;
  color: #394a5b;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfd9e2;
  background: #fff;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}
textarea {
  min-height: 160px;
  resize: vertical;
}
.form-note {
  margin-top: 18px;
  font-size: .9rem;
  color: #617181;
}

.footer {
  background: var(--dark);
  color: #d6dee6;
  padding: 72px 0 32px;
}
.footer h3,
.footer h4 { color: #fff; }
.footer h4 {
  margin: 0 0 16px;
  font-size: 15px;
}
.footer p,
.footer li,
.footer span {
  margin: 0 0 10px;
  color: #d6dee6;
  font-size: 14px;
  line-height: 1.7;
}
.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.rule {
  height: 1px;
  background: #223544;
  margin: 36px 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9fb3c4;
}

.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.max-760 { max-width: 760px; }
.max-720 { max-width: 720px; }

@media (max-width: 1100px) {
  .grid-2,
  .split,
  .cta-wrap,
  .cta-shell,
  .section-header,
  .statement-grid,
  .faq-wrap,
  .contact-grid { grid-template-columns: 1fr; }

  .service-grid,
  .ind-grid,
  .proc-grid,
  .cards,
  .steps,
  .deliverables,
  .footer-grid,
  .slim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-meta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}


@media (max-width: 820px) {
  .hero { padding: 64px 0; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel .cell { border-right: none; }
  .hero-panel .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .hero-panel .cell:last-child { border-bottom: none; }
  .subnav-inner {
    gap: 26px;
    min-height: 70px;
    justify-content: flex-start;
  }
  .section { padding: 74px 0; }
  .cta-shell { padding: 42px 28px; }
  .form-card { padding: 24px; }
}

@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .actions,
  .cta-actions,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-grid,
  .service-grid,
  .ind-grid,
  .proc-grid,
  .cards,
  .steps,
  .deliverables,
  .footer-grid,
  .slim-grid,
  .form-grid { grid-template-columns: 1fr; }
}


/* Generic utility headings */
.section-heading {
  max-width: 880px;
  margin-bottom: 40px;
}

.section-heading-narrow {
  max-width: 760px;
}

/* Shared card accents / links */
.card-link {
  display: block;
  color: inherit;
}

.card-link h3,
.card-link p {
  display: block;
}

/* Contact page */
.contact-hero-grid {
  align-items: start;
}

.contact-main-grid {
  align-items: start;
}

.contact-intro {
  font-size: 17px;
}

.contact-detail-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-detail-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.contact-detail-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.contact-detail-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.contact-form-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 34px;
}

.contact-form-modern {
  margin: 0;
}

.contact-form-actions {
  margin-top: 20px;
}

.process-step {
  margin-bottom: 10px;
}

.industry-core-grid,
.industry-fit-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.industry-core-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-core-grid > .card,
.industry-fit-grid > .contact-detail-item {
  height: 100%;
}

@media (max-width: 991px) {
  .industry-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .industry-core-grid,
  .industry-fit-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-shell {
    padding: 24px;
  }

}


/* =========================================================
   Header / Navigation / Mega Menu (consolidated)
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  overflow-x: clip;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header .container.header-inner {
  position: relative;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  width: 249px;
  max-width: 100%;
  height: auto;
  display: block;
}

.nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav-item {
  position: static;
  display: flex;
  align-items: center;
}

.nav-link,
.nav > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav > a:hover,
.nav-link:focus-visible,
.nav > a:focus-visible,
.mobile-nav-links a:hover,
.mobile-nav-meta a:hover,
.mobile-nav-meta a:focus-visible {
  color: var(--accent);
}

.nav-caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 160px;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  padding: 28px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2100;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.mega-menu-grid,
.nav-item-about .mega-menu-grid,
.nav-item-insights .mega-menu-grid {
  display: grid;
  grid-template-columns: 1.05fr 2.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.mega-menu-panel {
  min-width: 0;
}

.mega-menu-intro,
.mega-menu-cta {
  min-height: 100%;
}

.mega-menu-intro {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}

.mega-menu-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
}

.mega-menu-intro h3,
.mega-menu-cta h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.mega-menu-intro p,
.mega-menu-cta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.mega-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mega-menu-link {
  display: block;
  min-height: 116px;
  padding: 16px 16px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mega-menu-link:hover,
.mega-menu-link:focus-visible {
  border-color: rgba(0, 74, 128, 0.32);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mega-menu-link strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.mega-menu-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mega-menu-cta {
  background: linear-gradient(180deg, #0d2130 0%, #092031 100%);
  border-radius: 6px;
  padding: 22px;
  color: #fff;
}

.mega-menu-cta .mega-menu-eyebrow,
.mega-menu-cta p,
.mega-menu-cta h3 {
  color: #fff;
}

.mega-menu-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.mega-menu-cta .btn {
  margin-top: 18px;
}

.mega-menu-cta .btn-primary {
  background: #0073aa;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mega-menu-cta .btn-primary:hover,
.mega-menu-cta .btn-primary:focus-visible {
  background: #005f8d;
  color: #ffffff;
}

.mobile-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-button span,
.mobile-nav-button span::before,
.mobile-nav-button span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: .18s ease;
  content: "";
}

.mobile-nav-button span::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.mobile-nav-button span::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.mobile-nav-panel {
  display: none;
}

.mobile-nav-group {
  border-top: 1px solid var(--border);
}

.mobile-nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.mobile-nav-summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #6b7c8c;
}

.mobile-nav-group[open] > .mobile-nav-summary::after {
  content: "−";
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
  padding: 0 0 18px;
}

.mobile-nav-links a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--muted);
}

.mobile-nav-cta {
  padding-top: 18px;
}

.mobile-nav-cta .btn {
  width: 100%;
}

.mobile-nav-meta {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.mobile-nav-meta a {
  font-size: 14px;
  color: var(--muted);
}

/* Anchor offset for sticky header */
html {
  scroll-padding-top: 110px;
}

/* Fallback for older browsers / precise control */
.section,
[id] {
  scroll-margin-top: 110px;
}

/* Desktop mega menu: click-to-open only */
@media (min-width: 992px) {
  .nav-item .mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0);
  }

  .nav-item.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-item .nav-caret {
    opacity: 0.8;
  }

  .nav-item.is-open .nav-caret {
    opacity: 1;
  }

  .nav-link::after,
  .nav-item::after {
    content: none;
  }
}

@media (max-width: 1280px) {
  .mega-menu,
  .nav-item-about .mega-menu,
  .nav-item-insights .mega-menu,
  .nav-item-services .mega-menu,
  .nav-item-solutions .mega-menu,
  .nav-item-industries .mega-menu {
    width: calc(100vw - 40px);
  }
}

@media (max-width: 1180px) {
  .brand-logo {
    width: 245px;
  }

  .header-inner {
    gap: 20px;
  }

  .nav-link,
  .nav > a {
    padding-inline: 10px;
  }

  .mega-menu-grid,
  .nav-item-about .mega-menu-grid,
  .nav-item-insights .mega-menu-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .mega-menu-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .header .container.header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 82px;
    padding-left: 0;
    padding-right: 0;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: clamp(170px, 42vw, 220px);
    max-width: 100%;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .mobile-nav-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    justify-self: end;
  }

  .mobile-nav-panel {
    display: block;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    padding: 14px 18px 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .18s ease;
    z-index: 2200;
  }

  .mobile-nav-toggle:checked ~ .mobile-nav-button {
    border-color: #bfcdda;
  }

  .mobile-nav-toggle:checked ~ .mobile-nav-button span {
    background: transparent;
  }

  .mobile-nav-toggle:checked ~ .mobile-nav-button span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-nav-toggle:checked ~ .mobile-nav-button span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .mobile-nav-toggle:checked ~ .mobile-nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .header .container.header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-inner {
    min-height: 76px;
    gap: 10px;
  }

  .brand-logo {
    width: clamp(150px, 48vw, 198px);
  }

  .mobile-nav-panel {
    left: 0;
    right: 0;
    padding: 12px 16px 18px;
  }
}

/* =========================================================
   Footer - production-ready links/content
   ========================================================= */

.footer-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-tagline {
  margin: 0 0 14px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}

.footer-meta {
  margin: 0;
  color: #c7d4df;
}

.footer li + li {
  margin-top: 10px;
}

.footer a {
  color: #c7d4df;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a {
  color: #c7d4df;
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   LEGAL PAGE STYLES
========================= */

.legal-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
  padding: 84px 0 72px;
}

.legal-hero-inner {
  max-width: 900px;
}

.legal-hero-copy {
  max-width: 820px;
}

.legal-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
}

.legal-intro {
  padding-top: 56px;
  padding-bottom: 24px;
}

.legal-header-center {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}

.legal-header-center h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
  max-width: none;
  margin: 0;
}

.legal-header-center .lead {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.legal-policy-content {
  padding-top: 12px;
}

.legal-policy-body {
  max-width: 1100px;
  margin: 0 auto;
}

.legal-policy-body > * + * {
  margin-top: 14px;
}

.legal-policy-body h2 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.24;
  letter-spacing: -0.04em;
  margin-top: 28px;
  margin-bottom: 0;
}

.legal-policy-body h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 0;
}

.legal-policy-body p,
.legal-policy-body li {
  font-size: 15px;
  line-height: 1.72;
  color: #445264;
}

.legal-policy-body ul,
.legal-policy-body ol {
  margin: 0 0 0 1.4rem;
  padding: 0;
}

.legal-policy-body li + li {
  margin-top: 6px;
}

.legal-policy-body strong {
  color: var(--text);
}

.legal-doc-section {
  padding-top: 24px;
}

.legal-group {
  margin-top: 0;
  margin-bottom: 56px;
}

.legal-group:last-child {
  margin-bottom: 0;
}

.legal-group-head {
  margin-bottom: 24px;
  max-width: 860px;
}

.legal-group-head .eyebrow {
  margin-bottom: 8px;
}

.legal-group-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin: 0;
  max-width: 980px;
}

/* force grid behavior clearly */
.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .legal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .legal-card-grid {
    grid-template-columns: 1fr;
  }
}

.legal-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 185px;
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-card:hover {
  border-color: #b8c6d8;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.legal-card:focus-visible {
  outline: 2px solid #004a80;
  outline-offset: 2px;
}

.legal-card-icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.8;
}

.legal-card h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.legal-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #5e6b7a;
  margin: 0;
}

.legal-notes-section {
  padding-top: 24px;
}

.legal-note-shell {
  background: #f7f9fc;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 32px;
}

.legal-note-block {
  max-width: 860px;
  margin-bottom: 24px;
}

.legal-note-block h2 {
  margin-bottom: 12px;
}

.legal-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .legal-note-grid {
    grid-template-columns: 1fr;
  }
}

.legal-note-card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 20px;
}

.legal-note-card h3 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.legal-note-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #5e6b7a;
  margin: 0;
}

.legal-contact-band {
  padding-top: 24px;
}

.legal-contact-shell {
  background: #f5f7fa;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-contact-shell h2 {
  margin-bottom: 10px;
}

.legal-contact-actions {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .legal-contact-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}
