/* ============================================================
   Bloomfield United Church — Master Stylesheet
   Design: Premium NPO / Church — Navy + Gold + Cream
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --navy:        #1a2744;
  --navy-dark:   #111b33;
  --navy-mid:    #223060;
  --gold:        #c9a84c;
  --gold-light:  #e2c975;
  --gold-dark:   #a8863b;
  --cream:       #fdf9f0;
  --cream-dark:  #f5ede0;
  --charcoal:    #3d3d3d;
  --text-mid:    #555;
  --text-light:  #888;
  --white:       #ffffff;
  --border:      rgba(201,168,76,0.2);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:   8px;
  --radius-lg: 16px;
  --shadow:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-md:0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:0 16px 50px rgba(0,0,0,0.18);

  --transition: 0.3s ease;
  --header-h:   88px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.8; }

/* Section labels */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: padding var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  transition: height var(--transition);
}

/* Scrolled state — header shrinks */
.site-header.scrolled { --header-h: 64px; box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.site-header.scrolled .header-inner { height: 64px; }
.site-header.scrolled .site-logo { width: 40px; height: 40px; }

/* Logo wrap */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo {
  width: 52px;
  height: 52px;
  transition: width var(--transition), height var(--transition);
  flex-shrink: 0;
}
.site-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(253,249,240,0.85);
  padding: 8px 10px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius);
  margin-left: 8px;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-cta-nav:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nav.open { max-height: 500px; }
.mobile-nav-list { padding: 16px 24px 24px; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav-list a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(253,249,240,0.85);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav-list a:hover, .mobile-nav-list a.active { color: var(--gold); padding-left: 8px; }
.mobile-nav-list .mobile-cta {
  display: inline-flex;
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-weight: 700;
  padding: 12px 24px !important;
  border-radius: var(--radius);
  margin-top: 12px;
}
.mobile-nav-list .mobile-cta:hover { background: var(--gold-light); padding-left: 24px !important; }

/* Hamburger active state */
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.6s ease;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,27,51,0.78) 0%, rgba(26,39,68,0.6) 60%, rgba(17,27,51,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.1rem; color: rgba(253,249,240,0.88); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Shorter hero for inner pages */
.hero-sm { min-height: 45vh; }
.hero-sm .hero-content { padding: 60px 0; }

/* ============================================================
   PAGE INTRO SECTION
   ============================================================ */
.page-intro {
  text-align: center;
  padding: 80px 0 60px;
  max-width: 700px;
  margin: 0 auto;
}
.page-intro h2 { color: var(--navy); margin-bottom: 16px; }
.page-intro p { font-size: 1.1rem; }

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-dark); }
.section-navy { background: var(--navy); }
.section-title { color: var(--navy); margin-bottom: 16px; }
.section-navy .section-title { color: var(--cream); }
.section-intro { max-width: 640px; margin-bottom: 48px; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.3rem; }
.card-body p { margin-bottom: 18px; font-size: 0.95rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gold-dark);
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 10px; color: var(--gold); }

/* Program cards with icon */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.program-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.program-card p { font-size: 0.93rem; margin-bottom: 16px; }

/* ============================================================
   MISSION STRIP
   ============================================================ */
.mission-strip {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.mission-strip blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  color: var(--cream);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.5;
  position: relative;
}
.mission-strip blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.35;
  position: absolute;
  top: -20px;
  left: -20px;
  line-height: 1;
  font-family: var(--font-heading);
}
.mission-strip cite { color: var(--gold); font-style: normal; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; }

/* ============================================================
   SERVICE TIMES STRIP
   ============================================================ */
