/* ==========================================================================
   Concord Baptist Church - Modern Design System
   Inspired by Gayton Church & Lexington Baptist Church
   Color Theme: Concord Signature Blues (#08203e, #005fa3, #0077c8, #38bdf8)
   Mobile-First & 100% Fully Responsive (Strict Zero-Horizontal-Overflow)
   ========================================================================== */

:root {
  /* Brand Blues */
  --color-primary-dark: #08203e;      /* Deep Midnight Navy */
  --color-primary: #0b2e59;           /* Core Concord Navy */
  --color-primary-light: #164e87;     /* Medium Navy Accent */
  --color-brand-blue: #0077c8;        /* Vibrant Royal Blue */
  --color-brand-blue-hover: #005fa3;  /* Deep Royal Blue */
  --color-brand-sky: #38bdf8;         /* Bright Sky Highlight */
  --color-brand-sky-light: #f0f9ff;   /* Soft Ice Blue Tint */
  --color-brand-sky-border: #bae6fd;  /* Ice Blue Border */
  
  /* Accent Colors */
  --color-accent-amber: #d97706;      /* Subtle Warm Amber for Badges */
  --color-accent-gold: #fbbf24;
  --color-success: #16a34a;

  /* Neutral Surface & Text Colors */
  --color-bg-main: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-bg-dark: #07172b;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(11, 46, 89, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 46, 89, 0.08);
  --shadow-lg: 0 12px 30px rgba(11, 46, 89, 0.12);
  --shadow-xl: 0 20px 40px rgba(8, 32, 62, 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base & Reset (Strict Zero-Overflow)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
  word-break: break-word;
}

a:hover {
  color: var(--color-brand-blue-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section Common Spacing */
.section {
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 2.75rem 0;
  }
}

.section-bg-soft {
  background-color: var(--color-bg-soft);
}

.section-bg-muted {
  background-color: var(--color-bg-muted);
}

.section-bg-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--color-text-inverse);
}

.section-bg-dark p {
  color: #cbd5e1;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-blue);
  background-color: var(--color-brand-sky-light);
  border: 1px solid var(--color-brand-sky-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
  max-width: 100%;
}

.section-bg-dark .section-tag {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--color-brand-sky);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  max-width: 100%;
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

.btn-primary {
  background-color: var(--color-brand-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 119, 200, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-brand-blue-hover);
  box-shadow: 0 6px 18px rgba(0, 119, 200, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  border-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-brand-sky-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--color-brand-blue) !important;
  border-color: var(--color-brand-blue);
}

.btn-outline-blue:hover {
  background-color: var(--color-brand-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-give {
  background-color: #10b981;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-give:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.95rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Top Utility Bar (Announcement & Contact)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-primary-dark);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-bar-item a {
  color: #cbd5e1;
}

.top-bar-item a:hover {
  color: var(--color-brand-sky);
}

.top-bar-badge {
  background-color: rgba(56, 189, 248, 0.2);
  color: var(--color-brand-sky);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--color-brand-blue);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .top-bar {
    display: none; /* Keep mobile clean and focused */
  }
}

/* --------------------------------------------------------------------------
   Header & Sticky Navigation (Fixed for Mobile Screens)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}

@media (max-width: 480px) {
  .navbar {
    height: 64px;
  }
}

/* Church Logo & Brand */
.church-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(11, 46, 89, 0.2);
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-blue);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-emblem {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .brand-emblem svg {
    width: 17px;
    height: 17px;
  }
  .brand-name {
    font-size: 0.98rem;
    line-height: 1.15;
    white-space: normal;
    max-width: 165px;
  }
  .brand-tagline {
    display: none; /* Hide sub-tagline on narrow phone screens to ensure clean zero-overflow fit */
  }
}

@media (max-width: 375px) {
  .site-header .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .brand-emblem {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .brand-emblem svg {
    width: 15px;
    height: 15px;
  }
  .brand-name {
    font-size: 0.88rem;
    max-width: 140px;
    line-height: 1.15;
  }
}

/* Desktop Navigation Menu */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

@media (max-width: 1024px) {
  .nav-menu-desktop {
    display: none;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-blue);
  background-color: var(--color-brand-sky-light);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-brand-sky-light);
  color: var(--color-brand-blue);
  padding-left: 1.45rem;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav-btn-plan,
.d-none {
  display: none !important;
}

@media (min-width: 992px) {
  .nav-btn-plan,
  .d-md-inline-flex {
    display: inline-flex !important;
  }
}

.btn-text-short {
  display: none;
}

@media (max-width: 540px) {
  .btn-text-full {
    display: none;
  }
  .btn-text-short {
    display: inline;
  }
  .btn-give-navbar {
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background-color: var(--color-bg-muted);
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: flex;
  }
}

.hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.2px;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(6.9px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.9px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  background-color: #ffffff;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  z-index: 999;
  display: none;
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .mobile-drawer {
    top: 64px;
  }
}

.mobile-drawer.open {
  display: flex;
}

/* Drawer Sections */
.mobile-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.25rem 0.4rem 0.25rem;
  border-bottom: 2px solid var(--color-border-light);
}

.mobile-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-blue);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-item {
  border-radius: var(--radius-md);
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.mobile-nav-item.active {
  border-color: var(--color-brand-sky-border);
  background-color: var(--color-brand-sky-light);
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-grow: 1;
  text-decoration: none;
}

.mobile-nav-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.mobile-nav-link:hover, .mobile-nav-item.active .mobile-nav-link {
  color: var(--color-brand-blue);
}

.mobile-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem 0.95rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-submenu-toggle:hover {
  color: var(--color-brand-blue);
  background-color: rgba(0, 119, 200, 0.06);
}

.mobile-submenu-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.mobile-submenu-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0.25rem 0.75rem 0.75rem 2.45rem;
  display: none;
  border-top: 1px solid var(--color-border-light);
  background-color: #ffffff;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu-item a {
  display: block;
  padding: 0.5rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.mobile-submenu-item a:hover {
  color: var(--color-brand-blue);
}

/* Service Times & Location Card in Drawer */
.mobile-info-card {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.mobile-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #e2e8f0;
}

.mobile-info-row svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-sky);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.mobile-info-row strong {
  color: #ffffff;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(135deg, rgba(8, 32, 62, 0.92) 0%, rgba(11, 46, 89, 0.82) 50%, rgba(0, 119, 200, 0.65) 100%), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4.5rem 0 6.5rem 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 68vh;
    padding: 3rem 0 5rem 0;
  }
}

