/* =========================================================
   BIG PRAYER MUSEUM — COMPACT SUBPAGE FOOTER
   ========================================================= */

#bpm-subpage-footer,
#bpm-subpage-footer * {
  box-sizing: border-box;
}

#bpm-subpage-footer {
  --bsf-black: #050607;
  --bsf-black-soft: #090a0b;
  --bsf-gold: #d7a91f;
  --bsf-gold-light: #f2c33d;
  --bsf-white: #f6f3ec;
  --bsf-muted: #c2bfb8;
  --bsf-line: rgba(215, 169, 31, 0.34);

  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--bsf-white);
  background: var(--bsf-black);
  border-top: 1px solid var(--bsf-gold);
  font-family: "Inter", Arial, sans-serif;
}

#bpm-subpage-footer a {
  color: inherit;
  text-decoration: none;
}

#bpm-subpage-footer img {
  display: block;
  max-width: 100%;
}

.bsf-container {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

/* =========================================================
   OVERLAPPING TOP LOGO
   ========================================================= */

.bsf-top-seal {
  position: absolute;
  z-index: 5;
  top: -41px;
  left: 50%;
  width: 82px;
  height: 82px;
  padding: 6px;
  transform: translateX(-50%);
  background: var(--bsf-black);
  border-radius: 50%;
}

.bsf-top-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   UPPER FOOTER
   ========================================================= */

.bsf-main {
  padding: 67px 0 35px;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(215, 169, 31, 0.055),
      transparent 27%
    ),
    linear-gradient(135deg, #08090a 0%, #040506 60%, #08090a 100%);
}

.bsf-main-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.32fr)
    minmax(0, 0.68fr)
    minmax(0, 0.77fr)
    minmax(0, 0.88fr)
    minmax(0, 1.12fr);
  align-items: start;
  gap: 0;
}

.bsf-column {
  min-width: 0;
  padding: 0 28px;
}

.bsf-column:first-child {
  padding-left: 0;
}

.bsf-column:last-child {
  padding-right: 0;
}

.bsf-column + .bsf-column {
  border-left: 1px solid var(--bsf-line);
}

/* =========================================================
   BRAND
   ========================================================= */

.bsf-brand-lockup {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.bsf-brand-logo {
  width: 78px;
  min-width: 78px;
}

.bsf-brand-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 2.3vw, 39px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.6px;
}

.bsf-brand-title span {
  display: block;
  color: var(--bsf-gold-light);
}

.bsf-brand-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--bsf-white);
}

.bsf-brand-description {
  max-width: 340px;
  margin: 0;
  color: #d8d5cf;
  font-size: 13.5px;
  line-height: 1.65;
}

.bsf-map-message {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 340px;
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid var(--bsf-line);
}

.bsf-map-icon {
  display: flex;
  flex: 0 0 39px;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 49px;
  color: var(--bsf-gold-light);
}

.bsf-map-icon svg {
  width: 37px;
  height: 47px;
}

.bsf-map-copy {
  color: #dedbd5;
  font-size: 12px;
  line-height: 1.5;
}

.bsf-map-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--bsf-gold-light);
  font-size: 14px;
}

/* =========================================================
   HEADINGS AND LINKS
   ========================================================= */

.bsf-heading {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 10px;
  color: var(--bsf-gold-light);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.bsf-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  content: "";
  background: var(--bsf-gold);
}

.bsf-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsf-links a {
  display: inline-block;
  color: #dad7d1;
  font-size: 13px;
  line-height: 1.35;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.bsf-links a:hover,
.bsf-links a:focus-visible {
  color: var(--bsf-gold-light);
  transform: translateX(3px);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */

.bsf-newsletter-copy {
  max-width: 320px;
  margin: 0 0 16px;
  color: #d2cfc9;
  font-size: 13px;
  line-height: 1.58;
}

.bsf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bsf-newsletter-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--bsf-white);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(215, 169, 31, 0.56);
  border-radius: 7px;
  outline: none;
  font-family: inherit;
  font-size: 12px;
}

.bsf-newsletter-form input::placeholder {
  color: #a9a69f;
}

.bsf-newsletter-form input:focus {
  border-color: var(--bsf-gold-light);
  box-shadow: 0 0 0 3px rgba(215, 169, 31, 0.09);
}

.bsf-newsletter-form button {
  min-height: 46px;
  padding: 0 17px;
  cursor: pointer;
  color: #111;
  background: linear-gradient(
    105deg,
    #dca51e 0%,
    #f1c746 50%,
    #dca51e 100%
  );
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.bsf-newsletter-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.bsf-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #aaa7a0;
  font-size: 11px;
}

.bsf-privacy svg {
  width: 14px;
  height: 14px;
  color: var(--bsf-gold-light);
}

/* =========================================================
   BOTTOM FOOTER
   ========================================================= */

.bsf-bottom {
  padding: 27px 0 28px;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(215, 169, 31, 0.045),
      transparent 35%
    ),
    #050607;
  border-top: 1px solid var(--bsf-gold);
}

.bsf-bottom-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.83fr)
    minmax(0, 1.46fr)
    minmax(0, 0.92fr);
  align-items: stretch;
  gap: 0;
}

.bsf-bottom-column {
  min-width: 0;
  padding: 0 38px;
}

.bsf-bottom-column:first-child {
  padding-left: 0;
}

