/* =========================================================
   NSIRS PUBLIC SITE
   All values resolve to the 8-point grid defined in
   tokens.css. Colours are sampled from the NSIRS crest.
========================================================= */

@import url("tokens.css");

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-12);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(var(--sp-3));
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-delay-1.is-visible { transition-delay: 80ms; }
.reveal-delay-2.is-visible { transition-delay: 160ms; }
.reveal-delay-3.is-visible { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible {
    opacity: 1; transform: none; transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   TOP UTILITY BAR — 40px (5 × 8)
========================================================= */

.top-bar {
  background: var(--brand-950);
  color: var(--text-on-dark-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.top-bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-1) var(--gutter);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.top-bar-tag {
  color: var(--gold-300);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-bar-links { display: flex; gap: var(--sp-3); }

.top-bar-links a {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.top-bar-links a:hover { color: var(--white); }


/* =========================================================
   HEADER — 80px (10 × 8)
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-900);
  border-bottom: 1px solid rgba(232, 180, 19, 0.24);
  transition: box-shadow var(--dur-mid) var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--grad-gold);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.header-logo {
  width: 48px;
  height: 48px;
  padding: var(--sp-0h);
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(232, 180, 19, 0.4);
  transition: transform var(--dur-mid) var(--ease);
}

.header-brand:hover .header-logo {
  transform: scale(1.04);
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-brand-text strong {
  color: var(--white);
  font-size: var(--text-lg);
  line-height: 24px;
  letter-spacing: 0.02em;
}

.header-brand-text span {
  color: rgba(255, 255, 255, 0.56);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-0h);
  list-style: none;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-0h);
  min-height: 40px;
  padding: var(--sp-1) var(--sp-2);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: color var(--dur-fast) var(--ease);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: 2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}

.nav-item:hover,
.nav-item.is-active { color: var(--white); }

.nav-item:hover::after,
.nav-item.is-active::after { transform: scaleX(1); }

.caret {
  font-size: 10px;
  transition: transform var(--dur-fast) var(--ease);
}

.has-dropdown.is-open .caret { transform: rotate(180deg); }


/* DROPDOWN */

.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--sp-1));
  left: 0;
  min-width: 280px;              /* 35 × 8 */
  padding: var(--sp-1);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(var(--sp-1) * -1));
  transition:
    opacity var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease),
    visibility var(--dur-mid);
  z-index: 200;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: calc(var(--sp-1) * -1);
  left: 0; right: 0;
  height: var(--sp-1);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.dropdown-menu a:hover {
  background: var(--brand-050);
  border-left-color: var(--gold-400);
}

.dropdown-menu strong {
  display: block;
  margin-bottom: 2px;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--text-primary);
}

.dropdown-menu span {
  display: block;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--text-secondary);
}


/* NAV CTA — inherits .btn primitives */

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: var(--sp-1);
  padding: 0 var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--grad-gold);
  color: var(--brand-900);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition:
    background var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease);
}

.nav-cta:hover {
  background: var(--grad-gold-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    var(--shadow-gold);
}


/* HAMBURGER — 48px touch target */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-0h);
  width: 48px;
  height: 48px;
  padding: var(--sp-2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-pill);
  transition:
    transform var(--dur-mid) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

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


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-canvas);
  color: var(--white);
}

/* Fine grid texture — keeps the large dark field from
   reading as flat colour */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: var(--sp-4) var(--sp-4);
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: calc(var(--sp-16) * -1.5);
  right: calc(var(--sp-16) * -1);
  width: 576px;                   /* 72 × 8 */
  height: 576px;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    circle,
    rgba(232, 180, 19, 0.16) 0%,
    transparent 66%);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(calc(var(--sp-3) * -1), var(--sp-3)); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-12) var(--gutter) var(--sp-14);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: var(--sp-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
  padding: var(--sp-0h) var(--sp-2);
  border: 1px solid rgba(232, 180, 19, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(232, 180, 19, 0.08);
  color: var(--gold-300);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.hero-title-accent {
  background: linear-gradient(
    100deg,
    var(--gold-300) 0%,
    var(--gold-400) 50%,
    var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 640px;               /* 80 × 8 */
  margin-bottom: var(--sp-5);
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-base);
  line-height: var(--lh-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(255, 255, 255, 0.56);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: var(--sp-1);
  height: var(--sp-1);
  border-radius: var(--radius-pill);
  background: var(--brand-200);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 180, 137, 0.56); }
  50%      { box-shadow: 0 0 0 var(--sp-1) rgba(99, 180, 137, 0); }
}

.hero-emblem img {
  width: 100%;
  max-width: 288px;               /* 36 × 8 */
  margin-left: auto;
  filter: drop-shadow(0 var(--sp-3) var(--sp-5) rgba(4, 26, 18, 0.48));
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(var(--sp-1) * -1.5)); }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: var(--sp-7);
  background: var(--bg-page);
  clip-path: ellipse(74% 100% at 50% 100%);
}


