:root{
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --text:#1A1F2B;
  --muted:#5B6474;
  --primary:#0B1F3B;
  --accent:#2B6CB0;
  --highlight:#F5A623;
  --border: rgba(11,31,59,.12);
  --shadow: 0 10px 30px rgba(11,31,59,.10);
  --radius: 18px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html,body{width:100%;overflow-x:hidden}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* =========================
   TOPBAR / HEADER (SINGLE SOURCE OF TRUTH)
========================= */

.topbar{
  position:sticky; top:0; z-index:50;
  background:#DFF2E1; /* light green */
  border-bottom: 1px solid rgba(11,31,59,.18);
  backdrop-filter: blur(10px);
}

/* This is the header row wrapper used in your HTML: container nav headerFlex */
.nav{
  padding:14px 0;
}

/* Layout for brand + menu */
.headerFlex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap; /* allows wrap on smaller widths */
}

/* Brand block (left) */
.brandWrapper{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex: 1 1 360px;
  min-width: 240px;
}

/* Row: icon + title */
.brandRow{
  display:flex;
  align-items:center;
  gap:12px;
}

.brandIcon{
  width:36px;
  height:36px;
  color:#0B1F3B;
  flex: 0 0 auto;
}

.brandTitle{
  font-size:28px;
  font-weight:900;
  letter-spacing:0.4px;
  color:#0B1F3B;
  line-height:1.05;
}

.brandTagline{
  font-size:18px;
  font-weight:800;
  color:#0B1F3B;
  letter-spacing:0.3px;
  line-height:1.2;
  margin:0;
}

/* Menu (right) */
.menu{
  display:flex;
  align-items:center;
  gap:14px;
  flex: 0 1 auto;
  justify-content:flex-end;
  color:#0B1F3B;
  font-weight:700;
}

.menu a{
  padding:10px 12px;
  border-radius:12px;
  white-space:nowrap;
}

.menu a:hover{
  background: rgba(11,31,59,.06);
  color:#0B1F3B;
}

/* =========================
   HERO
========================= */

.hero{padding:56px 0 28px}

.heroGrid{
  display:grid;
  gap:22px;
  grid-template-columns: 1.15fr .85fr;
  align-items:stretch;
}

.heroCard{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
}

h1{margin:12px 0 10px; font-size:38px; line-height:1.15}

.lead{margin:0; color:var(--muted); font-size:16px; max-width:58ch}

.ctaRow{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px; font-weight:800;
  border:1px solid transparent;
}
.btn.primary{background:var(--primary); color:white}
.btn.primary:hover{filter:brightness(1.08)}
.btn.ghost{border-color:var(--border); background:transparent}
.btn.ghost:hover{background:rgba(11,31,59,.06)}

/* HERO STATS as WHITE CARDS */
.heroStats{
  display:grid; gap:12px;
  grid-template-columns: 1fr 1fr;
  margin-top:18px;
}

.stat{
  background:#ffffff;
  border:1px solid rgba(11,31,59,0.10);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}
.stat b{display:block; font-size:18px; color:#0B1F3B; font-weight:900}
.stat span{color: rgba(11,31,59,0.75); font-weight:700; font-size:12px}

/* =========================
   RIGHT PANEL (sideImage)
========================= */

.sideImage{
  background:
    radial-gradient(1200px 400px at 20% 20%, rgba(43,108,176,.25), transparent 60%),
    radial-gradient(900px 300px at 80% 30%, rgba(245,166,35,.22), transparent 60%),
    linear-gradient(135deg, rgba(11,31,59,.88), rgba(43,108,176,.68));
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:26px;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:260px;
}

.sideImage h2{margin:0 0 8px;font-size:20px}
.sideImage p{margin:0;color:rgba(255,255,255,.82)}

.pillRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.pill{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background: rgba(255,255,255,.10);
  font-weight:700; font-size:12px;
}

/* Sector image grid */
.sectorGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin:16px 0 14px;
}

.sectorItem{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.06);
}

.sectorItem img{
  width:100%;
  height:95px;
  object-fit:cover;
  display:block;
  filter: contrast(1.05) saturate(1.05);
}

.sectorItem span{
  position:absolute;
  left:10px;
  bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(11,31,59,0.78);
  color:#fff;
  font-weight:800;
  font-size:12px;
  letter-spacing:0.2px;
  border:1px solid rgba(255,255,255,0.18);
}

/* =========================
   SECTIONS / CARDS
========================= */

.section{padding:26px 0}

.sectionHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