.times-strip {
  background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 40px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.times-strip .container { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.time-item { text-align: center; }
.time-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.time-value { font-family: var(--font-heading); font-size: 1.4rem; color: var(--cream); font-weight: 600; }
.times-divider { width: 1px; height: 50px; background: rgba(201,168,76,0.3); }

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome-section { padding: 90px 0; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.welcome-img-wrap { position: relative; }
.welcome-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 480px;
  box-shadow: var(--shadow-lg);
}
.welcome-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.35;
}
.welcome-text h2 { color: var(--navy); margin-bottom: 20px; }
.welcome-text p { margin-bottom: 20px; }
.welcome-pillars { display: flex; gap: 24px; margin: 28px 0; flex-wrap: wrap; }
.pillar { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.pillar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ============================================================
   EVENTS PREVIEW
   ============================================================ */
.events-list { display: flex; flex-direction: column; gap: 20px; }
.event-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  align-items: flex-start;
}
.event-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.event-date-badge {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  width: 64px;
  text-align: center;
  padding: 10px 8px;
}
.event-date-badge .month { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: block; }
.event-date-badge .day   { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-info h4 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; }
.event-info p  { font-size: 0.9rem; margin-bottom: 0; }
.event-meta { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; display: flex; gap: 12px; }

/* ============================================================
   TIMELINE (History page)
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  border-radius: 2px;
}
.timeline-item { display: flex; gap: 36px; padding-left: 36px; margin-bottom: 56px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-year {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.2;
  padding-top: 2px;
}
.timeline-content { flex: 1; }
.timeline-content h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.timeline-content p { font-size: 0.95rem; }
.timeline-img { width: 100%; border-radius: var(--radius); margin-top: 16px; object-fit: cover; max-height: 250px; box-shadow: var(--shadow); }

/* ============================================================
   VALUES / ICONS ROW
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.value-item { padding: 28px 16px; }
.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(26,39,68,0.25);
}
.value-item h4 { color: var(--navy); margin-bottom: 8px; }
.value-item p  { font-size: 0.88rem; }

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 28px;
}
.leader-img-wrap { height: 200px; background: var(--navy); position: relative; }
.leader-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.leader-card h4 { color: var(--navy); margin: 20px 0 4px; font-size: 1rem; }
.leader-role { font-size: 0.8rem; font-weight: 600; color: var(--gold-dark); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   INFO BOX / CRA BADGE
   ============================================================ */
.info-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.info-box-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-box h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.info-box p  { color: rgba(253,249,240,0.85); font-size: 0.95rem; margin-bottom: 8px; }
.info-box strong { color: var(--cream); }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}
.testimonial p { font-style: italic; color: var(--text-mid); margin-bottom: 20px; padding-top: 16px; }
.testimonial-author { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.testimonial-role   { font-size: 0.8rem; color: var(--gold-dark); }

/* ============================================================
   GOOGLE MAP EMBED
   ============================================================ */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: none; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }

.form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-wrap h2 { color: var(--navy); margin-bottom: 8px; }
.form-intro { margin-bottom: 32px; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit { width: 100%; padding: 15px; font-size: 1rem; justify-content: center; }

.alert-success, .alert-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; border-left: 4px solid #2e7d32; color: #1b5e20; }
.alert-error   { background: #fce4ec; border-left: 4px solid #c62828; color: #7f0000; }

/* Contact info column */
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-box h3 { color: var(--navy); margin-bottom: 20px; font-size: 1.1rem; }
.ci-list { display: flex; flex-direction: column; gap: 16px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.ci-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: 3px; }
.ci-val   { font-size: 0.95rem; color: var(--charcoal); }
.ci-val a { color: var(--navy); font-weight: 500; transition: color var(--transition); }
.ci-val a:hover { color: var(--gold-dark); }

.directions-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--cream);
}
.directions-box h3 { color: var(--gold); margin-bottom: 14px; font-size: 1.1rem; }
.directions-box p  { color: rgba(253,249,240,0.85); font-size: 0.93rem; margin-bottom: 12px; }

