/* ================================================================
   EXTOLEM — PREMIUM HEADER & NAVIGATION
   File: /assets/css/header.css

   Sections:
     1.  Header Shell — Glass + Sticky
     2.  Logo
     3.  Primary Navigation
     4.  Header Actions (CTA + hamburger)
     5.  Mega Menu Panel
     6.  Mega Menu Grid Layouts
     7.  Mega Menu Item Cards
     8.  Mega Menu Promo Cards
     9.  Mega Backdrop
    10.  Mobile Toggle / Hamburger
    11.  Mobile Full-Screen Menu
    12.  Mobile Accordion
    13.  Mobile Bottom CTA
    14.  Body Offset
    15.  Responsive
    16.  Reduced Motion
   ================================================================ */


/* ================================================================
   1. HEADER SHELL
   ================================================================ */

.ex-header {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: var(--ex-z-nav);
  width: calc(100% - 48px);
  max-width: 1240px;
  height: 62px;
  background: rgba(5, 8, 13, 0.42);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(255,255,255,0.04) inset,
    0 12px 48px rgba(0, 0, 0, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.3);
  transition:
    background 0.4s var(--ex-ease),
    border-color 0.4s var(--ex-ease),
    box-shadow 0.4s var(--ex-ease),
    top 0.4s var(--ex-ease);
}

.ex-header.is-scrolled {
  top: 10px;
  background: rgba(5, 8, 13, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.07) inset,
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.ex-header.mega-open {
  background: rgba(5, 8, 13, 0.88);
  border-color: rgba(255, 255, 255, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.ex-header-inner {
  max-width: 100%;
  height: 100%;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}


/* ================================================================
   2. LOGO
   ================================================================ */

.ex-header-logo { flex-shrink: 0; }

.ex-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.22s var(--ex-ease);
}

.ex-logo-link:hover { opacity: 0.8; }
.ex-logo-svg { display: block; }

.ex-logo-link img,
.ex-logo-link .custom-logo,
img.ex-logo-img {
  height: 34px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block;
  object-fit: contain;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}


/* ================================================================
   3. PRIMARY NAVIGATION
   ================================================================ */

.ex-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
}

.ex-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.ex-nav-item { position: relative; }

/* Nav link + trigger button — shared base */
.ex-nav-link,
.ex-nav-link--trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ex-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ex-text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--ex-r-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.22s var(--ex-ease),
    background 0.22s var(--ex-ease);
  white-space: nowrap;
  letter-spacing: 0.006em;
  line-height: 1;
}

.ex-nav-link:hover,
.ex-nav-link--trigger:hover {
  color: var(--ex-text);
  background: var(--ex-panel);
}

/* Active / open state */
.ex-nav-item--mega.is-open > .ex-nav-link--trigger,
.ex-nav-item--active > .ex-nav-link {
  color: var(--ex-text);
  background: var(--ex-panel);
}

.ex-nav-item--mega.is-open > .ex-nav-link--trigger {
  color: var(--ex-mint);
  background: var(--ex-mint-dim);
}

/* Chevron */
.ex-nav-chevron {
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.25s var(--ex-ease), opacity 0.25s;
}

.ex-nav-item--mega.is-open .ex-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--ex-mint);
}


/* ================================================================
   4. HEADER ACTIONS
   ================================================================ */

.ex-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* CTA button */
.ex-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ex-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: #05080D;
  text-decoration: none;
  background: var(--ex-grad-mint);
  padding: 10px 22px;
  border-radius: var(--ex-r-full);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.22s var(--ex-ease-spring),
    box-shadow 0.28s var(--ex-ease),
    filter 0.22s var(--ex-ease);
  position: relative;
  overflow: hidden;
}

.ex-header-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.55s var(--ex-ease);
}

.ex-header-cta:hover {
  color: #05080D;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(25, 245, 195, 0.42);
  filter: brightness(1.06);
}

.ex-header-cta:hover::after { transform: translateX(100%); }
.ex-header-cta:active        { transform: translateY(0); box-shadow: none; }

/* Pulsing dot */
.ex-header-cta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(5, 8, 13, 0.6);
  animation: ex-dot-pulse 2s ease infinite;
}

@keyframes ex-dot-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%       { transform: scale(1.4); opacity: 1; }
}


