/* ============================================================
   EthioDataHub — site styles
   Palette: navy #1B2A4A (primary), green #3B9B45 (accent),
   white / light-gray backgrounds. Soft radii, generous space.
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --navy-deep: #14203A;
  --navy-soft: #2A3D63;
  --green: #3B9B45;
  --green-dark: #2E7D37;
  --green-tint: #E8F4EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --ink: #1B2A4A;
  --muted: #56637E;
  --line: #E2E7EF;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-soft: 0 4px 14px rgba(27, 42, 74, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; }

.lead { font-size: 1.15rem; color: var(--muted); }

.section-intro { color: var(--muted); margin-top: 0.75rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand svg { width: 40px; height: 40px; flex: none; }

.brand-word {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-word .w-ethio { color: var(--navy); }
.brand-word .w-datahub { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { color: var(--green-dark); }
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-cta {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--green-dark); text-decoration: none; }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 20px;
    display: none;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 10px; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 155, 69, 0.35);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--green-tint); }

.text-link {
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--navy); border-bottom-color: var(--navy); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #C9D3E6; }

.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F4F0 100%);
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead { margin: 18px 0 28px; }

.hero-tag {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 44px 0 56px; }
}

/* ---------- Platform strip ---------- */

.platform-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
}

.platform-row .strip-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.platform-item svg { width: 28px; height: 28px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.featured { border: 2px solid var(--green); position: relative; }

.card-flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

.card h3 { margin-top: 4px; }

.card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.card ul li { padding-left: 26px; position: relative; color: var(--muted); }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.card .card-note { font-size: 0.9rem; color: var(--muted); }
.card .text-link { margin-top: auto; align-self: flex-start; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }

/* ---------- Trust strip ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
}
.trust-item h3 { display: flex; align-items: center; gap: 12px; }
.trust-item p { color: var(--muted); margin-top: 10px; }

/* ---------- Split blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Values ---------- */

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .value-row { grid-template-columns: 1fr; } }

/* ---------- Steps / process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step .step-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step p { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }

/* ---------- Case studies ---------- */

.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: 36px;
}
.case:nth-child(even) .case-media { order: 2; }
@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
}

.case-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

.case-body { padding: 34px 32px; }

.case-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.case-body h3 { font-size: 1.4rem; margin: 8px 0 18px; }

.psi { display: flex; flex-direction: column; gap: 14px; }
.psi div { padding-left: 16px; border-left: 3px solid var(--line); }
.psi div.impact { border-left-color: var(--green); }
.psi strong { color: var(--navy); display: block; margin-bottom: 2px; }
.psi p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.avatar.green { background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 100%); }

.person .role { color: var(--green-dark); font-weight: 600; font-size: 0.95rem; margin: 2px 0 12px; }
.person p { color: var(--muted); font-size: 0.95rem; margin: 0 auto; }

/* ---------- Blog ---------- */

.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}

.post summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post summary::-webkit-details-marker { display: none; }

.post-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post summary h3 { font-size: 1.25rem; }
.post summary .excerpt { color: var(--muted); font-size: 0.98rem; }

.post .read-hint {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.post[open] .read-hint::after { content: " (click to close)"; font-weight: 400; color: var(--muted); }

.post-body { padding: 0 28px 30px; border-top: 1px solid var(--line); }
.post-body p, .post-body ul, .post-body ol { margin-top: 16px; color: #3A4762; }
.post-body h4 { margin-top: 22px; font-size: 1.05rem; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-top: 6px; }
.post-body code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--navy);
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(59, 155, 69, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { color: var(--green-dark); font-weight: 600; }

/* ---------- Closing CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D3E6; margin: 14px auto 28px; }
.cta-band .cta-contact { margin-top: 22px; font-size: 0.98rem; color: #AEBBD6; }
.cta-band .cta-contact a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #C9D3E6;
  padding: 56px 0 28px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #C9D3E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 36px; height: 36px; }
.footer-brand .brand-word .w-ethio { color: #fff; }
.footer-brand .brand-word .w-datahub { color: #6FCB79; }

.footer-tagline { font-size: 0.95rem; max-width: 30ch; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #8FA0C0;
}

/* ---------- Careers ---------- */

.careers-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.careers-panel ul { margin: 16px 0 22px 22px; color: var(--muted); }
.careers-panel li { margin-top: 8px; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, #FFFFFF 0%, #EFF3F0 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { margin-top: 14px; }

/* ---------- Utility ---------- */

.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.center { text-align: center; }
