/* =============================================
   ACI Kenya – Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --navy: #0a1628;
  --navy-mid: #122040;
  --gold: #c9982a;
  --gold-light: #e8b84b;
  --cream: #f8f5ef;
  --off-white: #faf9f6;
  --text: #1a1a2e;
  --text-muted: #5a6175;
  --border: rgba(10, 22, 40, 0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-card: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-hover: 0 14px 40px rgba(10, 22, 40, 0.14);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}
.section-title--light { color: #fff; }
.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}
.section-intro--light { color: rgba(255, 255, 255, 0.55); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 400;
  font-size: 14.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  border-bottom: 1px solid rgba(201, 152, 42, 0.25);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .logo-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.nav-logo .logo-text span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.nav-links { display: flex; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  padding: 0 15px;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  padding: 8px 16px;
  height: auto;
  font-weight: 500;
  border-bottom: none;
  margin-left: 6px;
  align-self: center;
}
.nav-links a.nav-cta:hover { background: var(--gold-light); border-bottom-color: transparent; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201, 152, 42, 0.12);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: 30%;
  width: 800px; height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(201, 152, 42, 0.06);
  pointer-events: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 4rem;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4rem 5rem 2rem;
  position: relative;
  z-index: 1;
}
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 420px; }
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 152, 42, 0.18);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}
.stat-card.featured { grid-column: 1 / -1; background: rgba(201, 152, 42, 0.08); border-color: rgba(201, 152, 42, 0.35); }
.stat-number { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.3px; }
.stat-desc { font-size: 12.5px; color: rgba(255, 255, 255, 0.35); margin-top: 6px; line-height: 1.4; }

/* ---- ABOUT ---- */
#about { padding: 5rem 4rem; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3.5rem; align-items: start; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; font-weight: 300; }
.about-text h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.goals-label { font-size: 12px; font-weight: 500; color: var(--navy); margin-top: 1.5rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px; }
.goals-list { list-style: none; }
.goals-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-weight: 300;
}
.goals-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.goals-list li:last-child { border-bottom: none; }
.pillars-label { font-size: 12px; font-weight: 500; color: var(--navy); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 0.6px; }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pillar {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  background: var(--cream);
}
.pillar h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.pillar p { font-size: 13px; color: var(--text-muted); line-height: 1.5; font-weight: 300; }

/* ---- ASSOCIATION ---- */
#association { padding: 5rem 4rem; background: var(--navy); }
.assoc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.assoc-card {
  border: 1px solid rgba(201, 152, 42, 0.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.assoc-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(201, 152, 42, 0.4); }
.assoc-icon {
  width: 80px; height: 110px;
  margin: 0 auto 20px;
  background: #fff;
  border: 7px solid #8dbfea;
  border-radius: 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}
.assoc-icon svg { width: 48px; height: 48px; stroke: var(--navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.assoc-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.assoc-card p { font-size: 14px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; font-weight: 300; }
.assoc-card a { color: var(--gold-light); text-decoration: none; }
.assoc-card a:hover { text-decoration: underline; }

/* ---- TEAM ---- */
#team { padding: 5rem 4rem; background: var(--cream); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-card.centered { grid-column: 2; }
.team-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.team-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---- RESOURCES ---- */
#resources { padding: 5rem 4rem; background: #fff; }
.resources-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.resources-search-bar input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-width: 260px;
  background: var(--cream);
  transition: border-color 0.2s;
}
.resources-search-bar input:focus { border-color: var(--gold); background: #fff; }
.resources-count { font-size: 13px; color: var(--text-muted); }
.resources-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.resources-tbl th {
  background: var(--navy);
  color: var(--gold);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
}
.resources-tbl th:first-child { width: 48px; text-align: center; border-radius: 4px 0 0 0; }
.resources-tbl th:last-child { border-radius: 0 4px 0 0; width: 110px; }
.resources-tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.resources-tbl tr:last-child td { border-bottom: none; }
.resources-tbl tr:hover td { background: var(--cream); }
.resources-tbl td:first-child { text-align: center; font-size: 12px; color: var(--text-muted); }
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.dl-link:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ---- CONTACT ---- */
#contact { padding: 5rem 4rem; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
.contact-info p { font-size: 16px; color: var(--text-muted); font-weight: 300; line-height: 1.8; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contact-detail svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.contact-detail span { font-size: 15px; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 500; color: var(--navy); letter-spacing: 0.6px; text-transform: uppercase; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 120px; }
.form-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--navy-mid); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(201, 152, 42, 0.15);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 36px; width: auto; }
.footer-logo-text strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; display: block; }
.footer-logo-text span { font-size: 10px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.8px; text-transform: uppercase; }
footer p { font-size: 13px; color: rgba(255, 255, 255, 0.35); margin-top: 8px; }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  #about, #association, #team, #resources, #contact { padding: 4rem 2.5rem; }
  nav { padding: 0 2rem; }
  .assoc-grid { grid-template-columns: 1fr 1fr; }
  .assoc-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  #about, #association, #team, #resources, #contact { padding: 3rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .assoc-grid { grid-template-columns: 1fr; }
  .assoc-card:last-child { grid-column: 1; max-width: 100%; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card.centered { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .resources-search-bar { flex-direction: column; align-items: flex-start; }
  .resources-search-bar input { min-width: 100%; width: 100%; }
}
