/* ===== KPI SHARED STYLES ===== */

/* --- IMAGE MODAL --- */
.img-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(9,42,67,0.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.img-modal-overlay.open { display: flex; }
.img-modal-box {
  position: relative;
  max-width: 720px; width: 100%;
  background: var(--white);
  border-radius: 6px 20px 6px 20px;
  padding: 20px;
  cursor: default;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.img-modal-box img {
  width: 100%; height: auto; display: block;
  border-radius: 3px;
}
.img-modal-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 50%;
  font-size: 17px; line-height: 1;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background .15s;
}
.img-modal-close:hover { background: var(--navy-deep); }
.img-modal-caption {
  margin-top: 12px; text-align: center;
  font-size: 13px; color: var(--ink-soft);
}

/* BIR badge in footer */
.bir-badge {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: zoom-in;
}
.bir-badge img {
  height: 44px; width: auto;
  border-radius: 4px;
  transition: opacity .15s, transform .15s;
}
.bir-badge:hover img { opacity: 1; transform: scale(1.06); }
.bir-badge span {
  font-size: 12.5px; color: #7A9AAD;
}
:root {
  --navy:      #0E3A5C;
  --navy-deep: #092A43;
  --teal:      #2C8AA3;
  --teal-light:#BFE0E8;
  --teal-pale: #EAF4F6;
  --gold:      #E8A33D;
  --cream:     #F7F4EE;
  --ink:       #152530;
  --ink-soft:  #4A5C67;
  --white:     #FFFFFF;
  --border:    #E4E1D8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- UTILITIES --- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.diamond {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  display: inline-block;
}

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 14px;
}

.btn-primary {
  background: var(--navy); color: var(--white);
  padding: 14px 28px; font-weight: 600; font-size: 15px;
  border-radius: 2px 14px 2px 14px;
  border: 1px solid var(--navy);
  transition: background .15s;
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-outline {
  padding: 14px 24px; font-weight: 600; font-size: 15px;
  color: var(--navy); border: 1px solid var(--navy);
  border-radius: 2px 14px 2px 14px;
  display: inline-block;
  transition: background .15s, color .15s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* --- NAV --- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(14,58,92,0.08);
}
.nav {
  max-width: 1160px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center;
}
.logo-img {
  height: 40px; width: auto;
  display: block;
  transition: opacity .15s;
}
.logo:hover .logo-img { opacity: .85; }
.footer-brand .logo-img { height: 34px; }
.nav-links {
  display: flex; align-items: center; gap: 34px;
  font-size: 15px; font-weight: 500; color: var(--navy);
}
.nav-links a { opacity: 0.7; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.nav-cta {
  background: var(--navy); color: var(--white);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  border-radius: 2px 10px 2px 10px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--navy-deep); }
.nav-mobile-toggle {
  display: none; cursor: pointer;
  background: none; border: none; padding: 4px;
  color: var(--navy);
}

/* --- PAGE HERO (sub-pages) --- */
.page-hero {
  padding: 140px 0 72px;
  background: var(--navy-deep);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 40%; height: 100%;
  background: linear-gradient(160deg, rgba(44,138,163,0.25) 0%, transparent 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  max-width: 16ch;
}
.page-hero p {
  margin-top: 16px;
  color: #AFC5D3;
  font-size: 17px;
  max-width: 50ch;
}
.page-hero .kicker { color: var(--gold); }

/* --- SECTION LAYOUT --- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy-deep); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

/* --- FOOTER --- */
footer {
  background: var(--navy-deep);
  color: #7A9AAD;
  padding: 36px 0;
  font-size: 13.5px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); font-size: 16px; }
.footer-brand p {
  margin-top: 10px; max-width: 30ch;
  font-size: 13px; color: #6A8E9E; line-height: 1.5;
}
.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--white); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13.5px; color: #7A9AAD;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12.5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; }
  section { padding: 64px 0; }
  .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
}
