/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:        #1AABDC;
  --blue-dark:   #0D7FAD;
  --blue-deeper: #085573;
  --green:       #39B54A;
  --green-dark:  #2A8638;
  --white:       #ffffff;
  --bg:          #F3FAFD;
  --bg2:         #E4F4FA;
  --text:        #1a1a1a;
  --text-muted:  #566;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.09);
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
  background: var(--blue-deeper); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .logo-name { font-size: 1.25rem; font-weight: 800; color: white; letter-spacing: 2px; }
.nav-logo-text .logo-sub  { font-size: 0.65rem; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; line-height: 1.2; }
.nav-links { display: flex; gap: 0.4rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.95rem; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,0.15); }
.btn-donate-nav { background: var(--green) !important; color: white !important; font-weight: 700; }
.btn-donate-nav:hover { background: var(--green-dark) !important; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  min-height: 540px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 5rem 2rem;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-logo { width: 140px; height: auto; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.hero-content { position: relative; z-index: 1; max-width: 740px; }
.hero-sub { font-size: 1.7rem; color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; font-family: 'Times New Roman', serif; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: white; font-weight: 800; }
.hero h2 { font-size: clamp(1rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.75); margin: 0.4rem 0 1.2rem; font-weight: 400; }
.hero-desc { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary  { background: var(--green); color: white; font-weight: 700; padding: 0.75rem 2rem; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-primary:hover  { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.12); color: white; border: 2px solid rgba(255,255,255,0.45); font-weight: 600; padding: 0.75rem 2rem; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.22); }

/* ===== PRAYER SECTION ===== */
.prayer-section { background: white; padding: 3.5rem 2rem; }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--blue-deeper); margin-bottom: 1.5rem; text-align: center; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--green); margin: 0.5rem auto 0; border-radius: 2px; }
.date-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-left: 0.5rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; max-width: 920px; margin: 0 auto; }
.prayer-card { background: var(--bg); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; border: 2px solid transparent; transition: all 0.2s; }
.prayer-card.next-prayer { background: var(--blue-deeper); color: white; border-color: var(--blue); box-shadow: var(--shadow); }
.prayer-icon { font-size: 1.6rem; }
.prayer-name { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.prayer-card.next-prayer .prayer-name { color: rgba(255,255,255,0.75); }
.prayer-time { font-size: 1.3rem; font-weight: 700; color: var(--blue-deeper); }
.prayer-card.next-prayer .prayer-time { color: #7FDDFF; }
.next-badge { background: var(--green); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.prayer-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }
.prayer-loading, .prayer-error { text-align: center; color: var(--text-muted); padding: 2rem; grid-column: 1/-1; }

/* ===== INFO CARDS ===== */
.info-section { padding: 3.5rem 2rem; background: var(--bg); }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.card { background: white; border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); transition: transform 0.2s; border-top: 4px solid var(--blue); }
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-deeper); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--blue-dark); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.card-link:hover { color: var(--green); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--blue-deeper), var(--blue-dark)); padding: 3.5rem 2rem; text-align: center; color: white; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

/* ===== EVENTS PAGE ===== */
.events-section { padding: 3rem 2rem; }
.event-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; margin: 0 auto; }
.event-item { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; gap: 1.25rem; align-items: flex-start; border-left: 5px solid var(--blue); }
.event-date { background: var(--blue-deeper); color: white; border-radius: 8px; padding: 0.5rem 0.75rem; text-align: center; min-width: 56px; flex-shrink: 0; }
.event-day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.event-body h3 { font-weight: 700; color: var(--blue-deeper); margin-bottom: 0.25rem; }
.event-body p  { color: var(--text-muted); font-size: 0.9rem; }
.event-tag { display: inline-block; background: var(--bg2); color: var(--blue-dark); font-size: 0.75rem; font-weight: 600; border-radius: 20px; padding: 2px 10px; margin-top: 0.5rem; }
.announcements-section { background: white; padding: 3rem 2rem; }
.announcements-section .container { max-width: 760px; margin: 0 auto; }
.announcement { border-bottom: 1px solid #e8f0f4; padding: 1.25rem 0; }
.announcement:last-child { border-bottom: none; }
.announcement h4 { color: var(--blue-deeper); font-weight: 700; margin-bottom: 0.25rem; }
.announcement p { color: var(--text-muted); font-size: 0.9rem; }
.announcement-date { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-bottom: 0.25rem; }

/* ===== ABOUT PAGE ===== */
.about-section { padding: 3.5rem 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 920px; margin: 0 auto; align-items: start; }
.about-text h2 { color: var(--blue-deeper); font-size: 1.4rem; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.facilities-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.facility-badge { background: var(--bg2); color: var(--blue-dark); font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid #b8dff0; }
.contact-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.contact-card h2 { color: var(--blue-deeper); font-size: 1.3rem; margin-bottom: 1.25rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 2px; }
.contact-row a { color: var(--blue-dark); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; color: var(--green); }
.map-section { padding: 0 2rem 3.5rem; }
.map-section .container { max-width: 920px; margin: 0 auto; }
.map-section h2 { color: var(--blue-deeper); margin-bottom: 1rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 350px; border: none; }

/* ===== DONATE PAGE ===== */
.donate-section { padding: 3.5rem 2rem; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 920px; margin: 0 auto; }
.donate-info h2 { color: var(--blue-deeper); font-size: 1.4rem; margin-bottom: 1rem; }
.donate-info p { color: var(--text-muted); margin-bottom: 1rem; }
.donate-info blockquote { border-left: 4px solid var(--blue); padding: 0.75rem 1rem; background: white; border-radius: 0 8px 8px 0; font-style: italic; color: var(--blue-deeper); margin: 1.5rem 0; }
.donate-methods { display: flex; flex-direction: column; gap: 1.25rem; }
.donate-card { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--blue); }
.donate-card h3 { color: var(--blue-deeper); font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.donate-card p, .donate-card address { color: var(--text-muted); font-size: 0.9rem; font-style: normal; line-height: 1.8; }
.impact-section { background: var(--blue-deeper); color: white; padding: 3rem 2rem; text-align: center; }
.impact-section h2 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #7FDDFF; }
.impact-section p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-deeper); color: rgba(255,255,255,0.7); padding: 2.5rem 2rem; text-align: center; }
.footer-logo { height: 56px; width: auto; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.footer-brand span { font-size: 1.2rem; font-weight: 800; color: white; letter-spacing: 2px; }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin: 1rem 0; }
.footer-social a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--blue); }
.footer p { font-size: 0.85rem; margin-top: 0.25rem; }
.footer-copy { margin-top: 1rem !important; font-size: 0.75rem !important; color: rgba(255,255,255,0.35) !important; }

/* ===== UTILITIES ===== */
.container { max-width: 1100px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--blue-deeper); padding: 1rem 2rem; }
  .nav-links.open { display: flex; }
  .about-grid, .donate-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero-logo { width: 100px; }
}
