/* BNS — Building New Systems (bnsuep.com)
   Shared stylesheet. Brand colours are defined as CSS variables below so the
   whole site can be re-themed from one place. */

:root {
  --navy: #0a1733;
  --navy-2: #0f2350;
  --ink: #0b1220;
  --slate: #475569;
  --mist: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --accent: #1fb6b6;       /* teal */
  --accent-2: #3b82f6;     /* blue */
  --accent-deep: #0e7490;
  --gold: #c8a04a;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(10, 23, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 23, 51, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 700; color: var(--accent-deep); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow);
}
.brand .brand-logo {
  width: 42px; height: 42px; border-radius: 50%; display: block;
  object-fit: cover; box-shadow: var(--shadow); background: var(--navy);
}
.brand .brand-name { font-size: 1.15rem; letter-spacing: -.01em; }
.brand .brand-sub { display: block; font-size: .68rem; font-weight: 600; color: var(--mist); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--slate); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--bg-soft); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 0;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf2ff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,182,182,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 120%, rgba(59,130,246,.35), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}
.hero .container { padding-top: 88px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #c6d4ee; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-tagline { font-weight: 700; letter-spacing: .02em; color: var(--accent); }

/* page banner (interior pages) */
.page-hero { color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-2)); }
.page-hero .container { padding: 64px 24px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c6d4ee; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { color: var(--navy); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.card p { color: var(--slate); margin-bottom: 0; }

.pillar { border-top: 4px solid var(--accent); }
.pillar:nth-child(2) { border-top-color: var(--accent-2); }
.pillar:nth-child(3) { border-top-color: var(--accent-deep); }
.pillar:nth-child(4) { border-top-color: var(--gold); }

/* values list */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.value h3 { margin-bottom: .25rem; }
.value p { color: var(--slate); margin: 0; }

/* mission / vision */
.mv {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.mv .eyebrow { color: var(--accent); }
.mv h3 { color: #fff; font-size: 1.5rem; margin: 0; }

/* logo placeholder grid (consortium partners) */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-slot {
  aspect-ratio: 3 / 2; border: 1.5px dashed #c7d2e3; border-radius: 12px;
  display: grid; place-items: center; color: var(--mist); background: var(--bg-soft);
  font-size: .82rem; text-align: center; padding: 12px;
}
.logo-slot.filled { border-style: solid; border-color: var(--line); background: #fff; }
.logo-slot.dark { border-style: solid; border-color: #1e293b; background: #0b1220; }
.logo-slot img { max-width: 82%; max-height: 64%; object-fit: contain; }
.logo-slot.dark img { max-width: 92%; max-height: 80%; }

.note {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  padding: 14px 18px; border-radius: 8px; color: var(--slate); font-size: .92rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #fff; border-radius: var(--radius); padding: 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f6ff; max-width: 56ch; margin: 0 auto 22px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info p { color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aebdd6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #aebdd6; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.tm { font-size: .7em; vertical-align: super; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; width: 100%; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band, .mv { padding: 28px; }
}
