/* ============================================================
   dark.css — Dark Sections: Trust Strip · AIR · Stats · CTA · Footer
   axsysTek V4 "Controlled Velocity"

   SELECTOR NOTE (Phase 1 temporary):
   Trust Strip, AIR, Stats, CTA use Drupal paragraph section IDs.
   Footer uses plain `footer` tag + `.region-footer` child.
   Phase 2: Replace all with .section-* classes once
   page--front.html.twig adds semantic class names.
   ============================================================ */

/* ── TRUST STRIP ──────────────────────────────────────────── */
.section-trust {
  background-color: var(--color-navy, #002A5C);
  padding: var(--space-10, 2.5rem) 0;
}

.section-trust__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8, 2rem);
}

.section-trust__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.70;
  transition: opacity 0.2s ease;
  max-height: 36px;
  width: auto;
}

.section-trust__logo:hover img {
  opacity: 1.0;
}

/* ── AIR METHODOLOGY ──────────────────────────────────────── */
/* NOTE: Background changed from blue (#1950D7) to linen (#F7F4EF) */
.section-air {
  background-color: var(--color-linen, #F7F4EF);
  position: relative;
  overflow: hidden;
  padding: var(--space-20, 5rem) 0;
}

/* Watermark letters — ink tint on linen */
.section-air::before {
  content: 'A · I · R';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 800;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(13, 17, 23, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.1em;
}

.section-air .container {
  position: relative;
  z-index: 1;
}

.section-air__heading {
  color: var(--color-ink, #0D1117);
  text-align: center;
  margin-bottom: var(--space-12, 3rem);
}

.section-air__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6, 1.5rem);
}

/* AIR panels — white card on linen background */
.air-panel {
  background: var(--color-white, #ffffff);
  border: 1px solid var(--color-border, #D8E0EA);
  border-radius: 12px;
  padding: var(--space-8, 2rem);
  color: var(--color-ink, #0D1117);
  box-shadow: 0 2px 12px rgba(13, 17, 23, 0.06);
}

.air-panel__letter {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 800;
  font-size: 3rem;
  color: var(--color-orange, #E8530A);
  line-height: 1;
  margin-bottom: var(--space-4, 1rem);
}

.air-panel__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-size: var(--text-xl, 1.25rem);
  margin-bottom: var(--space-3, 0.75rem);
  color: var(--color-ink, #0D1117);
}

.air-panel__body {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-mid, #6B7A8D);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .section-air__grid {
    grid-template-columns: 1fr;
  }
}

/* ── STATS / IMPACT BAND ──────────────────────────────────── */
.section-stats {
  background-color: var(--color-orange, #E8530A);
  padding: var(--space-16, 4rem) 0;
}

.section-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8, 2rem);
  text-align: center;
}

.section-stats__item {
  color: var(--color-white, #ffffff);
}

.section-stats__number {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2, 0.5rem);
}

.section-stats__label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.80);
}

@media (max-width: 991px) {
  .section-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .section-stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA BAND ─────────────────────────────────────────────── */
/* NOTE: Drupal renders CTA band as <section id="cta"> */
section#cta {
  background-color: var(--color-blue, #1950D7);
  padding: var(--space-20, 5rem) 0;
  text-align: center;
  color: var(--color-white, #ffffff);
}

section#cta .section-cta__heading,
section#cta h2 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-white, #ffffff);
  margin-bottom: var(--space-6, 1.5rem);
}

section#cta .section-cta__subtext,
section#cta p {
  font-size: var(--text-lg, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-8, 2rem);
}

/* ── FOOTER ───────────────────────────────────────────────── */
/* NOTE (Phase 1): Drupal renders footer as plain <footer>.
   Phase 2: Add class="section-footer" in page--front.html.twig
   and update selector to .section-footer */

footer {
  background-color: #3A6FE8;
  background-image: url('../img/footer-bg-v2.svg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  min-height: 240px;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

footer .container {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

footer hr {
  margin-top: 1.25rem !important;
  margin-bottom: 0.75rem !important;
}

/* Footer inner region */
footer .region-footer,
footer .container {
  position: relative;
  z-index: 1;
}

/* Footer main grid — 4 columns */
.section-footer__main,
footer .footer-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: var(--space-10, 2.5rem);
  padding-bottom: var(--space-12, 3rem);
}

/* Brand column */
.footer-brand__logo img {
  max-height: 40px;
  width: auto;
  margin-bottom: var(--space-4, 1rem);
  filter: brightness(0) invert(1);
}

.footer-brand__tagline {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: var(--space-4, 1rem);
  line-height: 1.5;
}

.footer-brand__address {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: var(--text-xs, 0.75rem);
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* Social icons */
.footer-brand__social {
  display: flex;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-6, 1.5rem);
  flex-wrap: wrap;
}

.footer-brand__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-brand__social a:hover {
  border-color: var(--color-orange, #E8530A);
  background-color: rgba(232, 83, 10, 0.15);
  color: var(--color-white, #ffffff);
}

/* Footer nav columns */
.footer-col__heading {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-white, #ffffff);
  margin-bottom: var(--space-5, 1.25rem);
}

.footer-col__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col__links li {
  margin-bottom: var(--space-3, 0.75rem);
}

.footer-col__links a {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col__links a:hover {
  color: var(--color-white, #ffffff);
}

/* Email link highlight */
.footer-col__links a[href^="mailto"] {
  color: rgba(255, 255, 255, 0.65);
}

.footer-col__links a[href^="mailto"]:hover {
  color: var(--color-orange, #E8530A);
}

/* ── FOOTER LEGAL BAR ─────────────────────────────────────── */
.section-footer__bottom,
footer .footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: var(--space-5, 1.25rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4, 1rem);
}

.footer-legal__copy {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal__links {
  display: flex;
  gap: var(--space-5, 1.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal__links a {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal__links a:hover {
  color: rgba(255, 255, 255, 0.80);
}

/* ── FOOTER RESPONSIVE ────────────────────────────────────── */
@media (max-width: 991px) {
  .section-footer__main,
  footer .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand__logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .section-footer__main,
  footer .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .section-footer__bottom,
  footer .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
