*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.navbar {
  padding: 0.85rem 0;
  background: var(--nav-bg);
}

.blur-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
}

.brand-logo { display: none; }
.brand-text {
  font-family: var(--display-font);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}
.brand-providence {
  color: var(--amber-flame, #ffba08);
}

.nav-link { color: var(--nav-text) !important; font-weight: 500; }
.nav-link:hover { color: #fff !important; }

.navbar .dropdown-menu {
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  box-shadow: 0 18px 40px var(--dropdown-shadow);
  backdrop-filter: blur(12px);
}

.navbar .dropdown-item {
  color: var(--dropdown-item-text);
  font-weight: 600;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--dropdown-item-hover-bg);
  color: var(--dropdown-item-hover-text);
}

.navbar .dropdown-divider {
  border-top-color: var(--dropdown-divider);
}

.btn-surface {
  background: var(--btn-surface-bg);
  color: #fff;
  border: 1px solid var(--btn-surface-border);
}
.btn-surface:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.hero-section {
  position: relative;
  padding: 8rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8) 40%, var(--hero-overlay-1) 70%, var(--hero-overlay-2) 100%),
    radial-gradient(circle at 15% 20%, var(--hero-spot-1), transparent 35%),
    radial-gradient(circle at 85% 25%, var(--hero-spot-2), transparent 40%),
    url('../img/pbc%20photo.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 85%);
  z-index: 0;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.page-hero {
  position: relative;
  padding: 7.5rem 0 3.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.78) 45%, var(--hero-overlay-1) 75%, var(--hero-overlay-2) 100%),
    radial-gradient(circle at 10% 15%, var(--hero-spot-1), transparent 40%),
    radial-gradient(circle at 80% 20%, var(--hero-spot-2), transparent 45%),
    url('../img/pbc%20photo.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.25;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.overlay-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  gap: 1.5rem;
}

.hero-label {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e5f5ff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7cfcff;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 252, 255, 0.4);
  animation: pulse 1.8s infinite ease-out;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.badge {
  background: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.08em;
  color: #e5f5ff;
}

.hero-card {
  border-radius: 18px;
  background: var(--surface);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light-cyan);
  color: var(--deep-twilight);
  font-size: 1.1rem;
}

.icon-circle.soft {
  background: var(--frosted-blue-2);
  color: var(--french-blue);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5fbff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(12px);
}

.hero-times li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: #dbeaf8;
  font-size: 0.95rem;
}

.hero-times li span {
  color: #b8d5ec;
}

.hero-times li:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-pill .bi-circle-fill {
  font-size: 0.65rem;
  color: #ff6b6b;
}

.avatar-stack {
  display: inline-flex;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.bg-surface {
  background: var(--frosted-blue);
}

.hero-meta {
  font-weight: 600;
}

.section-padding {
  padding: 3.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--french-blue);
  font-weight: 700;
}

.hero-section .badge,
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem !important;
}

.section-title {
  font-family: var(--display-font);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

.bg-soft-alt {
  background: linear-gradient(180deg, var(--surface-soft), var(--bg-body));
}

.feature-card,
.embed-card,
.feature-tile,
.newsletter-card,
.hero-card,
.map-card {
  position: relative;
  z-index: 0;
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    filter 180ms ease;
  box-shadow: 0 18px 45px var(--card-shadow), 0 10px 30px rgba(0, 0, 0, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .embed-card:hover,
  .feature-tile:hover,
  .newsletter-card:hover,
  .hero-card:hover,
  .map-card:hover,
  .feature-card:focus-within,
  .embed-card:focus-within,
  .feature-tile:focus-within,
  .newsletter-card:focus-within,
  .hero-card:focus-within,
  .map-card:focus-within {
    z-index: 3;
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 28px 70px var(--card-shadow), 0 18px 45px rgba(0, 0, 0, 0.09);
    filter: saturate(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .embed-card,
  .feature-tile,
  .newsletter-card,
  .hero-card,
  .map-card {
    transition: none;
    transform: none;
  }

  .feature-card:hover,
  .embed-card:hover,
  .feature-tile:hover,
  .newsletter-card:hover,
  .hero-card:hover,
  .map-card:hover,
  .feature-card:focus-within,
  .embed-card:focus-within,
  .feature-tile:focus-within,
  .newsletter-card:focus-within,
  .hero-card:focus-within,
  .map-card:focus-within {
    transform: none;
  }
}

.feature-card {
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.leader-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px var(--card-shadow);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.series-marriage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 186, 8, 0.24), rgba(250, 163, 7, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.95));
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.series-evangelistic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(144, 224, 239, 0.32), rgba(72, 202, 228, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  pointer-events: none;
  z-index: 0;
}

.series-1peter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98));
  pointer-events: none;
  z-index: 0;
}

.series-card {
  --series-hue: 210;
}

.series-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      hsla(var(--series-hue), 80%, 65%, 0.22),
      hsla(calc(var(--series-hue) + 22), 82%, 60%, 0.12)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.97));
  pointer-events: none;
  z-index: 0;
}

.feature-tile {
  position: relative;
  overflow: hidden;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 150, 199, 0.12), transparent 70%);
  pointer-events: none;
}

.link-arrow {
  color: var(--french-blue);
  font-weight: 600;
}