/* You want white headings on dark page */
.sectionHeader h3{margin:0; font-size:20px; color:#ffffff}
.sectionHeader p{margin:0; max-width:70ch; color:rgba(255,255,255,0.85)}

.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, 1fr);
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 8px 22px rgba(11,31,59,.06);
}

.card h4{margin:0 0 8px}
.card p{margin:0; color:var(--muted)}

.tag{
  display:inline-flex; gap:8px; align-items:center;
  margin-top:10px;
  font-size:12px; font-weight:800;
  color:var(--accent);
}

.projects{
  display:grid; gap:14px;
  grid-template-columns: repeat(2, 1fr);
}

.project{display:flex; gap:14px; align-items:flex-start}

.badge{
  width:42px;height:42px;border-radius:14px;
  background: rgba(43,108,176,.10);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:var(--accent);
}

.commitGrid{
  display:grid; gap:14px;
  grid-template-columns: repeat(4, 1fr);
}

.commit{text-align:center; padding:18px}
.commit b{display:block; margin-top:10px}
.commit span{display:block; color:var(--muted); font-size:12px; margin-top:6px}

/* Commitment icon tiles */
.commitIconBox{
  width:56px;
  height:56px;
  border-radius:16px;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  border:1px solid rgba(11,31,59,0.10);
}
.commitIconBox svg{
  width:30px;
  height:30px;
  color:#0B1F3B;
}

hr.sep{border:0;border-top:1px solid var(--border); margin:18px 0}

/* =========================
   FOOTER
========================= */

.footer{
  padding:28px 0;
  background:#0B1F3B;
  border-top:1px solid rgba(255,255,255,0.15);
}

.footerGrid{
  display:grid; gap:14px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

/* Footer text all white */
.footer,
.footer p,
.footer b,
.footer small,
.footer span,
.footer a{
  color:#ffffff !important;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 980px){
  .hero{padding:42px 0 22px}
  .heroGrid{grid-template-columns: 1fr}
  h1{font-size:34px}
  .grid{grid-template-columns: 1fr}
  .projects{grid-template-columns: 1fr}
  .commitGrid{grid-template-columns: 1fr 1fr}
  .footerGrid{grid-template-columns: 1fr}
}

/* Mobile */
@media (max-width: 640px){

  /* Header: compact + no stretch */
  .nav{padding:12px 0}
  .headerFlex{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start; /* ✅ stops the huge gap */
    gap:10px;
  }
  .brandWrapper{flex: 1 1 auto; width:100%}
  .brandIcon{width:30px;height:30px}
  .brandTitle{font-size:20px; line-height:1.15}
  .brandTagline{font-size:14px; font-weight:700}

  .menu{
    width:100%;
    justify-content:flex-start;
    gap:10px;
    padding-top:6px;
    border-top: 1px dashed rgba(0,0,0,0.12);
  }
  .menu a{font-size:14px}

  /* Hero */
  h1{font-size:30px}
  .heroCard{padding:18px}
  .sideImage{padding:18px}
  .heroStats{grid-template-columns: 1fr} /* stack stats */

  /* Right panel image grid */
  .sectorGrid{grid-template-columns: 1fr}
  .sectorItem img{height:125px}

  /* Commit grid */
  .commitGrid{grid-template-columns: 1fr}
}

/* ===== Classy brand header ===== */
.brandLink{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brandLogo{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:10px;
}

.brandText{display:flex; flex-direction:column; gap:2px}

/* Mobile menu button */
.navToggle{
  display:none;
  background:transparent;
  border:1px solid rgba(11,31,59,0.25);
  border-radius:12px;
  padding:8px 12px;
  font-size:18px;
  font-weight:800;
  color:#0B1F3B;
}

/* Short commitment list */
.commitList{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.commitPoint{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18);
  border-radius:16px;
  padding:14px;
  color:#fff;
}

.commitPoint b{display:block; font-size:16px}
.commitPoint span{display:block; margin-top:2px; color:rgba(255,255,255,0.82); font-size:13px}

.commitBullet{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(245,166,35,0.20);
  border:1px solid rgba(245,166,35,0.35);
  font-weight:900;
  color:#fff;
  flex:0 0 auto;
}

/* ===== Mobile header behaviour ===== */
@media (max-width: 720px){
  .navToggle{display:inline-flex}

  .menu{
    width:100%;
    display:none;           /* hidden by default on mobile */
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding-top:10px;
    border-top:1px dashed rgba(0,0,0,0.12);
  }
  .menu.open{display:flex}

  .menu a{
    width:100%;
    padding:12px 12px;
    border-radius:12px;
  }

  .brandLogo{width:40px;height:40px}
}