.bsf-bottom-column:last-child {
  padding-right: 0;
}

.bsf-bottom-column + .bsf-bottom-column {
  border-left: 1px solid var(--bsf-line);
}

/* Legal */

.bsf-legal-name {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  color: var(--bsf-white);
  font-size: 13px;
}

.bsf-legal-name svg {
  width: 22px;
  height: 22px;
  color: var(--bsf-gold-light);
}

.bsf-legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #d5d2cc;
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
}

/* Center */

.bsf-center {
  text-align: center;
}

.bsf-copyright {
  margin: 1px 0 11px;
  color: #dfdcd6;
  font-size: 12px;
}

.bsf-identity {
  margin: 0 0 13px;
  color: #d6d3cc;
  font-size: 12px;
  line-height: 1.5;
}

.bsf-domains {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 17px;
}

.bsf-domains a {
  color: var(--bsf-gold-light) !important;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.bsf-domains a:hover {
  color: #fff !important;
}

/* CTA */

.bsf-court-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 590px;
  padding: 0 21px;
  overflow: hidden;
  color: #111 !important;
  background:
    radial-gradient(
      circle at 48% 12%,
      rgba(255, 255, 255, 0.37),
      transparent 35%
    ),
    linear-gradient(
      105deg,
      #d49b18 0%,
      #f0c64b 50%,
      #d79e18 100%
    );
  border: 1px solid #e7b93b;
  border-radius: 7px;
  box-shadow: 0 12px 27px rgba(0, 0, 0, 0.25);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.bsf-court-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.bsf-court-part {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.55px;
  white-space: nowrap;
  text-transform: uppercase;
}

.bsf-court-part:first-child {
  border-right: 1px solid rgba(17, 17, 17, 0.64);
}

.bsf-court-part svg {
  width: 21px;
  height: 21px;
}

/* Contact */

.bsf-contact-heading {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 9px;
  color: var(--bsf-gold-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.bsf-contact-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  content: "";
  background: var(--bsf-gold);
}

.bsf-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsf-contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #ddd9d3;
  font-size: 12px;
  line-height: 1.45;
}

.bsf-contact-list svg {
  width: 17px;
  height: 17px;
  color: var(--bsf-gold-light);
}

.bsf-contact-list a:hover {
  color: var(--bsf-gold-light);
}

.bsf-phone {
  color: #29a9fa !important;
}

/* Small social icons below address */

.bsf-socials {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding-left: 27px;
}

.bsf-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: var(--bsf-gold-light) !important;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.bsf-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.bsf-social-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

/* Accessibility */

.bsf-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .bsf-container {
    width: min(100% - 42px, 980px);
  }

  .bsf-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 35px;
  }

  .bsf-brand-column {
    grid-column: 1 / -1;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--bsf-line);
  }

  .bsf-brand-lockup {
    max-width: 420px;
  }

  .bsf-brand-description,
  .bsf-map-message {
    max-width: 600px;
  }

  .bsf-brand-column + .bsf-column {
    border-left: 0;
  }

  .bsf-column {
    padding: 0 20px;
  }

  .bsf-main-grid > .bsf-column:nth-child(3),
  .bsf-main-grid > .bsf-column:nth-child(4),
  .bsf-main-grid > .bsf-column:nth-child(5) {
    border-left: 1px solid var(--bsf-line);
  }

  .bsf-bottom-column {
    padding: 0 25px;
  }

  .bsf-court-part {
    padding: 0 12px;
    letter-spacing: 1.1px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .bsf-container {
    width: min(100% - 30px, 620px);
  }

  .bsf-top-seal {
    top: -34px;
    width: 68px;
    height: 68px;
  }

  .bsf-main {
    padding-top: 53px;
  }

  .bsf-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .bsf-brand-column {
    grid-column: 1 / -1;
  }

  .bsf-column {
    padding: 25px 15px;
    border-top: 1px solid var(--bsf-line);
    border-left: 0 !important;
  }

  .bsf-brand-column {
    padding: 0 0 25px;
    border-top: 0;
  }

  .bsf-main-grid > .bsf-column:nth-child(even) {
    border-right: 1px solid var(--bsf-line);
  }

  .bsf-newsletter-column {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-left: 0;
  }

  .bsf-bottom-grid {
    display: block;
  }

  .bsf-bottom-column {
    padding: 25px 0;
    border-left: 0 !important;
  }

  .bsf-bottom-column + .bsf-bottom-column {
    border-top: 1px solid var(--bsf-line);
  }

  .bsf-contact {
    max-width: 400px;
  }

  .bsf-socials {
    padding-left: 27px;
  }
}

@media (max-width: 500px) {

  .bsf-main-grid {
    display: block;
  }

  .bsf-column {
    padding: 24px 0;
    border-right: 0 !important;
  }

  .bsf-brand-lockup {
    align-items: flex-start;
  }

  .bsf-brand-logo {
    width: 68px;
    min-width: 68px;
  }

  .bsf-brand-title {
    font-size: 30px;
  }

  .bsf-domains {
    flex-direction: column;
    gap: 8px;
  }

  .bsf-domain-divider {
    display: none;
  }

  .bsf-court-cta {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }

  .bsf-court-part {
    min-height: 43px;
  }

  .bsf-court-part:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.55);
  }
}