/* ============================================================
   APEXU DESIGN SYSTEM — main.css
   Brand colours extracted directly from official logo files.
   Fonts: Manrope (headings) · Inter (body)
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* ── Brand Colours — ApexU ── */
  /* Primary navy (from logo: #25247B) */
  --apex-navy-brand:  #25247B;   /* exact logo navy          */
  --apex-navy:        #0E0D40;   /* darkened for backgrounds  */
  --apex-navy-mid:    #1A1960;   /* mid dark sections         */
  --apex-navy-light:  #3635A0;   /* lighter navy              */
  --apex-navy-pale:   #EBEBF8;   /* very pale tint            */

  /* Accent yellow (from logo: #FBDC00) */
  --apex-yellow:      #FBDC00;   /* exact logo yellow         */
  --apex-yellow-light:#FBDC00;   /* unified — same as logo    */
  --apex-yellow-pale: #FFFACC;   /* pale bg tints             */
  --apex-yellow-dark: #D4B800;   /* pressed / darker          */

  /* Neutrals */
  --apex-white:       #FFFFFF;
  --apex-off-white:   #F7F8FC;
  --apex-grey-light:  #ECEEF5;
  --apex-grey:        #8890A8;
  --apex-grey-dark:   #4A5270;
  --apex-text:        #12113A;   /* near-black with navy tint */

  /* Subsidiary accent vars — overridden per page */
  --sub-primary:      var(--apex-navy-brand);
  --sub-accent:       var(--apex-yellow);
  --sub-accent-light: var(--apex-yellow-light);
  --sub-accent-pale:  var(--apex-yellow-pale);

  /* ── Typography ── */
  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ── Spacing ── */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   1.5rem;
  --sp-lg:   2.5rem;
  --sp-xl:   4rem;
  --sp-2xl:  6rem;
  --section-py: clamp(4rem, 8vw, 6rem);

  /* ── Shape ── */
  --radius-sm:   4px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   30px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-sm:     0 1px 3px rgba(37,36,123,.08), 0 1px 2px rgba(37,36,123,.05);
  --shadow-md:     0 4px 16px rgba(37,36,123,.12), 0 2px 6px rgba(37,36,123,.06);
  --shadow-lg:     0 12px 40px rgba(37,36,123,.16), 0 4px 12px rgba(37,36,123,.08);
  --shadow-xl:     0 24px 64px rgba(37,36,123,.22);
  --shadow-yellow: 0 8px 32px rgba(251,220,0,.35);

  /* ── Motion ── */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --dur-fast: 180ms;
  --dur-mid:  300ms;
  --dur-slow: 500ms;

  /* ── Nav ── */
  --nav-height: 92px;    /* 68px card + 12px top + 12px bottom padding */
  --nav-card-h: 68px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--apex-text);
  background: var(--apex-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--apex-navy-brand);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 600; }

.display-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--apex-grey-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--apex-navy-brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

/* On dark backgrounds, eyebrow uses yellow */
.eyebrow-yellow { color: var(--apex-yellow); }
.eyebrow-light  { color: var(--apex-yellow-light); }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container-narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { padding-block: var(--section-py); }
.section-light { background: var(--apex-off-white); }
.section-dark  { background: var(--apex-navy-brand); color: var(--apex-white); }
.section-navy  { background: var(--apex-navy-brand); color: var(--apex-white); }
.section-mid   { background: var(--apex-navy-mid); color: var(--apex-white); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px),1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 1.5rem; }

.text-center  { text-align: center; }
.text-white   { color: var(--apex-white); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

/* ─── Section Headers ────────────────────────────────────── */
.section-header {
  text-align: left;
  max-width: 700px;
  margin: 0 0 var(--sp-xl);
}
.section-header h2 { color: var(--apex-navy-brand); }
.section-header.light h2 { color: var(--apex-white); }
.section-header .lead { margin-top: 1rem; }

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--apex-yellow);
  border-radius: 2px;
  margin: 1.1rem 0 0;
  display: block;
}

/* Yellow underline accent on section headings (matches reference template) */
.heading-accent {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 1.25rem;
  display: block;
}
.heading-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: var(--apex-yellow);
}
/* Centred variant */
.heading-accent.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Soft grey alternate section background */
.section-soft { background: #f7f8fc; }

/* ─── Navigation ─────────────────────────────────────────── */
/*
 * Full-width sticky topbar — white background with blur.
 * .nav is the fixed bar across the full viewport width.
 * .nav-card is a transparent max-width container inside it.
 */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(37,36,123,0.08);
  box-shadow: 0 1px 8px rgba(37,36,123,0.06);
  transition: box-shadow var(--dur-mid) var(--ease);
}
.nav.scrolled {
  box-shadow: 0 4px 28px rgba(37,36,123,0.12);
}

