/* ===========================
   Hawaii EMS Association
   Color Palette: Red, White, Dark Gray
   =========================== */

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

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --accent: #f39c12;
  --dark: #1c2833;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --shadow: 0 4px 20px rgba(192,57,43,0.15);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--primary); font-size: 1.8rem; font-weight: bold; }
.logo-text {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-donate {
  background: var(--primary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-donate:hover { background: var(--primary-dark); 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(--dark);
  width: 280px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 3px solid var(--primary);
}
.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.85);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}
.mobile-donate { text-align: center; margin-top: 10px; }

/* HERO */
.hero {
  position: relative;
  height: 88vh;
  min-height: 540px;
  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(to right, rgba(28,40,51,0.9) 0%, rgba(192,57,43,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 700px;
  padding: 0 24px 0 60px;
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-desc {
  font-size: 1rem;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--white); color: var(--dark); }

/* SECTIONS */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2rem; color: var(--dark); margin-bottom: 40px; }
.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(--dark); margin-bottom: 20px; }
.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: 380px;
}

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

/* 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(--light);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card-icon { font-size: 2.6rem; margin-bottom: 14px; }
.mission-card h3 { color: var(--dark); font-size: 1.15rem; margin-bottom: 12px; }
.mission-card p { color: var(--text-light); 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(--light); }
.program-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.program-list li {
  padding: 11px 16px;
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  font-size: 0.95rem;
}

/* IMPACT */
.impact-section { background: var(--dark); 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.8;
  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.4);
}

/* 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(--dark);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.contact-info p { margin-bottom: 12px; }
.contact-email a {
  color: var(--primary);
  font-size: 1.15rem;
  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 #d5d8dc;
  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); }
.contact-form textarea { resize: vertical; }

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.82);
  padding: 60px 0 0;
  border-top: 3px solid var(--primary);
}
.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: 1px;
}
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.65; }
.footer-email a {
  color: var(--accent);
  font-size: 1.1rem;
  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;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  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: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
}
.popup-box h3 { color: var(--dark); 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-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; }
  .hero-content { padding: 0 24px; text-align: center; }
  .hero-btns { justify-content: center; }
  .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; }
}
