/* ============================================================
   RRO — Rapid Response Organization | Custom Stylesheet
   Bootstrap 5 + Custom CSS
   ============================================================ */

:root {
  --rro-green: #1a6b2f;
  --rro-green-dark: #124a20;
  --rro-green-light: #28a745;
  --rro-gold: #f5a623;
  --rro-blue: #2563eb;
  --rro-light: #f8f9fa;
  --rro-dark: #0f1f14;
  --rro-text: #2c3e2d;
  --rro-muted: #6c7a6e;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--rro-text);
  scroll-behavior: smooth;
}

a { text-decoration: none; }

/* ---- Navbar ---- */
.navbar {
  background: var(--rro-green) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0.75rem 0;
}
.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: #fff;
  padding: 2px;
}
.navbar-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.navbar-brand small {
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem;
  display: block;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: background 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}
.btn-donate {
  background: var(--rro-gold);
  color: var(--rro-dark) !important;
  font-weight: 700;
  border-radius: 25px;
  padding: 0.4rem 1.4rem !important;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.5);
  background: #e09400;
  color: #fff !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.4) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--rro-green-dark) 0%, var(--rro-green) 60%, #2d8c47 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field1.jpeg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero h1 span { color: var(--rro-gold); }
.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 580px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--rro-gold);
  border-radius: 50%;
}

/* ---- Stat Strip ---- */
.stat-strip {
  background: var(--rro-dark);
  padding: 2rem 0;
}
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rro-gold);
  display: block;
}
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Section Titles ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rro-green-dark);
}
.section-subtitle {
  color: var(--rro-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: rgba(26,107,47,0.1);
  color: var(--rro-green);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* ---- Program Cards ---- */
.program-card {
  border: 1px solid #e8f0e9;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  background: #fff;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,107,47,0.12);
  border-color: var(--rro-green);
}
.program-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--rro-green), var(--rro-green-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.program-card h5 { font-weight: 700; color: var(--rro-green-dark); font-size: 1rem; }
.program-card p { color: var(--rro-muted); font-size: 0.87rem; line-height: 1.6; margin: 0; }

/* ---- Activity Cards ---- */
.activity-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
  border: 1px solid #eee;
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.activity-card img {
  width: 100%; height: 220px;
  object-fit: cover;
}
.activity-card .card-body { padding: 1.25rem; }
.activity-meta { font-size: 0.78rem; color: var(--rro-muted); margin-bottom: 0.5rem; }
.activity-meta span { margin-right: 12px; }
.activity-card h5 { font-weight: 700; font-size: 1rem; color: var(--rro-green-dark); }
.activity-card p { font-size: 0.87rem; color: var(--rro-muted); line-height: 1.6; }
.badge-program {
  background: rgba(26,107,47,0.1);
  color: var(--rro-green);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- About Page ---- */
.about-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.about-hero h1 { font-weight: 800; font-size: 2.5rem; }
.value-card {
  background: #fff;
  border: 1px solid #e8f0e9;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s;
}
.value-card:hover { box-shadow: 0 8px 24px rgba(26,107,47,0.1); }
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.value-card h6 { font-weight: 700; color: var(--rro-green-dark); }
.at-glance {
  background: var(--rro-green);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
}
.at-glance h5 { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.glance-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.glance-item:last-child { border-bottom: none; }
.glance-label { color: rgba(255,255,255,0.75); }
.glance-value { font-weight: 600; }

/* ---- Contact Page ---- */
.contact-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.contact-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8f0e9;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, var(--rro-green), var(--rro-green-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.contact-info-text h6 { font-weight: 700; color: var(--rro-green-dark); margin: 0 0 2px; font-size: 0.9rem; }
.contact-info-text p { color: var(--rro-muted); font-size: 0.88rem; margin: 0; }
.form-control:focus, .form-select:focus {
  border-color: var(--rro-green);
  box-shadow: 0 0 0 0.2rem rgba(26,107,47,0.15);
}

/* ---- Buttons ---- */
.btn-rro {
  background: var(--rro-green);
  color: #fff;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  border: 2px solid var(--rro-green);
  transition: all 0.2s;
}
.btn-rro:hover {
  background: var(--rro-green-dark);
  border-color: var(--rro-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,47,0.3);
}
.btn-rro-outline {
  background: transparent;
  color: #fff;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.btn-rro-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ---- Footer ---- */
.footer {
  background: var(--rro-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo img {
  height: 60px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--rro-gold); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1rem; }
.footer-bottom { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}
.social-icons a:hover { background: var(--rro-green); color: #fff; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.page-hero h1 { font-weight: 800; font-size: 2.5rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.75); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Vision/Mission boxes ---- */
.vm-box {
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
}
.vm-box.vision { background: var(--rro-green); color: #fff; }
.vm-box.mission { background: var(--rro-gold); color: var(--rro-dark); }
.vm-box h5 { font-weight: 800; margin-bottom: 0.75rem; font-size: 1.1rem; }
.vm-box p { font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ---- CTA Strip ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 4rem 0;
  color: #fff;
  text-align: center;
}
.cta-strip h2 { font-weight: 800; font-size: 2rem; }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---- Misc ---- */
.bg-light-green { background: #f0f7f1; }
.text-rro { color: var(--rro-green) !important; }
.border-rro { border-color: var(--rro-green) !important; }

@media (max-width: 767px) {
  .hero { min-height: 70vh; text-align: center; }
  .hero p { margin: 0 auto 1.5rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; }
  .stat-item:last-child { border-bottom: none; }
  .hero-buttons { justify-content: center !important; }
}
