/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --primary:       #1B4F72;
  --primary-light: #2E86C1;
  --primary-dark:  #0d2c42;
  --accent:        #E67E22;
  --accent-light:  #F39C12;
  --teal:          #2AACAA;
  --teal-dark:     #1d8a88;
  --dark:          #1C2833;
  --gray:          #566573;
  --gray-light:    #AEB6BF;
  --light-bg:      #F4F6F8;
  --white:         #FFFFFF;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --radius:        0.5rem;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --transition:    all 0.3s ease;
}

/* ========================================
   Base & Typography
   ======================================== */
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--dark); line-height: 1.7; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ========================================
   Utilities
   ======================================== */
.text-accent  { color: var(--accent) !important; }
.bg-accent    { background-color: var(--accent) !important; }

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(230,126,34,0.35);
}

.btn-primary-solid {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary-solid:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
  font-weight: 600;
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.9rem 0 1.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ========================================
   Navbar — white, clean
   ======================================== */
#mainNav {
  background: #fff;
  padding: 0.6rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
#mainNav.scrolled {
  padding: 0.35rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
#mainNav .navbar-brand { padding: 0; line-height: 1; align-items: center; }

.navbar-logo {
  height: clamp(52px, 4.5vw, 60px);
  width: auto;
  transition: height 0.3s ease;
}
#mainNav.scrolled .navbar-logo {
  height: clamp(40px, 3.2vw, 46px);
}

.navbar-location {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  width: 100%;
  transition: opacity 0.3s ease;
}
#mainNav.scrolled .navbar-location { opacity: 0; height: 0; overflow: hidden; }

.footer-logo {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  opacity: 0.95;
}

.brand-bridges, .brand-of, .brand-hope { display: none; }

#mainNav .nav-link {
  color: var(--primary) !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.8rem;
  transition: var(--transition);
}
#mainNav .nav-link:hover  { color: var(--accent) !important; }
#mainNav .nav-link.active {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background:
    linear-gradient(rgba(13, 44, 67, 0.70), rgba(13, 44, 67, 0.70)),
    url('../images/community-2.jpg') center 35% / cover no-repeat;
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 0 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 540px;
}
.hero-content { position: relative; z-index: 1; }

.hero-emergency {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: inline-block;
}
.hero-emergency .phone {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* ========================================
   Quick Actions
   ======================================== */
.quick-actions {
  background: #fff;
  padding: 3rem 0;
  border-bottom: 1px solid #e8ecef;
}

.action-card {
  background: #fff;
  border: 1px solid #e0e6ec;
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.action-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.action-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.action-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.action-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* ========================================
   Impact Stats
   ======================================== */
.stats-section {
  background: var(--light-bg);
  padding: 3rem 0;
}

.stat-card { text-align: center; padding: 2rem 1rem; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ========================================
   About Snapshot
   ======================================== */
.about-section {
  padding: 4rem 0;
  background: #fff;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ========================================
   Services
   ======================================== */
.services-section { padding: 3.5rem 0; background: var(--light-bg); }

.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card-header {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 1.75rem;
}
.service-card-header h4 { color: #fff; margin-bottom: 0.25rem; font-size: 1.15rem; }
.service-card-header .badge-hours {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.service-card-body { padding: 1.5rem 1.75rem; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ========================================
   Bring a Meal
   ======================================== */
.meal-section { padding: 3.5rem 0; background: #fff; }

.meal-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.meal-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.meal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.meal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* ========================================
   Hours Banner
   ======================================== */
.hours-banner { background: var(--primary); color: #fff; padding: 2.5rem 0; }

.hours-item  { text-align: center; padding: 0.75rem 1.5rem; }
.hours-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}
.hours-time  { font-size: 1.3rem; font-weight: 700; font-family: var(--font-heading); }
.hours-note  { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.hours-divider { width: 1px; background: rgba(255,255,255,0.2); }

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section { padding: 4rem 0; background: var(--light-bg); }

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
}
.testimonial-card p { color: var(--gray); font-style: italic; position: relative; z-index: 1; }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem; left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.08;
  font-family: Georgia, serif;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
  background: var(--primary);
  padding: 3.5rem 0;
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}

/* ========================================
   From the Director
   ======================================== */
.director-section { padding: 4rem 0; background: #fff; }

/* ========================================
   Page Hero (inner pages)
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: clamp(110px, 14vw, 170px) 0 3.5rem;
  color: #fff;
}
.page-hero-chapel {
  background:
    linear-gradient(rgba(10,28,44,0.72), rgba(10,28,44,0.80)),
    url('../images/chapel.jpg') center 40% / cover no-repeat;
}
.page-hero-contact {
  background:
    linear-gradient(rgba(10,28,44,0.72), rgba(10,28,44,0.80)),
    url('../images/community-5.jpg') center 40% / cover no-repeat;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ========================================
   About Page
   ======================================== */
.value-card {
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--accent);
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.faith-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.faith-item i { margin-top: 0.2rem; font-size: 1.1rem; }

/* ========================================
   Contact Page
   ======================================== */
.contact-info-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
}

/* ========================================
   Footer
   ======================================== */
.footer-link {
  color: var(--gray-light);
  font-size: 0.88rem;
  display: block;
  padding: 0.18rem 0;
  transition: var(--transition);
}
.footer-link:hover   { color: var(--accent); }
.hover-accent:hover  { color: var(--accent) !important; }
footer .text-muted { color: var(--gray-light) !important; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
    text-align: center;
  }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-emergency { width: 100%; }
  .stat-card { padding: 1.25rem 0.5rem; }
  .action-card { padding: 1.5rem 1rem; }
}
