/* ==========================================================================
   AXTRO CAPITAL TECHNOLOGIES — DESIGN SYSTEM & CORE STYLES
   Ghana's Integrated Electric Mobility & Skills Development Partnership
   ========================================================================== */

/* Fonts are loaded via <link rel="stylesheet"> in each page's <head> (faster than @import) */

:root {
  /* Dynamic Theme Variables - Light Mode Default (Sections White) */
  --bg-body: #FFFFFF;
  --bg-section: #FFFFFF;
  --bg-section-alt: #F8FAFC;
  --bg-surface-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-color-subtle: #F1F5F9;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --header-bg: rgba(11, 17, 23, 0.94);
  --header-text: #FFFFFF;
  --header-border: rgba(255, 255, 255, 0.08);
  --header-nav-link: #94A3B8;
  --surface-subtle: #F8FAFC;
  --border-strong: #CBD5E1;
  --cyan-tint: rgba(2, 132, 199, 0.1);
  --positive-text: #15803D;
  --positive-strong: #166534;
  --negative-text: #DC2626;
  --warning-text: #B45309;

  /* Colors */
  --color-primary: #0B1117;
  --color-secondary: #111C26;
  --color-surface-dark: #152232;
  --color-surface-card: #182739;
  --color-surface-card-hover: #1E3147;
  --color-surface-light: #F5F7F8;
  --color-surface-white: #FFFFFF;

  --color-electric-blue: #1479FF;
  --color-electric-blue-hover: #0E65D9;
  --color-electric-blue-glow: rgba(20, 121, 255, 0.25);
  --color-electric-cyan: #0284C7;
  --color-electric-cyan-glow: rgba(2, 132, 199, 0.25);
  --color-energy-green: #16A34A;
  --color-energy-green-glow: rgba(22, 163, 74, 0.25);

  --color-text-light: #F1F5F9;
  --color-text-muted-light: #94A3B8;
  --color-text-dark: #17202A;
  --color-text-muted-dark: #64748B;

  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-dark-hover: rgba(32, 199, 217, 0.4);
  --color-border-light: #E2E8F0;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tech: 'Space Grotesk', var(--font-sans);

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 144px;

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: 24px;
  --header-height: 96px;
  --header-height-scrolled: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow-blue: 0 0 30px rgba(20, 121, 255, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(2, 132, 199, 0.25);
}

/* Explicit Dark Theme Mode.
   Always-dark surfaces (header, hero, banners, footer, dark CTA bands) reuse the same
   dark palette in both modes so their text never inherits light-mode colours. */
html[data-theme="dark"],
.dark-scope,
.dark-section,
.site-header,
.mobile-nav,
.hero,
.page-banner,
.calc-page-hero,
.stats-strip,
.site-footer {
  --bg-body: #0B1117;
  --bg-section: #0B1117;
  --bg-section-alt: #0E1620;
  --bg-surface-card: #152232;
  --bg-card-hover: #1A2B3D;
  --text-heading: #FFFFFF;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-subtle: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(11, 17, 23, 0.94);
  --header-text: #FFFFFF;
  --header-border: rgba(255, 255, 255, 0.08);
  --header-nav-link: #94A3B8;
  --color-electric-cyan: #20C7D9;
  --color-energy-green: #32B768;
  --surface-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.18);
  --cyan-tint: rgba(32, 199, 217, 0.12);
  --positive-text: #86EFAC;
  --positive-strong: #D1FAE5;
  --negative-text: #F87171;
  --warning-text: #F59E0B;
}

.dark-scope,
.dark-section,
.site-header,
.mobile-nav,
.hero,
.page-banner,
.calc-page-hero,
.stats-strip,
.site-footer {
  color: var(--text-body);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-body);
  color: var(--text-body);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg-body);
  color: var(--text-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body > * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-electric-cyan);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Typography Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.page-banner h1, .page-banner h2, .page-banner h3, .page-banner h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.dark-section h1, .dark-section h2, .dark-section h3,
.hero-headline {
  color: #FFFFFF;
}

.section-headline {
  font-size: clamp(1.85rem, 3.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  color: var(--text-heading);
}

.hero .section-headline, .dark-section .section-headline {
  color: #FFFFFF;
}

.sub-headline {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-electric-cyan);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-electric-cyan);
  box-shadow: 0 0 10px var(--color-electric-cyan);
}

.eyebrow.green {
  color: var(--color-energy-green);
}
.eyebrow.green::before {
  background-color: var(--color-energy-green);
  box-shadow: 0 0 10px var(--color-energy-green);
}

.body-large {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-body);
}

