﻿/* ===== VARIABLES ===== */
:root {
  --navy: #002b5c;
  --navy-dark: #001a38;
  --teal: #00889c;
  --teal-light: #00a8bf;
  --green: #5fa33a;
  --green-light: #7bc952;
  --red: #c41230;
  --text: #1e3046;
  --text-light: #4a6580;
  --bg: #f4fafb;
  --bg-alt: #eaf5f7;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,43,92,0.07);
  --shadow: 0 8px 30px rgba(0,43,92,0.10);
  --shadow-lg: 0 20px 50px rgba(0,43,92,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

/* ===== LAYOUT ===== */
.container { width: min(1140px, 90vw); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #004970 50%, #1a6638 100%);
  color: #e8f7ff;
}
.section-dark h2, .section-dark .section-sub { color: var(--white); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-title.center { text-align: center; }
.section-sub { color: var(--text-light); max-width: 600px; margin-bottom: 2rem; }
.section-sub.center { text-align: center; margin-inline: auto; }

/* ===== NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,43,92,0.06);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--navy);
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.85rem; letter-spacing: 0.2px; }
.brand-text small { font-size: 0.7rem; color: var(--teal); font-weight: 600; letter-spacing: 0.5px; }

.menu-list {
  display: flex; align-items: center; gap: 0.3rem;
  list-style: none;
}
.menu-list a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.menu-list a:hover { background: var(--bg); color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--navy) !important; }

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(95,163,58,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,136,156,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0,43,92,0.04) 0%, transparent 70%),
    linear-gradient(175deg, #f8fcff 0%, #ffffff 40%, #eef8fb 70%, #f0faf5 100%);
}
.hero-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, #004970 55%, #1a6638 100%);
  padding: 1rem 0;
  box-shadow: 0 4px 18px rgba(0,43,92,0.18);
  overflow: hidden;
}
.banner-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.banner-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee-run 28s linear infinite;
  will-change: transform;
}
.banner-track span {
  color: #e8f7ff;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: 0.4px;
  padding-right: 3.5rem;
}
@keyframes marquee-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  padding: 2.5rem 0 3.5rem;
}
.hero-copy { max-width: 560px; }
.hero-logo {
  width: 140px; height: 140px;
  object-fit: contain;
  margin: 0 0 1.1rem;
  filter: drop-shadow(0 10px 25px rgba(0,43,92,0.12));
  animation: fadeUp 0.8s ease;
}
.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
}
.hero-photo figcaption {
  padding: 0.9rem 1.1rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-light);
  max-width: 540px; margin: 0 0 1.75rem;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-btns {
  display: flex; justify-content: flex-start; gap: 0.75rem; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-secondary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-secondary:hover { background: #4e8c2e; border-color: #4e8c2e; color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { margin-bottom: 1rem; color: var(--text-light); font-size: 1.02rem; }
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%; height: 380px; object-fit: cover;
}

/* ===== MISSION / VISION ===== */
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mv-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.mv-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 0.5rem; }
.mv-card p { color: var(--text-light); }
.mission-card { border-top: 4px solid var(--teal); }
.vision-card { border-top: 4px solid var(--green); }

/* ===== VALUES ===== */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.value-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4rem; }
.value-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.gallery-4 { grid-template-columns: 1fr 1fr; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  padding: 1rem 1.25rem;
  font-weight: 600; color: var(--navy); font-size: 1rem;
  text-align: center;
}

/* ===== PROGRAMS ===== */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.program-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--teal); opacity: 0.3;
  margin-bottom: 0.25rem;
}
.program-card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.program-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== IMPACT ===== */
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.impact-card {
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  transition: transform var(--transition);
}
.impact-card:hover { transform: translateY(-4px); }
.impact-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.impact-card span { font-size: 0.88rem; font-weight: 500; opacity: 0.85; }

/* ===== GET INVOLVED ===== */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 0.75rem;
}
.cta-card p { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-donate { border-top: 4px solid var(--teal); }
.cta-volunteer { border-top: 4px solid var(--green); }
.cta-partner { border-top: 4px solid var(--navy); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
}
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.contact-detail p { color: var(--text-light); font-style: normal; }
.contact-detail a { color: var(--teal); font-weight: 600; }

.contact-form-area {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-area h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 1.25rem; font-size: 1.3rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #d0dfe6;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; border: none; font-size: 1rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c8e4f5;
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 0.5rem; }
.footer-name { font-weight: 700; font-size: 1.05rem; color: var(--white); }
.footer-tagline { color: var(--teal-light); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; }
.footer-copy { margin-top: 0.75rem; font-size: 0.82rem; color: #8db6d0; }
.footer-copy a { color: #a4cfec; }
.footer-copy a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about-grid,
  .mv-grid,
  .contact-grid,
  .hero-content { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero-logo { margin: 0 auto 1.1rem; }
  .hero-desc { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-photo img { height: 340px; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .values-grid,
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .about-image img { height: 280px; }
}

@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }

  .menu-toggle { display: flex; }
  .menu-list {
    position: absolute;
    top: 68px; right: 5vw;
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(0,43,92,0.08);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 200px;
    display: none;
  }
  .menu-list.open { display: flex; }

  .brand-text strong { font-size: 0.75rem; }
  .brand-logo { width: 40px; height: 40px; }

  .hero { min-height: auto; }
  .hero-logo { width: 120px; height: 120px; }
  .hero-content { padding: 2rem 0 2.5rem; }
  .hero-photo img { height: 280px; }
  .banner-track span { font-size: 1.1rem; }

  .values-grid,
  .programs-grid,
  .cta-grid,
  .gallery-grid,
  .impact-grid { grid-template-columns: 1fr; }

  .gallery-item img { height: 220px; }
}