/* Landing overrides for shared .btn */

.btn-center {
  display: flex;
  width: fit-content;
  margin: var(--sp-5) auto 0;
}


/* =========================================================
   STATISTICS BAND
========================================================= */

.stats-band {
  background: var(--grad-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-6) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  text-align: center;
}

.stat-item {
  position: relative;
  padding-inline: var(--sp-2);
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-item strong {
  display: block;
  margin-bottom: var(--sp-0h);
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  font-weight: 700;
  color: var(--brand-600);
}

.stat-item strong span {
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.stat-suffix { color: var(--gold-500); }

.stat-item > span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.04em;
}


/* =========================================================
   SECTIONS
========================================================= */

.section { padding-block: var(--sp-12); }

.section-tint { background: var(--bg-tint); }

.section-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-narrow {
  max-width: 800px;               /* 100 × 8 */
  text-align: center;
}

.section-head { margin-bottom: var(--sp-6); }

.section-eyebrow {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--gold-600);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.section-title {
  max-width: 800px;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.section-narrow .section-title { margin-inline: auto; }

.section-lead {
  max-width: 800px;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--lh-lg);
}

.section-narrow .section-lead { margin-inline: auto; }


/* =========================================================
   CAPABILITY CARDS
========================================================= */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.capability-card {
  position: relative;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease),
    border-color var(--dur-mid) var(--ease);
}

.capability-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}

.capability-card:hover {
  transform: translateY(calc(var(--sp-0h) * -1));
  border-color: var(--brand-100);
  box-shadow: var(--shadow-lg);
}

.capability-card:hover::before { transform: scaleX(1); }

.capability-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--grad-green);
  color: var(--gold-300);
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform var(--dur-mid) var(--ease);
}

.capability-card:hover .capability-icon {
  transform: scale(1.06);
}

.capability-card h3 {
  margin-bottom: var(--sp-1);
  font-family: var(--font-head);
  font-size: var(--text-lg);
  line-height: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.capability-card p {
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.card-link {
  display: inline-block;
  color: var(--brand-500);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  opacity: 0;
  transform: translateX(calc(var(--sp-0h) * -1));
  transition:
    opacity var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease);
}

.capability-card:hover .card-link {
  opacity: 1;
  transform: translateX(0);
}


/* =========================================================
   PROCESS FLOW
========================================================= */

.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.process-step {
  flex: 1 1 208px;                /* 26 × 8 */
  max-width: 256px;               /* 32 × 8 */
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition:
    transform var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease);
}

.process-step:hover {
  transform: translateY(calc(var(--sp-0h) * -1));
  box-shadow: var(--shadow-md);
}

.process-number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--brand-900);
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: transform var(--dur-mid) var(--ease);
}

.process-step:hover .process-number { transform: scale(1.08); }

.process-step h4 {
  margin-bottom: var(--sp-1);
  font-family: var(--font-head);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--text-primary);
}

.process-step p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.process-arrow {
  display: flex;
  align-items: center;
  color: var(--gold-500);
  font-size: var(--text-lg);
  font-weight: 700;
}


/* =========================================================
   PRINCIPLE BAND
========================================================= */

.principle-band {
  position: relative;
  padding-block: var(--sp-6);
  background: var(--grad-canvas);
  overflow: hidden;
}

.principle-band::before,
.principle-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
}

.principle-band::before { top: 0; }
.principle-band::after { bottom: 0; }

.principle-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.principle-label {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--gold-300);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.principle-text {
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 700;
}


/* =========================================================
   LGA CHIPS
========================================================= */

