/* =========================
   DESIGN TOKENS (UnitGhana)
   ========================= */
:root{
  --color-navy:#1C3759;
  --color-white:#FFFFFF;
  --color-cyan:#00BFFF;
  --color-grey:#A9A9A9;
  --color-green:#00C853;
  --color-orange:#FF8800;
  --color-text:#1E1E1E;
  --radius:14px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --shadow-soft:0 2px 10px rgba(0,0,0,.06);
  --maxw:1100px;
}

/* Base reset */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  color:var(--color-text);
  background:var(--color-white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:var(--color-cyan);text-decoration:none}
a:hover{text-decoration:underline}
a:focus,button:focus,input:focus,select:focus,textarea:focus{
  outline:3px solid var(--color-cyan);
  outline-offset:2px;
}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Header */
.header{
  background:var(--color-navy);
  color:var(--color-white);
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:var(--shadow-soft);
}
.wrap{
  max-width:var(--maxw);
  margin-inline:auto;
  padding:14px 16px;
}
.row{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  gap:10px;
  align-items:center;
}
.brand__logo{
  width:34px;height:34px;border-radius:8px;
  background:linear-gradient(135deg,var(--color-cyan),#7fdcff);
  display:inline-grid;
  place-items:center;
  color:var(--color-navy);
  font-weight:800;
}
.brand__name{
  font-weight:700;
  letter-spacing:.2px;
}
.top-actions a{
  color:var(--color-white);
  opacity:.9;
}
.top-actions a:hover{opacity:1}

/* HERO */
.hero{
  padding:26px 16px 18px;
}
.hero--afro{
  position:relative;
  background:radial-gradient(circle at top left,rgba(0,191,255,.18),transparent),
             radial-gradient(circle at bottom right,rgba(28,55,89,.22),transparent),
             #F7FAFC;
}
.hero--afro::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.12) 0,
    rgba(255,255,255,.12) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity:.5;
  pointer-events:none;
}
.hero__inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  gap:18px;
  align-items:center;
  position:relative;
  z-index:1;
}
.hero__text{
  max-width:620px;
}
.hero__eyebrow{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#6c7f96;
  margin:0 0 6px;
}
.hero h1{
  margin:0 0 10px;
  color:var(--color-navy);
  font-size:clamp(24px,4vw,34px);
  line-height:1.15;
}
.hero__subtitle{
  margin:0 0 8px;
  color:#415a77;
  font-size:14px;
}
.hero__body{
  margin:0 0 12px;
  color:#4b5b6f;
  font-size:14px;
}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

/* Hero media badge */
.hero__media{
  justify-self:flex-end;
}
.hero__media--badge{
  max-width:280px;
}
.hero__badge{
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#0b1724;
}
.hero__badge img{
  width:100%;
  max-height:180px;
  object-fit:cover;
  opacity:.95;
}
.hero__badge-caption{
  font-size:11px;
  color:#e2e8f0;
  margin-top:6px;
  padding-left:2px;
}

/* Buttons */
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font-weight:700;
  border-radius:999px;
  padding:12px 18px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  transition:transform .06s ease,box-shadow .2s ease,background .2s ease;
  box-shadow:var(--shadow-soft);
}
.btn--primary{
  background:var(--color-cyan);
  color:var(--color-navy);
}
.btn--primary:hover{
  transform:translateY(-1px);
}
.btn--ghost{
  background:transparent;
  border:2px solid var(--color-navy);
  color:var(--color-navy);
}
.btn--ghost:hover{
  background:rgba(28,55,89,.04);
}
.btn--outline{
  margin-top:12px;
  padding-inline:16px;
}

/* Layout sections */
.grid{
  max-width:var(--maxw);
  margin:18px auto;
  padding:0 16px;
  display:grid;
  gap:14px;
}
.grid h2{
  margin:0;
  color:var(--color-navy);
  font-size:20px;
}

