:root {
  --navy: #0e3a62;
  --navy-deep: #08243e;
  --green: #1b6b45;
  --gold: #c4a056;
  --cream: #f7f1e6;
  --paper: #fffdf8;
  --ink: #1c1812;
  --muted: #5c5348;
  --line: #e4d8c2;
  --wa: #25d366;
  --shadow: 0 18px 50px rgba(8, 36, 62, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.flag {
  height: 6px;
  background: linear-gradient(90deg, #078930 0 33%, #fcdd09 33% 66%, #da121a 66% 100%);
}

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand b { display: block; font-size: 15px; line-height: 1.1; }
.brand span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 18px; align-items: center; font-weight: 650; }
.nav-links a { text-decoration: none; color: var(--navy); font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-size: 15px;
}
.btn-wa { background: var(--wa); color: #062; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }

.hero {
  position: relative; min-height: min(86vh, 760px); color: #fff;
  display: grid; place-items: end stretch;
  background: #123a6d url("assets/photos/hero-classroom.webp") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,36,62,.25) 0%, rgba(8,36,62,.78) 72%);
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 56px; }
.kicker {
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  font-size: 12px; font-weight: 700; margin: 0 0 8px;
}
.hero h1 {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.08; margin: 0 0 10px; max-width: 16ch;
}
.amharic { font-size: clamp(18px, 2.4vw, 26px); opacity: .92; margin: 0 0 16px; }
.hero p.lead { max-width: 58ch; font-size: 18px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 28px;
}
.stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 14px 16px;
}
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 13px; opacity: .85; }

section { padding: 72px 0; }
h2 {
  font-family: Georgia, Palatino, serif;
  font-size: clamp(26px, 3vw, 36px); color: var(--navy); margin: 0 0 8px;
}
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
}
.split img { border-radius: 24px; height: 420px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  padding: 8px 0 8px 28px; position: relative; color: var(--ink);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800;
}

.modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mod {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px;
}
.mod small { color: var(--green); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.mod h3 { margin: 4px 0 6px; font-size: 18px; color: var(--navy); }
.mod p { margin: 0; color: var(--muted); font-size: 14px; }

.hosts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.host {
  background: var(--navy-deep); color: #fff; border-radius: 20px; padding: 22px;
}
.host code {
  display: block; background: rgba(255,255,255,.08); border-radius: 10px;
  padding: 10px 12px; margin: 12px 0 8px; font-size: 14px; color: #d7ecff;
}
.host p { margin: 0; color: #d7ddd6; font-size: 14px; }

.gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.gallery img:first-child { grid-row: 1 / span 2; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
}
.price h3 { margin: 0 0 8px; color: var(--navy); }
.price .tag {
  display: inline-block; background: #e7f3ec; color: var(--green);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; margin-bottom: 10px;
}

.demo {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start;
}
form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow);
}
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa);
  color: #062; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  text-decoration: none; font-size: 28px;
}

footer {
  background: var(--navy-deep); color: #e8e0d2; padding: 40px 0 24px;
}
footer a { color: #fff; }
.foot {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px;
}
.foot h4 { margin: 0 0 8px; color: #fff; }
.muted { color: #c9bfae; }
.tiny { margin-top: 22px; font-size: 12px; color: #9aa; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .stats, .portals, .modules, .hosts, .pricing, .split, .demo, .foot, .form-row {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery img, .gallery img:first-child { height: 220px; grid-row: auto; }
  .split img { height: 260px; }
  .hero { min-height: auto; }
  .hero-copy { padding-bottom: 28px; }
  .hero .stats { margin-bottom: 64px; }
}
