: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;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 200px;
}
.brand-logo {
  width: 200px;
  max-width: 100%;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 160px;
}

.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,
.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.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-copy 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;
}
.card-link {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  color: var(--accent);
}
.step {
  padding: 24px 22px 22px;
  background: var(--surface);
}
.step .num,
.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-brand {
  font-size: 24px;
  margin-bottom: 14px;
}
.footer h4 {
  margin: 0 0 12px;
  font-size: 15px;
}
.footer p,
.footer li,
.footer a,
.footer span {
  margin: 0 0 10px;
  color: #d6dee6;
  font-size: 14px;
  line-height: 1.7;
}
.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer a:hover { color: #fff; }
.rule {
  height: 1px;
  background: #223544;
  margin: 36px 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9fb3c4;
}
.footer-bottom p,
.footer-bottom a { margin: 0; }

.footer-legal a {
  font-size: 13px;
  color: #9fb3c4;
}

.footer-legal a:hover {
  color: #ffffff;
}

.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-16 { margin-top: 16px; }
.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,
  .hero-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 logo sizing */
.site-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Shared card accents / links */
.service-accent {
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

.card-link {
  display: block;
  color: inherit;
}

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

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

.contact-card-grid,
.contact-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.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;
}

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

@media (max-width: 767px) {
  .contact-card-grid,
  .contact-process-grid {
    grid-template-columns: 1fr;
  }

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

  .site-logo {
    width: 180px;
  }
}



/* =========================================================
   Header / Mega Menu
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.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;
}

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

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

.nav-item {
  position: relative;
  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 {
  color: var(--primary);
}

.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;
}


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


.mega-menu-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.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(--primary);
  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: 14px 18px;
}

.mega-menu-link {
  display: block;
  padding: 14px 14px 13px;
  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: 16px;
  line-height: 1.3;
}

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

.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;
}

.nav-item-services .mega-menu,
.nav-item-solutions .mega-menu,
.nav-item-industries .mega-menu {
  left: 50%;
}


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

  .header-inner {
    gap: 20px;
  }

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

  .mega-menu-grid {
    grid-template-columns: 1fr 1.7fr;
  }

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

@media (max-width: 991px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }
}



/* =========================================================
   Mega Menu Container Alignment Override
   Keeps every mega menu the same width and in the same place
   regardless of which nav item is hovered.
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav {
  position: static;
}

.nav-item {
  position: static;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 48px));
  border-radius: 8px;
  padding: 28px;
}


.mega-menu-grid {
  grid-template-columns: 1.05fr 2.2fr 1fr;
  gap: 28px;
}

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

.mega-menu-link {
  min-height: 116px;
  padding: 16px 16px 15px;
}

.mega-menu-link strong {
  font-size: 15px;
}

.mega-menu-link span {
  font-size: 13px;
  line-height: 1.65;
}

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

@media (max-width: 1280px) {
  .mega-menu {
    width: calc(100vw - 40px);
  }
}

@media (max-width: 1180px) {
  .mega-menu-grid {
    grid-template-columns: 1fr 1.5fr;
  }

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



/* Keep all mega menus the same width, including About and Insights */
.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: min(1240px, calc(100vw - 48px));
}


/* Expand the active zone so the menu stays open while moving into it */
.mega-menu {
  margin-top: 0;
}

/* Make sure the dropdown can sit above page content and still receive pointer events */
.header,
.header .container.header-inner,
.nav,
.nav-item,
.mega-menu {
  z-index: inherit;
}

.mega-menu {
  z-index: 1100;
}

/* About and Insights still use the same roomy column structure */
.nav-item-about .mega-menu-grid,
.nav-item-insights .mega-menu-grid {
  grid-template-columns: 1.05fr 2.2fr 1fr;
  gap: 28px;
}






/* Mega menu CTA button hover consistency */
.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;
}



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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 18px;
}

.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 h4 {
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.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;
}


/* =========================================================
   Mobile Header / Navigation
   ========================================================= */

.mobile-nav-toggle,
.mobile-subnav-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-links a:hover {
  color: var(--accent);
}

.mobile-nav-direct {
  display: block;
  min-height: 56px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.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);
}

.mobile-nav-meta a:hover {
  color: var(--accent);
}

@media (max-width: 991px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    min-height: 82px;
  }

  .brand-logo {
    width: 220px;
  }

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

  .mobile-nav-button {
    display: inline-flex;
    justify-self: end;
  }

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

  .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-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 198px;
  }

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


/* =========================================================
   Header refinements (mobile padding + anchor offset)
   ========================================================= */

/* Mobile logo padding */
@media (max-width: 991px) {
  .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 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;
  }
}