.body-regular {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero p, .page-banner p, .dark-section p {
  color: #CBD5E1;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--text-heading) 15%, var(--color-electric-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .text-gradient-cyan, .page-banner .text-gradient-cyan, .dark-section .text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #20C7D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--text-heading) 20%, var(--color-electric-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Layout Containers & Grid
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

.container-narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  background-color: var(--bg-section);
  color: var(--text-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section.bg-alt, .section-light {
  background-color: var(--bg-section-alt);
}

.section.bg-white {
  background-color: #FFFFFF;
}

.section-tight {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center {
  text-align: center;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-electric-blue) 0%, #0c5bce 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px var(--color-electric-blue-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1c85ff 0%, #1168e6 100%);
  box-shadow: 0 6px 24px rgba(20, 121, 255, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface-subtle);
  color: var(--text-heading);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--cyan-tint);
  border-color: var(--color-electric-cyan);
  color: var(--color-electric-cyan);
  transform: translateY(-2px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--color-primary);
  font-weight: 700;
}

.btn-white:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Global Sticky Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  z-index: 1000;
  transition: height var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* ---- Logo image visibility ---- */
.brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  /* Dual drop shadows so white car contour & text remain crisp on white or dark backgrounds */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

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

.site-header.scrolled .brand-logo-img {
  height: 56px;
}

html[data-theme="dark"] .brand-logo-img {
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(0, 212, 255, 0.55))
          drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Footer logo — larger and pure-white glow */
.site-footer .brand-logo-img {
  height: 84px;
  max-width: 300px;
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(0, 212, 255, 0.5))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-electric-cyan);
  margin-top: 3px;
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--header-nav-link);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-electric-cyan);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-electric-cyan);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Light / Dark Mode Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-card);
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--color-electric-cyan);
  color: var(--color-electric-cyan);
  transform: rotate(15deg) scale(1.08);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 23, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 110px 32px 40px;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.active {
  color: var(--color-electric-cyan);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(20, 121, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(32, 199, 217, 0.08) 0%, transparent 40%),
              var(--color-primary);
  overflow: hidden;
}

.hero-backdrop-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* First visit: hero copy stays hidden while the intro clip plays through once */
.intro-pending .hero-content {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

.hero-flow-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.flow-step {
  color: var(--color-text-light);
  font-weight: 600;
}

.flow-arrow {
  color: var(--color-electric-cyan);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* Strategic Statistics Strip */
.stats-strip {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 3;
}

.stat-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 var(--space-md);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-electric-cyan);
  margin-top: 8px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted-light);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Cards System
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-electric-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-electric-cyan);
  margin-bottom: var(--space-md);
}

.card-icon.green {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
  color: var(--color-energy-green);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-heading);
}

.card-subtitle {
  font-size: 0.85rem;
  font-family: var(--font-tech);
  color: var(--color-electric-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.card-list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.card-list-item strong {
  color: var(--text-heading);
}

.card-list-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-energy-green);
}

/* --------------------------------------------------------------------------
   Alternate Surface Section (follows the active theme)
   -------------------------------------------------------------------------- */
.section-light {
  background-color: var(--bg-section-alt);
}

/* --------------------------------------------------------------------------
   Page Banner / Subpage Hero
   -------------------------------------------------------------------------- */
.page-banner {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: radial-gradient(circle at 70% 30%, rgba(20, 121, 255, 0.15) 0%, transparent 60%),
              var(--color-primary);
  border-bottom: 1px solid var(--color-border-dark);
  position: relative;
}

.page-banner-content {
  max-width: 880px;
}

.page-banner-title {
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  overflow-wrap: break-word;
}

/* Photo banners: a left-weighted scrim keeps copy readable on bright photography
   while letting the image show through on the right. */
.page-banner--photo {
  background-color: var(--color-primary);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-banner--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.94) 0%, rgba(5, 10, 18, 0.82) 45%, rgba(5, 10, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.35) 0%, rgba(5, 10, 18, 0) 40%, rgba(5, 10, 18, 0.6) 100%);
  pointer-events: none;
}

.page-banner--photo .page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner--photo .eyebrow,
.page-banner--photo p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.page-banner--photo p {
  color: #E2E8F0;
}

@media (max-width: 768px) {
  .page-banner--photo::before {
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.88) 0%, rgba(5, 10, 18, 0.8) 60%, rgba(5, 10, 18, 0.92) 100%);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #060A0E;
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted-light);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted-light);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-electric-cyan);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text-muted-light);
  margin-bottom: 12px;
}

.footer-contact-item span {
  min-width: 0;
  overflow-wrap: break-word;
}

.footer-email {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-email-label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.footer-email .footer-link {
  overflow-wrap: anywhere;
}

.footer-contact-item svg {
  color: var(--color-electric-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (1440px, 1280px, 1024px, 768px, 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-top .footer-col:last-child {
    grid-column: span 4;
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
  }
  .footer-top .footer-brand {
    grid-column: span 2;
  }
  .footer-top .footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 80px;
    --space-2xl: 60px;
    --space-xl: 40px;
    --space-lg: 28px;
    --header-height: 84px;
  }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-strip .grid-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-sm) 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  /* Long CTA labels (e.g. "Submit a Strategic Partnership Enquiry") would otherwise
     force nowrap buttons wider than the viewport on phones; let them wrap instead. */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top .footer-brand {
    grid-column: span 1;
  }
  .footer-top .footer-col:last-child {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 375px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .card {
    padding: var(--space-md);
  }
}


/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Responsive logo sizing ---- */
@media (max-width: 1024px) {
  .brand-logo-img {
    height: 62px;
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 54px;
    max-width: 200px;
  }
  .site-footer .brand-logo-img {
    height: 68px;
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 46px;
    max-width: 160px;
  }
}

/* Small phones: the header CTA is repeated in the mobile drawer, so drop it here
   to keep logo, theme toggle and menu button inside the viewport. */
@media (max-width: 560px) {
  .header-actions > .btn {
    display: none;
  }
}
