/* ===========================
   Hawaii Hope Mission Baptist Church
   Color Palette: Deep Purple, Gold, Cream
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4a235a;
  --primary-light: #6c3483;
  --accent: #d4ac0d;
  --cream: #fdf9f0;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #7d6b8a;
  --shadow: 0 4px 20px rgba(74,35,90,0.15);
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Garamond', 'Georgia', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(74,35,90,0.4);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--accent); font-size: 1.6rem; }
.logo-text {
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: 'Georgia', serif;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-donate {
  background: var(--accent);
  color: var(--primary);
  padding: 9px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-donate:hover { background: #f0c30f; transform: translateY(-1px); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* MOBILE OVERLAY */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  justify-content: flex-end;
}
.mobile-overlay.active { display: flex; }
.mobile-menu {
  background: var(--primary);
  width: 280px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.close-menu {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 1.05rem;
  font-family: Arial, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 10px;
}
.mobile-donate { text-align: center; margin-top: 10px; }

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,35,90,0.85) 0%, rgba(74,35,90,0.55) 60%, rgba(74,35,90,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1.3;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 18px;
  font-style: italic;
}
.hero-desc {
  font-size: 1rem;
  margin-bottom: 34px;
  opacity: 0.9;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 13px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #f0c30f; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 13px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* SECTIONS */
.section { padding: 85px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2rem; color: var(--primary); margin-bottom: 42px; }
.section-title.centered { text-align: center; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }
.section-text h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 22px; }
.section-text p { margin-bottom: 16px; color: var(--text); }
.section-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 390px;
}

/* ABOUT */
.about-section { background: var(--cream); }

/* MISSION */
.mission-section { background: var(--white); }
.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}
.mission-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 38px 28px;
  text-align: center;
  border-top: 4px solid var(--accent);
  box-shadow: 0 3px 14px rgba(74,35,90,0.1);
  transition: transform 0.2s;
}
.mission-card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2.6rem; margin-bottom: 14px; }
.mission-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 12px; }
.mission-card p { color: #6b5b75; font-size: 0.93rem; }
.mission-image-row img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* PROGRAMS */
.programs-section { background: var(--cream); }
.program-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.program-list li {
  padding: 12px 18px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* IMPACT */
.impact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}
.impact-section .section-title { color: var(--white); }
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  opacity: 0.82;
  font-family: Arial, sans-serif;
  margin-top: 6px;
}
.impact-text { margin-bottom: 40px; }
.impact-text p { margin-bottom: 14px; opacity: 0.9; }
.impact-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* CONTACT */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3, .contact-form-wrap h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.contact-info p { margin-bottom: 12px; font-family: Arial, sans-serif; }
.contact-email a {
  color: var(--primary-light);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}
.contact-email a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border: 1.5px solid #d8c8e0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary-light); }
.contact-form textarea { resize: vertical; }

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.82);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: Arial, sans-serif;
}
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.65; font-family: Arial, sans-serif; }
.footer-email a {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
}
.footer-email a:hover { text-decoration: underline; }
.footer-link {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
  opacity: 0.65;
}
.scroll-top {
  color: var(--accent);
  font-size: 2rem;
  text-decoration: none;
  line-height: 1;
}

/* POPUPS */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 42px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(74,35,90,0.3);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #aaa;
}
.popup-box h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.4rem; }
.thank-you-box { text-align: center; }
.thank-you-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.policy-box p { font-family: Arial, sans-serif; font-size: 0.95rem; line-height: 1.75; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .section-grid { grid-template-columns: 1fr; }
  .section-grid.reverse { direction: ltr; }
  .mission-cards { grid-template-columns: 1fr; }
  .impact-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .impact-stats { grid-template-columns: 1fr 1fr; }
  .hero { height: 80vh; }
}