/* ============================================================
   NEWS / EVENTS PAGE
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { font-size: 0.78rem; font-weight: 600; color: var(--gold-dark); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 12px; }
.news-card-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.news-card-body p  { font-size: 0.92rem; flex: 1; margin-bottom: 18px; }

/* Newsletter form inline */
.newsletter-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.newsletter-form-box h3 { color: var(--navy); margin-bottom: 10px; }
.newsletter-form-box p  { margin-bottom: 24px; }
.nl-fields { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.nl-fields input { flex: 1; min-width: 160px; padding: 13px 16px; border: 1.5px solid #ddd; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; background: var(--cream); transition: border-color var(--transition); }
.nl-fields input:focus { outline: none; border-color: var(--gold); }

/* ============================================================
   NEWSLETTER BAND (footer)
   ============================================================ */
.newsletter-band {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  padding: 60px 0;
  border-top: 3px solid var(--gold);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text { max-width: 440px; }
.newsletter-heading { font-family: var(--font-heading); font-size: 1.6rem; color: var(--cream); margin-bottom: 10px; }
.newsletter-text p  { color: rgba(253,249,240,0.75); font-size: 0.95rem; }
.newsletter-form { flex: 1; min-width: 300px; }
.newsletter-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-fields input {
  flex: 1;
  min-width: 150px;
  padding: 13px 16px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.newsletter-fields input::placeholder { color: rgba(253,249,240,0.5); }
.newsletter-fields input:focus { outline: none; border-color: var(--gold); }
.newsletter-note { font-size: 0.78rem; color: rgba(253,249,240,0.45); margin-top: 10px; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  font-weight: 600;
}

/* Footer brand */
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo { width: 48px; height: 48px; }
.footer-site-name { font-family: var(--font-heading); font-size: 1rem; color: var(--cream); font-weight: 700; line-height: 1.3; }
.footer-mission { color: rgba(253,249,240,0.7); font-size: 0.9rem; margin-bottom: 22px; line-height: 1.7; }

.footer-social { display: flex; gap: 12px; margin-bottom: 22px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
  transition: background var(--transition), transform var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }

.charity-badge { display: flex; align-items: flex-start; gap: 8px; }
.charity-badge span { font-size: 0.78rem; color: rgba(253,249,240,0.55); line-height: 1.5; }

/* Footer links */
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(253,249,240,0.7); transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }

/* Footer times */
.service-time-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 12px; }
.service-day  { font-size: 0.88rem; color: rgba(253,249,240,0.7); }
.service-hour { font-size: 0.82rem; font-weight: 600; color: var(--gold); text-align: right; }
.footer-more-link { display: inline-block; margin-top: 18px; font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); transition: color var(--transition); }
.footer-more-link:hover { color: var(--gold); }

/* Footer contact */
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list span, .contact-list a {
  font-size: 0.88rem;
  color: rgba(253,249,240,0.7);
  line-height: 1.55;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--gold); }
.footer-contact-btn { font-size: 0.82rem; padding: 10px 22px; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 22px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.footer-copy {
  font-size: 0.82rem;
  color: rgba(253,249,240,0.55);
}
.footer-copy a { color: var(--gold-dark); transition: color var(--transition); }
.footer-copy a:hover { color: var(--gold); }
.footer-legal { font-size: 0.75rem; color: rgba(253,249,240,0.35); }
.footer-legal a { color: rgba(253,249,240,0.5); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ============================================================
   PAGE BANNER (non-home hero)
   ============================================================ */
.page-banner {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 48px;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,27,51,0.90) 30%, rgba(26,39,68,0.55) 100%);
  z-index: 1;
}
.page-banner-content { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p  { color: rgba(253,249,240,0.8); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a, .breadcrumb span { font-size: 0.8rem; font-weight: 500; }
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: rgba(255,255,255,0.7); }

/* ============================================================
   WORSHIP PAGE SPECIFICS
   ============================================================ */
.worship-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.worship-detail-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
}
.worship-detail-box svg { color: var(--gold); margin-bottom: 14px; }
.worship-detail-box h4 { color: var(--navy); margin-bottom: 8px; }
.worship-detail-box p  { font-size: 0.88rem; }

.seasonal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.season-card { background: var(--navy); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.season-card h4 { color: var(--gold); margin-bottom: 8px; }
.season-card p  { color: rgba(253,249,240,0.75); font-size: 0.88rem; }

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col-text p { margin-bottom: 16px; }

/* ============================================================
   COMMUNITY PAGE
   ============================================================ */
.village-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.village-stat {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow);
}
.stat-number { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--gold); display: block; }
.stat-label  { font-size: 0.82rem; color: var(--text-mid); margin-top: 6px; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-cream  { color: var(--cream); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 48px 0; }
.divider-gold { border-top-color: rgba(201,168,76,0.3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .welcome-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .nav-list { display: none; }
  .btn-cta-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-img-wrap { max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col-text { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .hero { min-height: 60vh; }
  .hero-sm { min-height: 35vh; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .newsletter-inner { flex-direction: column; }
  .times-strip .container { gap: 32px; }
  .times-divider { display: none; }
  .timeline::before { left: 0; }
  .timeline-item { padding-left: 28px; }
  .timeline-year { width: 60px; font-size: 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-gold, .btn-outline, .btn-navy { width: 100%; justify-content: center; }
  .info-box { flex-direction: column; }
  .event-item { flex-direction: column; gap: 16px; }
  #back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
