/* ============================================================
   We Are One Communities — Global Stylesheet
   Colors: Purple #6A4ACD | Dark Purple #4A2FA3 | Teal #3EC6B6
   ============================================================ */

/* ---- RESET & CUSTOM PROPERTIES ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple:      #6A4ACD;
  --purple-dark: #4A2FA3;
  --purple-light:#EDE8FB;
  --teal:        #3EC6B6;
  --teal-dark:   #2AA898;
  --warm-white:  #FAFAF8;
  --gray-light:  #F4F2F9;
  --gray-mid:    #E0DCF0;
  --gray-text:   #555;
  --dark:        #1E1A2E;
  --white:       #ffffff;
  --font-main:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:   Georgia, 'Times New Roman', serif;
  --radius:      10px;
  --shadow:      0 4px 18px rgba(74,47,163,0.10);
  --shadow-lg:   0 8px 32px rgba(74,47,163,0.16);
  --transition:  0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--warm-white);
  color: var(--dark);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--purple-dark); }

ul { list-style: none; }

/* ---- UTILITY ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light { background-color: var(--gray-light); }
.section-purple { background-color: var(--purple-dark); color: var(--white); }
.section-teal   { background-color: var(--teal); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--purple-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title-white {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 660px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
}
.btn-purple:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--purple-dark);
}

.btn-outline-purple {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline-purple:hover {
  background: var(--purple);
  color: var(--white);
}

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--purple-dark);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.main-nav .nav-donate {
  background: var(--teal);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 6px;
}

.main-nav .nav-donate:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--purple-dark);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav .nav-donate {
  background: var(--teal);
  color: var(--dark) !important;
  padding: 12px 20px;
  border-radius: 50px;
  margin-top: 10px;
  text-align: center;
  border-bottom: none !important;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: url('img/hero-banner.png') center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,47,163,0.82) 0%, rgba(30,26,46,0.70) 100%);
}

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

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  opacity: 0.92;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Subpage hero (shorter) */
.hero-sub {
  min-height: 300px;
}

.hero-sub .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--purple-dark);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

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

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ---- CARDS ---- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--purple-dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* Tag pill on card */
.card-tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

/* ---- ABOUT SPLIT SECTION ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split-content .section-label { display: block; }

.mission-list {
  list-style: none;
  margin-top: 20px;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.95rem;
  color: var(--gray-text);
}

.mission-list li::before {
  content: '✦';
  color: var(--teal);
  font-size: 0.75rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--purple-dark);
  margin-bottom: 8px;
}
.value-text { font-size: 0.88rem; color: var(--gray-text); }

/* ---- PROGRAMS ---- */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.program-row:last-child { border-bottom: none; }
.program-row.flip { direction: rtl; }
.program-row.flip > * { direction: ltr; }

.program-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- INITIATIVES ---- */
.initiative-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
}

.initiative-accent {
  width: 8px;
  background: linear-gradient(180deg, var(--teal), var(--purple));
  flex-shrink: 0;
}

.initiative-body {
  padding: 28px;
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,47,163,0.45);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--purple-dark);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-text);
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.96rem;
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-light);
  color: var(--purple-dark) !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--purple);
  color: var(--white) !important;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--warm-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106,74,205,0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- QUOTE / TESTIMONIAL ---- */
.quote-section {
  background: var(--purple-dark);
  padding: 80px 0;
  text-align: center;
}

blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-style: italic;
}

blockquote footer {
  background: none;
  font-size: 0.9rem;
  color: var(--teal);
  font-style: normal;
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
  margin-top: 12px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 70px 0;
  text-align: center;
  color: var(--white);
}

.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

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

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--teal); }

.footer-newsletter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter input:focus { border-color: var(--teal); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: var(--teal); }

/* ---- FADE-IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section.reverse { direction: ltr; }
  .program-row { grid-template-columns: 1fr; gap: 28px; }
  .program-row.flip { direction: ltr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 480px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
