/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #222; background: #fff; line-height: 1.7; }
a { color: #27ae60; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: #922b21; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
.logo span { color: #27ae60; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { color: #fff; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: #27ae60; text-decoration: none; }
.btn-donate {
  background: #27ae60; color: #fff !important; padding: 0.5rem 1.4rem;
  border-radius: 25px; font-weight: 700; transition: opacity 0.2s;
}
.btn-donate:hover { opacity: 0.85; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('image/orphan1.png') center/cover no-repeat;
  filter: brightness(0.45);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 2rem; }
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.15rem; margin-bottom: 2rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.btn-primary {
  display: inline-block; background: #27ae60; color: #fff;
  padding: 0.9rem 2.5rem; border-radius: 30px; font-size: 1.05rem;
  font-weight: 700; transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; text-decoration: none; }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  color: #922b21; margin-bottom: 0.5rem;
}
.section-line { width: 60px; height: 4px; background: #27ae60; border-radius: 2px; margin-bottom: 2rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text p { margin-bottom: 1rem; font-size: 1.05rem; }
.about-text .mission-box {
  background: #922b21; color: #fff; padding: 1.5rem; border-radius: 10px;
  margin-top: 1.5rem;
}
.about-text .mission-box h3 { margin-bottom: 0.5rem; color: #27ae60; }
.about-img img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); width: 100%; object-fit: cover; height: 380px; }

/* ===== EVENTS ===== */
.events-section { background: #f8f9fa; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.event-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 4px solid #27ae60;
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-4px); }
.event-card h3 { color: #922b21; margin-bottom: 0.5rem; font-size: 1.05rem; }
.event-card p { font-size: 0.93rem; color: #555; }

/* ===== INVOLVEMENT ===== */
.involve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2rem; }
.involve-img img { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); width: 100%; object-fit: cover; height: 300px; }
.involve-steps { list-style: none; }
.involve-steps li {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.2rem; font-size: 1rem;
}
.step-num {
  min-width: 36px; height: 36px; background: #27ae60; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.donate-box {
  background: #922b21; color: #fff; padding: 2rem; border-radius: 12px;
  margin-top: 2rem; text-align: center;
}
.donate-box h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.donate-box p { margin-bottom: 1.2rem; opacity: 0.9; }
.btn-donate-lg {
  display: inline-block; background: #27ae60; color: #fff;
  padding: 0.8rem 2rem; border-radius: 25px; font-weight: 700;
  font-size: 1rem; transition: opacity 0.2s;
}
.btn-donate-lg:hover { opacity: 0.85; text-decoration: none; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-grid img { border-radius: 10px; width: 100%; height: 200px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.2s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.03); }

/* ===== FOOTER ===== */
footer {
  background: #111; color: #ccc; padding: 3rem 2rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; border-bottom: 2px solid #27ae60; padding-bottom: 0.5rem; display: inline-block; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: #aaa; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: #27ae60; }
.footer-col .email-highlight { font-size: 1.05rem !important; font-weight: 700; color: #27ae60 !important; }
.legal-badge {
  display: inline-block; background: #922b21; color: #fff;
  padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.footer-bottom {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid #333; font-size: 0.85rem; color: #666;
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.back-to-top {
  background: #27ae60; color: #fff; border: none; padding: 0.5rem 1rem;
  border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: opacity 0.2s;
}
.back-to-top:hover { opacity: 0.8; }

/* ===== MODALS ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 12px; padding: 2rem;
  max-width: 480px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h2 { color: #922b21; margin-bottom: 1rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #999; line-height: 1;
}
.modal-close:hover { color: #333; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; color: #444; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem; border: 1px solid #ddd;
  border-radius: 8px; font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #27ae60; outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; background: #922b21; color: #fff; border: none;
  padding: 0.9rem; border-radius: 8px; font-size: 1rem;
  font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }
.success-icon { font-size: 3rem; text-align: center; margin-bottom: 1rem; }
.success-modal p { text-align: center; color: #555; }

/* Mobile menu modal */
.mobile-menu { max-width: 320px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.mobile-menu nav a { font-size: 1.1rem; color: #922b21; font-weight: 600; padding: 0.5rem 0; border-bottom: 1px solid #eee; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .about-grid, .involve-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
