/* ================================================================
   QUALZY — Shared Components
   Nav · Footer · Buttons · CTA · Eyebrow badges · Hero stats
   ================================================================ */


/* NAVIGATION
   ---------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(15, 14, 12, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--o);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img { height: 32px; display: block; }
/* Fallback text shown if logo image fails to load */
.logo span { display: none; }

.nl { display: flex; gap: 28px; list-style: none; }

.nl a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-base);
}

.nl a:hover { color: #fff; }

.ncta {
  background: var(--o);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-base);
}

.ncta:hover { background: var(--ol); }


/* BUTTONS
   ---------------------------------------------------------------- */

/* Primary — orange fill */
.bp {
  background: var(--o);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-base);
}

.bp:hover {
  background: var(--ol);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 97, 44, 0.3);
}

/* Ghost — bordered */
.bg {
  color: var(--mid);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--rule);
  background: #fff;
  transition: all var(--t-base);
}

.bg:hover { border-color: var(--o); color: var(--o); }

/* White — for use on orange CTA backgrounds */
.bwh {
  background: #fff;
  color: var(--o);
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-base);
}

.bwh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Outline white — for use on orange CTA backgrounds */
.bow {
  border: 2px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  background: transparent;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-base);
}

.bow:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }


/* EYEBROW BADGE
   ---------------------------------------------------------------- */
.ey {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--op);
  border: 1px solid rgba(232, 97, 44, 0.25);
  color: var(--o);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.eyd {
  width: 6px;
  height: 6px;
  background: var(--o);
  border-radius: 50%;
  animation: pu 2s infinite;
}


/* HERO STAT BAR
   ---------------------------------------------------------------- */
.hst {
  display: flex;
  width: 100%;
  max-width: 600px;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.hst > div {
  flex: 1;
  padding: 22px 16px;
  text-align: center;
  border-right: 1.5px solid var(--rule);
}

.hst > div:last-child { border-right: none; }

.sn {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--o);
  display: block;
  line-height: 1;
}

.sl { font-size: 12px; color: var(--mu); margin-top: 5px; line-height: 1.4; }


/* CTA SECTION
   ---------------------------------------------------------------- */
.cta {
  background: var(--o);
  padding: 100px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.ctai {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta .slbl { color: rgba(255, 255, 255, 0.65); }
.cta .stit { color: #fff; margin-bottom: 18px; }
.cta .stit em { color: rgba(255, 255, 255, 0.6); }
.cta .sbod { color: rgba(255, 255, 255, 0.75); margin: 0 auto 36px; }

.ctab {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--d2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Top section: brand col + nav cols */
.ft-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 80px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-logo img { display: block; height: 28px; width: auto; filter: brightness(0) invert(1); }

.ft-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 14px 0 20px;
  line-height: 1.5;
}

.ft-cta {
  display: inline-block;
  background: var(--o);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
  margin-bottom: 8px;
}
.ft-cta:hover { opacity: 0.88; }

.ft-cta-note {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

/* Three-column nav group */
.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ft-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-col-hd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
  display: block;
  text-decoration: none;
}
a.ft-col-hd:hover {
  color: rgba(255, 255, 255, 0.6);
}

.ft-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
}
.ft-col a:hover { color: rgba(255, 255, 255, 0.85); }

/* Sign-in subgroup: flex column so links stack correctly */
.ft-signin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Trust badges row */
.ft-trust {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0;
}

.ft-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 22px 80px;
}

.ft-trust-logo {
  display: block;
  height: 38px;
  width: auto;
  /* Logos are white/light on transparent — invert to match footer tone
     or just render as-is; they're white so they read well on dark bg  */
  opacity: 0.55;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1);
}

.ft-trust-logo { cursor: default; }

/* Bottom bar */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
}

.ft-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* Footer nav overrides the global fixed nav styles */
footer nav {
  position: static;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

footer nav a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color var(--t-base);
}
footer nav a:hover { color: rgba(255, 255, 255, 0.6); }

/* Footer newsletter band — compact, sits above dark footer columns */
.ft-newsletter {
  background: var(--op);
  border-top: 1px solid rgba(232, 97, 44, 0.15);
  border-bottom: 1px solid rgba(232, 97, 44, 0.15);
  padding: 28px 80px;
}

.ft-nl-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

.ft-nl-hd {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 4px;
  line-height: 1.25;
}