.hero-content {
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.68rem, 2.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  max-width: 95%;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.85rem, 6.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.hero-subtitle-lead {
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  color: var(--color-brand-sky);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-times-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: rgba(8, 32, 62, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  max-width: 95%;
  text-align: center;
}

.hero-lead {
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.85rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 540px) {
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Floating Quick-Info / Service Times Strip (Signature Lexington & Gayton)
   -------------------------------------------------------------------------- */
.quick-info-wrapper {
  position: relative;
  margin-top: -4rem;
  z-index: 20;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .quick-info-wrapper {
    margin-top: -2.5rem;
  }
}

.quick-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
}

@media (max-width: 640px) {
  .quick-info-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: center;
}

@media (max-width: 900px) {
  .quick-info-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.quick-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .quick-info-item {
    gap: 0.75rem;
  }
}

.quick-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-brand-sky-light);
  border: 1px solid var(--color-brand-sky-border);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .quick-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .quick-info-icon svg {
    width: 20px;
    height: 20px;
  }
}

.quick-info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.quick-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-blue);
  margin-bottom: 0.15rem;
}

.quick-info-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 0.15rem;
  overflow-wrap: break-word;
}

.quick-info-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

.quick-info-item:not(:last-child) {
  position: relative;
}

@media (min-width: 901px) {
  .quick-info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.85rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: var(--color-border);
  }
}

/* --------------------------------------------------------------------------
   About & "Where We Are" Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text-col .lead-paragraph {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.75rem 0;
}

@media (max-width: 600px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

.highlight-box {
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.highlight-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--color-brand-sky-light);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-box-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.highlight-box-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.highlight-box-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

@media (max-width: 540px) {
  .about-actions {
    flex-direction: column;
    width: 100%;
  }
  .about-actions .btn {
    width: 100%;
  }
}

.about-img-col {
  position: relative;
  max-width: 100%;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

.about-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .about-image-card img {
    height: 260px;
  }
}

.about-image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(8, 32, 62, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .about-image-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.75rem 0.85rem;
  }
  .about-image-badge h4 {
    font-size: 0.95rem !important;
  }
  .about-image-badge p {
    font-size: 0.76rem !important;
    line-height: 1.4;
  }
}

.about-image-badge h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.about-image-badge p {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   "What to Expect on Sunday Morning" (Plan Your Visit Guide)
   -------------------------------------------------------------------------- */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .expect-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.expect-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 640px) {
  .expect-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

.expect-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-sky-border);
}

.expect-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand-sky-light) 0%, #e0f2fe 100%);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.expect-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.expect-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.expect-card-body {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.expect-card-highlight {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   "What We Believe" Section (Core Doctrines)
   -------------------------------------------------------------------------- */
.beliefs-container {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.belief-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  min-width: 0;
}

@media (max-width: 640px) {
  .belief-card {
    padding: 1.15rem 1rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
  }
}

.belief-card:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.belief-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 46, 89, 0.2);
}

