/* Africa Learning Solutions — site stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0B3556;
  --navy-deep: #072940;
  --green: #4B7A32;
  --gold: #E0A526;
  --teal: #0E8299;
  --bg: #F7F5EF;
  --panel: #FFFFFF;
  --ink: #1C2024;
  --muted: #5B6672;
  --line: #E3DFD3;
  --radius: 3px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Signature band — echoes the four colours in the ALS map mark */
.band {
  height: 6px;
  display: flex;
}
.band span { flex: 1; }
.band .b1 { background: var(--navy); }
.band .b2 { background: var(--green); }
.band .b3 { background: var(--gold); }
.band .b4 { background: var(--teal); }

/* Header */
header.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}

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

.brand img {
  height: 44px;
  width: auto;
}

.brand span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

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

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}

.hero .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  max-width: 15ch;
  margin: 0 0 26px;
  color: var(--navy-deep);
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 56ch;
  color: var(--muted);
  margin: 0 0 34px;
}

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

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(7, 41, 64, 0.35);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: var(--navy);
  color: #fff;
}

.btn.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:not(.primary):hover { background: var(--navy); color: #fff; }

/* Section rhythm */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }

section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy-deep);
  margin: 0 0 20px;
  max-width: 22ch;
}

section p { color: var(--ink); max-width: 68ch; }
section p.muted { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Six-stage model */
.model {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 44px;
  position: relative;
}

.model::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  padding-right: 18px;
}

.stage .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--stage-color, var(--navy));
  color: var(--stage-color, var(--navy));
  font-family: var(--serif);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.stage h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.stage p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Who we work with */
.profile-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.profile-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}

.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

/* CTA banner */
.cta-banner {
  background: var(--navy-deep);
  color: #fff;
  text-align: left;
}

.cta-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: #C9D6DE; }

.cta-banner .btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.cta-banner .btn.primary:hover { background: #C6901F; border-color: #C6901F; }

/* Services page — division panels */
.division {
  border-top: 1px solid var(--line);
  padding: 52px 0;
}

.division:first-of-type { border-top: none; }

.division .division-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.division .tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--div-color, var(--navy));
}

.division h2 {
  color: var(--ink);
  margin-bottom: 14px;
}

.division ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.division ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink);
}
.division ul li:first-child { border-top: none; }

.note-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* About page */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pillar {
  padding: 24px 20px;
  background: #fff;
  border-top: 3px solid var(--pillar-color, var(--navy));
}

.pillar h3 {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0 0 8px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

blockquote.mission {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--navy-deep);
  line-height: 1.5;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--teal);
  max-width: 60ch;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

form.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 20px 0 6px;
}

form.contact-form label:first-child { margin-top: 0; }

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: var(--ink);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

form.contact-form textarea { resize: vertical; min-height: 140px; }

form.contact-form button {
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

form.contact-form button:hover { background: var(--navy-deep); }

.contact-info { padding-top: 4px; }

.contact-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 28px 0 6px;
  color: var(--navy-deep);
}
.contact-info h3:first-child { margin-top: 0; }

.contact-info a { text-decoration: none; color: var(--teal); font-weight: 600; }
.contact-info p { margin: 0; color: var(--muted); }

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #C9D6DE;
  padding: 44px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 34px; }

.footer-brand span {
  font-family: var(--serif);
  color: #fff;
  font-weight: 600;
}

footer.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

footer.site-footer nav a { text-decoration: none; color: #C9D6DE; font-size: 0.92rem; }
footer.site-footer nav a:hover { color: #fff; }

.footer-contact {
  font-size: 0.92rem;
  text-align: right;
}
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 860px) {
  .two-col,
  .hero-grid,
  .contact-grid,
  .division .division-inner { grid-template-columns: 1fr; }

  .hero-media { order: -1; max-width: 360px; margin: 0 auto 8px; }

  .model { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .model::before { display: none; }

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

  .profile-list { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }

  nav.main-nav ul { gap: 18px; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .model { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
