/* ============================================================
   POWER CONTROL SYSTEM — Design System
   Palette : Panel Ink #0B1B2B | Steel #F1F4F7 | Brand Blue #1466C8
             Signal Red #D91E2E | Busbar Gold #F2A900
   Type    : Barlow Condensed (display) / Inter (body) / IBM Plex Mono (spec)
   ============================================================ */

:root {
  --ink: #0b1b2b;
  --ink-2: #12293f;
  --steel: #f1f4f7;
  --steel-2: #e3e9ef;
  --blue: #1466c8;
  --blue-dark: #0d4a94;
  --red: #d91e2e;
  --gold: #f2a900;
  --text: #2b3947;
  --muted: #64748b;
  --line: #d7dee6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 43, 0.16);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--steel);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--ink);
  text-transform: uppercase;
}

.mono, .spec-eyebrow {
  font-family: "IBM Plex Mono", monospace;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Signature: busbar accent ---------- */
.busbar {
  display: inline-block;
  width: 64px;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  height: 11px;
  position: relative;
}
.busbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  border-top: 3px solid var(--red);
  transform: translateY(-50%);
}
.busbar.busbar-blue::after { border-top-color: var(--blue); }

.spec-eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.spec-eyebrow::before { content: "// "; color: var(--red); }

.section-head { margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: .4rem 0 .6rem; }
.section-head p.lead-sub { color: var(--muted); max-width: 640px; margin: 0; }
.section-head.text-center p.lead-sub { margin: 0 auto; }

/* ---------- Top strip ---------- */
.topbar {
  background: var(--ink);
  color: #b9c6d4;
  font-size: .8rem;
}
.topbar .mono { letter-spacing: .06em; }
.topbar a { color: #d9e3ec; }
.topbar a:hover { color: var(--gold); }
.topbar .iso-chip {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 3px;
  letter-spacing: .08em;
}

/* ---------- Navbar ---------- */
.navbar-pcs {
  background: #ffffff;
  box-shadow: 0 2px 18px rgba(11, 27, 43, .08);
  padding: .65rem 0;
}
.navbar-pcs .navbar-brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  padding: .1rem .55rem;
  line-height: 1.4;
}
.brand-text { line-height: 1.15; }
.brand-text .brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
}
.brand-text .brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: block;
}
.navbar-pcs .nav-link {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  padding: .5rem .9rem !important;
  position: relative;
}
.navbar-pcs .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar-pcs .nav-link:hover::after,
.navbar-pcs .nav-link.active::after { transform: scaleX(1); }
.navbar-pcs .nav-link.active { color: var(--red); }

.btn-quote {
  background: var(--red);
  color: #fff !important;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .55rem 1.4rem;
  border-radius: 4px;
  border: none;
  transition: background .2s ease, transform .2s ease;
}
.btn-quote:hover { background: #b5121f; transform: translateY(-2px); }

/* ---------- Buttons ---------- */
.btn-pcs {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: 1.02rem;
  padding: .7rem 1.8rem;
  border-radius: 4px;
  transition: all .22s ease;
}
.btn-pcs-red { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-pcs-red:hover { background: transparent; color: var(--red); }
.btn-pcs-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-pcs-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-pcs-blue { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-pcs-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item {
  height: min(78vh, 640px);
  min-height: 480px;
  position: relative;
  color: #fff;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
/* Placeholder gradients — replace with real banner images (1920×700) */
.hero-bg-1 { background-image: linear-gradient(115deg, #0b1b2b 0%, #103a63 55%, #1466c8 100%); }
.hero-bg-2 { background-image: linear-gradient(115deg, #101820 0%, #262f3a 55%, #4a5865 100%); }
.hero-bg-3 { background-image: linear-gradient(115deg, #12060a 0%, #5e1420 55%, #d91e2e 110%); }

.hero-slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,27,43,.88) 0%, rgba(11,27,43,.55) 45%, rgba(11,27,43,.15) 100%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px);
}
.banner-note {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  border: 1px dashed rgba(255,255,255,.35);
  padding: .25rem .6rem;
  border-radius: 3px;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content .spec-eyebrow { color: var(--gold); }
.hero-content .spec-eyebrow::before { color: #fff; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.05;
  margin: .8rem 0 1.1rem;
}
.hero-content h1 .accent { color: var(--gold); }
.hero-content p { max-width: 560px; color: #cfdae4; font-size: 1.06rem; }

.hero-carousel .carousel-indicators { margin-bottom: 1.4rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 34px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  border: 0;
}
.hero-carousel .carousel-indicators .active { background: var(--gold); }

/* ---------- Quick stats bar ---------- */
.stat-bar { background: var(--ink); color: #fff; position: relative; }
.stat-bar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 33%, var(--red) 33% 66%, var(--blue) 66% 100%);
}
.stat-item { padding: 1.9rem 1rem; text-align: center; }
.stat-item .num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-item .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9fb2c2;
  margin-top: .45rem;
}

/* ---------- Cards ---------- */
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.panel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.panel-card .card-media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, var(--ink-2), var(--blue-dark));
}
.panel-card .card-media svg { width: 62px; height: 62px; opacity: .95; }
.panel-card .card-media .tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--red);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  padding: .3rem .7rem;
  text-transform: uppercase;
}
.panel-card .card-body { padding: 1.4rem 1.5rem 1.6rem; }
.panel-card h4 { font-size: 1.3rem; margin-bottom: .5rem; }
.panel-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Media placeholder frames (gallery / images to upload) ---------- */
.ph-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, #223649, #0e2033);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ea4b8;
  min-height: 240px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ph-frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ph-frame::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px);
}
.ph-frame .ph-inner { position: relative; text-align: center; padding: 1rem; z-index: 1; }
.ph-frame .ph-inner svg { width: 46px; height: 46px; margin-bottom: .7rem; opacity: .8; }
.ph-frame .ph-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  font-size: 1.15rem;
}
.ph-frame .ph-size {
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  color: #7f95a9;
}
.ph-frame .ph-label {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--blue);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  padding: .35rem .8rem;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- Feature / moto list ---------- */
.moto-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.15rem 1.3rem;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.moto-item:hover { border-left-color: var(--red); transform: translateX(4px); }
.moto-item h5 { font-size: 1.12rem; margin-bottom: .25rem; }
.moto-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: .55rem 0 .55rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .95rem;
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