@media (max-width: 640px) {
  .belief-number {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
}

.belief-content {
  min-width: 0;
}

.belief-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.belief-content p {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.65;
}

/* Beliefs Grid (About Page 5 Pillars) */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

@media (max-width: 640px) {
  .belief-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.belief-grid .belief-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.belief-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand-sky-light) 0%, #e0f2fe 100%);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.belief-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.belief-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.belief-card-text {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.belief-reference {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  background-color: var(--color-brand-sky-light);
  border: 1px solid var(--color-brand-sky-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Scripture Banner Callout */
.scripture-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brand-blue) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .scripture-banner {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }
}

.scripture-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.scripture-banner cite {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-sky);
}

/* --------------------------------------------------------------------------
   Staff & Leadership Section
   -------------------------------------------------------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
    gap: 1.5rem;
  }
}

.staff-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  min-width: 0;
}

@media (max-width: 640px) {
  .staff-card {
    border-radius: var(--radius-md);
  }
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brand-sky-border);
}

.staff-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-brand-blue) 100%);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 640px) {
  .staff-header {
    padding: 1.5rem 1rem 1.25rem 1rem;
  }
}

.staff-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  margin: 0 auto 0.85rem auto;
  overflow: hidden;
  background-color: #ffffff;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-sky-light);
  color: var(--color-brand-blue);
  font-weight: 800;
  font-size: 1.75rem;
}

.staff-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.staff-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-sky);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.staff-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .staff-body {
    padding: 1.25rem 1rem;
  }
}

.staff-bio {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.staff-bio p {
  margin-bottom: 0.75rem;
}

.staff-contact {
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.85rem;
}

.staff-contact a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-brand-blue);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.staff-contact a:hover {
  text-decoration: underline;
}

/* Secondary Leadership Bar */
.leadership-bar {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  text-align: center;
}

@media (max-width: 768px) {
  .leadership-bar {
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }
}

.leadership-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leadership-item-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.leadership-item-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}

/* --------------------------------------------------------------------------
   Ministries & Community Service Section
   -------------------------------------------------------------------------- */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .ministries-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ministry-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 640px) {
  .ministry-card {
    border-radius: var(--radius-md);
  }
}

.ministry-card-banner {
  height: 190px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ministry-card-banner {
    height: 160px;
  }
}

.ministry-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ministry-card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.ministry-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .ministry-card-body {
    padding: 1.25rem 1rem;
  }
}

.ministry-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.ministry-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Midweek Activities Schedule Timeline */
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-brand-blue);
  min-width: 0;
}

@media (max-width: 540px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
  }
}

.timeline-time {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 75px;
}

@media (max-width: 540px) {
  .timeline-time {
    min-width: auto;
  }
}

.timeline-details {
  font-size: 0.88rem;
  color: var(--color-text-main);
  font-weight: 600;
  overflow-wrap: break-word;
}

.timeline-free-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background-color: #dcfce7;
  color: #15803d;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-left: 0.4rem;
  display: inline-block;
}

/* Food Distribution Feature Badge & Details */
.food-pantry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.food-pantry-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.food-pantry-info-box {
  background-color: var(--color-brand-sky-light);
  border: 1px solid var(--color-brand-sky-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .food-pantry-info-box {
    padding: 0.85rem;
  }
}

.food-pantry-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.food-pantry-info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.food-pantry-info-row:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Media: Sermons & Live Stream Section
   -------------------------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.media-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 640px) {
  .media-card {
    border-radius: var(--radius-md);
  }
}

.media-card-preview {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #000000;
}

@media (max-width: 640px) {
  .media-card-preview {
    height: 180px;
  }
}

.media-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.media-card:hover .media-card-preview img {
  transform: scale(1.04);
  opacity: 0.95;
}

.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: rgba(0, 119, 200, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.media-play-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  margin-left: 3px;
}

.media-card:hover .media-play-btn {
  background-color: var(--color-brand-blue);
  transform: translate(-50%, -50%) scale(1.1);
}

.media-live-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
}

.media-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.media-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .media-card-body {
    padding: 1.25rem 1rem;
  }
}

.media-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.55rem;
}

.media-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.media-card-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .media-card-actions {
    flex-direction: column;
    width: 100%;
  }
  .media-card-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Giving / Generosity Callout Section
   -------------------------------------------------------------------------- */
.giving-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .giving-section {
    padding: 2.25rem 1.15rem;
    margin: 1.75rem 0;
    border-radius: var(--radius-md);
  }
}

.giving-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.giving-title {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.giving-text {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   Location, Map & Directions Section
   -------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.location-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

@media (max-width: 640px) {
  .location-info-card {
    padding: 1.35rem 1rem;
    border-radius: var(--radius-md);
  }
}

.location-info-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.location-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--color-brand-sky-light);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-info-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.location-info-content {
  min-width: 0;
}

.location-info-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.location-info-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  min-height: 360px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .map-card {
    min-height: 280px;
    border-radius: var(--radius-md);
  }
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .map-card iframe {
    min-height: 280px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.75rem 0 1.5rem 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0.85rem 0 1.15rem 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--color-brand-sky);
  padding-left: 0.25rem;
}