/* ================================================================
   5. MEGA MENU PANEL
   ================================================================ */

.ex-mega-panel {
  position: absolute;
  /* Positioned relative to the nav item. JS / CSS will centre it on the viewport. */
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);

  background: rgba(5, 9, 16, 0.97);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;

  /* Hidden */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ex-ease),
    transform 0.28s var(--ex-ease),
    visibility 0.28s;

  z-index: calc(var(--ex-z-nav) + 2);
  min-width: 760px;
}

/* Top mint accent line */
.ex-mega-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 245, 195, 0.6), transparent);
  border-radius: 9999px;
}

/* Open state */
.ex-nav-item--mega.is-open .ex-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.ex-mega-panel:hover { pointer-events: all; }

/* Inner padding */
.ex-mega-inner {
  padding: 28px;
}


/* ================================================================
   6. MEGA MENU GRID LAYOUTS
   ================================================================ */

.ex-mega-grid {
  display: grid;
  gap: 0;
  align-items: start;
}

/* AI Solutions: 2 content cols + promo */
.ex-mega-grid--ai {
  grid-template-columns: 1fr 1fr 220px;
  min-width: 820px;
}

/* Marketing: 2 cols + promo */
.ex-mega-grid--marketing {
  grid-template-columns: 1fr 1fr 220px;
  min-width: 820px;
}

/* Web & SEO: 2 cols + promo */
.ex-mega-grid--web {
  grid-template-columns: 1fr 1fr 220px;
  min-width: 820px;
}

/* Industries: 3 cols + promo */
.ex-mega-grid--industries {
  grid-template-columns: 1fr 1fr 1fr 220px;
  min-width: 1060px;
}

/* Resources: 2 cols + promo */
.ex-mega-grid--resources {
  grid-template-columns: 1fr 1fr 220px;
  min-width: 820px;
}

/* Column separators */
.ex-mega-col + .ex-mega-col,
.ex-mega-promo {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

/* Column base */
.ex-mega-col {
  padding: 0 22px;
}

.ex-mega-col:first-child { padding-left: 0; }

/* Column header */
.ex-mega-col-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ex-mega-col-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ex-text-subtle);
}

/* Item list */
.ex-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}


/* ================================================================
   7. MEGA MENU ITEM CARDS
   ================================================================ */

.ex-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--ex-r-sm);
  text-decoration: none;
  transition:
    background 0.18s var(--ex-ease),
    transform 0.2s var(--ex-ease);
}

.ex-mega-link:hover {
  background: rgba(255,255,255,0.055);
  transform: translateX(3px);
}

/* Compact variant for Industries (smaller footprint) */
.ex-mega-link--compact {
  padding: 7px 8px;
}

/* Icon wrapper */
.ex-mega-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ex-panel);
  border: 1px solid var(--ex-border);
  color: var(--ex-text-muted);
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ex-mega-link-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.ex-mega-link:hover .ex-mega-link-icon {
  background: var(--ex-mint-dim);
  border-color: var(--ex-border-mint);
  color: var(--ex-mint);
}

/* Text body */
.ex-mega-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.ex-mega-link-label {
  font-size: 0.865rem;
  font-weight: 500;
  color: var(--ex-text);
  line-height: 1.3;
  transition: color 0.18s var(--ex-ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ex-mega-link:hover .ex-mega-link-label { color: var(--ex-mint); }

.ex-mega-link-desc {
  font-size: 0.77rem;
  color: var(--ex-text-subtle);
  line-height: 1.45;
}

/* Inline badges */
.ex-mega-nav-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.ex-mega-nav-badge--new {
  background: rgba(25, 245, 195, 0.13);
  color: var(--ex-mint);
  border: 1px solid rgba(25, 245, 195, 0.28);
}

.ex-mega-nav-badge--free {
  background: rgba(74, 125, 255, 0.12);
  color: var(--ex-blue);
  border: 1px solid rgba(74, 125, 255, 0.25);
}


/* ================================================================
   8. MEGA MENU PROMO / CTA CARDS
   ================================================================ */

.ex-mega-promo {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,0.028);
  position: relative;
  overflow: hidden;
  margin: -28px -28px -28px 0;
  padding-top: 28px;
  padding-right: 28px;
  padding-bottom: 28px;
}

/* Ambient colour glow at top */
.ex-mega-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ex-mega-promo--mint::before   { background: radial-gradient(ellipse at 50% 0%, rgba(25, 245, 195, 0.14) 0%, transparent 65%); }
.ex-mega-promo--blue::before   { background: radial-gradient(ellipse at 50% 0%, rgba(74, 125, 255, 0.14) 0%, transparent 65%); }
.ex-mega-promo--purple::before { background: radial-gradient(ellipse at 50% 0%, rgba(118, 87, 255, 0.14) 0%, transparent 65%); }
.ex-mega-promo--gold::before   { background: radial-gradient(ellipse at 50% 0%, rgba(255, 209, 102, 0.12) 0%, transparent 65%); }

/* Badge pill */
.ex-mega-promo-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 9999px;
  position: relative;
}