/* Transparent max-width container — no visual treatment */
.nav-card {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  background: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.nav.scrolled .nav-card {
  height: 100%;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1001;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav-logo:hover { opacity: 0.88; }

.nav-logo img {
  height: 42px;
  width: auto;
  filter: none; /* colour logo on white card */
  transition: height var(--dur-mid) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav.scrolled .nav-logo img { height: 34px; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 560;
  color: #3d4660;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  bottom: 2px;
  width: 0;
  height: 3px;
  background: var(--apex-yellow);
  border-radius: 99px;
  transition: width 0.22s ease;
}
.nav-link:hover { color: var(--apex-navy-brand); }
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.8rem); }
.nav-link.active {
  color: var(--apex-navy-brand);
  font-weight: 700;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(37,36,123,.1);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  box-shadow: 0 16px 48px rgba(37,36,123,.16), 0 4px 12px rgba(37,36,123,.08);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--apex-navy-brand);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-dropdown-link:hover {
  background: rgba(37,36,123,.06);
  color: var(--apex-navy-light);
}
.nav-dropdown-link img.dd-logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
  /* Subsidiaries use colour logos in white dropdown */
  filter: none;
  opacity: 0.85;
  border-radius: var(--radius-sm);
}
.nav-dropdown-link:hover img.dd-logo { opacity: 1; }
.nav-dropdown-link .dd-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-dropdown-link .dd-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--apex-grey);
  font-weight: 400;
  margin-top: 1px;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(37,36,123,.08);
  margin: 0.35rem 0;
}

/* Nav CTA */
.nav-cta { flex-shrink: 0; }
/* Outline button in white nav — must use dark border/text */
.nav-cta .btn-outline {
  border: 2px solid rgba(37,36,123,.30);
  color: var(--apex-navy-brand);
  background: transparent;
}
.nav-cta .btn-outline:hover {
  border-color: var(--apex-navy-brand);
  background: rgba(37,36,123,.05);
  color: var(--apex-navy-brand);
  transform: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--apex-navy-brand);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--apex-navy);
  z-index: 999;
  padding: calc(var(--nav-height) + 1rem) 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-mobile-link:hover { color: var(--apex-yellow); background: rgba(251,220,0,.05); }
.nav-mobile-sub { padding-left: 1.75rem; font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,.65); }
.nav-mobile-sub:hover { color: var(--apex-yellow-light); }
.nav-mobile-cta { margin-top: 1.5rem; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: 13px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--dur-mid) var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--apex-yellow);
  color: var(--apex-navy-brand);
  box-shadow: 0 4px 16px rgba(251,220,0,.3);
}
.btn-primary:hover {
  background: var(--apex-yellow);
  filter: brightness(1.06);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--apex-navy-brand);
  color: var(--apex-white);
  box-shadow: 0 4px 16px rgba(37,36,123,.25);
}
.btn-navy:hover {
  background: var(--apex-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,.45);
  color: var(--apex-white);
}
.btn-outline:hover {
  border-color: var(--apex-yellow);
  color: var(--apex-yellow);
  background: rgba(251,220,0,.07);
}