/* Cards */
.card{
  border:1px solid #e7e9ef;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-soft);
  padding:14px;
}
.card--intro{
  border-style:dashed;
}
.card--bordered{
  border:1.5px solid rgba(28,55,89,.18);
}
.card h3{
  margin:0 0 6px;
  color:var(--color-navy);
}
.meta{
  color:var(--color-grey);
  font-size:12px;
}

/* Tags */
.tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
}
.tag--ok{
  background:var(--color-green);
  color:#003b1d;
}
.tag--warn{
  background:var(--color-orange);
  color:#2a1400;
}

/* Fields & forms */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.label{
  font-size:13px;
  color:#506480;
}
.select,.input{
  font:inherit;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid #d8dde6;
  background:#fff;
}
.select:focus,.input:focus{border-color:var(--color-cyan)}
textarea{min-height:110px;resize:vertical}
.form-row{
  display:grid;
  gap:10px;
  margin:10px 0;
}

/* Horizontal ribbons */
.ribbon{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:6px;
  margin-inline:-16px;
  padding-inline:16px;
  scroll-snap-type:x mandatory;
}
.ribbon__item{
  scroll-snap-align:start;
}
.ribbon::-webkit-scrollbar{
  height:6px;
}
.ribbon::-webkit-scrollbar-track{
  background:transparent;
}
.ribbon::-webkit-scrollbar-thumb{
  background:rgba(28,55,89,.25);
  border-radius:999px;
}

/* Ecosystem cards */
.eco-card{
  border-radius:var(--radius);
  border:1px solid #e2e5ef;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
  padding:0;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:220px;
  max-width:260px;
  transition:transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.eco-card__media{
  height:140px;
  overflow:hidden;
}
.eco-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.eco-card__body{
  padding:10px 12px 12px;
}
.eco-card__body h3{
  margin:0 0 4px;
  color:var(--color-navy);
  font-size:15px;
}
.eco-card__body p{
  margin:0;
  font-size:13px;
  color:#4a6075;
}
.eco-card:hover,
.eco-card:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  border-color:var(--color-cyan);
}

/* Ecosystem Modal */
.eco-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
}
.eco-modal[aria-hidden="false"]{
  display:flex;
}
.eco-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
.eco-modal__content{
  position:relative;
  max-width:480px;
  width:90%;
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 18px 45px rgba(0,0,0,.3);
  padding:14px 14px 16px;
  z-index:1;
}
.eco-modal__content img{
  width:100%;
  max-height:240px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:10px;
}
.eco-modal__close{
  position:absolute;
  top:8px;
  right:10px;
  border:0;
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

/* How it works */
.steps-grid{
  display:grid;
  gap:12px;
}
.step-card__body h3{
  margin:0 0 6px;
  color:var(--color-navy);
}
.step-card__body p{
  margin:0;
  font-size:13px;
  color:#384555;
}

/* Officer verification */
.verify-panel{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed #e3e6ef;
}
.verify-panel__intro{
  font-size:13px;
  color:#506480;
  margin:0 0 10px;
}
.verify-form__grid{
  display:grid;
  gap:10px;
}
.officer-grid{
  display:grid;
  gap:14px;
  align-items:flex-start;
}
.officer-visuals--badge{
  justify-self:stretch;
}
.officer-frame{
  position:relative;
  border-radius:16px;
  padding:10px;
}
.officer-frame__border{
  position:absolute;
  inset:0;
  border-radius:16px;
  background:conic-gradient(
    from 180deg,
    rgba(0,191,255,.2),
    rgba(0,200,83,.18),
    rgba(255,136,0,.2),
    rgba(0,191,255,.2)
  );
  opacity:.8;
}
.officer-frame__inner{
  position:relative;
  background:#0b1724;
  border-radius:12px;
  padding:14px 12px;
  color:#e2e8f0;
  box-shadow:var(--shadow);
}
.officer-chip{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,118,206,.18);
  font-size:11px;
  margin-bottom:6px;
}
.officer-chip--role{
  background:rgba(0,200,83,.16);
  margin-left:4px;
}
.officer-frame__text{
  margin:6px 0 0;
  font-size:12px;
  color:#cbd5f5;
}

