/* =========================================================
   INDUSTRIES PAGE — page-specific styles
   Extends the global design system (tokens, nav, hero,
   buttons, footer live in styles.css). Only components
   unique to this page are defined here.
   ========================================================= */

/* ----- Interior hero (shorter than the homepage hero) ----- */
.hero--interior {
  height: 78vh;
  justify-content: center;
}
.hero--interior::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}
.hero--interior .hero__content {
  padding-top: 150px;
  padding-bottom: 110px;
}
.hero--interior .hero__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  max-width: 16ch;
}
.hero--interior .hero__headline em {
  font-style: normal;
  color: var(--white);
}
.hero__sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}
.hero--interior .hero__eyebrow {
  color: var(--blue);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}
.hero--interior .hero__ctas { margin-top: 40px; }

/* ----- Stats band (reuses .impact system, 4-up) ----- */
.ind-stats { padding: 0 0 8px; }
.ind-stats .container { padding-top: 84px; padding-bottom: 76px; }
.ind-stats .impact__headline { margin-bottom: 52px; }
.ind-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ind-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border-light);
}
.ind-stat:last-child { border-right: none; }
.ind-stat__num,
.ind-stat__static {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.ind-stat__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-label);
  line-height: 1.5;
  max-width: 15ch;
}

/* ----- Industry rows ----- */
.industries { background: var(--white); }
.industries .container { padding-top: 8px; padding-bottom: 8px; }

.ind-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--border-light);
  scroll-margin-top: 100px;
}
.ind-row:first-child { border-top: none; }

.ind-row__body { max-width: 520px; }
.ind-row--reverse .ind-row__body { justify-self: end; }

.ind-row__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ind-row__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.ind-row__copy {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.75;
}

/* Navy metric card — horizontal: number | cyan separator | label */
.ind-metric {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  background:
    radial-gradient(120% 120% at 20% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -30px rgba(7, 20, 60, 0.6);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.ind-metric::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 198, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}
.ind-metric > * { position: relative; z-index: 1; }
.ind-metric:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 198, 0.35);
  box-shadow: 0 30px 70px -28px rgba(0, 168, 198, 0.4);
}
.ind-metric__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(100deg, #7CE6FF, var(--hero-accent) 55%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ind-metric__sep {
  flex-shrink: 0;
  width: 2px;
  align-self: stretch;
  min-height: 56px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0, 168, 198, 0) 0%, var(--blue) 22%, var(--blue) 78%, rgba(0, 168, 198, 0) 100%);
}
.ind-metric__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

/* Reveal-on-scroll (honors reduced motion via JS gate) */
.ind-row.reveal-init { opacity: 0; transform: translateY(24px); }
.ind-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ----- Closing statement (card) ----- */
.ind-closing {
  background: var(--navy);
  text-align: center;
  padding: 110px 0;
}
.ind-closing__card {
  max-width: 760px;
  margin: 0 auto;
}
.ind-closing__accent {
  margin: 0 auto 26px;
}
.ind-closing__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 22px;
}
.ind-closing__sub {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
}
.ind-closing__sub strong { color: var(--white); font-weight: 700; }
.ind-closing__sub .accent {
  font-family: var(--font-display);
  color: var(--hero-accent);
  font-weight: 700;
}

/* ----- Certifications ----- */
.ind-certs { background: var(--off-white); padding: 96px 0; }
.ind-certs__head { text-align: center; margin-bottom: 52px; }
.ind-certs .eyebrow { display: inline-block; margin-left: auto; margin-right: auto; }
.ind-certs .eyebrow::after { left: 50%; transform: translateX(-50%); }
.ind-certs__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.ind-certs__intro {
  font-size: 16px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.ind-certs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 198, 0.35);
  box-shadow: 0 18px 40px -20px rgba(0, 168, 198, 0.3);
}
.cert-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.cert-card__code {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.cert-card__label {
  font-size: 12.5px;
  color: var(--slate);
  font-weight: 500;
  line-height: 1.45;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .ind-certs__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero--interior { height: auto; min-height: auto; }
  .hero--interior .hero__content { padding: 116px 24px 56px; }
  .ind-stats .container { padding-top: 48px; padding-bottom: 48px; }

  /* Stats become a 2x2 grid */
  .ind-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .ind-stat:nth-child(2) { border-right: none; }

  /* Rows stack; text always above the metric card */
  .ind-row,
  .ind-row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .ind-row__body,
  .ind-row--reverse .ind-row__body { max-width: none; justify-self: stretch; order: 1; }
  .ind-metric,
  .ind-row--reverse .ind-metric { order: 2; justify-self: stretch; padding: 32px 30px; gap: 24px; }

  .ind-certs { padding: 72px 0; }
}

@media (max-width: 560px) {
  .ind-stats__grid { grid-template-columns: 1fr 1fr; }
  .ind-certs__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cert-card { padding: 16px 8px; }
  .cert-card__icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .cert-card__icon svg { width: 15px; height: 16px; }
  .cert-card__code { font-size: 13px; margin-bottom: 0; }
  .cert-card__label { display: none; }
  .ind-closing { padding: 72px 0; }
  .ind-metric { gap: 18px; padding: 30px 24px; }
  .ind-metric__num { font-size: 34px; }
  .ind-metric__sep { min-height: 46px; }
  .ind-metric__label { font-size: 13px; }
}