/* White solid button — for use on dark sections */
.btn-white {
  background: var(--apex-white);
  color: var(--apex-navy-brand);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.btn-outline-navy {
  border: 2px solid var(--apex-navy-brand);
  color: var(--apex-navy-brand);
}
.btn-outline-navy:hover {
  background: var(--apex-navy-brand);
  color: var(--apex-white);
}

.btn-lg { min-height: 62px; padding: 0 2.5rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { min-height: 38px; padding: 0 1.2rem; font-size: 0.82rem; border-radius: 10px; }

.btn-icon {
  width: 18px; height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn-icon { transform: translateX(3px); }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--apex-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 2rem; }
.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}
.service-icon {
  width: 36px; height: 36px;
  object-fit: contain;
}
/* Card with yellow top border accent */
.card-accent-top {
  border-top: 3px solid var(--apex-yellow);
}

.card-glass {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.card-glass:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }

/* Service cards on light bg */
.card-service {
  background: var(--apex-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--apex-grey-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--apex-yellow);
}
.card-service h4 { color: var(--apex-navy-brand); margin-bottom: .5rem; }
.card-service p { font-size: .875rem; color: var(--apex-grey-dark); line-height: 1.7; }

/* Alternating dark variant — navy card + white icon */
.card-service-alt {
  background: var(--apex-navy-brand);
  border-color: transparent;
}
.card-service-alt h4 { color: var(--apex-white); }
.card-service-alt p  { color: rgba(255,255,255,.7); }
.card-service-alt:hover { border-color: var(--apex-yellow); box-shadow: var(--shadow-md); }

/* Industry cards */
.card-industry {
  background: var(--apex-off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--apex-grey-light);
  text-align: center;
  transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.card-industry:hover {
  background: var(--apex-navy-pale);
  border-color: var(--apex-navy-brand);
  transform: translateY(-3px);
}
.card-industry h5 { color: var(--apex-navy-brand); margin-top: .6rem; font-size: .9rem; }
.card-industry p { font-size: .75rem; color: var(--apex-grey-dark); margin-top: .2rem; }
.industry-tick {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--apex-navy-brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  transition: background var(--dur-mid) var(--ease);
}
.card-industry:hover .industry-tick { background: var(--apex-yellow); }
.card-industry:hover .industry-tick svg path { stroke: var(--apex-navy-brand); }

/* Subsidiary card */
.subsidiary-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.subsidiary-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* Photo layer inside each card */
.sub-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 0.55s ease;
}
.subsidiary-card:hover .sub-card-img { opacity: 0.38; }

.subsidiary-card-content { position: relative; z-index: 1; }

.subsidiary-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.subsidiary-card h3 { color: var(--apex-white); font-size: 1.6rem; margin-bottom: .5rem; }
.subsidiary-card p  { color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.65; margin-bottom: 1.25rem; }

/* Logo inside subsidiary card */
.subsidiary-card-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
  object-fit: contain;
  object-position: left;
}

.subsidiary-card-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--apex-white);
  font-weight: 700;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.subsidiary-card:hover .subsidiary-card-link { opacity: 1; transform: translateY(0); }

/* Stat cards */
.stat-card { text-align: center; padding: 2rem 1.5rem; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--apex-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: visible;           /* glass cards spill below */
  background-color: var(--apex-navy);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-top: var(--nav-height);
  padding-bottom: 160px;
}

/* Photo overlay: strong left gradient, image shows through on right */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(10,9,48,0.95) 0%,
      rgba(10,9,48,0.85) 35%,
      rgba(10,9,48,0.50) 60%,
      rgba(10,9,48,0.15) 100%);
  z-index: 0;
}
/* Subtle grid texture on top of the photo overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(37,36,123,.25) 0%, transparent 70%);
  top: -140px; right: -100px;
  animation: float 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(251,220,0,.1) 0%, transparent 70%);
  bottom: -60px; left: 8%;
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}
/* ─── Hero two-column layout ──────────────────────────────── */
.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
}
/* Left: tag + heading + description */
.hero-text { flex: 0 1 580px; }
/* Right: CTA buttons pinned right, vertically centered */
.hero-cta-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
}

/* Keep backward compat: old .hero-content still works for PA hero */
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--apex-yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--apex-yellow);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:.4; transform: scale(.65); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);  /* smaller than before */
  font-weight: 800;
  color: var(--apex-white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-title .accent { color: var(--apex-yellow); }
.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.72);
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 0; /* buttons moved to right column */
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ─── Hero Glass Cards (floating at hero bottom) ──────────── */
.hero-glass-cards {
  position: absolute;
  bottom: -44px;           /* overlap next section */
  left: 0; right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.hero-glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: background var(--dur-mid) var(--ease),
              transform   var(--dur-mid) var(--ease),
              box-shadow  var(--dur-mid) var(--ease);
  cursor: default;
}
.hero-glass-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,.3);
}

/* Third card: yellow-tinted accent */
.hero-glass-card--accent {
  background: rgba(251,220,0,0.08);
  border-color: rgba(251,220,0,0.2);
}
.hero-glass-card--accent:hover {
  background: rgba(251,220,0,0.14);
}

