/* ==========================================================================
   1. VARIABLES & RESETS
   ========================================================================== */
:root {
  --color-red: #d9232a;
  --color-blue: #00205b;
  --color-gold: #f5b324;
  --color-dark: #121212;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--color-dark); background: var(--color-white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Image sharpening and rendering enhancements */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-image,
.about-main-image img,
.about-small-image img,
.program-image img,
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  filter: contrast(102%) brightness(101%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   2. TOP BAR & HEADER
   ========================================================================== */
.top-bar { background: var(--color-blue); color: var(--color-white); padding: 0.5rem 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.top-bar-link { color: var(--color-gold); font-weight: 600; white-space: nowrap; }

.site-header { position: sticky; top: 0; background: var(--color-white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 100; padding: 0.8rem 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.brand-copy strong { font-size: 1.1rem; color: var(--color-blue); display: block; }
.brand-copy small { font-size: 0.75rem; color: var(--color-gray); }

.main-nav ul { display: flex; list-style: none; gap: 1.5rem; align-items: center; }

/* Hamburger Toggle */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-toggle.active span:nth-child(2) { opacity: 0; }
.hamburger-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   3. BUTTONS & SECTIONS
   ========================================================================== */
.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; transition: transform var(--transition-fast); text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-blue); color: var(--color-white); }
.btn-red { background: var(--color-red); color: var(--color-white); }
.btn-light { background: var(--color-white); color: var(--color-dark); border: 1px solid #ccc; }
.btn-gold { background: var(--color-gold); color: var(--color-dark); }
.full-width { width: 100%; margin-top: 1rem; }

.section-kicker { color: var(--color-red); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.section-heading { text-align: center; margin-bottom: 2rem; }

/* HERO */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; color: var(--color-white); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 32, 91, 0.75) 0%, rgba(0, 0, 0, 0.85) 100%); z-index: -1; }
.hero-content { max-width: 650px; padding: 4rem 1.25rem; }
.eyebrow { color: var(--color-gold); font-weight: 700; margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* STATS */
.stats-bar { background: var(--color-light); padding: 2rem 0; border-bottom: 1px solid #eee; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 1.5rem; }
.stat-item strong { font-size: 2rem; color: var(--color-red); display: block; }

/* ABOUT */
.about-section, .programs-section, .community-features, .contact-section { padding: 4rem 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; }
.about-images { position: relative; display: flex; gap: 1rem; }
.about-main-image { flex: 1; }
.about-main-image img { width: 100%; height: 320px; border-radius: var(--radius); }
.about-small-image img { width: 160px; height: 200px; border-radius: var(--radius); align-self: flex-end; }
.history-badge { position: absolute; top: -10px; right: -10px; background: var(--color-red); color: white; padding: 0.8rem; border-radius: var(--radius); text-align: center; }

/* PROGRAM CARDS */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.program-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); background: white; }
.program-image img { width: 100%; height: 200px; }
.program-content { padding: 1.5rem; }

/* COMMUNITY BANNERS & FLYERS */
.prayer-feature, .academy-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; background: var(--color-light); padding: 2rem; border-radius: var(--radius); margin-bottom: 2rem; align-items: center; }
.prayer-flyer img, .academy-image img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  background-color: #000000;
  border-radius: var(--radius);
}
.prayer-creole, .academy-creole { font-style: italic; color: var(--color-red); font-weight: 600; margin-bottom: 0.5rem; }
.prayer-times { margin: 1rem 0; padding: 0.8rem; background: var(--color-white); border-left: 4px solid var(--color-red); }
.academy-values { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.academy-values span { background: var(--color-blue); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; }

/* GALLERY & CONTACT */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gallery-grid img { width: 100%; height: 250px; border-radius: var(--radius); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 6px; }

/* MODAL & FLOATING BUTTON */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center; padding: 1rem; }
.modal-card { background: white; padding: 2rem; border-radius: var(--radius); max-width: 400px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 10px; right: 15px; border: none; background: none; font-size: 1.5rem; cursor: pointer; }
.donation-options { display: flex; gap: 0.5rem; margin: 1rem 0; }
.donation-options .btn { flex: 1; }
.floating-donate-btn { position: fixed; bottom: 20px; right: 20px; background: var(--color-red); color: white; border: none; padding: 0.8rem 1.4rem; border-radius: 50px; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.25); cursor: pointer; z-index: 99; }

/* FOOTER */
.site-footer { background: var(--color-dark); color: white; padding: 3rem 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }

/* ==========================================================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero { min-height: 55vh; }
  .prayer-feature, .academy-feature { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-content { flex-direction: column; text-align: center; }
  .hamburger-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .main-nav .btn { width: 100%; }

  .hero-content { padding: 3rem 1rem; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-buttons .btn { width: 100%; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-small-image { display: none; }
  .footer-container { flex-direction: column; text-align: center; }
}