/* ============================================================
   eMoIFAR Landing · Somalia Government Design System
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --navy:        #061325;
  --navy-mid:    #0e2444;
  --navy-ui:     #163361;
  --blue:        #1a5cb0;
  --blue-light:  #2e7dd4;
  --somalia:     #4189DD;
  --gold:        #c9a227;
  --gold-light:  #e8c84a;
  --gold-pale:   #f7efc3;
  --white:       #ffffff;
  --off-white:   #f5f8fc;
  --slate:       #64748b;
  --slate-light: #cbd5e1;
  --border:      rgba(255,255,255,.1);
  --nav-h:       74px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow-md:   0 10px 40px rgba(0,0,0,.18);
  --shadow-lg:   0 24px 64px rgba(0,0,0,.28);
  --trans:       .35s cubic-bezier(.4,0,.2,1);
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--navy-mid);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 2rem;
  background: var(--gold);
  opacity: .5;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .6rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--slate);
  max-width: 58ch;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--trans), box-shadow var(--trans), backdrop-filter var(--trans);
  /* initially transparent over hero */
  background: transparent;
}

#navbar.scrolled {
  background: rgba(6, 19, 37, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(201,162,39,.4);
  padding: 2px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-text span:first-child {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.nav-brand-text span:last-child {
  font-size: .6rem;
  font-weight: 500;
  color: rgba(201,162,39,.9);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: .45rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-sm);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-links a.active {
  color: var(--gold-light);
}

/* Gold divider before CTA buttons */
.nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* CTA buttons */
.nav-cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.btn-nav-portal,
.btn-nav-ngo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem 1.1rem;
  border-radius: 6px;
  font-size: .83rem;
  font-weight: 600;
  transition: all var(--trans);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-nav-portal {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-nav-portal:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.btn-nav-ngo {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-nav-ngo:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,162,39,.35);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--trans);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(6, 19, 37, .98);
  backdrop-filter: blur(16px);
  z-index: 899;
  padding: 1.2rem 1.5rem 1.8rem;
  border-top: 1px solid rgba(201,162,39,.2);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--trans), transform var(--trans);
}
.nav-mobile.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile ul {
  list-style: none;
  margin-bottom: 1.2rem;
}
.nav-mobile ul li a {
  display: block;
  padding: .75rem 0;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--trans);
}
.nav-mobile ul li a:hover { color: var(--gold-light); }
.nav-mobile .nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1rem;
}
.nav-mobile .nav-mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}
.nav-mobile .btn-portal-m {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.nav-mobile .btn-ngo-m {
  background: var(--gold);
  color: var(--navy);
}

/* ─────────────────────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  max-height: 1200px;
  overflow: hidden;
  background: var(--navy);
  /* iOS safe area: hero fills visible viewport */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.slide.prev {
  opacity: 0;
  z-index: 1;
}

/* Slide background image */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 0s;
}
.slide.active .slide-bg {
  animation: kenBurns 9s ease-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.1); }
  to   { transform: scale(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity 0.4s ease;
  }
  .slide.active .slide-bg {
    animation: none;
    transform: scale(1.02);
  }
  .slide-bg {
    transform: scale(1.02);
  }
  .slider-progress {
    animation: none !important;
  }
  .scroll-hint .scroll-line {
    animation: none;
  }
}

/* Gradient overlays */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,19,37,.82) 0%, rgba(6,19,37,.45) 55%, rgba(6,19,37,.2) 100%),
    linear-gradient(180deg, rgba(6,19,37,.15) 0%, transparent 40%, rgba(6,19,37,.55) 100%);
  z-index: 1;
}

/* Gold accent bar at bottom of hero */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  z-index: 10;
}

/* Slide content */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.25rem) 0
    calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.slide-content .container {
  max-width: 820px;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
}
.slide.active .slide-eyebrow {
  animation: slideUp .7s ease-out .2s forwards;
}

.slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: .5rem;
  opacity: 0;
  transform: translateY(20px);
  text-wrap: balance;
}
.slide.active .slide-title {
  animation: slideUp .75s ease-out .38s forwards;
}

.slide-title-en {
  font-size: clamp(.9rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.1rem;
  opacity: 0;
  transform: translateY(18px);
}
.slide.active .slide-title-en {
  animation: slideUp .75s ease-out .5s forwards;
}

.slide-sub {
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  text-wrap: pretty;
}
.slide.active .slide-sub {
  animation: slideUp .75s ease-out .62s forwards;
}

.slide-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
}
.slide.active .slide-actions {
  animation: slideUp .7s ease-out .76s forwards;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Slide CTA buttons */
.btn-slide-primary,
.btn-slide-secondary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--trans);
  text-decoration: none;
}
.btn-slide-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-slide-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,.4);
}
.btn-slide-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}
.btn-slide-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
}