.ex-mega-promo--mint .ex-mega-promo-badge   { color: var(--ex-mint);   background: var(--ex-mint-dim);   border: 1px solid rgba(25,245,195,0.3); }
.ex-mega-promo--blue .ex-mega-promo-badge   { color: var(--ex-blue);   background: var(--ex-blue-dim);   border: 1px solid rgba(74,125,255,0.3); }
.ex-mega-promo--purple .ex-mega-promo-badge { color: var(--ex-purple); background: var(--ex-purple-dim); border: 1px solid rgba(118,87,255,0.3); }
.ex-mega-promo--gold .ex-mega-promo-badge   { color: var(--ex-gold);   background: var(--ex-gold-dim);   border: 1px solid rgba(255,209,102,0.3); }

.ex-mega-promo-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ex-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  position: relative;
  margin: 0;
}

.ex-mega-promo-body {
  font-size: 0.79rem;
  color: var(--ex-text-muted);
  line-height: 1.6;
  position: relative;
  margin: 0;
  flex: 1;
}

.ex-mega-promo-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 9999px;
  transition:
    background 0.22s var(--ex-ease),
    color 0.22s var(--ex-ease),
    border-color 0.22s var(--ex-ease),
    transform 0.22s var(--ex-ease-spring),
    box-shadow 0.28s var(--ex-ease);
  position: relative;
  margin-top: auto;
}

.ex-mega-promo--mint .ex-mega-promo-cta   { color: var(--ex-mint);   background: var(--ex-mint-dim);   border: 1px solid rgba(25,245,195,0.28); }
.ex-mega-promo--blue .ex-mega-promo-cta   { color: var(--ex-blue);   background: var(--ex-blue-dim);   border: 1px solid rgba(74,125,255,0.28); }
.ex-mega-promo--purple .ex-mega-promo-cta { color: var(--ex-purple); background: var(--ex-purple-dim); border: 1px solid rgba(118,87,255,0.28); }
.ex-mega-promo--gold .ex-mega-promo-cta   { color: var(--ex-gold);   background: var(--ex-gold-dim);   border: 1px solid rgba(255,209,102,0.25); }

.ex-mega-promo--mint .ex-mega-promo-cta:hover   { background: var(--ex-mint);   color: #05080D; border-color: var(--ex-mint);   transform: translateY(-2px); box-shadow: 0 6px 22px rgba(25,245,195,0.32); }
.ex-mega-promo--blue .ex-mega-promo-cta:hover   { background: var(--ex-blue);   color: #fff;    border-color: var(--ex-blue);   transform: translateY(-2px); box-shadow: 0 6px 22px rgba(74,125,255,0.32); }
.ex-mega-promo--purple .ex-mega-promo-cta:hover { background: var(--ex-purple); color: #fff;    border-color: var(--ex-purple); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(118,87,255,0.32); }
.ex-mega-promo--gold .ex-mega-promo-cta:hover   { background: var(--ex-gold);   color: #05080D; border-color: var(--ex-gold);   transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255,209,102,0.28); }


/* ================================================================
   9. MEGA BACKDROP
   ================================================================ */

.ex-mega-backdrop {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ex-ease), visibility 0.3s;
  z-index: calc(var(--ex-z-nav) - 1);
  pointer-events: none;
}

.ex-mega-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}


/* ================================================================
   REPLACE SECTIONS 10, 11, 12, 13 in header.css
   Also update the relevant rules in sections 14 and 15.
   ================================================================ */


/* ================================================================
   10. MOBILE TOGGLE / HAMBURGER  — refined 2-line style
   ================================================================ */

.ex-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
  flex-shrink: 0;
}

.ex-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.ex-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 20px;
}