.ft-nl-sub {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 30px; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); gap: 24px 30px; }
  .ft-trust-logos { padding: 16px 20px; gap: 24px; }
  .ft-trust-logo  { height: 28px; }
  .ft-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px 24px; }
  footer nav { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
  .ft-newsletter { padding: 24px; }
  .ft-nl-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .ft-cols { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .ft-cols .ft-col:nth-child(1) { grid-row: span 2; }
  .ft-cols .ft-col:nth-child(3) { grid-column: 2; }
  .ft-signin { display: none; }
}


/* HERO JUMP-NAV TABS
   Pill-shaped jump links used on hero sections (solutions, platform, etc.)
   ---------------------------------------------------------------- */
.sol-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sol-tab {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transition: all var(--t-base);
}

.sol-tab:hover {
  border-color: var(--o);
  color: var(--o);
  background: rgba(250, 88, 2, 0.12);
}


/* MEGA MENU
   Full-width dropdown below the fixed nav, activated on hover of .has-mega.
   Position: fixed so it sits at exactly nav-bottom (64px) regardless of
   scroll position, centered on the viewport.
   ---------------------------------------------------------------- */
.has-mega { position: static; }

/* Caret indicator after "Solutions" link */
.mega-trigger { display: inline-flex; align-items: center; gap: 5px; }

.mega-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid rgba(255, 255, 255, 0.4);
  margin-top: 1px;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.has-mega.mega-open .mega-trigger::after {
  transform: rotate(180deg);
  border-top-color: rgba(255, 255, 255, 0.9);
}

/* The dropdown panel */
.mega-menu {
  position: fixed;
  top: 72px;           /* slightly below nav (64px) when hidden */
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 96vw);
  background: var(--wh);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, top 0.22s ease;
  z-index: 199;
  overflow: hidden;
  /* Orange accent line at top */
  border-top: 3px solid var(--o);
}

.has-mega.mega-open .mega-menu {
  top: 64px;           /* flush with nav bottom when open */
  opacity: 1;
  pointer-events: auto;
}

/* Inner grid: 5 equal columns */
.mega-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

/* Content columns */
.mega-col {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
}

.mega-head {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Override the .nl a colour for all links inside the mega menu */
.mega-menu a { color: var(--mid); }

/* Success Stories column — tinted background to distinguish it */
.mega-col--stories {
  background: var(--op);
  border-right: none;
}

/* Clickable column headings — explicit overrides to win against .nl a specificity */
a.mega-head, .mega-head--link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o) !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

a.mega-head:hover, .mega-head--link:hover {
  color: var(--o2) !important;
}

.mega-col ul li a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 0 6px 0;
  transition: color 0.15s ease;
}

.mega-col ul li a:hover {
  color: var(--o);
  text-decoration: underline;
}

.mega-col--stories ul li a {
  transition: color 0.15s ease;
}

.mega-col--stories ul li a:hover {
  padding-left: 0;
  text-decoration: underline;
}


/* ── "Qualzy for…" persona strip
   Full-width bar pinned to the bottom of the Solutions mega menu.
   Separated from the columns above by a top border + subtle tint.
   ---------------------------------------------------------------- */

.mega-for-whom {
  border-top: 1px solid var(--rule);
  background: rgba(250, 88, 2, 0.03);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mega-for-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mu);
  white-space: nowrap;
  flex-shrink: 0;
}

.mega-for-label--link {
  text-decoration: none;
  transition: color 0.15s ease;
}

.mega-for-label--link:hover,
.nl a.mega-for-label--link:hover {
  color: var(--o);
}

.mega-for-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}

.mega-for-tile {
  display: flex;
  flex-direction: row;      /* icon left, text block right */
  align-items: flex-start;  /* icon aligns to top of title, not centre of whole block */
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mega-for-tile:hover {
  background: rgba(250, 88, 2, 0.06);
}

.mega-for-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(250, 88, 2, 0.08);
  color: var(--o);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.mega-for-tile:hover .mega-for-icon {
  background: rgba(250, 88, 2, 0.14);
}

.mega-for-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mega-for-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk);
  line-height: 1.2;
}

.mega-for-text span {
  font-size: 11.5px;
  color: var(--mu);
  line-height: 1.35;
}

/* Ensure the Solutions mega-menu wraps correctly around the strip */
.mega-menu:not(.mega-menu--platform):not(.mega-menu--co) .mega-inner {
  border-bottom: none;
}


/* COMPANY DROPDOWN
   Fixed panel positioned flush with nav bottom (top: 64px).
   Left position is set dynamically by main.js on open so it
   always aligns below the Company trigger regardless of viewport width.
   ---------------------------------------------------------------- */
