/* ============================================
   Home Page Styles — index.html
   ============================================ */

/* === HERO SECTION === */
.hero {
  position: relative;
  background-color: var(--ink);
  color: var(--text-on-dark);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0 var(--space-8);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(21, 32, 25, 0.7) 0%, 
    rgba(21, 32, 25, 0.4) 100%);
}

.hero-bg .img-slot {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-content .tag {
  color: var(--grain);
}

.hero-content h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.hero-supporting {
  font-size: 1.1rem;
  color: var(--text-on-dark-dim);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 65ch;
}

.hero-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 240px;
  margin-top: var(--space-8);
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

/* === IMPACT STATS BAR === */
.impact-stats {
  background-color: var(--ink-soft);
  color: var(--text-on-dark);
  padding: var(--space-6) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-cell {
  padding: var(--space-3) var(--space-4);
  border-right: 1px solid var(--line-on-dark);
  text-align: left;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--grain);
  display: block;
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-label {
  font-size: var(--small-size);
  color: var(--text-on-dark-dim);
  line-height: 1.4;
}

/* === WHO WE ARE === */
.who-we-are {
  background-color: var(--paper);
}

.who-we-are .tag {
  color: var(--clay);
}

.who-we-are h2 {
  color: var(--text-ink);
  margin-bottom: var(--space-6);
  max-width: 55ch;
}

.two-col-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

.two-col-asymmetric > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.two-col-asymmetric p {
  color: var(--text-ink);
  line-height: 1.7;
  font-size: 1.05rem;
}

.two-col-asymmetric p:first-of-type {
  font-weight: 500;
  color: var(--leaf);
}

.two-col-asymmetric .img-slot {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 35, 29, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.two-col-asymmetric .img-slot:hover {
  box-shadow: 0 16px 40px rgba(28, 35, 29, 0.18);
  transform: translateY(-2px);
}

/* === MISSION === */
.mission-section {
  background-color: var(--paper-dim);
}

.two-col-mirror {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}

.two-col-mirror .img-slot {
  aspect-ratio: 4 / 3;
}

/* === VISION === */
.vision-section {
  position: relative;
  background-color: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

.vision-bg .img-slot {
  width: 100%;
  height: 100%;
}

.vision-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(21, 32, 25, 0.5) 0%, 
    rgba(21, 32, 25, 0.3) 100%);
}

.vision-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.vision-content h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.vision-content p {
  color: var(--text-on-dark-dim);
}

/* === GALLERY PREVIEW === */
.gallery-preview {
  background-color: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.gallery-tile .img-slot {
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.gallery-tile:hover .img-slot img {
  transform: scale(1.04);
}

.gallery-tile:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* === WHO WE SERVE === */
.who-we-serve {
  background-color: var(--paper-dim);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.target-card .img-slot {
  aspect-ratio: 7 / 5;
  margin-bottom: var(--space-3);
}

.target-card h3 {
  margin-bottom: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-on-light);
}

.target-card p {
  font-size: var(--small-size);
  color: var(--text-ink);
  line-height: 1.5;
}

/* === PARTNER CTA BAND === */
.partner-cta {
  position: relative;
  background-color: var(--ink);
  color: var(--text-on-dark);
  padding: var(--space-12) 0;
  overflow: hidden;
}

.partner-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

.partner-cta-bg .img-slot {
  width: 100%;
  height: 100%;
}

.partner-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(21, 32, 25, 0.85) 0%, 
    rgba(21, 32, 25, 0.75) 100%);
}

.partner-cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.partner-cta-content h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.partner-cta-content p {
  color: var(--text-on-dark-dim);
  margin-bottom: var(--space-4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-cell:nth-child(2) {
    border-right: none;
  }
  
  .stat-cell:nth-child(3) {
    border-top: 1px solid var(--line-on-dark);
  }
  
  .two-col-asymmetric {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: var(--space-8) 0 var(--space-6);
  }
  
  .hero-illustration {
    height: 180px;
    margin-top: var(--space-6);
  }
  
  .two-col-asymmetric,
  .two-col-mirror {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--line-on-dark);
  }
  
  .stat-cell:last-child {
    border-bottom: none;
  }
  
  .target-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile .img-slot img {
    transition: none;
  }
  
  .gallery-tile:hover .img-slot img {
    transform: none;
  }
}