/* Two visible lines at rest — top full, bottom short (refined asymmetric) */
.ex-hamburger span {
  display: block;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition:
    transform 0.32s cubic-bezier(0.32, 0, 0.2, 1),
    opacity   0.22s ease,
    width     0.32s cubic-bezier(0.32, 0, 0.2, 1);
  transform-origin: center;
}

.ex-hamburger span:nth-child(1) { width: 20px; }
.ex-hamburger span:nth-child(2) { width: 13px; opacity: 0.55; } /* short line = refined feel */
.ex-hamburger span:nth-child(3) { width: 20px; opacity: 0; position: absolute; } /* hidden at rest, used for X */

/* Open state → clean X from 2 lines */
.ex-mobile-toggle.is-open .ex-hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 20px;
  opacity: 1;
}
.ex-mobile-toggle.is-open .ex-hamburger span:nth-child(2) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 20px;
  opacity: 1;
}
.ex-mobile-toggle.is-open .ex-hamburger span:nth-child(3) {
  opacity: 0;
}


/* ================================================================
   11. MOBILE MENU — Liquid glass sheet, drops from floating pill
   ================================================================ */

.ex-mobile-menu {
  /* Position: drops from below the floating header pill */
  position: fixed;
  top: 82px; /* 14px header-top + 62px header-height + 6px gap */
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%) translateY(-10px);

  /* Sizing: centered card, not full-screen */
  width: calc(100% - 24px);
  max-width: 520px;
  max-height: calc(100vh - 106px);

  z-index: calc(var(--ex-z-nav) + 10);

  /* Liquid glass */
  background: rgba(5, 8, 13, 0.76);
  backdrop-filter: blur(52px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(52px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(255, 255, 255, 0.03) inset,
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 6px 24px rgba(0, 0, 0, 0.38);

  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.32, 0, 0.2, 1),
    opacity   0.3s ease,
    visibility 0.3s;

  overscroll-behavior: contain;
}

/* Mint accent line at top — matches mega panel language */
.ex-mobile-menu::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 245, 195, 0.6), transparent);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

/* Open state — drops down and fades in */
.ex-mobile-menu.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ── Overlay — light dim, no heavy blur needed (menu has its own) ── */
.ex-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: calc(var(--ex-z-nav) + 9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s;
}

.ex-mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Menu header row — simplified (logo above in header, no repeat) ── */
.ex-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

/* Hide duplicate logo — header pill logo is still visible above */
.ex-mobile-logo-link { display: none; }

/* Menu label */
.ex-mobile-menu-header::before {
  content: 'Navigation';
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.ex-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}
.ex-mobile-close svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ex-mobile-close svg path {
  stroke: rgba(255, 255, 255, 0.7);
}

.ex-mobile-close:hover svg path {
  stroke: #ffffff;
}
.ex-mobile-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.06);
}

/* ── Scrollable content ── */
.ex-mobile-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Refined thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 245, 195, 0.18) transparent;
}

.ex-mobile-scroll::-webkit-scrollbar       { width: 3px; }
.ex-mobile-scroll::-webkit-scrollbar-track { background: transparent; }
.ex-mobile-scroll::-webkit-scrollbar-thumb { background: rgba(25,245,195,0.18); border-radius: 999px; }

/* Nav list */
.ex-mobile-nav { padding: 6px 0; }

.ex-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ex-mobile-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ex-mobile-item:last-child { border-bottom: none; }

/* Plain link item */
.ex-mobile-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.ex-mobile-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}


/* ================================================================
   12. MOBILE ACCORDION
   ================================================================ */

.ex-mobile-accordion-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  font-family: var(--ex-font);
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 11px;
  transition: color 0.2s ease, background 0.2s ease;
}

.ex-mobile-accordion-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ex-mobile-accordion-btn[aria-expanded="true"] {
  color: var(--ex-mint);
  background: rgba(25, 245, 195, 0.06);
}