.lga-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.lga-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 40px;
  padding: 0 var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: default;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.lga-chip:hover {
  background: var(--grad-green);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.lga-chip.is-pilot { border-color: var(--gold-400); }

.lga-chip em {
  padding: 2px var(--sp-1);
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--brand-900);
  font-size: 10px;
  line-height: var(--sp-2);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lga-chip:hover em { background: var(--white); }


/* =========================================================
   PARTNERS
========================================================= */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

.partner-item {
  position: relative;
  padding: var(--sp-3);
  padding-left: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease);
}

.partner-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--sp-0h);
  background: var(--grad-gold);
}

.partner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.partner-item strong {
  display: block;
  margin-bottom: var(--sp-0h);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--brand-600);
}

.partner-item span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}


/* =========================================================
   ROLE LIST
========================================================= */

.role-list {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  text-align: left;
}

.role-item {
  position: relative;
  padding: var(--sp-3);
  padding-left: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease);
}

.role-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--sp-0h);
  background: var(--grad-gold);
}

.role-item:hover {
  transform: translateY(calc(var(--sp-0h) * -1));
  box-shadow: var(--shadow-md);
}

.role-item strong {
  display: block;
  margin-bottom: var(--sp-0h);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-primary);
}

.role-item span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding-block: var(--sp-8) var(--sp-4);
  background: var(--grad-canvas);
  color: var(--text-on-dark-muted);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h5 {
  margin-bottom: var(--sp-2);
  color: var(--gold-300);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: var(--sp-1);
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--gold-300);
  transform: translateX(var(--sp-0h));
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.footer-logo {
  width: 48px;
  height: 48px;
  padding: var(--sp-0h);
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: var(--text-base);
  line-height: var(--lh-base);
}

.footer-brand span {
  display: block;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: rgba(255, 255, 255, 0.52);
}

.footer-blurb,
.footer-contact {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact { margin-bottom: var(--sp-2); }

.footer-bottom {
  padding-top: var(--sp-3);
  text-align: center;
}

.footer-note {
  margin-bottom: var(--sp-0h);
  color: var(--gold-400);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.footer-copy {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   BACK TO TOP — 48px
========================================================= */

.back-to-top {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 90;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--brand-900);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--sp-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    var(--shadow-lg);
  transition:
    opacity var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease),
    visibility var(--dur-mid),
    background var(--dur-fast) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--grad-gold-hover);
  transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--brand-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-mid) var(--ease);
  }

  .main-nav.is-open {
    max-height: 640px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-2) var(--sp-3);
  }

  .nav-item {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--radius-sm);
  }

  .nav-item::after { display: none; }

  .dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    transition:
      max-height var(--dur-mid) var(--ease),
      padding var(--dur-mid) var(--ease);
  }

  .has-dropdown:hover .dropdown-menu { max-height: 0; padding: 0; }

  .has-dropdown.is-open .dropdown-menu {
    max-height: 420px;
    padding: var(--sp-1);
    margin-bottom: var(--sp-1);
  }

  .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); }
  .dropdown-menu strong { color: var(--white); }
  .dropdown-menu span { color: rgba(255, 255, 255, 0.52); }

  .nav-cta {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin: var(--sp-1) 0 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: var(--sp-8) var(--sp-10);
  }

  .hero-emblem { display: none; }

  .hero-title {
    font-size: var(--text-3xl);
    line-height: var(--lh-3xl);
  }

  .capability-grid,
  .partner-grid,
  .role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4) var(--sp-2);
  }

  .stat-item:nth-child(odd)::before { display: none; }

  .process-arrow { display: none; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .principle-text {
    font-size: var(--text-base);
    line-height: var(--lh-lg);
  }

}


@media (max-width: 640px) {

  .top-bar-inner { justify-content: center; text-align: center; }
  .top-bar-links { display: none; }

  .header-inner { padding-inline: var(--sp-2); }
  .header-brand-text span { display: none; }

  .hero-title {
    font-size: var(--text-2xl);
    line-height: var(--lh-2xl);
  }

  .hero-subtitle { font-size: var(--text-sm); line-height: var(--lh-sm); }

  .section { padding-block: var(--sp-8); }

  .section-title {
    font-size: var(--text-xl);
    line-height: var(--lh-xl);
  }

  .capability-grid,
  .partner-grid,
  .role-list,
  .footer-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item::before { display: none !important; }

  .btn { width: 100%; }

  .hero-actions { flex-direction: column; }

  .process-step { max-width: none; }

}
