/* ============================================================
   THE GRACE THOMAS FOUNDATION — styles.css
   Premium NGO Website Stylesheet
   ============================================================ */

/* ── Google Fonts are loaded in HTML ── */

/* ── CSS Custom Properties ── */
:root {
  --green-50:  #f0faf0;
  --green-100: #d8f3d8;
  --green-200: #b0e7b0;
  --green-400: #4caf73;
  --green-500: #2e8b4a;
  --green-600: #1e6b35;
  --green-700: #185428;
  --green-dark: #0f3d1c;

  --white:     #ffffff;
  --gray-50:   #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-200:  #e9ecef;
  --gray-300:  #dee2e6;
  --gray-400:  #ced4da;
  --gray-500:  #adb5bd;
  --gray-600:  #868e96;
  --gray-700:  #495057;
  --gray-800:  #343a40;
  --gray-900:  #212529;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Base ── */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-500);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}
.btn-primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), var(--shadow-sm);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}
.nav-logo:hover img { transform: scale(1.04); }

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--green-600); background: var(--green-50); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--green-600); }

/* Transparent nav state (over hero) */
#navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.9); }
#navbar:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,0.15); color: white; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--green-500);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-left: 8px;
}
.nav-btn:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--green-50); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar:not(.scrolled) .nav-toggle span { background: white; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 40, 18, 0.82) 0%,
    rgba(20, 75, 35, 0.65) 50%,
    rgba(10, 40, 18, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-200);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: float 2s ease-in-out infinite;
  z-index: 1;
  transition: all var(--transition);
}
.hero-scroll:hover { color: white; border-color: white; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Hero Slideshow ──────────────────────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: none;
  will-change: transform, opacity;
}

/* Active slide fades in */
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-in-out forwards;
}

/* Ken Burns zoom-in effect */
@keyframes kenBurns {
  0%   { transform: scale(1.0) translateX(0) translateY(0); }
  100% { transform: scale(1.08) translateX(-1%) translateY(-1%); }
}

/* ── Slideshow Dots ──────────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}
.hero-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.7); }

/* ── Slideshow Arrows ────────────────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all var(--transition);
  padding: 0;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

/* Hide arrows on small mobile */
@media (max-width: 480px) {
  .hero-arrow { display: none; }
  .hero-dots  { bottom: 72px; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 56px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.badge-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-text .lead-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 0.975rem;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   CHALLENGES SECTION
   ============================================================ */
.challenges-section {
  background: var(--gray-50);
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.challenge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.challenge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-100);
}
.challenge-card:hover::before { transform: scaleX(1); }

.challenge-icon {
  width: 54px;
  height: 54px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-600);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.challenge-card:hover .challenge-icon {
  background: var(--green-500);
  color: var(--white);
}

.challenge-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.challenge-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Last card spans 2 cols on 3-col grid to center it */
.challenges-grid .challenge-card:last-child {
  grid-column: span 1;
}
@media (min-width: 769px) {
  .challenges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .challenges-grid .challenge-card:nth-child(4) {
    grid-column: 1;
  }
  .challenges-grid .challenge-card:nth-child(5) {
    grid-column: 3;
  }
  .challenges-grid .challenge-card:nth-child(4),
  .challenges-grid .challenge-card:nth-child(5) {
    grid-row: 2;
  }
}

/* ============================================================
   OUR WORK SECTION
   ============================================================ */
.work-section { background: var(--white); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}

.work-objectives { display: flex; flex-direction: column; gap: 0; }

.objective-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.objective-item:first-child { padding-top: 0; }
.objective-item:last-child  { border-bottom: none; }
.objective-item:hover { padding-left: 4px; }

.obj-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-200);
  line-height: 1;
  min-width: 44px;
  padding-top: 2px;
  transition: color var(--transition);
}
.objective-item:hover .obj-num { color: var(--green-400); }