.mega-menu--co {
  position: fixed;
  top: 64px;     /* flush with nav bottom — set once, always correct */
  left: 0;       /* overridden by JS on open */
  right: auto;
  transform: none;
  width: 220px;
  border-radius: 0 0 14px 14px;
}

.mega-co-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-co-list li {
  border-bottom: 1px solid var(--rule);
}

.mega-co-list li:last-child {
  border-bottom: none;
}

.mega-co-list a {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid) !important;
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}

.mega-co-list a:hover {
  color: var(--o) !important;
  background: var(--op);
}



/* PLATFORM MEGA MENU
   Three-section layout: Features (wide) · Activity Types · Platform & Trust
   Visually distinct from the Solutions menu — feature tiles instead of plain lists.
   ---------------------------------------------------------------- */

/* Override the inner grid for the platform menu */
.mega-menu--platform .mega-inner {
  grid-template-columns: 5fr 1.75fr 1.75fr;
}

/* Features column — slightly more padding to give tiles room */
.mega-col--features {
  padding: 26px 24px 30px;
  border-right: 1px solid var(--rule);
}

/* 2-column tile grid */
.plat-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 8px;
}

/* Feature tile — half-width horizontal card with icon */
.plat-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.plat-feat:hover {
  border-color: var(--o);
  background: var(--op);
}

/* Icon container */
.plat-feat-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mu);
  margin-top: 1px;
  transition: color 0.15s ease;
}

.plat-feat:hover .plat-feat-icon {
  color: var(--o);
}

/* Text block */
.plat-feat-text {
  flex: 1;
  min-width: 0;
}

.plat-feat strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 3px;
  transition: color 0.15s ease;
}

.plat-feat:hover strong {
  color: var(--o);
}

.plat-feat span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--mu);
}

/* Activity Types column */
.mega-col--activities {
  padding: 26px 22px 30px;
  border-right: 1px solid var(--rule);
}

/* Tighter row spacing so 13 items fit comfortably */
.mega-col--activities ul li a {
  padding: 4px 0;
}

/* Platform & Trust column — warm tinted background, flex column so Trust Centre pins to bottom */
.mega-col--trust {
  background: var(--op);
  border-right: none;
  padding: 26px 22px 0;  /* no bottom padding — Trust Centre bleeds to edge */
  display: flex;
  flex-direction: column;
}

.mega-col--trust ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.mega-col--trust ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 97, 44, 0.15);
}

.mega-col--trust ul li:last-child {
  border-bottom: none;
}

.mega-col--trust ul li a {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dk);
  text-decoration: none;
  margin-bottom: 2px;
  transition: color 0.15s ease;
}

.mega-col--trust ul li a:hover {
  color: var(--o);
}

.plat-trust-note {
  display: block;
  font-size: 11px;
  color: var(--mu);
  line-height: 1.4;
}

/* Trust Centre — separated by an orange line, text in orange, no background change */
.plat-trust-centre {
  display: block;
  margin-top: auto;
  padding: 16px 0 26px;
  text-decoration: none;
  border-top: 2px solid var(--o);
  transition: opacity 0.15s ease;
}

.plat-trust-centre:hover {
  opacity: 0.75;
}

.plat-trust-centre-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--o);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.plat-trust-centre-sub {
  display: block;
  font-size: 11px;
  color: var(--mu);
  line-height: 1.45;
}


/* ── MOBILE MENU
   ---------------------------------------------------------------- */

/* mob-menu: full-viewport fixed container. position:fixed + inset:0 creates
   a containing block for position:absolute children — this is guaranteed by
   the CSS spec and is the most reliable way to size/position the overlay and
   panel without any nested-fixed or flex-height ambiguity. */
.mob-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
}
.mob-menu.is-open { pointer-events: auto; }

/* Burger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.nav-burger:hover { background: rgba(255,255,255,0.06); }
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

/* Overlay — absolutely positioned within mob-menu (its containing block).
   top/right/bottom/left:0 fills mob-menu exactly = full viewport. */
.mob-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Panel — absolutely positioned within mob-menu.
   top:0 + bottom:0 = full viewport height (no height property needed).
   right:0 + width:300px = anchored to right edge.
   z-index:2 sits above the overlay (z-index:1). */
.mob-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  /* Subtle warm gradient — imperceptibly lighter/warmer towards the bottom
     where the orange CTA lives, tying the accent colour into the panel */
  background: linear-gradient(170deg, #1A1915 0%, #1D1A11 60%, #201B11 100%);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  z-index: 2;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Open state */
.mob-menu.is-open .mob-overlay {
  opacity: 1;
  pointer-events: auto;
}
.mob-menu.is-open .mob-panel {
  transform: translateX(0);
}

/* Panel header — close button only, no logo (avoids img load issues) */
.mob-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  min-height: 64px; /* matches nav bar height */
}
.mob-logo img { display: block; height: 26px; width: auto; }

