/* ════════════════════════════════════════════════
   ABOUT PAGE - MindBridge Kenya
   Clean, modern, with proper footer placement
   ════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── VARIABLES ─── */
:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5f4;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  --green: #a3e635;
  --text-dark: #12101f;
  --text-mid: #4b4b6b;
  --text-muted: #9090b0;
  --white: #ffffff;
  --border: rgba(167,139,250,0.16);
  --radius-pill: 999px;
  --shadow: 0 4px 32px rgba(120,60,240,0.09);
  --shadow-lg: 0 16px 64px rgba(120,60,240,0.14);
  --transition: 0.22s ease;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--purple-200);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Page Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, var(--purple-300) 0%, #a78bfa55 40%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, var(--purple-200) 0%, transparent 60%),
    var(--purple-200);
  pointer-events: none;
}

/* Scroll Container - Ensures footer stays at bottom */
.scroll-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Tag */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-600);
  margin-bottom: 16px;
}

.accent {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--purple-100);
  color: var(--purple-600);
}

.chev { font-size: 10px; opacity: 0.45; }

.btn-book {
  background: var(--purple-600) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: 0 3px 16px rgba(139,92,246,0.30);
  transition: all var(--transition) !important;
}

.btn-book:hover {
  background: var(--purple-700) !important;
  transform: translateY(-2px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
.about-hero {
  padding: 100px 5% 80px;
  background: linear-gradient(135deg, #1e0540 0%, #3b0764 40%, #5b21b6 75%, #7c3aed 100%);
  text-align: center;
  position: relative;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-300);
  margin-bottom: 24px;
}

.about-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   STORY SECTION (like report style)
   ════════════════════════════════════════════════ */
.story-section {
  padding: 80px 0;
  background: var(--white);
}

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

.story-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.story-paragraph {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.story-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.story-stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--purple-600);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.story-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.image-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ════════════════════════════════════════════════
   VALUES SECTION
   ════════════════════════════════════════════════ */
.values-section {
  padding: 80px 0;
  background: var(--purple-100);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-mid);
  font-size: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}

.value-card i {
  font-size: 44px;
  color: var(--purple-600);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   GALLERY SECTION
   ════════════════════════════════════════════════ */
.gallery-section {
  padding: 80px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.gallery-item {
  background: var(--purple-100);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}

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

.gallery-caption {
  padding: 16px;
  font-size: 14px;
  color: var(--text-mid);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ════════════════════════════════════════════════
   TEAM SECTION
   ════════════════════════════════════════════════ */
.team-section {
  padding: 80px 0;
  background: var(--purple-100);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.team-member {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
  border: 1px solid var(--border);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}

.team-photo-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--purple-100);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.team-member:hover .team-photo {
  transform: scale(1.05);
}

.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(124,58,237,0.9), transparent);
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.team-member:hover .team-social-overlay {
  transform: translateY(0);
}

.team-social-overlay a {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  font-size: 16px;
  transition: all 0.2s;
}

.team-social-overlay a:hover {
  background: var(--purple-600);
  color: white;
}

.team-member h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 20px 20px 8px;
}

.team-title {
  color: var(--purple-600);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.team-bio {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.team-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.team-note i {
  color: var(--purple-600);
  margin-right: 8px;
}

/* ════════════════════════════════════════════════
   IMPACT SECTION
   ════════════════════════════════════════════════ */
.impact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: white;
}

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

.impact-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.impact-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  gap: 14px;
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.impact-stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s;
}

.impact-stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.impact-stat-card .stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  font-weight: 600;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.impact-stat-card .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════ */
.cta-section {
  padding: 80px 20px;
  background: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-mid);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple-600);
  color: white;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--purple-700);
  transform: translateY(-2px);
  gap: 14px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--purple-600);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid var(--purple-600);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--purple-100);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer-card {
  background: var(--text-dark);
  padding: 64px 5% 40px;
  width: 100%;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--purple-600);
  color: white;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-links-grid h5 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-links-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-grid a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.22s;
}

.footer-links-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.30);
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.30);
  transition: color 0.22s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.6);
}

.footer-dev {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-dev p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-dev a {
  color: var(--purple-400);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-dev a:hover {
  color: var(--purple-300);
}

/* ════════════════════════════════════════════════
   MODAL & COOKIE
   ════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18,16,31,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  border-radius: 28px;
  padding: 44px 40px 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--purple-600);
  margin-bottom: 16px;
}

.modal-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.helplines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.helpline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--purple-100);
  border-radius: 16px;
}

.helpline a {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-600);
}

.btn-submit {
  background: var(--purple-600);
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn-submit:hover {
  background: var(--purple-700);
}

.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 400;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  transform: translateY(120%);
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  border: 1px solid var(--border);
}

.cookie-consent.show { transform: translateY(0); }

.cookie-content { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.cookie-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-icon i { font-size: 22px; color: var(--purple-600); }
.cookie-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cookie-text p { font-size: 13px; color: var(--text-mid); line-height: 1.5; }
.cookie-links { display: flex; gap: 14px; }
.cookie-links a { font-size: 12px; color: var(--purple-600); font-weight: 500; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.cookie-accept { background: var(--purple-600); color: white; }
.cookie-accept:hover { background: var(--purple-700); }
.cookie-decline { background: var(--purple-100); color: var(--text-dark); border: 1px solid var(--border); }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .story-grid,
  .impact-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .btn-book { text-align: center; }
  .burger { display: flex; }
  
  .about-hero { padding: 80px 5% 60px; }
  .about-hero h1 { font-size: 32px; }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  
  .impact-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .story-stats {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    justify-content: center;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo-wrapper {
    height: 280px;
  }
}