@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================================
   Prototype C — Dark Cinematic (DigDeep-inspired)
   ================================================ */

:root {
  --bg-dark: #1A1A1A;
  --bg-alt: #242424;
  --text-primary: #F5F5F5;
  --text-muted: #888;
  --accent-green: #2ECC71;
  --accent-red: #E74C3C;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* ---- NAV ---- */

.nav {
  position: fixed;
  top: var(--proto-bar-height, 0px);
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav__donate-btn {
  margin-left: auto;
  margin-right: 24px;
  padding: 10px 20px;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 24px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition-fast);
}

.nav__donate-btn:hover {
  background: #27ae60;
}

.nav__donate-btn:active {
  transform: scale(0.95);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X */
.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- OVERLAY MENU ---- */

.overlay-menu {
  position: fixed;
  inset: var(--proto-bar-height, 0px) 0 0 0;
  background: rgba(26, 26, 26, 0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.menu-open .overlay-menu {
  opacity: 1;
  pointer-events: all;
}

.overlay-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.overlay-menu__links a {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  padding: 8px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.overlay-menu__links a:hover {
  color: var(--accent-green);
}

/* ---- HERO ---- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero__headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 32px;
}

.hero__cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent-green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  min-height: 44px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero__cta:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.hero__cta:active {
  transform: scale(0.95);
}

/* ---- MISSION STRIP ---- */

.mission {
  background: var(--bg-alt);
  padding: 60px 24px;
}

.mission__text {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ---- PROJECTS ---- */

.projects {
  background: var(--bg-dark);
  padding: 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__title {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
}

/* ---- IMPACT STATS ---- */

.stats {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 24px;
}

.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.stats__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- TRUST / CREDIBILITY ---- */

.trust {
  background: var(--bg-dark);
  padding: 60px 24px;
}

.trust__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.trust__placeholder {
  width: 100px;
  height: 40px;
  background: #444;
  border-radius: 4px;
  opacity: 0.5;
}

/* ---- NEWS ---- */

.news {
  background: var(--bg-alt);
  padding: 80px 24px;
}

.news__heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.news__list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item__date {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-item__body {
  flex: 1;
}

.news-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.news-item__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 65ch;
}

/* ---- DONATION ---- */

.donation {
  background: var(--bg-alt);
  padding: 80px 24px;
  text-align: center;
}

.donation__heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
}

.donation__tiers {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.donation__tier-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 36px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-stack);
  min-height: 44px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.donation__tier-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.donation__tier-btn:active {
  transform: scale(0.95);
}

.donation__tier-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.donation__tier-desc {
  font-size: 0.8rem;
  margin-top: 6px;
  opacity: 0.85;
  max-width: 180px;
}

.donation__options {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.donation__monthly {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.donation__other {
  font-size: 0.9rem;
  color: var(--accent-green);
  transition: color 0.25s ease;
}

.donation__other:hover {
  color: #27ae60;
}

/* ---- FOOTER ---- */

.footer {
  background: var(--bg-dark);
  padding: 60px 24px;
  text-align: center;
}

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

.footer__address,
.footer__contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__social a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--accent-green);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ================================================
   ANIMATIONS
   ================================================ */

.fade-in {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.move-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.move-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Mobile: < 768px */
@media (max-width: 767px) {
  .nav {
    padding: 12px 16px;
  }

  .nav__donate-btn {
    margin-right: 16px;
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .hero__headline {
    margin-bottom: 24px;
  }

  .hero__cta {
    padding: 14px 36px;
    font-size: 1rem;
  }

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

  .stats__row {
    gap: 32px;
  }

  .stat-item {
    flex: 0 0 45%;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-item__date {
    width: auto;
  }

  .donation__tiers {
    flex-direction: column;
    align-items: center;
  }

  .donation__tier-btn {
    width: 100%;
    max-width: 300px;
  }

  .trust__placeholder {
    width: 72px;
    height: 30px;
  }

  .trust__row {
    gap: 24px;
  }

  .stats {
    background-attachment: scroll;
  }
}

/* Tablet: 768–1199px */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav {
    padding: 16px 24px;
  }

  .stats__row {
    gap: 48px;
  }
}

/* Desktop: 1200px+ */
@media (min-width: 1200px) {
  .nav {
    padding: 20px 48px;
  }

  .stats {
    padding: 120px 48px;
  }
}