/* Dot icon inside glass card */
.glass-card-dot {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(251,220,0,0.12);
  border: 1px solid rgba(251,220,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  flex-shrink: 0;
}
.glass-card-dot::after {
  content: '';
  width: 14px; height: 14px;
  background: var(--apex-yellow);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(251,220,0,.6);
}
.hero-glass-card--accent .glass-card-dot {
  background: rgba(251,220,0,0.18);
  border-color: rgba(251,220,0,0.4);
}

.hero-glass-card h4 {
  color: var(--apex-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.hero-glass-card--accent h4 { color: var(--apex-yellow-light); }

.hero-glass-card p {
  font-size: 0.845rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.glass-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apex-yellow);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.glass-card-link:hover {
  color: var(--apex-yellow-light);
  gap: 0.6rem;
}
.hero-glass-card--accent .glass-card-link { color: var(--apex-yellow-light); }

/* ─── Hero Ribbon Icon Boxes (reference-style cards) ─────── */
.hero-ribbon-inner {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 1.1rem;
}
.hero-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--apex-yellow);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(251,220,0,0.30);
}
.hero-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--apex-navy-brand);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-ribbon-text strong {
  display: block;
  color: var(--apex-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.hero-ribbon-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  /* Hero: switch to column so static glass cards stack below content */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding-bottom: 2rem;
    overflow: hidden;
  }
  /* Two-column text layout → single column on mobile */
  .hero-layout { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-cta-right { flex-direction: row; align-items: center; flex-wrap: wrap; align-self: auto; }

  /* Glass cards: leave normal flow, stack as 1-col grid below hero content */
  .hero-glass-cards {
    grid-template-columns: 1fr;
    position: static;
    margin-top: 2rem;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  /* Tighter hero padding on small phones */
  .hero { padding-top: calc(var(--nav-height) + .5rem); }
  /* Stack CTA buttons vertically on very small screens */
  .hero-cta-right { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta-right .btn { justify-content: center; }
  /* Slightly smaller title on phones */
  .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.35);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bounce-arrow 2.5s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
}
@keyframes bounce-arrow {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Accreditations Marquee Strip ───────────────────────── */
.accred-strip {
  background: #FFFFFF;
  padding-top: 88px;    /* clears the overlapping hero glass cards */
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid rgba(37,36,123,.07);
}

.accred-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.accred-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apex-grey);
}

/* Fade edges */
.accred-track-wrap {
  position: relative;
  overflow: hidden;
}
.accred-track-wrap::before,
.accred-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.accred-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF, transparent);
}
.accred-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF, transparent);
}

/* Scrolling track */
.accred-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.accred-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.accred-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 0.5rem;
}

.accred-item img {
  max-height: 58px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.25s;
}

.accred-item img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .accred-strip { padding-top: 2.5rem; }
  .accred-track { gap: 2rem; animation-duration: 22s; }
  .accred-item img { max-height: 36px; max-width: 100px; }
  .accred-track-wrap::before { background: linear-gradient(to right, #FFFFFF, transparent); width: 60px; }
  .accred-track-wrap::after  { background: linear-gradient(to left,  #FFFFFF, transparent); width: 60px; }
}

/* ─── Feature Rows ────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
.feature-row.reverse > :last-child  { order: 1; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse > * { order: unset; }
}
.feature-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--apex-navy-mid);
}
.feature-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Tag / Pill ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--apex-yellow-pale);
  color: var(--apex-navy-brand);
  border-radius: var(--radius-pill);
  padding: .3rem .9rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.tag-navy {
  background: var(--apex-navy-pale);
  color: var(--apex-navy-brand);
}
.tag-outline {
  background: transparent;
  border: 1px solid rgba(251,220,0,.3);
  color: var(--apex-yellow);
}

/* ─── About section: corporate photo frame ───────────────── */
.about-img-visual {
  background: transparent;
  overflow: visible;
  aspect-ratio: unset;
  border-radius: 0;
}
.about-img-visual::before { display: none; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 20px 56px rgba(37,36,123,.14), 0 4px 14px rgba(0,0,0,.08);
}
.about-badge {
  position: absolute;
  bottom: 24px; left: -20px;
  background: white;
  border-radius: 16px;
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 8px 32px rgba(37,36,123,.18), 0 2px 8px rgba(0,0,0,.07);
  z-index: 3;
  min-width: 160px;
}
.about-badge-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--apex-yellow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-badge-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--apex-navy-brand);
  line-height: 1;
  font-family: var(--font-heading);
}
.about-badge-label {
  font-size: .67rem;
  font-weight: 700;
  color: var(--apex-navy-brand);
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.4;
  margin-top: .2rem;
}
.about-corner {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 44px; height: 44px;
  border-right: 3px solid var(--apex-yellow);
  border-bottom: 3px solid var(--apex-yellow);
  border-radius: 0 0 10px 0;
  opacity: 0.5;
}

/* ─── Icon List ───────────────────────────────────────────── */
.icon-list { display: flex; flex-direction: column; gap: 1rem; }
.icon-list-item { display: flex; align-items: flex-start; gap: 1rem; }
.icon-list-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.icon-list-icon.dark { /* no background box on dark section */ }
.icon-list-text h5 { margin-bottom: .2rem; color: var(--apex-navy-brand); }
.icon-list-text p  { font-size: .875rem; color: var(--apex-grey-dark); line-height: 1.65; }

/* Dark section icon list */
.icon-list-text.light h5 { color: var(--apex-white); }
.icon-list-text.light p  { color: rgba(255,255,255,.65); }

/* ─── Quote / CEO Block ───────────────────────────────────── */
.quote-block {
  position: relative;
  padding: 3rem;
  background: var(--apex-navy-mid);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--apex-yellow);
  overflow: hidden;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 8rem;
  color: rgba(251,220,0,.08);
  line-height: 1;
  pointer-events: none;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--apex-white);
  line-height: 1.75;
  position: relative; z-index: 1;
  margin-bottom: 1.5rem;
}
.quote-author { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.quote-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--apex-yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800; font-size: .95rem;
  color: var(--apex-navy-brand);
  flex-shrink: 0;
}
.quote-name { font-weight: 700; color: var(--apex-white); font-size: .9rem; }
.quote-role { font-size: .75rem; color: var(--apex-yellow); margin-top: 2px; }