/* Left icon */
.ex-mobile-acc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ex-mobile-accordion-btn[aria-expanded="true"] .ex-mobile-acc-icon,
.ex-mobile-link .ex-mobile-acc-icon {
  background: rgba(25, 245, 195, 0.1);
  border-color: rgba(25, 245, 195, 0.22);
  color: var(--ex-mint);
}

.ex-mobile-link:hover .ex-mobile-acc-icon {
  background: rgba(25, 245, 195, 0.1);
  border-color: rgba(25, 245, 195, 0.22);
  color: var(--ex-mint);
}

.ex-mobile-acc-label { flex: 1; }

/* Chevron */
.ex-mobile-chevron {
  color: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.2, 1), opacity 0.3s;
  margin-left: auto;
}

.ex-mobile-accordion-btn[aria-expanded="true"] .ex-mobile-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Panel */
.ex-mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.ex-mobile-accordion-panel.is-open { max-height: 600px; }

.ex-mobile-accordion-inner {
  padding: 4px 0 10px;
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sub-links */
.ex-mobile-sub-link {
  display: block;
  padding: 9px 18px 9px 62px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.ex-mobile-sub-link::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.ex-mobile-sub-link:hover {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 66px;
}

.ex-mobile-sub-link:hover::before {
  background: var(--ex-mint);
  transform: translateY(-50%) scale(1.5);
}

.ex-mobile-sub-link--all {
  color: var(--ex-mint);
  font-weight: 600;
  font-size: 0.84rem;
  margin-top: 2px;
}

.ex-mobile-sub-link--all::before { display: none; }


/* ================================================================
   13. MOBILE BOTTOM CTA — inside the glass sheet
   ================================================================ */

.ex-mobile-bottom {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.18);
}

.ex-mobile-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: var(--ex-grad-mint);
  color: #05080D;
  font-family: var(--ex-font);
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    filter 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ex-mobile-cta-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px rgba(25, 245, 195, 0.38);
  transform: translateY(-1px);
}

.ex-mobile-cta-primary .ex-header-cta-dot {
  background: rgba(5, 8, 13, 0.55);
}

.ex-mobile-footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ex-mobile-contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ex-mobile-contact-link:hover { color: var(--ex-mint); }
.ex-mobile-contact-link svg   { opacity: 0.6; flex-shrink: 0; }


/* ================================================================
   14. BODY OFFSET — updated for floating header
   ================================================================ */

body { padding-top: calc(62px + 28px); } /* height + top-offset + breathing room */

.admin-bar .ex-header { top: calc(32px + 14px); }
.admin-bar body       { padding-top: calc(62px + 32px + 28px); }

@media screen and (max-width: 782px) {
  .admin-bar .ex-header { top: calc(46px + 14px); }
  .admin-bar body       { padding-top: calc(62px + 46px + 28px); }
}

.ex-mega-backdrop { inset: calc(62px + 14px + 8px) 0 0 0; }


/* ================================================================
   15. RESPONSIVE — updated for floating pill + glass sheet
   ================================================================ */

/* ── Tablet ≤ 1180px ── */
@media (max-width: 1180px) {
  .ex-header-inner { padding: 0 14px 0 16px; }
  .ex-nav          { padding: 0 10px; }

  .ex-nav-link,
  .ex-nav-link--trigger { padding: 8px 11px; font-size: 0.84rem; }

  .ex-mega-promo { display: none; }

  .ex-mega-grid--ai,
  .ex-mega-grid--marketing,
  .ex-mega-grid--web,
  .ex-mega-grid--resources {
    grid-template-columns: 1fr 1fr;
    min-width: 540px;
  }

  .ex-mega-grid--industries {
    grid-template-columns: 1fr 1fr 1fr;
    min-width: 640px;
  }
}

/* ── Tablet small ≤ 1024px ── */
@media (max-width: 1024px) {
  .ex-mega-grid--industries {
    grid-template-columns: 1fr 1fr;
    min-width: 480px;
  }
}