.link-arrow:hover {
  color: var(--deep-twilight);
}

.event-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
}

.event-date {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: var(--gradient-main);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 800;
}

.event-date .month {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.embed-responsive {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  border: 0;
}

.calendar-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 420px;
}

.calendar-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.quick-facts .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--french-blue);
}

.fact-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  height: 100%;
}

.embed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
}

.embed-card h5 {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.embed-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.embed-frame--month {
  height: 560px;
}

.announcement-card {
  min-height: 340px;
}

.placeholder-image {
  width: min(100%, 740px);
  height: 220px;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, rgba(2, 62, 138, 0.08) 0, rgba(2, 62, 138, 0.08) 12px, rgba(0, 118, 182, 0.18) 12px, rgba(0, 118, 182, 0.18) 24px);
  border: 1px dashed var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.announcement-img {
  max-width: min(100%, 740px);
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 28px var(--card-shadow);
}

.announcement-compact {
  padding: 1.5rem;
}

.announcement-compact .announcement-media {
  margin: 1rem -1.5rem -1.5rem;
  overflow: hidden;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.announcement-compact .announcement-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.calendar-page.section-padding {
  padding-top: 2.25rem;
}

.announcement-compact .section-title {
  font-size: 1.85rem;
}

.map-card {
  min-height: 320px;
  height: 320px;
  background: var(--surface-soft);
}

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

.give-page.section-padding {
  padding-bottom: 4.5rem;
}

.qr-code {
  max-width: 180px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px var(--card-shadow);
  background: #fff;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.newsletter-card.is-coming-soon {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.5));
  border-style: dashed;
  opacity: 0.8;
  filter: grayscale(0.65);
}

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-main);
}

.newsletter-card.is-coming-soon .form-control:disabled {
  background: rgba(0, 0, 0, 0.03);
}

.newsletter-card.is-coming-soon .btn:disabled {
  opacity: 0.55;
}

.feature-card.is-paused {
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.98));
  border-color: rgba(108, 117, 125, 0.35);
  filter: grayscale(1);
}

.feature-card.is-paused .coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 117, 125, 0.35);
  background: rgba(248, 249, 250, 0.9);
  color: rgba(73, 80, 87, 0.95);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  margin-bottom: 0.75rem;
}

.feature-card.is-paused .fact-card {
  opacity: 0.85;
}

.gallery-carousel {
  border-radius: 18px;
  background: var(--surface-soft);
}

.gallery-carousel .gallery-img {
  height: 360px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .gallery-carousel .gallery-img {
    height: 260px;
  }
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light-cyan);
  color: var(--deep-twilight);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--card-shadow);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.bank-details dt,
.bank-details dd {
  margin-bottom: 0.45rem;
}

.bank-details dt {
  font-weight: 700;
  color: var(--text-main);
}

.bank-details dd {
  color: var(--text-muted);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.calligraphy-banner {
  background: linear-gradient(180deg, rgba(144, 224, 239, 0.18), rgba(202, 240, 248, 0.06));
}

.calligraphy-text {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem);
  color: #0a1f33;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.theme-select {
  min-width: 150px;
}

.navbar .theme-select {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar .theme-select option {
  color: #0b1d36;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 7rem;
  }
}

@media (max-width: 575px) {
  .section-title {
    font-size: 1.75rem;
  }

  .navbar {
    background: var(--nav-bg-mobile, var(--nav-bg));
  }

  .navbar-brand {
    max-width: calc(100% - 3.75rem);
    flex-wrap: wrap;
  }

  .brand-text {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand img {
    max-height: 34px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 6rem 0 3.5rem;
    text-align: center;
  }
  .hero-card {
    margin-top: 2rem;
  }
  .hero-text {
    text-align: left;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .section-padding {
    padding: 2.75rem 0;
  }
  .embed-frame {
    height: 360px;
  }
  .embed-frame--month {
    height: 460px;
  }
  .feature-card {
    padding: 1.25rem;
  }
  .embed-card {
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  .brand-text {
    font-size: 2.4rem;
  }
}

/* Faith page specifics */
.faith-hero {
  position: relative;
  background: linear-gradient(180deg, var(--hero-overlay-1), var(--hero-overlay-2)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 5rem;
}

.faith-hero .topbar {
  background: var(--nav-bg);
  color: var(--nav-text);
  font-size: 0.9rem;
}

.faith-hero .topbar a {
  color: var(--nav-text);
}

.faith-hero .hero-card {
  background: rgba(255, 255, 255, 0.9);
}

.faith-pillars {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.faith-banner {
  background: var(--banner-bg);
  color: #fff;
  padding: 2.5rem 0;
}

.faith-banner .btn-light {
  background: #fff;
  color: var(--banner-bg);
  border-color: #fff;
}

.faith-feature {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px var(--card-shadow);
}

.faith-map {
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--card-shadow);
}

.faith-questions .accordion-button {
  font-weight: 700;
  color: var(--text-main);
}

.faith-questions .accordion-button:not(.collapsed) {
  background: var(--light-cyan);
  color: var(--text-main);
}

.faith-values .card {
  border: 1px solid var(--border);
}

.review-badge {
  background: var(--surface);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 10px 30px var(--card-shadow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.review-badge .stars {
  color: #f4b400;
}