/* Slider controls: Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans);
  backdrop-filter: blur(8px);
}
.slider-arrow:hover {
  background: rgba(201,162,39,.75);
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(201,162,39,.35);
}
.slider-arrow svg { width: 20px; height: 20px; flex-shrink: 0; }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .55rem;
  align-items: center;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--trans);
  flex-shrink: 0;
}
.slider-dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--gold);
}

/* Slide counter */
.slider-counter {
  position: absolute;
  top: calc(var(--nav-h) + 1.2rem);
  right: 2rem;
  z-index: 10;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
}
.slider-counter .current {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 12;
  animation: progress 6s linear infinite;
  transform-origin: left;
}
@keyframes progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.6rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-hint .scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

/* ─────────────────────────────────────────────────────────
   PORTAL CARDS SECTION
───────────────────────────────────────────────────────── */
#portals {
  padding: 6rem 0 5rem;
  background: var(--off-white);
  position: relative;
}
#portals::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.portal-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portal-card-header {
  padding: 2.2rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-ui) 100%);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.portal-card-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.portal-card-header::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
}

.portal-card.ngo .portal-card-header {
  background: linear-gradient(135deg, var(--navy-ui) 0%, #1a3f70 60%, var(--blue) 100%);
}

.portal-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.portal-card.staff .portal-card-icon {
  background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.35);
}
.portal-card.ngo .portal-card-icon {
  background: rgba(65,137,221,.18);
  border: 1px solid rgba(65,137,221,.35);
}
.portal-card-icon svg {
  width: 28px; height: 28px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-card.ngo .portal-card-icon svg {
  stroke: #7ec3f5;
}

.portal-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.portal-card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .4rem;
  position: relative;
  z-index: 1;
}
.portal-card.ngo .portal-card-tag { color: #7ec3f5; }

/* Gold line accent bottom of header */
.portal-card-header-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}
.portal-card.ngo .portal-card-header-line {
  background: linear-gradient(90deg, var(--somalia), #7ec3f5, transparent);
}

.portal-card-body {
  padding: 1.8rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portal-card-desc {
  font-size: .95rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.portal-card-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.portal-feature {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .85rem;
  color: #445;
}
.portal-feature::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.portal-card.ngo .portal-feature::before {
  background-color: #deeeff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a5cb0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.btn-portal-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .88rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  gap: 1rem;
}
.portal-card.staff .btn-portal-enter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border: none;
}
.portal-card.staff .btn-portal-enter:hover {
  background: linear-gradient(135deg, var(--navy-ui) 0%, var(--blue-light) 100%);
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(26,92,176,.3);
}
.portal-card.ngo .btn-portal-enter {
  background: var(--gold);
  color: var(--navy);
  border: none;
}
.portal-card.ngo .btn-portal-enter:hover {
  background: var(--gold-light);
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(201,162,39,.3);
}
.btn-portal-enter .btn-arrow {
  transition: transform var(--trans);
}
.btn-portal-enter:hover .btn-arrow {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────── */
#about {
  padding: 6rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-label { margin-bottom: 1rem; }
.about-text .section-heading { margin-bottom: 1rem; }
.about-text p {
  font-size: .97rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-light);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-number span {
  color: var(--gold);
}
.stat-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

.about-image-wrap {
  position: relative;
}
.about-image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
/* Gold corner accent */
.about-image-frame::before {
  content: '';
  position: absolute;
  bottom: -16px; left: -16px;
  width: 100px; height: 100px;
  border-left: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  border-radius: 0 0 0 8px;
  z-index: -1;
}
.about-image-frame::after {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100px; height: 100px;
  border-top: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-radius: 0 8px 0 0;
  z-index: -1;
}
/* Floating badge on image */
.about-badge {
  position: absolute;
  bottom: 1.5rem; left: -1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.about-badge-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-badge-icon svg {
  width: 22px; height: 22px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-badge-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}
.about-badge-text span {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}

/* ─────────────────────────────────────────────────────────
   SERVICES STRIP
───────────────────────────────────────────────────────── */
#services {
  padding: 5.5rem 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-ui) 100%);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.services-header { text-align: center; margin-bottom: 3.5rem; }
.services-header .section-label { color: var(--gold); }
.services-header .section-label::before,
.services-header .section-label::after { background: var(--gold); }
.services-header .section-heading { color: #fff; }
.services-header .section-sub { color: rgba(255,255,255,.65); margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-sm);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.service-item:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,162,39,.35);
  transform: translateY(-4px);
}

.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.service-item p {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────────────────── */
#cta {
  padding: 5rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--slate-light);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.cta-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.cta-text p {
  font-size: .95rem;
  color: rgba(255,255,255,.62);
  max-width: 50ch;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn-cta-portal {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-cta-portal:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}
.btn-cta-ngo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-cta-ngo:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.35);
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
#footer {
  background: var(--navy);
  padding: 4rem 0 2rem;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(201,162,39,.35);
  padding: 3px;
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand-sub {
  font-size: .65rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: .1rem;
}
.footer-about p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 36ch;
}
.footer-gold-line {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0;
  border-radius: 2px;
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-links a {
  font-size: .86rem;
  color: rgba(255,255,255,.5);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-portals {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-portal-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  border-radius: 7px;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans);
}
.footer-portal-btn.staff {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.12);
}
.footer-portal-btn.staff:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.footer-portal-btn.ngo {
  background: rgba(201,162,39,.12);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,.25);
}
.footer-portal-btn.ngo:hover {
  background: rgba(201,162,39,.2);
}
.footer-portal-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  line-height: 1.5;
}
.footer-copyright strong { color: rgba(255,255,255,.5); }
.footer-emblem {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.2);
  font-size: .7rem;
  letter-spacing: .08em;
}
.footer-emblem svg {
  width: 18px; height: 18px;
  stroke: rgba(201,162,39,.3);
  fill: none;
  stroke-width: 1.5;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { gap: 2.5rem; }
  .about-image-frame img { height: 400px; }
  .about-badge { left: .5rem; }
  .portals-grid { gap: 1.25rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { order: -1; }
  .about-image-frame img { height: 340px; }
  .about-badge { left: 1rem; }
  .about-image-frame::before,
  .about-image-frame::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-about p { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-divider, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .portals-grid { grid-template-columns: 1fr; }
  .portal-card-header { min-height: 140px; }

  .services-grid { grid-template-columns: 1fr; }

  .cta-inner { padding: 2rem 1.5rem; flex-direction: column; }
  .cta-text { text-align: center; }
  .cta-text p { margin-inline: auto; }
  .cta-buttons { width: 100%; flex-direction: column; }
  .btn-cta-portal, .btn-cta-ngo { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-about p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .slider-arrow { display: none; }
  .scroll-hint { display: none; }

  #hero {
    min-height: 480px;
    max-height: none;
  }
  .slide::after {
    background:
      linear-gradient(165deg, rgba(6,19,37,.88) 0%, rgba(6,19,37,.5) 45%, rgba(6,19,37,.35) 100%),
      linear-gradient(180deg, rgba(6,19,37,.2) 0%, transparent 35%, rgba(6,19,37,.6) 100%);
  }
  .slide-content {
    justify-content: flex-end;
    padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
  }
  .slide-eyebrow {
    font-size: .62rem;
    letter-spacing: .14em;
  }
  .slider-dots {
    bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    max-width: min(100% - 2rem, 320px);
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    background: rgba(6, 19, 37, .35);
    backdrop-filter: blur(8px);
  }
  .slider-dot {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
  }
  .slider-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: all var(--trans);
  }
  .slider-dot.active::after {
    width: 22px;
    border-radius: 4px;
    background: var(--gold);
  }
  .slider-counter {
    top: calc(var(--nav-h) + .75rem);
    right: clamp(1rem, 4vw, 1.5rem);
    font-size: .68rem;
  }
  .slider-counter .current { font-size: 1.15rem; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .stat-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .slide-title { font-size: clamp(1.55rem, 8vw, 1.85rem); }
  .slide-actions { flex-direction: column; }
  .btn-slide-primary, .btn-slide-secondary { width: 100%; justify-content: center; }
  #portals, #about, #services, #cta { padding-top: 4rem; padding-bottom: 4rem; }
  .about-stats { gap: .4rem; }

  .nav-brand-text span:last-child {
    font-size: 0.52rem;
    letter-spacing: 0.07em;
    max-width: 11rem;
    line-height: 1.15;
  }
  .nav-brand img {
    width: 40px;
    height: 40px;
  }
}