.mob-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
  padding: 0;
}
.mob-close:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

/* Nav links — scrollable area between header and CTA.
   IMPORTANT: <nav> elements get the global nav{position:fixed; height:64px; ...}
   rule. These overrides are mandatory to undo that and keep mob-nav as a normal
   flex child inside the panel. */
.mob-nav {
  /* Undo the global nav{} fixed positioning */
  position: static;
  top: auto;
  left: auto;
  right: auto;
  height: auto;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: 8px 0;
  /* Panel-specific layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 1;
  overflow-y: auto;
}
.mob-nav a {
  display: block;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-left: 2px solid transparent;
  /* Base state for entrance animation — links start invisible and shifted right */
  opacity: 0;
  transform: translateX(14px);
  transition: color var(--t-fast), background var(--t-fast),
              opacity 0.22s ease, transform 0.22s ease;
}
.mob-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
  border-left-color: var(--o);
}

/* Staggered entrance: links arrive after the panel slides in (320ms).
   Each link offsets by 45ms, giving a smooth cascade effect. */
.mob-menu.is-open .mob-nav a {
  opacity: 1;
  transform: none;
}
.mob-menu.is-open .mob-nav a:nth-child(1) { transition-delay: 110ms; }
.mob-menu.is-open .mob-nav a:nth-child(2) { transition-delay: 155ms; }
.mob-menu.is-open .mob-nav a:nth-child(3) { transition-delay: 200ms; }
.mob-menu.is-open .mob-nav a:nth-child(4) { transition-delay: 245ms; }
.mob-menu.is-open .mob-nav a:nth-child(5) { transition-delay: 290ms; }
.mob-menu.is-open .mob-nav a:nth-child(6) { transition-delay: 335ms; }

/* CTA button at bottom */
.mob-cta-wrap {
  position: relative;
  padding: 20px 24px 32px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  /* Entrance animation — fades up after the links */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mob-cta-wrap::before {
  /* Ambient orange glow that bleeds up from below the button —
     ties the accent colour into the panel rather than it sitting in isolation */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: radial-gradient(ellipse 80% 100% at 50% 110%, rgba(232,97,44,0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mob-menu.is-open .mob-cta-wrap {
  opacity: 1;
  transform: none;
  transition-delay: 370ms;
}
.mob-cta {
  position: relative; /* sits above the ::before glow */
  z-index: 1;
  display: block;
  text-align: center;
  background: var(--o);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(232,97,44,0.40);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  letter-spacing: 0.01em;
}
.mob-cta:hover {
  background: var(--o2);
  transform: translateY(-1px);
  box-shadow: 0 6px 36px rgba(232,97,44,0.55);
}


/* RESPONSIVE — COMPONENTS
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nl { display: none; }
  .mega-menu { display: none; }

  /* Hide desktop CTA — it lives inside the mobile panel */
  .ncta { display: none; }

  /* Show burger, pushed flush to the right edge */
  .nav-burger { display: flex; margin-left: auto; }

  .cta { padding: 60px 24px; }

  footer {
    flex-direction: column;
    gap: 20px;
    padding: 36px 24px;
    text-align: center;
  }

  footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .mob-panel { width: 100%; max-width: 100%; border-left: none; }
}


/* ── LIGHTBOX ─────────────────────────────────────────────────────
   Used with data-lightbox on any <img> across the site.
   ──────────────────────────────────────────────────────────────── */

/* Trigger images — zoom cursor + subtle hover lift */
img.lb-trigger {
  cursor: zoom-in;
  transition: filter 0.2s, transform 0.2s;
}

img.lb-trigger:hover {
  filter: brightness(1.03) drop-shadow(0 16px 48px rgba(250,88,2,.22));
  transform: scale(1.01);
}

/* Backdrop — solid dark so PNG transparent areas match perfectly */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 4, 4, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lb-overlay.lb-visible {
  opacity: 1;
}

/* Frame — springs in on open, cursor signals click-to-close */
.lb-frame {
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-width: 100%;
  display: inline-flex;
  cursor: zoom-out;
}

.lb-overlay.lb-visible .lb-frame {
  transform: scale(1) translateY(0);
}

/* Image */
.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 64px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 40px 100px rgba(0,0,0,.7);
}


@media (prefers-reduced-motion: reduce) {
  .lb-overlay, .lb-frame { transition: none; }
}