/* ── Mobile ≤ 960px — floating pill shrinks ── */
@media (max-width: 960px) {
  /* Header pill */
  .ex-header {
    top: 10px;
    width: calc(100% - 24px);
    height: 58px;
    border-radius: 16px;
  }

  .ex-header.is-scrolled { top: 8px; }

  body { padding-top: calc(58px + 22px); }

  .ex-mega-backdrop { inset: calc(58px + 10px + 6px) 0 0 0; }

  /* Glass sheet repositions for smaller header */
  .ex-mobile-menu {
    top: 76px; /* 10px + 58px + 8px */
    max-height: calc(100vh - 96px);
    border-radius: 18px;
  }

  /* Header inner */
  .ex-header-inner {
    height: 58px;
    padding: 0 10px 0 14px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .ex-nav { display: none !important; }

  .ex-header-logo {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .ex-logo-link {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ex-header .ex-logo-link img,
  .ex-header .ex-logo-link .custom-logo,
  .ex-header img.ex-logo-img {
    width: auto !important;
    height: 34px !important;
    max-width: 130px !important;
    object-fit: contain;
  }

  .ex-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .ex-header-cta {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.79rem;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .ex-mobile-toggle { display: flex; }
}

/* ── Small phones ≤ 430px ── */
@media (max-width: 430px) {
  .ex-header {
    width: calc(100% - 20px);
    border-radius: 14px;
  }

  .ex-mobile-menu {
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .ex-header-inner { padding: 0 8px 0 12px !important; }

  .ex-header .ex-logo-link img,
  .ex-header .ex-logo-link .custom-logo,
  .ex-header img.ex-logo-img {
    height: 30px !important;
    max-width: 118px !important;
  }

  .ex-header-cta {
    padding: 0 12px;
    font-size: 0.74rem;
  }
}

/* ── Very narrow ≤ 360px — hide header CTA, drawer CTA handles it ── */
@media (max-width: 360px) {
  .ex-header-cta { display: none; }

  .ex-header .ex-logo-link img,
  .ex-header .ex-logo-link .custom-logo,
  .ex-header img.ex-logo-img {
    max-width: 140px !important;
  }
}


/* ================================================================
   16. REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .ex-header,
  .ex-mega-panel,
  .ex-mobile-menu,
  .ex-mobile-overlay,
  .ex-mega-backdrop,
  .ex-header-cta,
  .ex-header-cta::after,
  .ex-hamburger span,
  .ex-mobile-accordion-panel,
  .ex-mobile-chevron,
  .ex-nav-chevron,
  .ex-mega-link,
  .ex-mega-promo-cta,
  .ex-mobile-cta-primary,
  .ex-mobile-toggle,
  .ex-mobile-close {
    transition: none !important;
    animation: none !important;
  }

  .ex-header-cta-dot { animation: none !important; }
}
/* ================================================================
   MOBILE APP-LIKE — remove all touch highlights and selections
   ================================================================ */

/* Remove blue flash on tap (iOS + Android) */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent text selection on interactive elements */
button,
a,
label,
select,
.ex-mobile-toggle,
.ex-mobile-accordion-btn,
.ex-mobile-close,
.ex-mobile-link,
.ex-mobile-sub-link,
.ex-nav-link,
.ex-nav-link--trigger,
.ex-header-cta,
.ex-mobile-cta-primary,
.ex-mega-link,
.ex-mega-promo-cta {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  /* Remove default focus outline on touch (keep for keyboard a11y) */
  -webkit-tap-highlight-color: transparent;
}

/* Keep text selectable in content areas */
p, h1, h2, h3, h4, h5, h6, li, span, article {
  -webkit-user-select: text;
  user-select: text;
}

/* Remove default button/select outlines on mobile */
@media (max-width: 960px) {
  button:focus,
  a:focus,
  select:focus {
    outline: none;
  }

  /* Re-enable focus outline for keyboard users only */
  button:focus-visible,
  a:focus-visible,
  select:focus-visible {
    outline: 2px solid rgba(25, 245, 195, 0.6);
    outline-offset: 2px;
  }

  /* Remove iOS default input styling */
  input,
  select,
  textarea,
  button {
    -webkit-appearance: none;
    appearance: none;
  }

  /* Prevent double-tap zoom on buttons and links */
  button,
  a {
    touch-action: manipulation;
  }

  /* Smooth momentum scrolling everywhere */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Remove iOS callout on long-press (image save prompt etc.) */
  img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }
}
