/*
 * Axion Communications - Header CSS
 * Migrated from Code Snippet #8 during Phase 3.
 */

/* ===========================================================================
 * Snippet name:  Axion Landing Page - Header and Mega Menu CSS
 * Purpose:       All sticky header, primary nav, mega-menu panels (Products, Solutions, Company, Resources, Our Network), mobile menu toggle, and nav action buttons.
 * Used on:       Page slug: axion-landing only.
 * Last updated:  2026-05-18
 * Notes:         Includes hover-only mega menu reveal, mobile <992px slide-down panel, and component-scoped responsive @media rules.
 * Source of truth: axion_landing_page_mockup_v1.html (do not edit by hand;
 *                  regenerate from the mockup).
 * =========================================================================== */
    .nav-shell {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,0.94);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
    }

    .nav {
      position: relative;
      max-width: var(--container);
      margin: 0 auto;
      padding: 17px 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 28px;
    }

    .logo img {
      height: 46px;
      width: auto;
      display: block;
      max-width: 230px;
      object-fit: contain;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      font-size: 14px;
      font-weight: 700;
      color: #344054;
    }

    .nav-item { position: relative; }
    .nav-item.has-mega { position: static; }

    .nav-item.has-mega::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 34px;
      display: none;
      z-index: 99;
    }

    .nav-item.has-mega:hover::before,
    .nav-item.has-mega:focus-within::before {
      display: block;
    }

    .nav-link,
    .nav-link-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 10px 0;
      border: 0;
      background: transparent;
      color: #344054;
      font: inherit;
      cursor: pointer;
      white-space: nowrap;
    }

    .nav-link::after,
    .nav-link-btn::after {
      display: none;
    }

    .nav-link:hover::after,
    .nav-link-btn:hover::after,
    .nav-item:focus-within .nav-link-btn::after,
    .nav-item:hover .nav-link-btn::after {
      display: none;
    }

    .nav-caret {
      font-size: 11px;
      line-height: 1;
      color: #667085;
      transition: transform 0.2s ease;
      margin-left: 2px;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .mega-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 22px;
      right: 22px;
      width: auto;
      transform: translateY(8px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 28px;
      box-shadow: 0 28px 80px rgba(7, 17, 31, 0.18);
      padding: 22px;
      z-index: 100;
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .nav-item:hover .mega-menu,
    .nav-item:focus-within .mega-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .mega-menu::before {
      content: "";
      position: absolute;
      top: -34px;
      left: 0;
      right: 0;
      height: 34px;
    }

    .mega-menu > * {
      position: relative;
      z-index: 2;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: minmax(260px, 0.95fr) repeat(3, minmax(220px, 1fr));
      gap: 18px;
      align-items: stretch;
    }

    .mega-panel {
      border-radius: 22px;
      padding: 22px;
      background: #f7f9fb;
      border: 1px solid rgba(15,23,42,0.07);
    }

    .mega-panel.dark {
      background:
        radial-gradient(circle at 82% 16%, rgba(255,255,255,0.10), transparent 34%),
        linear-gradient(135deg, #061923, #07111f);
      color: #fff;
    }

    .mega-eyebrow {
      margin: 0 0 10px;
      color: #00aeef;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.10em;
    }

    .mega-panel h3 {
      margin: 0 0 10px;
      color: var(--dark);
      font-size: 24px;
      line-height: 1.14;
      letter-spacing: -0.025em;
    }

    .mega-panel.dark h3 { color: #fff; }

    .mega-panel p {
      margin: 0 0 18px;
      color: #667085;
      font-size: 14px;
      line-height: 1.6;
      font-weight: 500;
    }

    .mega-panel.dark p { color: #cbd5e1; }

    .mega-list {
      display: grid;
      gap: 10px;
    }

    .products-mega-menu .mega-grid {
      grid-template-columns: minmax(260px, 0.9fr) repeat(3, minmax(230px, 1fr));
      grid-auto-flow: row;
      align-items: stretch;
    }

    .products-mega-menu .mega-panel.dark {
      grid-row: 1 / span 4;
    }

    .products-mega-menu .mega-list {
      display: contents;
    }

    .products-mega-menu .mega-link {
      align-self: stretch;
      min-height: 92px;
      padding: 14px;
    }

    .solutions-mega-menu .mega-grid {
      grid-template-columns: minmax(260px, 0.9fr) repeat(3, minmax(230px, 1fr));
      grid-auto-flow: row;
      align-items: stretch;
    }

    .solutions-mega-menu .mega-panel.dark {
      grid-row: 1 / span 3;
    }

    .solutions-mega-menu .mega-list {
      display: contents;
    }

    .solutions-mega-menu .mega-link {
      align-self: stretch;
      min-height: 92px;
      padding: 14px;
    }

    .resources-mega-menu .mega-grid {
      grid-template-columns: repeat(3, minmax(230px, 1fr));
      gap: 18px;
      align-items: stretch;
    }

    .resources-mega-menu .mega-link {
      min-height: 92px;
      padding: 14px;
      grid-template-columns: 56px minmax(0, 1fr);
      align-self: stretch;
    }

    .resources-mega-menu .mega-icon {
      width: 56px;
      height: 56px;
      min-width: 56px;
      border-radius: 18px;
    }

    .resources-mega-menu .mega-icon svg {
      width: 29px;
      height: 29px;
    }

    .resources-mega-menu .mega-link strong {
      font-size: 15px;
      line-height: 1.25;
      margin-bottom: 3px;
    }

    .resources-mega-menu .mega-link > span:not(.mega-icon) > span {
      font-size: 13px;
      line-height: 1.35;
    }

    .network-mega-menu .mega-grid {
      grid-template-columns: repeat(3, minmax(230px, 1fr));
      gap: 18px;
      align-items: stretch;
    }

    .network-mega-menu .mega-link {
      min-height: 92px;
      padding: 14px;
      grid-template-columns: 56px minmax(0, 1fr);
      align-self: stretch;
    }

    .network-mega-menu .mega-icon {
      width: 56px;
      height: 56px;
      min-width: 56px;
      border-radius: 18px;
    }

    .network-mega-menu .mega-icon svg {
      width: 29px;
      height: 29px;
    }

    .network-mega-menu .mega-link strong {
      font-size: 15px;
      line-height: 1.25;
      margin-bottom: 3px;
    }

    .network-mega-menu .mega-link > span:not(.mega-icon) > span {
      font-size: 13px;
      line-height: 1.35;
    }

    .company-mega-menu .mega-grid {
      grid-template-columns: minmax(260px, 0.9fr) repeat(3, minmax(230px, 1fr));
      grid-auto-flow: row;
      align-items: start;
      align-content: start;
    }

    .company-mega-menu .mega-panel.dark {
      grid-row: 1 / span 2;
      align-self: stretch;
    }

    .company-mega-menu .mega-list {
      display: contents;
    }

    .company-mega-menu .mega-link {
      align-self: start;
      min-height: 92px;
      padding: 14px;
    }

    .mega-link {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      border-radius: 18px;
      padding: 14px;
      color: var(--dark);
      transition: 0.18s ease;
      min-height: 92px;
    }

    .mega-link:hover {
      background: #f2f6fa;
      transform: translateX(3px);
    }

    .mega-icon {
      width: 56px;
      height: 56px;
      min-width: 56px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 75% 18%, rgba(0,174,239,0.18), transparent 38%),
        #f3f8ff;
      color: #116dcc;
      font-size: 13px;
      line-height: 1;
      font-weight: 800;
      margin: 0;
      border: 1px solid rgba(17, 109, 204, 0.08);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
    }

    .mega-icon svg {
      width: 29px;
      height: 29px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      display: block;
    }

    .mega-link > span:not(.mega-icon) {
      display: block;
      min-width: 0;
      margin: 0;
    }

    .mega-link strong {
      display: block;
      color: var(--dark);
      font-size: 15px;
      line-height: 1.25;
      font-weight: 700;
      margin: 0 0 3px;
      white-space: normal;
    }

    .mega-link > span:not(.mega-icon) > span {
      display: block;
      color: #667085;
      font-size: 13px;
      line-height: 1.35;
      font-weight: 500;
      margin: 0;
      white-space: normal;
    }

    .mega-column-title {
      margin: 0 0 12px;
      color: var(--dark);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .mega-simple-list {
      display: grid;
      gap: 10px;
    }

    .mega-simple-list a {
      color: #344054;
      font-size: 14px;
      font-weight: 650;
      transition: 0.18s ease;
    }

    .mega-simple-list a:hover {
      color: #065389;
      transform: translateX(3px);
    }

    .mega-cta-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 18px;
    }

    .mega-btn-light {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 15px;
      border-radius: 999px;
      background: #fff;
      color: #07111f;
      font-size: 13px;
      font-weight: 800;
    }

    .mega-btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 15px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.22);
      color: #fff;
      font-size: 13px;
      font-weight: 800;
    }

    .mega-mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 18px;
    }

    .mega-mini {
      border-radius: 16px;
      padding: 13px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
    }

    .mega-mini strong {
      display: block;
      color: #fff;
      font-size: 18px;
      line-height: 1;
      margin-bottom: 4px;
    }

    .mega-mini span {
      color: #cbd5e1;
      font-size: 11px;
      font-weight: 600;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      font-size: 14px;
      color: var(--dark);
    }

    .nav-phone-wrap {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--dark);
      white-space: nowrap;
    }

    .nav-phone-icon,
    .portal-icon {
      width: 38px;
      height: 38px;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      background: #eef6ff;
      color: #065389;
      flex: 0 0 auto;
    }

    .nav-phone-icon svg,
    .portal-icon svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2.3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .phone { color: var(--dark); white-space: nowrap; }

    .portal-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--dark);
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 999px;
      padding: 13px 20px;
      font-weight: 700;
      font-size: 14px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: 0.22s ease;
      white-space: nowrap;
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-red {
      background: var(--dark);
      color: #fff;
      box-shadow: 0 14px 34px rgba(7, 17, 31, 0.18);
    }

    .nav-actions .btn-red {
      min-height: 44px;
      padding: 12px 20px;
      border-radius: 999px;
      font-size: 14px;
      background: var(--dark);
    }

    .btn-red:hover { background: var(--navy); }

    .btn-dark {
      background: var(--dark);
      color: #fff;
      box-shadow: 0 14px 34px rgba(7, 17, 31, 0.22);
    }

    .btn-outline {
      background: #fff;
      color: var(--dark);
      border-color: rgba(15, 23, 42, 0.16);
    }

    .menu-btn {
      display: none;
      background: #fff;
      color: var(--dark);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
      font-weight: 700;
      cursor: pointer;
    }

    .mobile-panel {
      display: none;
      position: absolute;
      left: 18px;
      right: 18px;
      top: calc(100% + 10px);
      background: #fff;
      border: 1px solid rgba(15,23,42,0.10);
      border-radius: 24px;
      box-shadow: 0 28px 80px rgba(7,17,31,0.18);
      padding: 18px;
      z-index: 120;
      max-height: calc(100vh - 110px);
      overflow: auto;
    }

    .mobile-panel.open { display: block; }

    .mobile-group {
      border-bottom: 1px solid rgba(15,23,42,0.08);
      padding: 14px 0;
    }

    .mobile-group:first-child { padding-top: 0; }
    .mobile-group:last-child { border-bottom: 0; padding-bottom: 0; }

    .mobile-group-title {
      margin: 0 0 10px;
      color: var(--dark);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .mobile-panel a {
      display: block;
      color: #344054;
      font-size: 15px;
      font-weight: 650;
      padding: 9px 0;
    }

    .mobile-panel .btn {
      width: 100%;
      margin-top: 12px;
    }

