/* ===== CSC palette ===== */
:root{
  --ink:#0b1430;          /* navy */
  --ink-2:#1a254a;        /* darker navy for borders */
  --blue:#2b3c7f;         /* brand blue */
  --muted:#6b7691;        /* body text */
  --border:#e6e9f2;       /* hairline */
  --alt:#f4f6fb;          /* light blue wash */
  --max:1100px;
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; font-family:Arial, Helvetica, sans-serif; line-height:1.5; color:var(--ink); background:#fff; }
a{ color:inherit; }

/* ===== Layout ===== */
.container{ max-width:var(--max); margin:0 auto; padding:0 24px; }
.section{ padding:56px 20px; }

/* ===== Header ===== */
.site-header{ position:sticky; top:0; z-index:10; background:#fff; border-bottom:1px solid var(--border); }
.site-header .container{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 24px; }

/* centered logo, tinted blue */
.logo img{
  display:block;
  height:36px;
  margin:0 auto;
  filter: brightness(0) saturate(100%) invert(17%) sepia(55%) saturate(548%) hue-rotate(191deg) brightness(95%) contrast(92%);
}

/* nav */
.site-nav{
  display:flex; justify-content:center; align-items:center;
  gap:28px; padding-bottom:6px;
  font:600 16px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial;
}
.site-nav a,
.site-nav a:link,
.site-nav a:visited{
  text-decoration:none; color:var(--ink);
  padding:8px 12px; border-radius:12px; display:inline-block;
}
.site-nav a:hover,.site-nav a:focus{ background:rgba(43,60,127,.08); outline:none; }
.site-nav a[aria-current="page"]{ background:rgba(43,60,127,.12); }

/* single line on phones, swipe if tight */
@media (max-width:640px){
  .site-nav{ gap:18px; font-size:15px; white-space:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .site-nav::-webkit-scrollbar{ display:none; }
}

/* ===== Hero ===== */
.hero{ text-align:center; padding:64px 20px 40px; border-bottom:1px solid #eef0f3; background:#f9faff; }
.hero-inner{ max-width:860px; margin:0 auto; }
.hero-mark{
  display:block;
  margin:0 auto 12px;
  filter: brightness(0) saturate(100%) invert(17%) sepia(55%) saturate(548%) hue-rotate(191deg) brightness(95%) contrast(92%);
}
.hero h1{ font-size:2.2rem; margin:8px 0; line-height:1.1; color:var(--blue); font-weight:700; }
.lede{ max-width:700px; margin:10px auto 0; color:var(--muted); }
.hero-actions{ margin-top:16px; }

/* ===== Buttons ===== */
.btn,
.btn.btn-secondary {
  display:inline-block;
  padding:10px 16px;
  border:1px solid var(--blue);
  color:var(--blue);
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  font-weight:600;
}
.btn + .btn{ margin-left:8px; }
.btn:hover,
.btn.btn-secondary:hover{ background:rgba(43,60,127,.08); }

/* ===== Cards (used elsewhere) ===== */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; }
.card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:0 2px 12px rgba(11,20,48,.04); }
.card h3{ margin:0 0 8px; color:var(--blue); }
.card p{ margin:0; color:#334; }

/* ===== Alt section background ===== */
.bg-alt{ background:var(--alt); }

/* ===== Footer ===== */
.site-footer{
  font-size:.875rem;
  color:#666;
  text-align:center;
  padding:1.25rem 0;
  border-top:1px solid #e0e0e0;
}

/* ===== Project thumbs (used on project index) ===== */
.thumb-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
@media (max-width:1000px){ .thumb-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .thumb-grid{ grid-template-columns:1fr; } }
.thumb-card{ display:block; background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; transition:transform .06s ease, box-shadow .06s ease; }
.thumb-card:hover{ transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,.06); }
.thumb-card img{ display:block; width:100%; height:180px; object-fit:cover; }
.thumb-card h3{ margin:12px 16px 6px; font-size:1.05rem; color:var(--blue); }
.thumb-card p{ margin:0 16px 16px; color:var(--muted); }

/* ===== Brand intro band (centered, ALL BLUE) ===== */
.intro-band {
  background:#f7f7fb;
  padding:2rem 0;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  text-align:center;
  color:#2b3c7f;
}
.intro-band .container { max-width:980px; }
.intro-band h2 {
  margin:0 0 .75rem;
  font-size:1.85rem;
  line-height:1.25;
  color:#2b3c7f;
}
.intro-band p {
  margin-left:auto;
  margin-right:auto;
  max-width:70ch;
  color:#2b3c7f;
}
.intro-band .btn.btn-secondary {
  background:#fff;
  color:#2b3c7f;
  border:1px solid #2b3c7f;
}
.intro-band .btn.btn-secondary:hover {
  background:#e8ebf7;
  border-color:#1f2c5d;
}
