*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body.bfcu-body {
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  color: #101828;
}
a { color: #0c1d88; text-decoration: none; }
a:hover { color: #b28e36; }
img { max-width: 100%; height: auto; }
.bfcu-page { width: 100%; background: #fff; overflow-x: clip; }

.pcard { opacity: 0; transform: translateY(10px); transition: opacity 220ms ease-out, transform 220ms ease-out; pointer-events: none; }
.proghover:hover .pcard { opacity: 1; transform: none; pointer-events: auto; }
.bfcu-slot-img,
.proghover img,
.zoomwrap img,
.bfcu-hero img {
  --bfcu-tx: 0%;
  --bfcu-ty: 0%;
  --bfcu-s: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate(var(--bfcu-tx), var(--bfcu-ty)) scale(var(--bfcu-s));
  transform-origin: center center;
}
.proghover img { transition: transform 400ms ease-out; }
.proghover:hover img { transform: translate(var(--bfcu-tx), var(--bfcu-ty)) scale(calc(var(--bfcu-s) * 1.04)); }
.zoomwrap { display: block; }
.zoomwrap img { transition: transform 500ms ease-out; }
.zoomwrap:hover img { transform: translate(var(--bfcu-tx), var(--bfcu-ty)) scale(calc(var(--bfcu-s) * 1.05)); }

/* Promo cards: height from text column (prototype ~249px), image fills without expanding */
.bfcu-promo-card > .zoomwrap {
  position: relative;
  overflow: hidden;
  min-height: 0;
  align-self: stretch;
}
.bfcu-promo-card > .zoomwrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.bfcu-nav-online { color: #101828; }
.bfcu-nav-online:hover,
.bfcu-nav-item:hover { color: #b28e36; }

.bfcu-btn-gold:hover { filter: brightness(1.06); color: #0a1670; }
.bfcu-btn-navy:hover { background: #0a1670 !important; color: #fff; }
.bfcu-btn-white:hover { background: #f7f5ef !important; color: #101828; }
.bfcu-btn-ghost:hover { background: rgba(255,255,255,0.12) !important; color: #fff; }
.bfcu-btn-outline:hover { background: #f7f5ef !important; }
.bfcu-card-lift { transition: box-shadow 200ms ease-out, transform 200ms ease-out; }

/* Home tagline — desktop matches prototype (72 / 44) */
.bfcu-home-tagline {
  padding: 72px 48px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.bfcu-card-lift:hover { box-shadow: 0 16px 32px rgba(12,29,136,0.12); transform: translateY(-2px); }
.bfcu-enroll-cta:hover { background: #0a1670 !important; color: #fff; }
.bfcu-input:focus, .bfcu-select:focus, .bfcu-textarea:focus {
  outline: none;
  border-color: #0c1d88 !important;
}

.bfcu-chip { cursor: pointer; }
.bfcu-chip.is-active {
  background: #0c1d88;
  color: #fff;
  border: 1px solid #0c1d88;
}
.is-hidden { display: none !important; }

/* ===== Brand / header chrome ===== */
.bfcu-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9d2c3;
  border-radius: 12px;
  background: #fff;
  color: #0a1670;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.bfcu-menu-btn svg { width: 22px; height: 22px; display: block; }
.bfcu-menu-btn:focus-visible {
  outline: 2px solid #0c1d88;
  outline-offset: 2px;
}

.bfcu-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
}
.bfcu-mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}
.bfcu-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 112, 0.42);
  opacity: 0;
  transition: opacity 200ms ease;
}
.bfcu-mobile-nav.is-open .bfcu-mobile-nav__overlay { opacity: 1; }
.bfcu-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(10, 22, 112, 0.18);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 28px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 220ms ease;
}
.bfcu-mobile-nav.is-open .bfcu-mobile-nav__panel { transform: translateX(0); }
.bfcu-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.bfcu-mobile-nav__head strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  color: #0c1d88;
}
.bfcu-mobile-nav__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e0d4;
  background: #f7f5ef;
  color: #0a1670;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.bfcu-mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bfcu-mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 12px;
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
}
.bfcu-mobile-nav__links a:hover,
.bfcu-mobile-nav__links a:focus-visible {
  background: #f7f5ef;
  color: #0c1d88;
}
.bfcu-mobile-nav__links a.is-current {
  color: #0c1d88;
  background: #f7f5ef;
}
.bfcu-mobile-nav__links .bfcu-mobile-enroll {
  margin-top: 10px;
  justify-content: center;
  background: linear-gradient(180deg, #edcf76, #b28e36);
  color: #0a1670 !important;
  border-radius: 999px;
}

body.bfcu-nav-open { overflow: hidden; }

/* ===== Layout hooks (desktop keeps inline styles) ===== */
.bfcu-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.bfcu-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .bfcu-header-inner,
  .bfcu-util {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .bfcu-util {
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .bfcu-util-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 16px !important;
  }
  .bfcu-header-nav { display: none !important; }
  .bfcu-menu-btn { display: inline-flex !important; }
}

@media (max-width: 900px) {
  /* Safety net for unmarked desktop section padding */
  .bfcu-page > div[style*="padding: 88px"],
  .bfcu-page > div[style*="padding: 80px"],
  .bfcu-page > div[style*="padding: 72px"],
  .bfcu-page > div[style*="padding: 64px"],
  .bfcu-page > div[style*="padding: 60px"],
  .bfcu-page > div[style*="padding: 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .bfcu-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .bfcu-section-lg {
    padding: 48px 20px !important;
  }
  /* Prototype: [style*="padding: 72px 48px"] → 48px 20px at ≤900px */
  .bfcu-home-tagline {
    padding: 48px 20px !important;
  }
  .bfcu-section-pad {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .bfcu-grid-2,
  .bfcu-grid-3,
  .bfcu-grid-4,
  .bfcu-grid-aside,
  .bfcu-grid-split,
  .bfcu-grid-program-row,
  .bfcu-grid-timeline,
  .bfcu-form-grid,
  .bfcu-footer-grid,
  .bfcu-promo-card {
    grid-template-columns: 1fr !important;
  }
  .bfcu-promo-card > .zoomwrap {
    order: -1;
    min-height: 180px;
    height: 180px;
  }
  .bfcu-timeline-rail {
    display: none !important;
  }
  .bfcu-timeline-churches {
    margin-top: 28px !important;
  }

  .bfcu-span-full {
    grid-column: 1 / -1 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .bfcu-online-hero {
    height: auto !important;
    min-height: 420px !important;
  }
  .bfcu-online-hero > div[style*="width: 52%"] {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    inset: auto !important;
  }
  .bfcu-online-hero > div[style*="linear-gradient(90deg"] {
    display: none !important;
  }
  .bfcu-online-hero-content {
    position: relative !important;
    inset: auto !important;
    padding: 36px 20px !important;
    background: #0a1670;
  }

  .bfcu-grid-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: none !important;
  }
  .bfcu-grid-mosaic > [style*="grid-row: span 2"],
  .bfcu-grid-mosaic > .bfcu-span-2 {
    grid-row: auto !important;
  }

  .bfcu-grid-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 180px !important;
  }

  .bfcu-display,
  .bfcu-section h1,
  .bfcu-section-lg h1,
  .bfcu-section-lg h2,
  .bfcu-section h2.bfcu-display {
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.15 !important;
  }

  .bfcu-hero {
    height: min(52vw, 340px) !important;
    min-height: 220px !important;
    border-radius: 18px !important;
  }
  .bfcu-home-hero {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .bfcu-home-hero > img {
    position: relative !important;
    width: 100% !important;
    height: min(78vw, 440px) !important;
    min-height: 300px !important;
    flex: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .bfcu-home-hero-fade {
    display: none !important;
  }
  .bfcu-home-hero .bfcu-hero-ctas {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px 16px !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    background: #0a1670;
  }
  .bfcu-hero-ctas {
    left: 16px !important;
    bottom: 16px !important;
    right: 16px !important;
    flex-wrap: wrap !important;
  }

  .bfcu-band-row,
  .bfcu-legal-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .bfcu-legal-row {
    align-items: center !important;
    text-align: center !important;
  }
  .bfcu-legal-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .bfcu-footer {
    padding: 56px 20px 28px !important;
    gap: 36px !important;
    border-radius: 24px 24px 0 0 !important;
  }
  .bfcu-footer-grid {
    gap: 28px !important;
  }

  .bfcu-form-grid > [style*="grid-column: span 2"],
  .bfcu-form-grid .bfcu-span-2 {
    grid-column: 1 / -1 !important;
  }

  .bfcu-cta-row { width: 100%; }
  .bfcu-cta-row > a {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  /* Touch / no-hover: keep program cards usable */
  .proghover .pcard {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .bfcu-brand-crest { width: 48px !important; }
  .bfcu-brand-title { font-size: 15px !important; }
  .bfcu-util-address { display: none !important; }

  .bfcu-grid-mosaic,
  .bfcu-grid-gallery,
  .bfcu-footer-grid {
    grid-template-columns: 1fr !important;
  }

  .bfcu-grid-gallery {
    grid-auto-rows: 200px !important;
  }

  .bfcu-section-tight {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .bfcu-home-tagline {
    padding: 36px 16px 28px !important;
  }

  .bfcu-inner-pad {
    padding: 32px 20px !important;
  }

  .bfcu-hero-ctas > a {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 420px) {
  .bfcu-display,
  .bfcu-home-tagline .bfcu-display {
    font-size: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bfcu-mobile-nav__overlay,
  .bfcu-mobile-nav__panel,
  .pcard,
  .proghover img,
  .zoomwrap img {
    transition: none !important;
  }
}

@media (hover: none) {
  .proghover .pcard {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .proghover:hover img,
  .zoomwrap:hover img {
    transform: translate(var(--bfcu-tx), var(--bfcu-ty)) scale(var(--bfcu-s));
  }
}