.obj-content h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.obj-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.work-image {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.work-image img:first-child {
  height: 280px;
}

.work-img-2 {
  height: 200px !important;
}

/* ============================================================
   VALUES SECTION
   ============================================================ */
.values-section { background: var(--gray-50); }

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

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.value-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--green-600);
  margin: 0 auto 20px;
  transition: all var(--transition);
}
.value-card:hover .value-icon-wrap {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section { background: var(--white); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.partner-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  background: var(--white);
}
.partner-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.partner-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-500);
}
.partner-logo-placeholder i {
  font-size: 2.2rem;
  color: var(--green-400);
  transition: color var(--transition);
}
.partner-card:hover .partner-logo-placeholder i { color: var(--green-600); }
.partner-logo-placeholder span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
}

.partners-cta {
  text-align: center;
  font-size: 0.975rem;
  color: var(--gray-600);
}
.partners-cta a {
  color: var(--green-600);
  font-weight: 600;
  transition: color var(--transition);
}
.partners-cta a:hover { color: var(--green-700); }

/* ============================================================
   GET INVOLVED / FORMS SECTION
   ============================================================ */
.getinvolved-section {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-700) 50%, var(--green-dark) 100%);
  position: relative;
  overflow: hidden;
}
.getinvolved-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="0" cy="0" r="100" fill="rgba(255,255,255,0.02)"/><circle cx="200" cy="200" r="80" fill="rgba(255,255,255,0.02)"/></svg>') center / cover;
  pointer-events: none;
}

.getinvolved-section .section-label {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--green-200);
}
.getinvolved-section .section-title,
.getinvolved-section .section-subtitle {
  color: white;
}
.getinvolved-section .section-subtitle { color: rgba(255,255,255,0.75); }

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.form-card-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.form-card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green-600);
  flex-shrink: 0;
}

.form-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.form-card-header p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(76, 175, 115, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px; }

.form-success-msg {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form-success-msg i { font-size: 2rem; color: var(--green-200); }
.form-success-msg p { font-size: 1rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--gray-50); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green-600);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--green-600); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--green-500);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section { position: relative; }

.map-label {
  text-align: center;
  padding: 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.map-label i { color: var(--green-500); }

.map-container {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 72px 0 0;
}

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

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--gray-500);
}

.footer-brand .social-links { margin-top: 24px; }
.footer-brand .social-link {
  background: rgba(255,255,255,0.07);
  color: var(--gray-400);
}
.footer-brand .social-link:hover {
  background: var(--green-500);
  color: white;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green-400); }

.footer-contact p {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray-500);
  line-height: 1.6;
}
.footer-contact i {
  color: var(--green-400);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.825rem;
  color: var(--gray-600);
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up,
.animate-left,
.animate-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-up    { transform: translateY(32px); }
.animate-left  { transform: translateX(-32px); }
.animate-right { transform: translateX(32px); }

.animate-up.in-view,
.animate-left.in-view,
.animate-right.in-view {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid      { gap: 48px; }
  .work-grid       { grid-template-columns: 1fr; }
  .work-image      { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .work-image img:first-child,
  .work-img-2      { height: 220px !important; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .values-grid     { grid-template-columns: 1fr 1fr; }
  .partners-grid   { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .challenges-grid { grid-template-columns: 1fr 1fr; }
  .challenges-grid .challenge-card:nth-child(4),
  .challenges-grid .challenge-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 32px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--gray-200);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-link       { padding: 12px 16px; color: var(--gray-700) !important; }
  .nav-btn        { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }

  /* Hero */
  .hero-title     { font-size: 2.6rem; }
  .hero-subtitle  { font-size: 1rem; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* About */
  .about-grid     { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 320px; }
  .about-image-badge { right: 16px; bottom: -16px; }
  .about-stats    { justify-content: center; gap: 24px; }

  /* Challenges */
  .challenges-grid { grid-template-columns: 1fr; }

  /* Values */
  .values-grid    { grid-template-columns: 1fr; }

  /* Partners */
  .partners-grid  { grid-template-columns: 1fr 1fr; }

  /* Forms */
  .forms-grid     { grid-template-columns: 1fr; }
  .form-card      { padding: 28px 24px; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  /* Map */
  .map-container  { height: 300px; }

  /* Work */
  .work-image { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container        { padding: 0 16px; }
  .section-title    { font-size: 1.9rem; }
  .partners-grid    { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
}
