/* Shiloh Community Initiative Uganda — custom styles on top of Bootstrap 5 */

:root {
  --brand-50: #f0f1fe;
  --brand-100: #dddefd;
  --brand-200: #b4b6f8;
  --brand-300: #7478f1;
  --brand-500: #141ab8;
  --brand-600: #0b108e;
  --brand-700: #060a74;
  --brand-800: #040762;
  --brand-900: #010452;
  --gold-400: #e6b85c;
  --gold-500: #d4a03c;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* Utilities */
.text-brand-500 { color: var(--brand-500) !important; }
.text-brand-700 { color: var(--brand-700) !important; }
.text-brand-800 { color: var(--brand-800) !important; }
.text-brand-900 { color: var(--brand-900) !important; }
.text-brand-100 { color: var(--brand-100) !important; }
.text-brand-200 { color: var(--brand-200) !important; }
.text-gold { color: var(--gold-500) !important; }
.bg-brand-50 { background-color: var(--brand-50) !important; }
.bg-brand-800 { background-color: var(--brand-800) !important; }
.bg-brand-900 { background-color: var(--brand-900) !important; }
.section { padding: 4rem 0; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-500); margin-bottom: 0.25rem; }
.lead-copy { line-height: 1.7; color: #4b5563; }

/* Buttons */
.btn-gold, .btn-brand {
  border-radius: 50rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: #fff;
  border: none;
}
.btn-gold { background-color: var(--gold-500); }
.btn-gold:hover, .btn-gold:focus { background-color: var(--gold-400); color: #fff; }
.btn-brand { background-color: var(--brand-600); }
.btn-brand:hover, .btn-brand:focus { background-color: var(--brand-700); color: #fff; }

/* Navbar */
.site-header { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.site-header .navbar-brand img { height: 48px; width: auto; }
.site-header .nav-link { color: var(--brand-900); font-weight: 500; }
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--brand-600); }
.site-header .nav-link.active { color: var(--brand-700); }
.site-header .dropdown-menu { border-color: var(--brand-100); min-width: 12rem; }
.site-header .dropdown-item { font-size: 0.875rem; color: var(--brand-900); padding: 0.5rem 1rem; }
.site-header .dropdown-item:hover { background-color: var(--brand-50); color: var(--brand-700); }
.site-header .dropdown-item.active { background-color: transparent; color: var(--brand-700); font-weight: 600; }

@media (min-width: 992px) {
  .site-header .navbar-nav { gap: 1.5rem; }
  .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { border-top: 1px solid var(--brand-100); margin-top: 0.75rem; padding-top: 0.5rem; }
  .site-header .dropdown-menu { border: 0; border-left: 1px solid var(--brand-100); border-radius: 0; margin-left: 1rem; padding: 0 0 0 0.25rem; box-shadow: none !important; }
  .site-header .dropdown-item { color: var(--brand-700); }
}

/* Home hero */
.home-hero {
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(26, 59, 38, 0.75), rgba(26, 59, 38, 0.85)), url("../images/hero-1.jpg");
  padding: 7rem 1rem;
  text-align: center;
  color: #fff;
}

/* Inner page hero */
.page-hero {
  background-color: var(--brand-800);
  background-image: url("../images/about-3.jpg");
  background-size: cover;
  background-position: center top;
  color: #fff;
  text-align: center;
}
.page-hero .overlay {
  background-color: rgba(1, 4, 82, 0.6);
  padding: 13rem 1rem;
}
.page-hero p { color: var(--brand-100); max-width: 42rem; margin: 1rem auto 0; }

@media (max-width: 575.98px) {
  .page-hero .overlay { padding: 8rem 1rem; }
}

/* Cards */
.value-card { background: #fff; border-radius: 0.5rem; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); height: 100%; }
.program-card { background-color: var(--brand-900); border-radius: 0.5rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); height: 100%; }
.program-card img { height: 12rem; width: 100%; object-fit: cover; }
.info-card { border: 1px solid var(--brand-100); border-radius: 0.5rem; padding: 1.5rem; height: 100%; }
.cause-item { background-color: var(--brand-50); border-radius: 0.5rem; padding: 1rem; color: #374151; display: flex; gap: 0.75rem; align-items: flex-start; height: 100%; }
.cause-item .dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--gold-500); flex-shrink: 0; margin-top: 0.5rem; }

/* Five-column core values on large screens */
@media (min-width: 992px) {
  .col-lg-fifth { flex: 0 0 auto; width: 20%; }
}

.founder-photo { width: 14rem; height: 14rem; border-radius: 50%; border: 4px solid #fff; object-fit: cover; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); flex-shrink: 0; }

/* Gallery */
.gallery-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: opacity 0.2s; }
.gallery-img:hover { opacity: 0.9; }

/* Forms */
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--brand-900); }
.form-control { border-color: #d1d5db; padding: 0.5rem 1rem; }
.form-control:focus { border-color: var(--brand-500); box-shadow: none; }

/* Footer */
.site-footer { background-color: #111827; color: var(--brand-100); }
.site-footer h3 { color: #fff; font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer .footer-logo { height: 56px; width: auto; background: #fff; border-radius: 0.25rem; padding: 0.25rem; }
.site-footer a { color: var(--brand-200); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand-700);
  color: var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-footer .social a:hover { background-color: var(--gold-500); color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid var(--brand-700); color: var(--brand-300); font-size: 0.875rem; }
