/* ============================================
   PSIGNAL — Brand-Aligned Stylesheet
   Per Brand Guidelines 2025
   ============================================ */

:root {
  /* Primary palette (per brand doc) */
  --black: #000000;
  --navy-deep: #1F2A44;        /* Primary background for covers/section headers */
  --navy: #2E4A7D;              /* Secondary / panels */
  --slate: #5F6F8F;             /* Support / UI / slash graphic */
  --white: #FFFFFF;

  /* Secondary palette */
  --light-gray: #F4F6FA;        /* Light gray background */
  --divider: #BC9866;           /* Accent gold (divider / line, used sparingly) */

  /* Working tokens */
  --text-primary: #0A0E1A;      /* Near-black body copy */
  --text-secondary: #475066;    /* Secondary text */
  --text-dim: #7E8598;          /* Captions */
  --text-on-dark: #E8ECF2;
  --text-on-dark-dim: #B0B8CC;

  --border-light: rgba(31, 42, 68, 0.12);
  --border-strong: rgba(31, 42, 68, 0.25);
  --border-on-dark: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ============ TYPOGRAPHY ============
   Per brand doc: Helvetica primary (headings), Inter secondary (body)
*/
h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text-primary);
}

h1 { font-size: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2.2vw, 24px); }

p {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.7;
}

.eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

/* On dark sections (navy cover bands) */
.on-dark {
  background: var(--navy-deep);
  color: var(--text-on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: var(--text-on-dark-dim); }
.on-dark .eyebrow { color: var(--divider); }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

/* SVG/PNG logo inside nav/footer — sized to context */
.nav-logo .logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-logo .logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  padding: 10px 22px;
  background: var(--navy-deep);
  color: var(--white) !important;
  border-radius: 2px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.nav-cta:hover { background: var(--black); }

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ FOOTER SOCIAL ICONS ============ */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--slate);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

section {
  padding: 110px 0;
  position: relative;
}

.divider-line {
  height: 1px;
  background: var(--border-light);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--navy-deep);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--black);
  transform: translateY(-1px);
}

/* High-contrast hero CTA variant — pure black bg, white text, gold accent on hover */
.btn-cta-bright {
  background: #000 !important;
  color: #FFF !important;
  padding: 18px 36px;
  border: 1.5px solid #000;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-cta-bright:hover {
  background: var(--divider) !important;
  color: var(--navy-deep) !important;
  border-color: var(--divider);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(188, 152, 102, 0.35);
}

.on-dark .btn-primary {
  background: var(--white);
  color: var(--navy-deep);
}
.on-dark .btn-primary:hover {
  background: var(--light-gray);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--navy-deep);
  border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.on-dark .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.on-dark .btn-secondary:hover {
  background: var(--white);
  color: var(--navy-deep);
}

/* ============ FORMS ============ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Service page hero name (above Tier badge) */
.hero-service-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 38px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 15px 18px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Required field asterisk on adjacent label — works when input has [required] and label is sibling */
.field-group:has(input[required]) > label::after,
.field-group:has(textarea[required]) > label::after,
.field-group:has(select[required]) > label::after {
  content: " *";
  color: #C9342B;
  font-weight: 700;
  margin-left: 2px;
}