/* ─── Process Steps ──────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(251,220,0,.3), transparent);
}
.process-step { text-align: center; padding: 1.5rem 1rem; position: relative; }
.process-step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--apex-yellow);
  color: var(--apex-navy-brand);
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(251,220,0,.12);
}
.process-step h4 { color: var(--apex-white); margin-bottom: .35rem; font-size: .95rem; }
.process-step p  { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ─── Logo strip (Accreditations) ───────────────────────── */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.logo-strip-item {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  color: var(--apex-grey-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid var(--apex-grey-light);
  border-radius: var(--radius-md);
  padding: .6rem 1.25rem;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.logo-strip-item:hover { border-color: var(--apex-yellow-dark); color: var(--apex-navy-brand); }

/* ─── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info-item {
  display: flex; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--apex-yellow); margin-bottom: .2rem;
}
.contact-info-value { font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.55; }

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-bottom: .5rem; letter-spacing: .02em;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .85rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem; color: var(--apex-white);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: rgba(255,255,255,.28); }
.form-control:focus {
  border-color: var(--apex-yellow);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(251,220,0,.1);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--apex-navy-brand);  /* brand navy #25247B */
  color: rgba(255,255,255,.6);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 1.25rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

.footer-desc { font-size: .85rem; line-height: 1.75; margin-bottom: 1.5rem; }

.footer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  padding: .28rem .8rem;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700;
  color: var(--apex-white);
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-social { display: flex; gap: .75rem; }
.footer-social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.footer-social-link:hover {
  border-color: var(--apex-yellow);
  color: var(--apex-yellow);
  background: rgba(251,220,0,.06);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--apex-white); margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast) var(--ease);
}
.footer-link:hover { color: var(--apex-yellow); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: .78rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: .78rem; color: rgba(255,255,255,.35);
  transition: color var(--dur-fast) var(--ease);
}
.footer-legal a:hover { color: var(--apex-yellow); }

/* ─── Scroll Animations ───────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }
[data-animate="fade-left"]  { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate="fade-scale"] { transform: scale(.94); }
[data-animate="fade-scale"].visible { transform: scale(1); }

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* ─── Sub nav bar ─────────────────────────────────────────── */
.sub-breadcrumb {
  background: rgba(0,0,0,.2);
  padding: .6rem 0;
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sub-breadcrumb a { color: var(--apex-yellow-light); }
.sub-breadcrumb a:hover { text-decoration: underline; }
.sub-breadcrumb span { margin: 0 .4rem; opacity: .35; }

.sub-nav-bar {
  background: var(--sub-primary);
  padding: .7rem 0;
  border-bottom: 2px solid var(--sub-accent);
}
.sub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.sub-nav-logo {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 800;
  color: var(--apex-white);
  display: flex; align-items: center; gap: .75rem;
}
.sub-nav-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.sub-nav-links { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.sub-nav-link {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  padding: .32rem .8rem;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.sub-nav-link:hover { color: var(--apex-white); background: rgba(255,255,255,.08); }

.back-to-apex {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.5);
  transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.back-to-apex:hover { color: var(--sub-accent); gap: .85rem; }

/* ─── Utility ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}
hr.separator {
  border: none;
  border-top: 1px solid var(--apex-grey-light);
  margin: 2rem 0;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .quote-block { padding: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
