/* =========
   Base
   ========= */
:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#0b1220;
  --muted:#5b6475;

  --brand:#00295f;     /* flyer deep blue */
  --brand2:#0f2e64;    /* flyer lighter blue */
  --brandSoft:#EAF1FF; /* soft */


  --border:#d7e0f2;
  --shadow:0 14px 40px rgba(0,0,0,.10);

  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
img{max-width:100%;height:auto}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:1100px;margin:auto;padding:0 16px}
.muted{color:var(--muted)}

/* =========
   Header / Nav
   ========= */
.site-header{
  background:var(--brand);
  border-bottom:none;
}
.brand__name{ color:#fff; }
.brand__tag{ color:rgba(255,255,255,.88); }

.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
}
.brand{display:flex;flex-direction:column;gap:2px}
.brand__name{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--text);
  text-decoration:none;
  font-size:1.05rem;
}
.brand__name:hover{text-decoration:none;opacity:.9}
.brand__tag{color:var(--muted);font-size:.85rem}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
}

.nav a:hover{opacity:.92;text-decoration:none}

/* =========
   Footer
   ========= */
.site-footer{
  background:var(--brand);
  border-top:none;
  margin-top:40px;
  padding:18px 0;
  color:#fff;
}
.site-footer a{ color:#fff; text-decoration:underline; }
.site-footer .muted{ color:rgba(255,255,255,.85); }
.site-footer hr{ border:none; border-top:1px solid rgba(255,255,255,.25); }

.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr}}

/* =========
   Buttons
   ========= */
.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  background:var(--brand);
  color:#fff;
  border:1px solid rgba(0,0,0,.05);
}
.btn:hover{opacity:.94;text-decoration:none}
.btn--ghost{
  background:var(--brandSoft);
  color:var(--brand);
  border:1px solid #dbe7ff;
}

/* =========
   Cards / Panels
   ========= */
.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

/* =========
   Forms
   ========= */
input,select,textarea,button{
  font:inherit;
}
input,select,textarea{
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
textarea{min-height:120px}
button{
  cursor:pointer;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:var(--brand);
  color:#fff;
  font-weight:900;
}
button:hover{opacity:.94}

/* =========
   Tables
   ========= */
table{
  width:100%;
  border-collapse:collapse;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
th,td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
}
th{
  background:#f1f5ff;
  color:#223;
  font-weight:900;
}
tr:hover td{background:#fbfcff}

/* =========
   Hero + KPI + How-it-works (Homepage)
   ========= */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
  padding:26px 0 10px;
}
.hero h1{
  margin:0 0 10px;
  font-size:2.35rem;
  line-height:1.1;
  letter-spacing:-.3px;
  color:var(--brand2);
}
.lead{
  margin:0;
  color:var(--muted);
  max-width:60ch;
  font-size:1.05rem;
  line-height:1.55;
}
.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:16px 0 16px;
}

.hero__left{
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* pushes CTA/KPI down a bit */
  min-height: 360px;              /* match hero image height */
}

@media (max-width: 950px){
  .hero__left{ min-height: auto; }
}


.hero__img{
  width:100%;
  height:360px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.06);
}

/* KPI pills */
.kpi-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  margin-top:8px;
}
.kpi__label{ white-space:normal; }

.kpi{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:var(--brandSoft);
  border:1px solid #dbe7ff;
}
.kpi__value{
  font-weight:1000;
  color:var(--brand);
  font-size:.95rem;
  padding:6px 10px;
  background:#fff;
  border:1px solid #dbe7ff;
  border-radius:12px;
}
.kpi__label{color:#334;
  font-size:.95rem;
  white-space:normal;
}

/* How it works cards */
.section{padding:26px 0 0}
.section__head h2{
  margin:0 0 14px;
  font-size:2rem;
  color:var(--brand2);
  letter-spacing:-.2px;
}
.how-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.how-card{
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--brand2);
  color:#fff;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.08);
}
.how-card__img img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.how-card__body{
  padding:16px 16px 18px;
}
.how-card__body h3{
  margin:0 0 8px;
  font-size:1.05rem;
  font-weight:900;
}
.how-card__body p{
  margin:0;
  color:rgba(255,255,255,.85);
  line-height:1.45;
  font-size:.95rem;
}

/* Responsive */
@media (max-width: 950px){
  .site-header .wrap{flex-direction:column;align-items:flex-start}
  .nav{justify-content:flex-start}
  .hero{grid-template-columns:1fr}
  .hero__img{height:280px}
  .how-grid{grid-template-columns:1fr}
  .kpi__label{white-space:normal}
}

/* =========
   Admin tweaks (shared CSS)
   ========= */
/* Make admin pages feel like "app" pages */
.admin-title{
  font-size:1.6rem;
  margin:10px 0 12px;
  color:var(--brand2);
}




/* Blue banner header/footer (flyer look) */
.site-header .brand__name,
.site-header .brand__tag{
  color:#fff;
}
.site-header .brand__tag{opacity:.9}

.nav a{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
}
.nav a:hover{opacity:.92;text-decoration:none}

.site-footer a{color:#fff;text-decoration:underline}
.site-footer .muted{color:rgba(255,255,255,.85)}
.site-footer hr{border:none;border-top:1px solid rgba(255,255,255,.25)}

