/* ============================================
   MEP CENTER — Subpage Shared Styles
   subpage.css
   ============================================ */

/* ---- SUB NAVBAR ---- */
.sub-navbar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(13, 17, 23, 0.97);
  border-bottom: 1px solid rgba(0, 230, 118, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.sub-nav-links {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-links::-webkit-scrollbar { display: none; }

.sub-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-decoration: none;
  color: #6c7a8a;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.sub-nav-link:hover {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.06);
  text-decoration: none;
}
.sub-nav-link.active {
  color: #00e676;
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}
.sub-nav-link i { font-size: 12px; }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 72px 0 56px;
  background: #0b0e14;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,230,118,0.1);
}

/* Hero radial glow variants */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,230,118,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero--fire::before  { background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255,107,43,0.06) 0%, transparent 70%); }
.page-hero--hvac::before  { background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 70%); }
.page-hero--elec::before  { background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(250,204,21,0.06) 0%, transparent 70%); }
.page-hero--elec2::before { background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(139,92,246,0.06) 0%, transparent 70%); }

.page-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #00e676;
  margin: 0 auto 24px;
  box-shadow: 0 0 24px rgba(0,230,118,0.25);
  animation: heroIconPulse 3s ease-in-out infinite;
}
.page-hero--fire  .page-hero-icon { color:#ff6b2b; background:rgba(255,107,43,0.08); border-color:rgba(255,107,43,0.3); box-shadow:0 0 24px rgba(255,107,43,0.2); }
.page-hero--hvac  .page-hero-icon { color:#06b6d4; background:rgba(6,182,212,0.08); border-color:rgba(6,182,212,0.3); box-shadow:0 0 24px rgba(6,182,212,0.2); }
.page-hero--elec  .page-hero-icon { color:#facc15; background:rgba(250,204,21,0.08); border-color:rgba(250,204,21,0.3); box-shadow:0 0 24px rgba(250,204,21,0.2); }
.page-hero--elec2 .page-hero-icon { color:#a855f7; background:rgba(168,85,247,0.08); border-color:rgba(168,85,247,0.3); box-shadow:0 0 24px rgba(168,85,247,0.2); }

@keyframes heroIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(0,230,118,0.25); }
  50%       { transform: scale(1.06); box-shadow: 0 0 36px rgba(0,230,118,0.4); }
}

.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: #eef2f8;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero h1 span {
  color: #00e676;
  text-shadow: 0 0 20px rgba(0,230,118,0.4);
}
.page-hero--fire  h1 span { color:#ff6b2b; text-shadow:0 0 20px rgba(255,107,43,0.4); }
.page-hero--hvac  h1 span { color:#06b6d4; text-shadow:0 0 20px rgba(6,182,212,0.4); }
.page-hero--elec  h1 span { color:#facc15; text-shadow:0 0 20px rgba(250,204,21,0.4); }
.page-hero--elec2 h1 span { color:#a855f7; text-shadow:0 0 20px rgba(168,85,247,0.4); }

.page-hero p {
  color: #8090a8;
  font-size: 15px;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- MAIN CONTENT ---- */
.subpage-content {
  padding: 64px 0 80px;
  background: #0b0e14;
  position: relative;
  z-index: 1;
}

/* ---- CONTENT SECTION ---- */
.content-section {
  background: #131820;
  border: 1px solid rgba(0,230,118,0.1);
  border-radius: 16px;
  padding: 40px 40px 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.content-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00e676, transparent);
  border-radius: 16px 16px 0 0;
}
.content-section:hover {
  border-color: rgba(0,230,118,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* ---- SECTION HEADER PILL ---- */
.section-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.25);
  color: #00e676;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  background: rgba(var(--pill-rgb, 0,230,118), 0.07);
  border-color: rgba(var(--pill-rgb, 0,230,118), 0.3);
  color: var(--pill-color, #00e676);
}
.section-header-pill i { font-size: 14px; }

/* ---- CONTENT TEXT ---- */
.subpage-content p {
  color: #9aa5b4;
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.subpage-content strong { color: #dde4ed; font-weight: 600; }

.content-list {
  padding-left: 20px;
  color: #9aa5b4;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.content-list li { margin-bottom: 6px; }
.content-list li::marker { color: #00e676; }

/* ---- INFO CARDS ROW ---- */
.info-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.25s, transform 0.25s;
}
.info-card:hover {
  border-color: rgba(0,230,118,0.2);
  transform: translateY(-3px);
}
.info-card h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #dde4ed;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.info-card ul {
  padding-left: 16px;
  color: #8090a8;
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}
.info-card ul li { margin-bottom: 6px; }
.info-card ul li strong { color: #c0cad6; }

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}
.info-card-icon.green  { background:rgba(0,230,118,0.1);  color:#00e676; border:1px solid rgba(0,230,118,0.25); }
.info-card-icon.cyan   { background:rgba(6,182,212,0.1);  color:#06b6d4; border:1px solid rgba(6,182,212,0.25); }
.info-card-icon.orange { background:rgba(255,107,43,0.1); color:#ff6b2b; border:1px solid rgba(255,107,43,0.25); }
.info-card-icon.yellow { background:rgba(250,204,21,0.1); color:#facc15; border:1px solid rgba(250,204,21,0.25); }
.info-card-icon.purple { background:rgba(168,85,247,0.1); color:#a855f7; border:1px solid rgba(168,85,247,0.25); }

/* ---- TABLES ---- */
.content-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.table-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #00e676;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(0,230,118,0.1);
  margin: 0;
  background: rgba(0,230,118,0.04);
}
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 0;
}
.content-table thead tr {
  background: rgba(0,230,118,0.06);
}
.content-table th {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00e676;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0,230,118,0.12);
}
.content-table td {
  padding: 12px 16px;
  color: #9aa5b4;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.7;
}
.content-table td strong { color: #c0cad6; }
.content-table tbody tr:last-child td { border-bottom: none; }
.content-table tbody tr:hover td { background: rgba(0,230,118,0.03); }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: rgba(0,230,118,0.05);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  --highlight-color: rgba(0,230,118,0.05);
  --highlight-border: rgba(0,230,118,0.2);
  background: var(--highlight-color);
  border-color: var(--highlight-border);
}
.highlight-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #00e676;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-box ul {
  padding-left: 18px;
  color: #8090a8;
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0;
}
.highlight-box ul li { margin-bottom: 6px; }
.highlight-box ul li::marker { color: #00e676; }
.highlight-box ul strong { color: #c0cad6; }

/* ---- STANDARDS BOX ---- */
.standards-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.standards-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a6a7a;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.std-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.2);
  color: #00e676;
}

/* ---- FORMULA BOX ---- */
.formula-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 20px 0;
  text-align: center;
}
.formula-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #5a6a7a;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.formula {
  font-family: 'Share Tech Mono', monospace;
  font-size: 28px;
  color: #00e676;
  text-shadow: 0 0 16px rgba(0,230,118,0.5);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.formula-desc {
  font-size: 13px;
  color: #6c7a8a;
  margin: 0;
}

/* ---- FOOTER OVERRIDES (reuse from main) ---- */
footer h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00e676;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,230,118,0.12);
}
footer address { font-style: normal; font-size: 13px; color: #8090a8; line-height: 2; }
footer p { font-size: 13px; color: #8090a8; }
footer .list-unstyled a {
  color: #8090a8 !important;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 7px;
}
footer .list-unstyled a::before { content: '▸'; color: #00e676; font-size: 10px; }
footer .list-unstyled a:hover { color: #00e676 !important; }
footer .text-center { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: #3a4a5a; letter-spacing: 1px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .content-section { padding: 28px 22px 24px; }
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: 28px; }
  .info-cards-row { grid-template-columns: 1fr; }
  .standards-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sub-nav-link { padding: 7px 13px; font-size: 12px; }
  .formula { font-size: 22px; }
}

@media (max-width: 576px) {
  .content-section { padding: 22px 16px 20px; border-radius: 12px; }
  .content-table th, .content-table td { padding: 10px 12px; font-size: 12.5px; }
}

/* ============================================
   LIGHT MODE OVERRIDES — subpage
   ============================================ */
body.light-mode {
  background-color: #f0f4f8;
  color: #1a2030;
}

/* Sub navbar */
body.light-mode .sub-navbar {
  background: rgba(240, 244, 248, 0.97);
  border-bottom-color: rgba(0, 160, 80, 0.2);
}
body.light-mode .sub-nav-link { color: #4a5568; }
body.light-mode .sub-nav-link:hover {
  color: #00a050;
  border-color: rgba(0,160,80,0.25);
  background: rgba(0,160,80,0.06);
}
body.light-mode .sub-nav-link.active {
  color: #00a050;
  background: rgba(0,160,80,0.1);
  border-color: rgba(0,160,80,0.4);
  box-shadow: 0 0 10px rgba(0,160,80,0.15);
}

/* Page hero */
body.light-mode .page-hero {
  background: #e4eaf0;
  border-bottom-color: rgba(0,160,80,0.15);
}
body.light-mode .page-hero::before {
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,200,100,0.08) 0%, transparent 70%);
}
body.light-mode .page-hero h1 { color: #1a2030; }
body.light-mode .page-hero p  { color: #5a6a7a; }

/* Main content bg */
body.light-mode .subpage-content { background: #f0f4f8; }

/* Content section cards */
body.light-mode .content-section {
  background: #ffffff;
  border-color: rgba(0,160,80,0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
body.light-mode .content-section::before {
  background: linear-gradient(90deg, #00b84d, transparent);
}
body.light-mode .content-section:hover {
  border-color: rgba(0,160,80,0.25);
  box-shadow: 0 6px 30px rgba(0,0,0,0.1);
}

/* Text */
body.light-mode .subpage-content p { color: #4a5568; }
body.light-mode .subpage-content strong { color: #1a2030; }
body.light-mode .content-list { color: #4a5568; }
body.light-mode .content-list li::marker { color: #00a050; }

/* Info cards */
body.light-mode .info-card {
  background: #f7fafc;
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .info-card:hover { border-color: rgba(0,160,80,0.2); }
body.light-mode .info-card h5 { color: #1a2030; }
body.light-mode .info-card ul { color: #5a6a7a; }
body.light-mode .info-card ul strong { color: #2d3748; }

/* Tables */
body.light-mode .content-table-wrap {
  border-color: rgba(0,0,0,0.08);
  background: #fff;
}
body.light-mode .table-title {
  color: #00a050;
  background: rgba(0,160,80,0.05);
  border-bottom-color: rgba(0,160,80,0.12);
}
body.light-mode .content-table thead tr { background: rgba(0,160,80,0.06); }
body.light-mode .content-table th {
  color: #00a050;
  border-bottom-color: rgba(0,160,80,0.12);
}
body.light-mode .content-table td {
  color: #4a5568;
  border-bottom-color: rgba(0,0,0,0.05);
}
body.light-mode .content-table td strong { color: #1a2030; }
body.light-mode .content-table tbody tr:hover td { background: rgba(0,160,80,0.04); }

/* Highlight box */
body.light-mode .highlight-box {
  background: rgba(0,160,80,0.05);
  border-color: rgba(0,160,80,0.18);
}
body.light-mode .highlight-title { color: #00a050; }
body.light-mode .highlight-box ul { color: #5a6a7a; }
body.light-mode .highlight-box ul li::marker { color: #00a050; }
body.light-mode .highlight-box ul strong { color: #2d3748; }

/* Standards box */
body.light-mode .standards-box {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .standards-title { color: #8090a8; }
body.light-mode .std-tag {
  background: rgba(0,160,80,0.07);
  border-color: rgba(0,160,80,0.2);
  color: #00a050;
}

/* Formula box */
body.light-mode .formula-box {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,160,80,0.2);
}
body.light-mode .formula { color: #00a050; text-shadow: 0 0 10px rgba(0,160,80,0.3); }
body.light-mode .formula-title { color: #8090a8; }
body.light-mode .formula-desc { color: #7a8a9a; }

/* Section header pill */
body.light-mode .section-header-pill {
  background: rgba(0,160,80,0.08);
  border-color: rgba(0,160,80,0.25);
  color: #00a050;
}

/* Footer */
body.light-mode footer {
  background: #e4eaf0 !important;
  border-top-color: rgba(0,160,80,0.15) !important;
}
body.light-mode footer h5 { color: #00a050; border-bottom-color: rgba(0,160,80,0.12); }
body.light-mode footer address { color: #5a6a7a; }
body.light-mode footer p { color: #5a6a7a; }
body.light-mode footer .list-unstyled a { color: #5a6a7a !important; }
body.light-mode footer .list-unstyled a::before { color: #00a050; }
body.light-mode footer .list-unstyled a:hover { color: #00a050 !important; }
body.light-mode footer .text-center { color: #8090a8; }
body.light-mode footer .text-white a { color: #5a6a7a !important; }
body.light-mode footer .text-white a:hover { color: #00a050 !important; }
