/* ============================================================
   SUBSTATIONS PAGE — Inner Sections Stylesheet
   Sections: Overview · Three-Core · Manufacturing ·
             Stats Band · Applications · Why Trinity

   Depends on homepage CSS for:
     --red, --blue, --deep-blue, --soft-blue, --light-grey,
     --dark, --mid, --border, --shadow-sm/md/lg,
     --shadow-blue/red, --radius-sm/md/lg, --transition,
     --font-display, --font-heading, --font-body,
     .container, .section-tag, .section-heading,
     .section-heading--white, .section-subtext,
     .anim-fade-up/left/right, .anim-scale-in,
     .anim-d1…d6, .anim-visible
   ============================================================ */


/* ============================================================
   1. OVERVIEW
   ============================================================ */
#overview {
  padding: 6rem 0 5rem;
  background: white;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Image side */
.overview-img-wrap { position: relative; }
.overview-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating badge */
.overview-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: var(--red);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-red);
}
.overview-badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.overview-badge-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.2rem;
}

/* Cert pills */
.overview-cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: rgba(21,73,155,0.07);
  border: 1px solid rgba(21,73,155,0.15);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--deep-blue);
}
.cert-pill .cert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Highlight 2×2 grid */
.overview-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.ov-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ov-highlight:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ov-highlight-icon  { font-size: 1.3rem; flex-shrink: 0; }
.ov-highlight-text h5 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.2rem;
}
.ov-highlight-text p { font-size: 0.78rem; color: var(--mid); line-height: 1.5; }


/* ============================================================
   2. THREE-CORE SYSTEM
   ============================================================ */
#three-core {
  padding: 6rem 0;
  background: var(--light-grey);
}

.three-core-header {
  text-align: center;
  margin-bottom: 4rem;
}
.three-core-header .section-subtext { margin: 0 auto; }

.three-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.core-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.core-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(210,37,46,0.18);
}

.core-card-top {
  padding: 2.2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

/* Icon bubble */
.core-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.core-card-icon-wrap.ht { background: rgba(210,37,46,0.08); }
.core-card-icon-wrap.tr { background: rgba(15,46,99,0.08); }
.core-card-icon-wrap.lt { background: rgba(63,111,198,0.08); }

.core-card-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.core-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep-blue);
  line-height: 1.15;
}
.core-card-desc {
  font-size: 0.87rem;
  color: #5a6175;
  line-height: 1.72;
}

/* Animated bottom bar */
.core-card-divider {
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red), transparent);
  transition: width 0.55s cubic-bezier(0.22,1,0.36,1);
}
.core-card:hover .core-card-divider { width: 100%; }


/* ============================================================
   3. MANUFACTURING CAPABILITIES
   ============================================================ */
#manufacturing {
  padding: 6rem 0;
  background: white;
}

.mfg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mfg-img-wrap { position: relative; }
.mfg-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating badge */
.mfg-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--deep-blue);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-blue);
}
.mfg-badge-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.mfg-badge-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.2rem;
}

/* Spec rows */
.mfg-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.mfg-spec-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mfg-spec-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.mfg-spec-label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--deep-blue);
  min-width: 200px;
}
.mfg-spec-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}


/* ============================================================
   4. STATS BAND
   ============================================================ */
#stats-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0a1632 100%);
  position: relative;
  overflow: hidden;
}
#stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(63,111,198,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(10,22,50,0.4);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: white;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.6rem;
  line-height: 1.45;
}


/* ============================================================
   5. APPLICATIONS
   ============================================================ */
#applications {
  padding: 6rem 0;
  background: var(--light-grey);
}

.apps-header {
  text-align: center;
  margin-bottom: 4rem;
}
.apps-header .section-subtext { margin: 0 auto; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Red bottom bar on hover */
.app-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(210,37,46,0.15);
}
.app-card:hover::after { transform: scaleX(1); }

.app-icon  { font-size: 2.2rem; }
.app-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.3;
}


/* ============================================================
   6. WHY TRINITY
   ============================================================ */
#why-pss {
  padding: 6rem 0;
  background: var(--deep-blue);
  position: relative;
  overflow: hidden;
}
#why-pss::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(63,111,198,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(210,37,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.why-pss-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.why-pss-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.why-pss-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
/* Red bottom accent */
.why-pss-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.why-pss-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-5px);
}
.why-pss-card:hover::before { transform: scaleX(1); }

.why-pss-icon  { font-size: 1.8rem; margin-bottom: 1rem; }
.why-pss-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.why-pss-desc  { font-size: 0.83rem; color: rgba(255,255,255,0.6); line-height: 1.65; }


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

/* Tablet — ≤ 1200px */
@media (max-width: 1200px) {
  .apps-grid    { grid-template-columns: repeat(3, 1fr); }
  .why-pss-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .overview-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .overview-badge   { top: auto; bottom: -1rem; right: 1rem; }
  .three-core-grid  { grid-template-columns: 1fr 1fr; }
  .mfg-grid         { grid-template-columns: 1fr; gap: 3rem; }
  .mfg-badge        { position: static; display: inline-block; margin-top: 1rem; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  .overview-highlights  { grid-template-columns: 1fr; }
  .overview-badge       { position: static; display: inline-block; margin-top: 1rem; }
  .three-core-grid      { grid-template-columns: 1fr; }
  .apps-grid            { grid-template-columns: 1fr 1fr; }
  .why-pss-grid         { grid-template-columns: 1fr 1fr; }
  .mfg-spec-label       { min-width: unset; }
}

/* Small mobile — ≤ 480px */
@media (max-width: 480px) {
  #overview,
  #three-core,
  #manufacturing,
  #stats-band,
  #applications,
  #why-pss        { padding: 4rem 0; }

  .apps-grid      { grid-template-columns: 1fr; }
  .why-pss-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }

  .three-core-header,
  .apps-header,
  .why-pss-header { margin-bottom: 2.5rem; }
}