.footer-schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-schedule-row span:first-child {
  color: #cbd5e1;
}

.footer-schedule-row span:last-child {
  color: var(--color-brand-sky);
  font-weight: 700;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

.footer-bottom a {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.footer-bottom a:hover {
  color: var(--color-brand-sky);
}

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-brand-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-brand-blue-hover);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Secondary Page Hero Header & Jump Navigation Pills
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 65%, var(--color-brand-blue) 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2.25rem 0 1.75rem 0;
  }
}

.page-hero-inner {
  max-width: 860px;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--color-brand-sky);
  margin-bottom: 0.75rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.page-breadcrumbs a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-breadcrumbs a:hover {
  color: var(--color-brand-sky);
}

.page-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero-lead {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.page-jump-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.jump-pill:hover {
  background: #ffffff;
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Homepage Pathway Feature Cards (Portals to Secondary Pages)
   -------------------------------------------------------------------------- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .pathway-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.pathway-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pathway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-sky));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-sky-border);
}

.pathway-card:hover::before {
  opacity: 1;
}

.pathway-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--color-brand-sky-light);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.pathway-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.pathway-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.pathway-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pathway-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  transition: gap var(--transition-fast);
}

.pathway-card:hover .pathway-link {
  color: var(--color-brand-blue-hover);
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   Pastor Spotlight Card on Homepage
   -------------------------------------------------------------------------- */
.pastor-spotlight {
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, #ffffff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .pastor-spotlight {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    text-align: center;
  }
}

.pastor-spotlight-img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .pastor-spotlight-img {
    height: 200px;
    max-width: 220px;
    margin: 0 auto;
  }
}



/* ==========================================================================
   ADDED FOR THE CLOUDFLARE VERSION
   1. Page pieces the original stylesheet was missing (staff cards, midweek
      timeline, live stream, sermon cards, "what to expect" icons, …)
   2. Notice bar, loading and message boxes
   3. Members area and the fellowship hall calendar
   4. Forms
   5. Admin area
   ========================================================================== */

/* ---- 1. Missing page pieces ------------------------------------------- */

.hero-badge svg, .hero-times-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm svg { width: 15px; height: 15px; }
.social-icon-btn svg { width: 16px; height: 16px; }
.top-bar-item svg { flex-shrink: 0; }

.lead-paragraph { font-size: 1.12rem; color: var(--color-text-main); }

.expect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.expect-card {
  background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.expect-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.expect-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-sky-light); color: var(--color-brand-blue); border: 1px solid var(--color-brand-sky-border); margin-bottom: 1rem;
}
.expect-icon svg { width: 24px; height: 24px; }
.expect-title { font-size: 1.12rem; margin-bottom: 0.5rem; }
.expect-text { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

.scripture-callout {
  margin: 2.5rem auto 0; max-width: 820px; text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius-lg); background: #ffffff; border: 1px solid var(--color-border); border-left: 5px solid var(--color-brand-blue);
  box-shadow: var(--shadow-sm);
}
.scripture-text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--color-primary); }
.scripture-ref { margin-top: 0.75rem; font-weight: 700; color: var(--color-brand-blue); font-size: 0.9rem; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; align-items: start; }
.staff-card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.staff-image-wrapper { position: relative; aspect-ratio: 4 / 3; background: var(--color-bg-muted); }
.staff-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.staff-role-badge {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--color-primary); color: #ffffff;
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); letter-spacing: 0.02em;
}
.staff-info { padding: 1.4rem 1.5rem 1.6rem; }
.staff-name { font-size: 1.3rem; margin-bottom: 0.15rem; }
.staff-title { color: var(--color-brand-blue); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.staff-bio p { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 0.75rem; }
.staff-contact { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border-light); font-size: 0.88rem; font-weight: 600; }
.staff-contact a { display: inline-flex; align-items: center; gap: 0.4rem; }

.leadership-bar {
  margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
  background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; text-align: center;
}
.leadership-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-blue); }
.leadership-name { font-weight: 700; color: var(--color-primary); }

.schedule-timeline { display: grid; gap: 1rem; max-width: 860px; margin: 0 auto; }
.timeline-card {
  display: flex; gap: 1.25rem; align-items: flex-start; background: #ffffff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.timeline-time-badge {
  flex-shrink: 0; width: 82px; height: 82px; border-radius: var(--radius-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: var(--color-primary); color: #ffffff; line-height: 1.1;
}
.time-hour { font-size: 1.5rem; font-weight: 800; }
.time-period { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--color-brand-sky); }
.timeline-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-blue); }
.timeline-title { font-size: 1.2rem; margin: 0.15rem 0 0.4rem; }
.timeline-desc { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.timeline-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text-main); }
.timeline-meta svg { flex-shrink: 0; color: var(--color-brand-blue); }
@media (max-width: 540px) {
  .timeline-card { flex-direction: column; }
  .timeline-time-badge { width: auto; height: auto; flex-direction: row; gap: 0.35rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-full); }
  .time-hour { font-size: 1.05rem; }
}