/* Stronger styling for "(optional)" text */
.field-group label .optional {
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  font-size: 11px;
  font-style: italic;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-deep);
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* Dark form variant */
.on-dark input, .on-dark textarea, .on-dark select {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-on-dark);
  color: var(--white);
}
.on-dark input:focus, .on-dark textarea:focus, .on-dark select:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.on-dark input::placeholder, .on-dark textarea::placeholder { color: var(--text-on-dark-dim); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SLASH GRAPHIC (signature device from brand doc) ============ */
.slash-accent {
  position: absolute;
  width: 56px;
  height: 220px;
  background: var(--slate);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

.slash-accent.dark {
  background: var(--navy-deep);
  height: 280px;
}

/* ============ FOOTER ============ */
footer {
  padding: 70px 40px 50px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  background: var(--white);
}

.footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover { color: var(--navy-deep); }

.footer-link {
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
}

.footer-link:hover { color: var(--navy-deep); text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(31, 42, 68, 0.1);
    z-index: 101;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  /* Mobile: nav-items become block-level so dropdowns stack */
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0;
  }

  .nav-item-trigger {
    width: 100%;
    font-size: 18px;
    padding: 12px 0;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 500;
  }

  .nav-item.is-open .nav-item-trigger .chev {
    transform: rotate(180deg);
  }

  .nav-links a.nav-cta {
    margin-top: 20px;
    margin-left: 0;
    padding: 14px 22px;
    color: var(--white) !important;
    border-bottom: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
  }

  .container, .container-narrow { padding: 0 20px; }
  section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .slash-accent { display: none; }
}

@media (max-width: 600px) {
  .nav-links { max-width: 100%; }
}

/* ============ GLOBAL CLEAN BULLET LISTS ============ */
ul.clean-bullets-light {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.clean-bullets-light li {
  padding: 8px 0 8px 22px;
  font-size: 15px;
  color: var(--text-primary);
  position: relative;
  line-height: 1.55;
  font-weight: 400;
}

ul.clean-bullets-light li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}

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

ul.clean-bullets li {
  padding: 8px 0 8px 22px;
  font-size: 15px;
  color: var(--text-on-dark-dim);
  position: relative;
  line-height: 1.55;
  font-weight: 400;
}

ul.clean-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--divider);
  border-radius: 50%;
}

/* ============================================
   MEGA-MENU NAVIGATION (Nomad-inspired)
   ============================================ */

.nav-item {
  position: relative;
}

.nav-item-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-item-trigger:hover { color: var(--navy); }

.nav-item-trigger .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-item-trigger .chev {
  transform: rotate(180deg);
}

/* The mega panel */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 580px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 32px;
  margin-top: 18px;
  box-shadow: 0 24px 64px rgba(15, 22, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

/* Invisible hover bridge — fills the visual gap between trigger and panel
   so hover state persists when the mouse travels down */
.nav-mega::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
}

/* Also extend the trigger's hover zone slightly so dropdowns are sticky */
.nav-item {
  padding-bottom: 4px;
}

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

/* Mega panel: 2-column grid for service/about menus */
.nav-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

/* Narrow variant for dropdowns with fewer items (e.g. Company with only About Us) */
.nav-mega.nav-mega-narrow {
  min-width: 380px;
}

.nav-mega-narrow .nav-mega-grid {
  grid-template-columns: 1fr;
}

.nav-mega-link {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.nav-mega-link:hover {
  background: var(--light-gray);
}

.nav-mega-link .nm-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mega-link .nm-icon svg { width: 16px; height: 16px; }

.nav-mega-link .nm-text { flex: 1; min-width: 0; }

.nav-mega-link .nm-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-mega-link:hover .nm-title { color: var(--navy); }

.nav-mega-link .nm-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Featured card variant inside mega-menu (e.g. for About) */
.nav-mega-featured {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 4px;
  margin-bottom: 18px;
  text-decoration: none;
}

.nav-mega-featured img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
}

.nav-mega-featured .nmf-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-mega-featured .nmf-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--divider);
  margin-bottom: 6px;
}

.nav-mega-featured .nmf-name {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.nav-mega-featured .nmf-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-on-dark-dim);
}

.nav-mega-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0 16px;
}

/* Company dropdown — wider to fit 6 items in 2 columns + dual leadership cards */
.nav-mega.nav-mega-company {
  min-width: 720px;
}

.nav-mega-company .nav-mega-grid {
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

/* Dual leadership cards — Teagin + Intisam side-by-side */
.nav-mega-leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.nav-mega-leader {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 4px;
  text-decoration: none;
  align-items: center;
  transition: transform 0.2s ease;
}

.nav-mega-leader:hover {
  transform: translateY(-1px);
}

.nav-mega-leader img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
}

.nav-mega-leader .nml-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--divider);
  margin-bottom: 4px;
  line-height: 1.3;
}

