/* ============================================
   ALPHONSO FORD FOUNDATION — style.css
   ============================================ */

:root {
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark2:        #1a1a1a;
  --dark3:        #242424;
  --white:        #ffffff;
  --gold:         #c9922a;
  --gold-light:   rgba(201,146,42,0.14);
  --gold-border:  rgba(201,146,42,0.38);
  --blue:         #1b3a5c;
  --muted:        #777;
  --muted-lt:     #aaa;
  --max:          1140px;
  --radius:       16px;
  --ease:         0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- TYPOGRAPHY ---- */
.section-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-tag.dark { color: rgba(0,0,0,0.55); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.section-title.dark { color: var(--black); }

.section-sub {
  font-size: 15px;
  color: var(--muted-lt);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.body-text {
  font-size: 15px;
  color: var(--muted-lt);
  line-height: 1.85;
}
.body-text.dark { color: rgba(0,0,0,0.65); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,146,42,0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo {
  height: 44px;
  width: auto;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 50px;
  margin-left: 10px;
  transition: all var(--ease);
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.5) saturate(0.75);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.45) 50%,
    rgba(10,10,10,0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 28px;
  animation: fadeUp 1s ease both;
}
.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }
.section-gold { background: var(--gold); }

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.55);
}
.about-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--gold);
  color: var(--black);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 36px rgba(201,146,42,0.5);
}
.badge-num { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.badge-text { font-size: 10px; font-weight: 700; line-height: 1.5; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.about-text { padding-right: 8px; }

/* ---- PROGRAMS ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: all var(--ease);
}
.program-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0,0,0,0.35);
}
.program-icon { font-size: 40px; margin-bottom: 18px; }
.program-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.program-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.coming-badge {
  display: inline-block;
  margin-top: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: 50px;
}

/* ---- TIMELINE ---- */
.timeline {
  margin-top: 52px;
  position: relative;
  padding-left: 44px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent 90%);
}
.tl-item {
  position: relative;
  padding: 0 0 44px 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,146,42,0.2);
}
.tl-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tl-content h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.tl-content p { font-size: 14px; color: var(--muted-lt); line-height: 1.75; }

/* ---- DONATE ---- */
.donate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.donate-text { flex: 1; min-width: 260px; }
.donate-action { text-align: center; flex-shrink: 0; }
.donate-note {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  margin-top: 12px;
}

/* ---- SHOP ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shop-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 44px 30px;
  display: block;
  transition: all var(--ease);
}
.shop-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0,0,0,0.35);
}
.shop-card-inner { display: flex; flex-direction: column; gap: 6px; }
.shop-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
}
.shop-card p { font-size: 13px; color: var(--muted); margin: 0; }
.shop-arrow {
  font-size: 22px;
  color: var(--gold);
  margin-top: 16px;
  display: inline-block;
  transition: transform var(--ease);
}
.shop-card:hover .shop-arrow { transform: translateX(7px); }

/* ---- FOOTER ---- */
.footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; background: rgba(255,255,255,0.85); border-radius: 8px; padding: 4px; }
.footer-brand p { font-size: 13px; color: var(--muted); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-links a, .footer-contact a {
  font-size: 14px;
  color: var(--muted-lt);
  transition: color var(--ease);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }

.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--muted-lt);
  transition: all var(--ease);
}
.social-btn:hover { color: var(--white); border-color: var(--gold-border); background: rgba(201,146,42,0.08); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ---- LEGACY SECTION (accolades page) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 16px; color: var(--white); }
.card p { margin: 0 0 4px; font-size: 14px; color: var(--muted-lt); }
.card ul { padding-left: 18px; color: var(--muted-lt); font-size: 14px; }

/* Topbar fallback for sub-pages */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 44px; width: auto; background: rgba(255,255,255,0.9); border-radius: 8px; padding: 3px; }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-tag { color: var(--gold); font-weight: 700; font-size: 11px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); padding: 7px 12px; border-radius: 8px; transition: all var(--ease); }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.btn-nav {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
}

.section-page { padding: 80px 0 60px; }
.alt { background: var(--dark); }
.donate { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.muted { color: var(--muted-lt); }
.small { font-size: 12px; }

/* Timeline (accolades) */
.t-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.t-year { font-weight: 700; color: var(--gold); padding-top: 10px; }
.t-card { background: var(--dark2); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 18px; }
.t-card h3 { margin: 0 0 8px; color: var(--white); }
.t-card ul { margin: 0; padding-left: 18px; color: var(--muted-lt); }

/* Carousel */
.carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 24px 0; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); background: var(--dark2); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.carousel__track { display: flex; transform: translateX(0); transition: transform 420ms ease; will-change: transform; }
.carousel__slide { width: 100%; flex: 0 0 100%; height: 60vh; max-height: 520px; object-fit: cover; display: block; }
.carousel__btn { border: 1px solid rgba(255,255,255,0.12); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; background: var(--dark2); color: var(--white); display: grid; place-items: center; transition: all var(--ease); }
.carousel__btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: scale(1.05); }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.2); transition: background var(--ease); }
.carousel__dot.is-active { background: var(--gold); }

/* Shop page specific */
.shop-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 10px;
}

/* ---- NEWS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--ease);
}
.news-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 50px;
}
.news-date {
  font-size: 12px;
  color: var(--muted);
}
.news-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.news-excerpt {
  font-size: 14px;
  color: var(--muted-lt);
  line-height: 1.75;
  flex: 1;
}
.news-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 4px;
  transition: letter-spacing var(--ease);
}
.news-card:hover .news-read { letter-spacing: 0.5px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img { height: 380px; }
  .about-badge { right: 12px; bottom: -12px; }
  .about-text { padding-right: 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donate-box { flex-direction: column; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .t-item { grid-template-columns: 1fr; }
  .t-year { padding-top: 0; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    padding: 88px 28px 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-title { font-size: clamp(44px, 14vw, 80px); }
}
