/*
Theme Name: AI Horizons for Kids
Theme URI: https://aihorizons4kids.org
Author: Markos Command AI
Description: Custom theme for AI Horizons for Kids nonprofit
Version: 1.0
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a6bdb;
  --blue-dark: #1254b0;
  --blue-light: #e8f0fb;
  --gold:    #ffbe0b;
  --gold-dark: #e6a800;
  --dark:    #111827;
  --gray:    #6b7280;
  --light:   #f5f7fa;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: all 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-gold {
  background: var(--gold);
  color: var(--dark);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.section-dark .section-subtitle,
.section-blue .section-subtitle { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,190,11,0.4);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,219,0.35);
  color: var(--white);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo-text {
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  line-height: 1.2;
  transition: var(--transition);
}

.site-header.scrolled .site-logo-text { color: var(--dark); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.site-header.scrolled .site-nav a {
  color: var(--dark);
}

.site-header.scrolled .site-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.82) 0%,
    rgba(26, 107, 219, 0.55) 50%,
    rgba(17, 24, 39, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,190,11,0.2);
  border: 1px solid rgba(255,190,11,0.5);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--gold);
}

.hero-desc {
  font-size: 19px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  line-height: 1.65;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   MISSION STRIP
============================================================ */
.mission-strip {
  background: var(--dark);
  padding: 32px 0;
}

.mission-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
}

.mission-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   PROBLEM / SOLUTION (3-COL)
============================================================ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.problem-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.problem-card-body {
  padding: 24px;
}

.problem-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.tag-challenge { background: #fee2e2; color: #991b1b; }
.tag-action { background: #dbeafe; color: #1e40af; }
.tag-impact { background: #dcfce7; color: #166534; }

.problem-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.problem-card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   LOCATIONS (3-CARD)
============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.location-card.active {
  border-top-color: var(--gold);
}

.location-flag {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.location-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.location-school {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.location-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-active::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.status-upcoming {
  background: #fef9c3;
  color: #854d0e;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--gold));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.step-icon-1 { background: var(--blue); }
.step-icon-2 { background: #0ea5e9; }
.step-icon-3 { background: #8b5cf6; }
.step-icon-4 { background: var(--gold); }

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   IMPACT METRICS
============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item {
  padding: 32px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.metric-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.metric-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   TESTIMONIAL
============================================================ */
.testimonial-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 80px;
  line-height: 0.5;
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 900;
  margin-bottom: 24px;
  display: block;
}

.quote-text {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 24px;
  font-style: italic;
}

.quote-author {
  font-size: 14px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   FOUNDER SECTION
============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.founder-img-wrap {
  position: relative;
}

.founder-img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.founder-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--gold);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.4;
}

.founder-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.founder-name {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 6px;
}

.founder-title {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  font-weight: 500;
}

.founder-quote {
  font-size: 17px;
  font-style: italic;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.founder-bio {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue) 0%, #1254b0 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,190,11,0.08);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ============================================================
   INNER PAGES
============================================================ */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  color: var(--white);
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

.page-content {
  padding: 64px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 48px 0 16px;
  color: var(--dark);
}

.page-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--dark);
}

.page-content p {
  margin-bottom: 18px;
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
}

.page-content ul, .page-content ol {
  margin: 16px 0 24px 24px;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}

.page-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 40px 0;
}

.page-content blockquote {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 17px;
  color: var(--dark);
  margin: 24px 0;
}

.page-content a {
  color: var(--blue);
  text-decoration: underline;
}

.page-content strong {
  color: var(--dark);
  font-weight: 700;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0d1117;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

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

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand-tagline {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.footer-social a:hover {
  background: var(--gold);
  color: var(--dark);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--gold); }

.footer-newsletter button {
  padding: 10px 18px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover { background: var(--gold-dark); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}

.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .three-col,
  .locations-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-img { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .site-nav { display: none; }
}