.nav-mega-leader .nml-name {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

/* Exclusive top-level nav link with flame icon */
.nav-link-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.exclusive-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #E07B30;
  filter: drop-shadow(0 0 6px rgba(224, 123, 48, 0.4));
}

.exclusive-icon svg {
  width: 14px;
  height: 14px;
}

/* Search button in nav */
.nav-search-btn {
  background: transparent;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.nav-search-btn:hover {
  color: var(--navy);
}

.nav-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Search overlay */
.nav-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 40px;
}

.nav-search-overlay.is-open {
  display: flex;
}

.nav-search-inner {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.nav-search-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.nav-search-close svg {
  width: 24px;
  height: 24px;
}

.nav-search-overlay form {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.nav-search-overlay input[type="text"] {
  flex: 1;
  padding: 18px 22px;
  background: var(--white);
  border: 1.5px solid var(--divider);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
}

.nav-search-overlay input[type="text"]:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(188, 152, 102, 0.3);
}

.nav-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--divider);
  color: var(--navy-deep);
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search-submit:hover {
  background: #D4B48A;
}

.nav-search-submit svg {
  width: 16px;
  height: 16px;
}

.nav-search-hint {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Mobile mega-menu collapse */
@media (max-width: 1100px) {
  .nav-mega {
    position: static;
    min-width: 0;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 12px;
    margin-top: 0 !important;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    left: auto;
  }

  /* CRITICAL: matches desktop ".nav-item.is-open .nav-mega" specificity to override the translateX(-50%) */
  .nav-item:hover .nav-mega,
  .nav-item.is-open .nav-mega {
    transform: none;
    left: auto;
    position: static;
  }

  /* Disable the desktop hover bridge on mobile, it can otherwise trap clicks */
  .nav-mega::before {
    display: none;
  }

  .nav-item.is-open .nav-mega { display: block; }

  /* nav-mega-narrow desktop min-width must be neutralized on mobile */
  .nav-mega.nav-mega-narrow {
    min-width: 0;
  }

  .nav-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 2px;
    width: 100%;
  }

  .nav-mega-link {
    padding: 14px 12px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .nav-mega-link .nm-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .nav-mega-link .nm-icon svg { width: 14px; height: 14px; }

  .nav-mega-link .nm-text {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .nav-mega-link .nm-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-deep);
    text-align: left;
    margin-bottom: 2px;
  }

  .nav-mega-link .nm-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
  }

  .nav-mega-featured {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 10px;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  .nav-mega-featured img {
    width: 56px;
    height: 56px;
    object-fit: cover;
  }

  .nav-mega-featured .nmf-name { font-size: 13px; }
  .nav-mega-featured .nmf-desc { font-size: 11px; line-height: 1.4; }
  .nav-mega-featured .nmf-eyebrow { font-size: 9px; }

  /* Company dropdown reverts to single column on mobile (no special width) */
  .nav-mega.nav-mega-company {
    min-width: 0;
  }

  .nav-mega-company .nav-mega-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Leadership cards stack vertically on mobile */
  .nav-mega-leaders {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .nav-mega-leader {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 10px;
    align-items: center;
  }

  .nav-mega-leader img { width: 48px; height: 48px; }
  .nav-mega-leader .nml-name { font-size: 13px; }
  .nav-mega-leader .nml-eyebrow { font-size: 9px; line-height: 1.3; }

  /* Exclusive top-level link: keep it visible on mobile, single line */
  .nav-link-exclusive {
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
  }

  .exclusive-icon { width: 16px; height: 16px; }
  .exclusive-icon svg { width: 12px; height: 12px; }

  /* Search button: render full-width on mobile inside slide-out */
  .nav-search-btn {
    width: 100%;
    padding: 14px 0;
    justify-content: flex-start;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-search-btn::after {
    content: "Search";
    margin-left: 4px;
  }

  /* Search overlay sizing on mobile */
  .nav-search-overlay {
    padding: 80px 16px 40px;
  }

  .nav-search-overlay form {
    flex-direction: column;
    gap: 10px;
  }

  .nav-search-submit {
    padding: 14px 24px;
    justify-content: center;
  }

  .nav-search-close {
    top: -44px;
  }
}