/* ---------- Dark sections ---------- */
.section-dark {
  background: var(--ink);
  color: #c8d5e0;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.03) 79px 80px);
  pointer-events: none;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .spec-eyebrow { color: var(--gold); }
.section-dark .spec-eyebrow::before { color: #fff; }

/* Brand chips (switchgear makes) */
.brand-chip {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: #dbe6ef;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  margin: .3rem .25rem;
  transition: border-color .2s ease, color .2s ease;
}
.brand-chip:hover { border-color: var(--gold); color: var(--gold); }

/* Industry chips (light) */
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem 1.15rem;
  margin: .3rem;
  font-weight: 600;
  color: var(--ink-2);
  font-size: .92rem;
  transition: all .2s ease;
}
.industry-chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.industry-chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--red); }

/* ---------- Process timeline ---------- */
.process-grid { counter-reset: step; }
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.3rem;
  height: 100%;
  position: relative;
  counter-increment: step;
  transition: transform .22s ease, box-shadow .22s ease;
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--steel-2);
  position: absolute;
  top: .45rem; right: .9rem;
  line-height: 1;
}
.process-step h5 { font-size: 1.1rem; margin: 0 0 .3rem; position: relative; }
.process-step p { font-size: .86rem; color: var(--muted); margin: 0; position: relative; }
.process-step .step-bar {
  width: 34px; height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 3px;
  margin-bottom: .8rem;
}

/* ---------- Facility spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td {
  padding: .8rem .5rem;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.spec-table td:first-child { font-weight: 600; color: var(--ink-2); }
.spec-table td:last-child {
  font-family: "IBM Plex Mono", monospace;
  color: var(--blue);
  text-align: right;
  font-size: .85rem;
  letter-spacing: .05em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--red) 0%, #a20f1d 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border: 26px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: #ffd9dd; max-width: 560px; }
.cta-band .btn-pcs-white {
  background: #fff; color: var(--red); border: 2px solid #fff;
}
.cta-band .btn-pcs-white:hover { background: transparent; color: #fff; }

/* ---------- Certificates ---------- */
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 10px;
  padding: 1.8rem;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-card.red { border-top-color: var(--red); }
.cert-card.gold { border-top-color: var(--gold); }
.cert-card .mono { font-size: .72rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  height: 100%;
}
.contact-block .icon-sq {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-block h5 { font-size: 1.15rem; }
.contact-block p, .contact-block a { font-size: .93rem; color: var(--muted); word-break: break-word; }
.contact-block a:hover { color: var(--blue); }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-panel .form-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-panel .form-control, .form-panel .form-select {
  border-radius: 6px;
  border-color: var(--line);
  padding: .7rem .9rem;
  font-size: .95rem;
}
.form-panel .form-control:focus, .form-panel .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(20, 102, 200, .12);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: linear-gradient(135deg, #223649, #0e2033);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,27,43,0) 55%, rgba(20,102,200,.28) 100%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.04) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.04) 79px 80px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: .6rem 0 .4rem; }
.page-hero .spec-eyebrow { color: var(--gold); }
.page-hero .spec-eyebrow::before { color: #fff; }
.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: #6d8296;
  margin: 0;
}
.page-hero .breadcrumb a { color: #a9bccd; font-size: .85rem; }
.page-hero .breadcrumb .active { color: var(--gold); font-size: .85rem; }

/* ---------- Footer ---------- */
.footer {
  background: #071220;
  color: #93a7b9;
  font-size: .92rem;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 33%, var(--red) 33% 66%, var(--blue) 66% 100%);
}
.footer h5 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .1em;
  margin-bottom: 1.1rem;
}
.footer a { color: #b6c7d6; }
.footer a:hover { color: var(--gold); }
.footer .foot-links { list-style: none; padding: 0; margin: 0; }
.footer .foot-links li { padding: .28rem 0; }
.footer .foot-links li::before { content: "› "; color: var(--red); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.1rem 0;
  font-size: .8rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .panel-card:hover, .ph-frame:hover, .process-step:hover, .moto-item:hover { transform: none; }
}

/* ---------- Utilities ---------- */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
.bg-white-soft { background: #fff; }
.text-gold { color: var(--gold) !important; }
.text-redpcs { color: var(--red) !important; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .navbar-pcs .btn-quote { margin-top: .6rem; display: inline-block; }
  .hero-carousel .carousel-item { min-height: 520px; }
}
@media (max-width: 575.98px) {
  .py-section { padding-top: 3.4rem; padding-bottom: 3.4rem; }
  .cta-band { padding: 2.2rem 1.5rem; }
  .stat-item { padding: 1.3rem .5rem; }
  .stat-item .num { font-size: 2rem; }
}
