/* ============================
   CSC global styles
   ============================ */
/* your earlier palette */
:root{
  --csc-blue:#2f53c7;
  --csc-blue-dark:#2746a9;

  --ink:#0f172a;
  --muted:#5b6b86;
  --paper:#eef3fa;
  --card:#ffffff;
  --shadow:0 12px 28px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  /* use this to recolor the black SVG logos to blue */
  --logo-filter: invert(27%) sepia(90%) saturate(1535%) hue-rotate(205deg) brightness(92%) contrast(90%);
}

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

html,body{margin:0;padding:0;}

body{
  position:relative;
  font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Inter,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(47,83,199,.06), transparent 60%),
    radial-gradient(1200px 600px at 120% 10%, rgba(47,83,199,.05), transparent 60%),
    linear-gradient(#f7f9fd, var(--paper));
  min-height:100vh;
}

/* blueprint grid bg */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'>\
      <rect width='160' height='160' fill='none'/>\
      <path d='M0 20H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M0 40H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M0 60H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M0 80H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M0 100H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M0 120H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M0 140H160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M20 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M40 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M60 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M80 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M100 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
      <path d='M120 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.06'/>\
      <path d='M140 0V160' stroke='%233E5FD1' stroke-width='1.2' stroke-opacity='0.12'/>\
    </svg>");
  background-size:160px 160px;
  background-position:center;
  opacity:.75;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,.25) 65%, rgba(0,0,0,1) 100%);
          mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,.25) 65%, rgba(0,0,0,1) 100%);
}

img{max-width:100%;display:block;}

.container{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
}

/* ============================
   HEADER / NAV
   ============================ */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  box-shadow:0 3px 16px rgba(15,23,42,.03);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  min-height:68px;
}
.brand{
  display:flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
}
/* top-left header lockup uses the short mark */
.brand-mask{
  width:180px;
  height:50px;
  background:url("../assets/images/main/logo-short.svg") center/contain no-repeat;
  display:block;
  filter:var(--logo-filter);
}
.main-nav{
  display:flex;
  gap:1.25rem;
  align-items:center;
}
.nav-link{
  text-decoration:none;
  color:#1f2937;
  font-weight:500;
  position:relative;
  padding:.35rem 0;
}
.nav-link.active{
  color:#2f53c7;
}
/* moved up from -16px to stop the big gap */
.nav-link.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-3px;
  height:3px;
  background:#2f53c7;
  border-radius:999px 999px 0 0;
}

.menu-toggle{
  display:none;
  width:48px;
  height:48px;
  border:none;
  border-radius:18px;
  background:radial-gradient(circle at top, #fff, #f3f4f6);
  box-shadow:0 14px 30px rgba(15,23,42,.14);
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column; /* make the 3 bars vertical */
}
.menu-toggle .bar{
  width:18px;
  height:2.3px;
  background:#0f172a;
  border-radius:999px;
  transition:.14s ease;
}
/* open to X */
.menu-toggle.is-open .bar:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.menu-toggle.is-open .bar:nth-child(2){
  opacity:0;
}
.menu-toggle.is-open .bar:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

.main-nav.show{
  display:flex;
}

@media (max-width:840px){
  .main-nav{
    position:absolute;
    top:70px;
    right:14px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 14px 40px rgba(15,23,42,.16);
    padding:14px;
    display:none;
    flex-direction:column;
    min-width:145px;
  }
  .menu-toggle{display:flex;}
  .nav-link.active::after{display:none;}
}

/* ============================
   HERO
   ============================ */
.hero{
  margin-top:90px;
  margin-bottom:28px;
}
.hero-frame{
  position:relative;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero-frame img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
  transition:opacity .45s ease;
}
.hero-frame img.is-fading{
  opacity:0;
}
.hero-cap{
  position:absolute;
  left:14px;
  bottom:14px;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-size:.75rem;
  padding:6px 14px;
  border-radius:14px;
  display:inline-block;
  margin:0;
}

/* ============================
   INTRO CARD
   ============================ */
.intro{margin-bottom:26px;}
.intro-inner{
  background:#fff;
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:26px 20px 32px;
  text-align:center;
}
.intro-logo-full{
  width:360px;
  max-width:100%;
  height:80px;
  background:url("../assets/images/main/logo-full.svg") center/contain no-repeat;
  filter:var(--logo-filter);
  margin:0 auto 12px;
}
.intro-sub{
  margin:0 auto;
  color:#505f73;
  font-size:1.02rem;
  max-width:580px;
}

/* ============================
   COMMON SECTIONS
   ============================ */
.content-block,
.page-section,
.services-home,
.what{
  margin-bottom:26px;
}

/* ============================
   CARDS
   ============================ */
.card{
  background:#fff;
  border-radius:18px;
  padding:20px 22px 18px;
  box-shadow:var(--shadow);
}
.card h2,
.card h3{
  margin-top:0;
  color:#244a9f;
}

/* primary button */
.primary-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#2f53c7;
  color:#fff;
  text-decoration:none;
  padding:10px 18px 9px;
  border-radius:999px;
  font-weight:600;
  box-shadow:0 10px 25px rgba(47,83,199,.25);
}
.primary-btn:hover{
  background:#2746a9;
}

/* home cards 3 across on desktop */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.footer{
  margin-top:48px;
  padding:28px 0 46px;
  text-align:center;
  color:#6a7281;
  font-size:.8rem;
}

/* responsive */
@media (max-width:960px){
  .hero-frame img{height:260px;}
  .cards-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:840px){
  /* pull hero up on phones so you don't get big grey gap */
  .hero{
    margin-top:18px;
  }
  .hero-frame img{
    height:240px;
  }
}
@media (max-width:720px){
  .cards-grid{grid-template-columns:1fr;}
  .hero-frame img{height:220px;}
  .intro-inner{padding:20px 16px 26px;}
}
