/* BSGRO — style.css */
:root {
  --clr-navy: #0D3B66;
  --clr-green-deep: #1B5E20;
  --clr-green: #2E7D32;
  --clr-green-light: #4CAF50;
  --clr-lime: #8BC34A;
  --clr-blue: #1565C0;
  --clr-terra: #A1664B;
  --clr-bg: #F8F9FA;
  --clr-bg-alt: #EEF2E6;
  --clr-text: #212529;
  --clr-muted: #5A6268;
  --clr-white: #FFFFFF;
  --clr-card-shadow: rgba(13, 59, 102, 0.08);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 10px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px var(--clr-card-shadow);
  padding: 0.5rem 0;
  transition: var(--transition);
}
.navbar-brand img { height: 52px; width: auto; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-navy) !important;
  padding: 0.5rem 0.7rem !important;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--clr-green) !important; }
.lang-switch { font-size: 0.78rem; font-weight: 700; color: var(--clr-muted); }
.lang-switch .active-lang { color: var(--clr-green); border-bottom: 2px solid var(--clr-green); }
.lang-switch .disabled-lang { color: #ccc; cursor: default; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-green-deep) 60%, #1a3a1a 100%);
  color: var(--clr-white);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}
.hero .btn-hero {
  background: var(--clr-lime);
  color: var(--clr-navy);
  font-weight: 700;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}
.hero .btn-hero:hover { background: #9CCC65; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,195,74,0.3); }

/* ===== SECTIONS ===== */
section { padding: 4.5rem 0; position: relative; z-index: 1; background: var(--clr-bg); }
section:nth-child(even) { background: var(--clr-bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--clr-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ===== CARDS ===== */
.card-custom {
  background: var(--clr-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--clr-card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  overflow: hidden;
}
.card-custom:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,59,102,0.12); }
.card-accent-top {
  border-top: 4px solid var(--clr-green);
}
.card-accent-left {
  border-left: 4px solid var(--clr-lime);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-white);
  background: var(--clr-green);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card-icon.navy { background: var(--clr-navy); }
.card-icon.lime { background: var(--clr-lime); color: var(--clr-navy); }
.card-icon.terra { background: var(--clr-terra); }

/* ===== TABLES ===== */
.table-bsgro { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px var(--clr-card-shadow); }
.table-bsgro thead th {
  background: var(--clr-navy);
  color: var(--clr-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  padding: 0.85rem 1rem;
}
.table-bsgro tbody td {
  padding: 0.75rem 1rem;
  border-color: #E8ECF0;
  font-size: 0.9rem;
}
.table-bsgro tbody tr:hover { background: var(--clr-bg-alt); }

/* ===== BIG STAT CALLOUT ===== */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-green);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-top: 0.3rem;
}

/* ===== RISK MAP (SVG infographic in HTML) ===== */
.risk-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  position: relative;
}
.risk-node {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 1.2rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--clr-card-shadow);
  position: relative;
  margin: 0.5rem;
  border-top: 4px solid var(--clr-green);
}
.risk-node h5 {
  font-size: 0.95rem;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}
.risk-node p, .risk-node ul {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 0;
}
.risk-node ul { padding-left: 1.2rem; }
.risk-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-lime);
  flex: 0 0 30px;
  margin: 0.5rem 0;
}

/* ===== SCALE TABLE HIGHLIGHTS ===== */
.scale-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-white);
}
.scale-badge.mobile { background: var(--clr-lime); color: var(--clr-navy); }
.scale-badge.station { background: var(--clr-green); }
.scale-badge.medium { background: var(--clr-blue); }
.scale-badge.industrial { background: var(--clr-navy); }

/* ===== MARGIN BAR CHART (CSS) ===== */
.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}
.bar-label {
  width: 160px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  color: var(--clr-text);
}
.bar-track {
  flex: 1;
  height: 28px;
  background: #E8ECF0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 1s ease;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-white);
}
.bar-fill.low { background: linear-gradient(90deg, #ef9a9a, #e57373); }
.bar-fill.mid { background: linear-gradient(90deg, #FFD54F, #FFC107); color: var(--clr-navy); }
.bar-fill.high { background: linear-gradient(90deg, var(--clr-green), var(--clr-lime)); }
.bar-fill.top { background: linear-gradient(90deg, var(--clr-navy), var(--clr-green)); }

/* ===== PARTICIPANTS CIRCLE ===== */
.participant-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--clr-card-shadow);
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
}
.participant-card:hover { transform: translateX(4px); }
.participant-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-navy);
}
.participant-org {
  font-size: 0.82rem;
  color: var(--clr-muted);
}

/* ===== REASONS LIST ===== */
.reason-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.reason-num {
  width: 44px; height: 44px;
  background: var(--clr-green);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.reason-text h5 {
  font-size: 1rem;
  color: var(--clr-navy);
  margin-bottom: 0.3rem;
}
.reason-text p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
}
footer h5 { color: var(--clr-lime); font-size: 1.1rem; margin-bottom: 1rem; }
footer a { color: var(--clr-lime); text-decoration: none; }
footer a:hover { color: var(--clr-white); text-decoration: underline; }
footer .copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-brand img { height: 40px; }
  .nav-link { font-size: 0.78rem; padding: 0.4rem 0.5rem !important; }
  .hero { padding: 5rem 0 3.5rem; }
  .bar-label { width: 100px; font-size: 0.78rem; }
  .risk-arrow { display: none; }
  .risk-node { max-width: 100%; flex: 1 1 100%; }
}
@media (max-width: 575px) {
  .hero h1 { font-size: 1.5rem; }
  section { padding: 3rem 0; }
  .bar-label { width: 80px; font-size: 0.72rem; }
  .stat-number { font-size: 2rem; }
}