.profile-form__grid{
  display:grid;
  gap:10px;
}
.verify-consent{
  font-size:12px;
  color:#4b5563;
  background:#f9fafb;
  border-radius:10px;
  padding:8px 10px;
  margin:10px 0;
}

/* UnitFix */
.steps{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.step{
  padding:6px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:#1b3a5b;
  font-size:12px;
}
.uploader{
  border:1.5px dashed #bfd7ff;
  border-radius:12px;
  padding:14px;
  text-align:center;
  color:#3b5b7a;
}
.uploader__hint{
  font-size:12px;
  margin-top:6px;
  color:#55708d;
}
.loc-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Services ribbon */
.service-card{
  min-width:230px;
  max-width:260px;
}
.service-card__media{
  height:130px;
  overflow:hidden;
  border-radius:10px;
  margin-bottom:8px;
}
.service-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.service-card__body h3{
  margin:0 0 6px;
  color:var(--color-navy);
}
.service-card__body p{
  margin:0;
  font-size:13px;
  color:#3e4c5c;
}

/* Dashboards */
.dashboards-card{
  display:grid;
  gap:10px;
}
.dashboards-card__media img{
  border-radius:12px;
  box-shadow:var(--shadow-soft);
  max-height:220px;
  object-fit:cover;
}

/* Contact */
.contact-card{
  display:grid;
  gap:12px;
  align-items:center;
}
.contact-card__media img{
  border-radius:12px;
  box-shadow:var(--shadow-soft);
  max-height:220px;
  object-fit:cover;
}
.contact-list{
  list-style:none;
  padding:0;
  margin:8px 0 0;
}
.contact-list li{
  margin-bottom:4px;
}

/* Sticky footer nav */
.footerbar{
  position:sticky;
  bottom:0;
  z-index:60;
  background:#ffffffcc;
  backdrop-filter:blur(6px);
  border-top:1px solid #dfe3ea;
}
.footerbar .nav{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  padding:8px 6px;
  gap:4px;
}
.nav a{
  display:grid;
  place-items:center;
  padding:8px 6px;
  border-radius:10px;
  color:#2c3e55;
}
.nav a[aria-current="page"]{
  background:var(--color-navy);
  color:var(--color-white);
}
.nav svg{
  width:22px;
  height:22px;
}

/* MAP PAGE (for map.html) */
.map-shell{
  max-width:var(--maxw);
  margin:18px auto 70px;
  padding:0 16px;
  display:grid;
  gap:14px;
}
.map-panel h1{
  margin:8px 0 6px;
  color:var(--color-navy);
  font-size:22px;
}
.map-panel__intro{
  margin:0 0 10px;
  color:#45566c;
  font-size:14px;
}
.map-card{
  margin-bottom:10px;
}
.map-search .input[disabled]{
  background:#f3f4f6;
  color:#9ca3af;
  cursor:not-allowed;
}
.map-legend ul{
  list-style:none;
  padding:0;
  margin:6px 0 0;
  font-size:13px;
}
.map-legend li{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}
.key{
  width:16px;
  height:12px;
  border-radius:3px;
  display:inline-block;
}
.key--district{
  background:rgba(0,191,255,0.45);
  border:1px solid var(--color-cyan);
}
.key--hover{
  background:rgba(0,200,83,0.5);
  border:1px solid var(--color-green);
}
.key--future{
  background:rgba(255,136,0,0.35);
  border:1px solid var(--color-orange);
}
.map-canvas{
  min-height:360px;
}
#map{
  width:100%;
  height:360px;
  border-radius:16px;
  border:1px solid #dde3ef;
  box-shadow:var(--shadow-soft);
}

/* Responsive */
@media (min-width:768px){
  .hero__inner{
    grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  }
  .verify-form__grid{
    grid-template-columns:1.2fr 1fr;
  }
  .profile-form__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .officer-grid{
    grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr);
  }
  .dashboards-card{
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  }
  .contact-card{
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  }
  .map-shell{
    grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
    align-items:start;
  }
  #map{
    height:480px;
  }
}