.ministry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.ministry-card .btn { margin-top: 1rem; }

.live-stream-box {
  background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.live-stream-header { text-align: center; max-width: 720px; margin: 0 auto 1.75rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
}
.live-pulse { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.live-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0.85rem 0 0.5rem; }
.live-desc { color: var(--color-text-muted); }
.live-channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.channel-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--color-bg-soft); text-align: center; }
.channel-icon-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.85rem; }
.channel-icon-circle svg { width: 26px; height: 26px; }
.channel-name { font-size: 1.15rem; margin-bottom: 0.4rem; }
.channel-info { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 1rem; }
.live-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.88rem; color: var(--color-text-muted); text-align: center; }
.live-note svg { flex-shrink: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin: 0 auto 1.75rem; max-width: 900px; background: #000; box-shadow: var(--shadow-md); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.media-thumbnail { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-primary-dark); }
.media-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.media-thumbnail:hover img { transform: scale(1.04); }
.media-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 32, 62, 0.35); }
.play-button-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--color-brand-blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.play-button-icon svg { width: 28px; height: 28px; margin-left: 3px; }
.media-card-date { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-blue); margin-bottom: 0.35rem; }
.media-card-speaker { font-weight: 600; font-size: 0.9rem; color: var(--color-text-main); margin-bottom: 0.5rem; }
.subscribe-box { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.subscribe-box h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.subscribe-box p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto 1.25rem; }
.subscribe-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.giving-lead { color: #e2e8f0; font-size: 1.05rem; max-width: 680px; margin: 0 auto 1.5rem; }

.footer-heading { color: #ffffff; font-size: 1rem; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-contact-item { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: #cbd5e1; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--color-brand-sky); }
.footer-contact-item a { color: #e2e8f0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-links a { color: #cbd5e1; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); max-width: 1000px; margin: 0 auto; }

.pathway-desc p { margin-bottom: 0.6rem; }

/* ---- 2. Notice bar, loading, messages ---------------------------------- */

.site-notice { background: var(--color-accent-gold); color: var(--color-primary-dark); font-weight: 700; font-size: 0.92rem; text-align: center; padding: 0.55rem 0; }
.site-notice a { color: var(--color-primary-dark); text-decoration: underline; }
.page-loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }

.notice { border-radius: var(--radius-md); padding: 0.85rem 1.1rem; margin: 0 0 1.25rem; font-weight: 600; font-size: 0.95rem;
  background: var(--color-bg-muted); color: var(--color-text-main); border: 1px solid var(--color-border); }
.notice-ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.notice-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.notice[hidden] { display: none; }
.muted { color: var(--color-text-muted); }

.pill { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; padding: 0.15rem 0.6rem; border-radius: var(--radius-full); vertical-align: middle; border: 1px solid transparent; }
.pill-pending { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill-approved { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pill-denied { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.pill-cancelled, .pill-muted { background: var(--color-bg-muted); color: var(--color-text-muted); border-color: var(--color-border); }

.panel { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.panel-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
details.panel > summary { cursor: pointer; list-style: revert; }
details.panel > summary.panel-title { margin-bottom: 0; }
details.panel[open] > summary.panel-title { margin-bottom: 1rem; }

/* ---- 3. Members area and hall calendar --------------------------------- */

.narrow { max-width: 860px; }
.page-hero-compact { padding: 2.5rem 0 2.25rem; }
a.on-dark { color: var(--color-brand-sky); text-decoration: underline; }
.jump-pill.active, .filter-pills .jump-pill.active { background: var(--color-brand-blue); border-color: var(--color-brand-blue); color: #ffffff !important; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-pills .jump-pill { background: #ffffff; border-color: var(--color-border); color: var(--color-primary) !important; cursor: pointer; font-family: var(--font-sans); }

.members-welcome { font-size: 1.05rem; margin-bottom: 1.5rem; }
.members-heading { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.hall-callout {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--color-brand-sky-light); border: 1px solid var(--color-brand-sky-border); color: var(--color-primary);
}
.hall-callout:hover { border-color: var(--color-brand-blue); color: var(--color-primary); }
.hall-callout svg { flex-shrink: 0; color: var(--color-brand-blue); }
.hall-callout > span { margin-left: auto; font-size: 1.4rem; color: var(--color-brand-blue); }

.announcement { border-left: 4px solid var(--color-brand-blue); background: var(--color-bg-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.announcement h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.announcement-date { font-size: 0.78rem; font-weight: 700; color: var(--color-brand-blue); text-transform: uppercase; letter-spacing: 0.05em; }

.doc-link { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.6rem; background: #ffffff; color: var(--color-text-main); }
.doc-link:hover { border-color: var(--color-brand-blue); background: var(--color-brand-sky-light); color: var(--color-text-main); }
.doc-link svg { flex-shrink: 0; color: var(--color-brand-blue); margin-top: 2px; }
.doc-title { font-weight: 700; color: var(--color-primary); }
.doc-meta { font-size: 0.83rem; color: var(--color-text-muted); }
.doc-desc { font-size: 0.9rem; margin-top: 0.25rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.contact-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; font-size: 0.92rem; background: #ffffff; }
.contact-name { font-weight: 700; color: var(--color-primary); }
.contact-role { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 0.35rem; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.cal-head h2 { font-size: 1.5rem; margin: 0; text-align: center; }
.cal-head .btn:disabled { opacity: 0.35; cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; font-size: 0.8rem; }
.cal-chip { display: inline-block; padding: 0.15rem 0.55rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.78rem; border: 1px solid transparent; }
.cal-church { background: var(--color-bg-muted); color: #475569; border-color: #cbd5e1; }
.cal-booked { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.cal-requested { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.cal-mine { box-shadow: inset 3px 0 0 #16a34a; }
.cal-legend .cal-mine { background: #ffffff; border-color: var(--color-border); color: var(--color-text-main); }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 1.75rem; }
.cal-dow { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); text-align: center; padding: 0.3rem 0; }
.cal-cell {
  min-height: 104px; min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #ffffff;
  padding: 0.35rem; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; font-family: var(--font-sans); color: var(--color-text-main);
}
.cal-cell:hover:not(:disabled) { border-color: var(--color-brand-blue); box-shadow: var(--shadow-sm); }
.cal-empty { background: transparent; border-color: transparent; cursor: default; }
.cal-past { background: var(--color-bg-soft); color: var(--color-text-light); cursor: default; }
.cal-past .cal-item { opacity: 0.55; }
.cal-today .cal-num { background: var(--color-brand-blue); color: #ffffff; border-radius: 50%; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; }
.cal-selected { border: 2px solid var(--color-brand-blue); background: var(--color-brand-sky-light); }
.cal-num { font-weight: 800; font-size: 0.85rem; }
.cal-item { display: block; font-size: 0.7rem; line-height: 1.25; padding: 2px 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid transparent; }
.cal-item.cal-church { background: var(--color-bg-muted); color: #475569; }
.cal-item.cal-booked { background: #dbeafe; color: #1e3a8a; }
.cal-item.cal-requested { background: #fef3c7; color: #92400e; }
.cal-time { font-weight: 800; }
@media (max-width: 640px) {
  .cal-grid { gap: 2px; }
  .cal-cell { min-height: 58px; padding: 0.2rem; align-items: center; }
  .cal-dow { font-size: 0.65rem; }
  /* On a phone, show a colored bar per item; the day panel has the words. */
  .cal-item { font-size: 0; height: 6px; width: 100%; padding: 0; }
  .cal-item.cal-church { background: #94a3b8; }
  .cal-item.cal-booked { background: #3b82f6; }
  .cal-item.cal-requested { background: #f59e0b; }
  .cal-mine { box-shadow: none; }
}

.hall-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .hall-layout { grid-template-columns: 1fr; } }
.day-list { list-style: none; margin-bottom: 1rem; }
.day-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.93rem; }
.request-form { border-top: 1px solid var(--color-border); margin-top: 1rem; padding-top: 1rem; }
.request-form h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.hall-rules { background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin: 1rem 0 0.75rem; max-height: 260px; overflow-y: auto; font-size: 0.9rem; }
.hall-rules h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.hall-rules p { margin-bottom: 0.6rem; }
.mine-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.92rem; }

/* ---- 4. Forms ------------------------------------------------------------ */

.field { margin-bottom: 1rem; }
.field label, .list-label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--color-primary); margin-bottom: 0.3rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=time],
.field input[type=number], .field input[type=search], .field input:not([type]), .field select, .field textarea,
.people-tools input, .person-name {
  width: 100%; font: inherit; font-size: 1rem; color: var(--color-text-main); background: #ffffff;
  border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus, .people-tools input:focus, .person-name:focus {
  outline: none; border-color: var(--color-brand-blue); box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.15);
}
.field input[type=file] { font: inherit; font-size: 0.95rem; }
.field-help { font-size: 0.83rem; color: var(--color-text-muted); margin-top: 0.3rem; margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.93rem; cursor: pointer; margin: 0.25rem 1rem 0.25rem 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-brand-blue); flex-shrink: 0; }
.field-check { display: flex; align-items: flex-end; padding-bottom: 0.6rem; }
.btn-danger { background: #dc2626; color: #ffffff !important; }
.btn-danger:hover { background: #b91c1c; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-link { background: none; border: none; padding: 0.25rem; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--color-brand-blue); cursor: pointer; text-decoration: underline; }
.btn-link-danger { color: #b91c1c; }

/* ---- 5. Admin area --------------------------------------------------------- */

body.admin { background: var(--color-bg-soft); padding-bottom: 6rem; }
.admin-bar { background: var(--color-primary-dark); color: #ffffff; }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.admin-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: #ffffff; font-weight: 800; }
.admin-brand:hover { color: var(--color-brand-sky); }
.admin-brand svg { color: var(--color-brand-sky); }
.admin-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9rem; }
.admin-links a { color: #cbd5e1; font-weight: 600; }
.admin-links a:hover { color: #ffffff; }
.admin-who { margin-left: auto; font-size: 0.82rem; color: #94a3b8; }
.admin-main { padding-top: 1.75rem; padding-bottom: 2rem; max-width: 1000px; }
.admin-title { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 0.4rem; }
.admin-lead { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.admin-subtitle { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.admin-hint { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 0.85rem; }
.admin-crumbs { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.admin-card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-xs); }
.admin-card h3 { font-size: 1.08rem; }
.admin-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.admin-card .btn { align-self: flex-start; margin-top: auto; }
.admin-count { font-size: 0.85rem; }

.edit-form { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); }
.form-heading { font-size: 1.1rem; margin: 1.75rem 0 1rem; padding-top: 1.25rem; border-top: 2px solid var(--color-border-light); color: var(--color-brand-blue); }
.edit-form > .form-heading:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.field-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.field-row > input, .field-row > select, .field-row > textarea { flex: 1 1 220px; min-width: 0; }
.icon-preview { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--color-brand-sky-light); color: var(--color-brand-blue); border: 1px solid var(--color-brand-sky-border); }
.image-preview { margin-bottom: 0.5rem; }
.image-preview img { max-height: 140px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.image-preview span { display: inline-block; font-size: 0.83rem; color: var(--color-text-light); padding: 0.75rem 1rem; border: 1px dashed #cbd5e1; border-radius: var(--radius-sm); }

.list-field { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; background: var(--color-bg-soft); }
.list-items { margin: 0.5rem 0 0.75rem; display: grid; gap: 0.5rem; }
.list-empty { font-size: 0.88rem; color: var(--color-text-muted); }
.list-item { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.list-item > summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; cursor: pointer; list-style: none; }
.list-item > summary::-webkit-details-marker { display: none; }
.list-item > summary::before { content: '▸'; color: var(--color-brand-blue); transition: transform var(--transition-fast); }
.list-item[open] > summary::before { transform: rotate(90deg); }
.list-item[open] > summary { border-bottom: 1px solid var(--color-border-light); }
.list-item-title { font-weight: 700; font-size: 0.93rem; color: var(--color-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-tools { display: flex; gap: 0.25rem; flex-shrink: 0; }
.icon-btn { font: inherit; font-size: 0.8rem; font-weight: 700; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: #ffffff; color: var(--color-primary); cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--color-brand-blue); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn-danger { color: #b91c1c; }
.list-item-body { padding: 1rem 1rem 0.25rem; }

.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(11, 46, 89, 0.08); }
.save-bar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding-top: 0.75rem; padding-bottom: 0.75rem; max-width: 1000px; }
.save-bar .notice { margin: 0 auto 0 0; padding: 0.45rem 0.8rem; font-size: 0.88rem; }

.doc-row { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.doc-main { flex: 1 1 320px; min-width: 0; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.doc-edit { flex-basis: 100%; border-top: 1px solid var(--color-border-light); padding-top: 0.85rem; }

.people-tools { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0 0.75rem; }
.people-tools input { max-width: 320px; }
.people-tools span { font-size: 0.88rem; color: var(--color-text-muted); }
.person-row { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.75rem 1rem; margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.person-main { flex: 1 1 240px; min-width: 0; }
.person-name { padding: 0.35rem 0.5rem; font-weight: 700; }
.person-email { font-size: 0.85rem; color: var(--color-text-muted); padding-left: 0.5rem; overflow-wrap: anywhere; }
.person-roles { display: flex; flex-wrap: wrap; }

.booking-card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; }
.booking-pending { border-left: 5px solid #f59e0b; }
.booking-muted { opacity: 0.8; }
.booking-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.5rem; }
.booking-title { font-weight: 800; font-size: 1.08rem; color: var(--color-primary); }
.booking-when { font-weight: 600; color: var(--color-brand-blue); font-size: 0.93rem; }
.booking-meta { font-size: 0.9rem; display: grid; gap: 0.2rem; margin-bottom: 0.75rem; }
.booking-details { background: var(--color-bg-soft); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; white-space: pre-wrap; }

/* ---- Fixes to the original stylesheet ------------------------------------ */
.staff-info .staff-name { color: var(--color-primary); }
.footer-schedule { list-style: none; }
.footer-schedule-row { gap: 1rem; }
.footer-schedule-row .time { white-space: nowrap; }
/* Keep menu words whole; make room on mid-size screens. */
.nav-link { white-space: nowrap; }
@media (min-width: 1025px) { .brand-name, .brand-tagline { white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1300px) {
  .nav-link { padding: 0.6rem 0.55rem; font-size: 0.88rem; }
  .brand-name { font-size: 1.05rem; }
}
.ministry-grid .ministry-card { position: relative; padding: 1.5rem; }
.ministry-grid .ministry-card-badge { position: static; align-self: flex-start; margin-bottom: 0.9rem; box-shadow: none; }
.ministry-grid .ministry-card-desc { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 1rem; }
.ministry-grid .ministry-card .btn { margin-top: auto; }
.food-pantry-info-row svg { flex-shrink: 0; margin-top: 2px; color: var(--color-brand-blue); }
details.panel > summary.panel-title { font-weight: 800; color: var(--color-primary); font-size: 1.1rem; }

/* ---- Events ----------------------------------------------------------------- */
.event-month-heading { font-size: 1.35rem; margin: 2rem 0 0.85rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--color-border-light); }
.event-month-heading:first-child { margin-top: 0; }
.event-card { display: flex; gap: 1.25rem; align-items: flex-start; background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.35rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); scroll-margin-top: 110px; }
.event-card:target { border-color: var(--color-brand-blue); box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.15); }
.event-date { flex-shrink: 0; width: 76px; border-radius: var(--radius-md); overflow: hidden; text-align: center; border: 1px solid var(--color-border); background: #ffffff; line-height: 1.1; }
.event-month { display: block; background: var(--color-primary); color: #ffffff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0; }
.event-day { display: block; font-size: 1.9rem; font-weight: 800; color: var(--color-primary); padding-top: 0.35rem; }
.event-dow { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); padding-bottom: 0.45rem; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-size: 1.25rem; margin-bottom: 0.4rem; }
.event-title a { color: var(--color-primary); }
.event-title a:hover { color: var(--color-brand-blue); }
.event-when, .event-where { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.93rem; font-weight: 600; color: var(--color-text-main); margin-bottom: 0.2rem; }
.event-when svg, .event-where svg { flex-shrink: 0; margin-top: 3px; color: var(--color-brand-blue); }
.event-where { color: var(--color-text-muted); font-weight: 500; }
.event-image { margin: 0.85rem 0 0.25rem; border-radius: var(--radius-md); max-height: 320px; width: auto; }
.event-desc { margin-top: 0.75rem; color: var(--color-text-main); }
.event-desc p { margin-bottom: 0.6rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.event-subscribe { margin-top: 2.5rem; }
.event-empty p { color: var(--color-text-muted); }
@media (max-width: 540px) {
  .event-card { padding: 1rem; gap: 0.9rem; }
  .event-date { width: 60px; }
  .event-day { font-size: 1.5rem; }
}

.home-events { padding-top: 3rem; padding-bottom: 1rem; }
.home-events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.home-events-head .section-title { margin-bottom: 0; }
.home-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.home-events-grid .event-card { margin-bottom: 0; height: 100%; }

/* ---- Larger text ------------------------------------------------------------ */
html.text-large { font-size: 19px; }
.text-size-btn { display: inline-flex; align-items: center; gap: 0.35rem; font: inherit; font-weight: 700; color: #e2e8f0; background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-full); padding: 0.15rem 0.7rem; cursor: pointer; }
.text-size-btn:hover, .text-size-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.text-size-icon { font-weight: 800; letter-spacing: -0.02em; }
.text-size-icon span { font-size: 1.25em; }
.text-size-drawer { width: 100%; font-family: var(--font-sans); cursor: pointer; }
.admin-bar .text-size-btn { font-size: 0.85rem; }
.top-bar-inner { flex-wrap: wrap; }
/* With larger text the full menu doesn't fit on mid-size screens; use the menu button instead. */
@media (max-width: 1440px) {
  html.text-large .nav-menu-desktop { display: none; }
  html.text-large .mobile-nav-toggle { display: flex; }
  html.text-large .nav-btn-plan { display: none !important; }
}
/* Keep the header on one line at every width: the email is in the footer and phone
   menu, and "Plan Your Visit" is on the home page and in the phone menu. */
.top-bar-email { display: none; }
.nav-actions .nav-btn-plan { display: none !important; }
/* Narrow laptops: the full menu doesn't fit next to the church name, so use the menu button. */
@media (max-width: 1180px) {
  .nav-menu-desktop { display: none; }
  .mobile-nav-toggle { display: flex; }
  .top-bar-address { display: none; }
}
