/* Holy Spirit Led Tours | Brock public-site refinements | Parts 2 + 3, v3.6
   SAFE: page presentation only. Does not change registration, email, payment or QR code logic.
   Loaded at the end of includes/footer.php so it wins over existing inline page CSS.
*/

/* Part 2 - Footer: keep the integrated gold star logo, make it less dominant. */
#main-footer .sw-footer-logo-wrap {margin: 8px auto 15px !important;}
#main-footer .sw-footer-logo {
  width: min(78vw, 275px) !important;
  max-width: 275px !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  #main-footer .sw-footer-logo {width: min(76vw, 245px) !important;max-width: 245px !important;}
}

/* Part 2 - Plan A Trip desktop ONLY: less zoom on ship, less vertical scrolling.
   Do NOT modify the iPhone crop. */
@media (min-width: 901px) {
  body.plan-a-trip_php .planning-page > .page-header,
  body.plan-a-trip_php .planning-page > .page-header.hsl-native-photo {
    height: clamp(290px, 29vw, 415px) !important;
    min-height: 290px !important;
    max-height: 415px !important;
    aspect-ratio: auto !important;
    background-size: cover !important;
    background-position: center 27% !important;
  }
}

/* Part 2 - Make A Payment and Donate desktop. Native-image-ratio code can otherwise
   turn these headers into very tall banners on wide Mac screens. */
@media (min-width: 901px) {
  body.pricing_php .page-header,
  body.pricing_php .page-header.hsl-native-photo {
    height: clamp(265px, 25vw, 370px) !important;
    min-height: 265px !important;
    max-height: 370px !important;
    aspect-ratio: auto !important;
    padding-top: 0 !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: center 35% !important;
  }
  body.pricing_php .page-header[style*="jerusalem-donate"],
  body.pricing_php .page-header.hsl-native-photo[style*="jerusalem-donate"] {
    /* Reduce stretching by shortening the crop; true image clarity still depends
       on /images/jerusalem-donate.jpg being a high-resolution source. */
    height: clamp(260px, 23vw, 340px) !important;
    min-height: 260px !important;
    max-height: 340px !important;
    background-position: center 42% !important;
  }
}

/* Part 2 - Jesus mobile pricing area: two compact items on one row and the
   free-service invitation nearer to the top. Other tours are untouched. */
@media (max-width: 767px) {
  body.jesus_tour_php .tour-key-details-strip {
    padding: 6px 0 !important;
    border-top-width: 2px;
    border-bottom-width: 2px;
  }
  body.jesus_tour_php .tour-key-details-strip .details-strip-content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 4px 8px !important;
    align-items: center !important;
  }
  body.jesus_tour_php .tour-key-details-strip .key-detail-item {
    min-width: 0 !important;
    padding: 3px 4px !important;
    gap: 7px !important;
  }
  body.jesus_tour_php .tour-key-details-strip .key-detail-item i {font-size: 1.1rem !important;}
  body.jesus_tour_php .tour-key-details-strip .key-detail-item strong {font-size: .68rem !important;letter-spacing: .02em;}
  body.jesus_tour_php .tour-key-details-strip .key-detail-item span {font-size: .84rem !important;}
  body.jesus_tour_php .tour-intro-section.section {padding-top: 16px !important;padding-bottom: 12px !important;}
  body.jesus_tour_php .tour-intro-section .section-title {margin-bottom: 6px !important;}
  body.jesus_tour_php .special-note-section.section {padding-top: 6px !important;padding-bottom: 14px !important;}
}

/* Part 2 - Jesus exact red invitation, clearly visible on desktop and mobile. */
body.jesus_tour_php .hsl-free-service-title {
  color: #bf1e2e !important;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  font-weight: 800 !important;
  line-height: 1.35;
  margin: 0 0 9px !important;
}

/* Homepage BBB readability correction v3.6.2.
   Brock's Nov 5 request: smaller single-line, singly underlined heading;
   full-size official BBB image DIRECTLY UNDER heading, legible on white.
   The official dynamic BBB seal is not cropped, recolored or distorted.
*/
body.index_php .home-hero-footer.hsl-bbb-stacked,
.home-hero-footer.hsl-bbb-stacked {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 5px 10px 4px !important;
  gap: 0 !important;
}
.home-hero-footer .hsl-bbb-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
}
/* One compact line means the underline is ONE uninterrupted stroke. */
.home-hero-footer .home-guide-badge.hsl-guides-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
  padding: 4px 8px 5px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #e8f5ff !important;
  color: #1d4f80 !important;
  font: italic 700 13px/1.2 Georgia, 'Times New Roman', serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
  transform: none !important;
}
.home-hero-footer .home-guide-badge.hsl-guides-title *,
.home-hero-footer .home-guide-badge.hsl-guides-title::before,
.home-hero-footer .home-guide-badge.hsl-guides-title::after {
  text-decoration: none !important;
}
.home-hero-footer .home-guide-badge.hsl-guides-title::before,
.home-hero-footer .home-guide-badge.hsl-guides-title::after {
  content: none !important;
  display: none !important;
}
.home-hero-footer .hsl-guides-one-line {
  display: inline-block !important;
  border-bottom: 1px solid currentColor !important;
  padding-bottom: 1px !important;
  line-height: 1.13 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
/* Important: BBB's official 200x42 seal contains small lettering on the RIGHT.
   Reducing it to 124px and using a dark photo background made it unreadable.
   Preserve full 200px image width and place a plain WHITE backdrop behind it. */
.home-hero-footer .hsl-bbb-seal {
  display: block !important;
  flex: none !important;
  float: none !important;
  clear: both !important;
  position: static !important;
  box-sizing: content-box !important;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  background: #fff !important;
  border: 1px solid #e3e8ef !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.13) !important;
  line-height: 0 !important;
  text-align: center !important;
  filter: none !important;
  opacity: 1 !important;
}
.home-hero-footer .hsl-bbb-seal a {
  display: block !important;
  width: 200px !important;
  text-align: center !important;
  line-height: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}
.home-hero-footer .hsl-bbb-seal img {
  display: block !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  height: 42px !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  opacity: 1 !important;
  filter: none !important;
}
.home-hero-footer .hsl-bbb-seal .hsl-bbb-alt {
  display: block !important;
  font: 700 12px/1.4 Arial,sans-serif !important;
  color: #1d4f80 !important;
  text-decoration: underline !important;
  padding: 12px 0 !important;
}
@media (max-width: 767px) {
  body.index_php .home-hero-footer.hsl-bbb-stacked,
  .home-hero-footer.hsl-bbb-stacked {
    justify-content: center !important;
    padding: 4px 4px 3px !important;
  }
  .home-hero-footer .hsl-bbb-stack {gap: 3px !important;}
  .home-hero-footer .home-guide-badge.hsl-guides-title {
    font-size: 11.5px !important;
    padding: 4px 7px !important;
  }
  .home-hero-footer .hsl-bbb-seal {padding: 4px 7px !important;}
}
@media (max-width: 320px) {
  .home-hero-footer .home-guide-badge.hsl-guides-title {font-size: 10.5px !important;}
}

/* Nov 9 desktop hero repair: FULL-BLEED, center-focused image.
   The previous background-size:contain rule created narrow centered photos
   and blue sidebars. Cover fills each banner edge to edge. A shorter banner
   limits unavoidable crop while center/center preserves the primary subject.
   Applied only on desktop; existing mobile crop remains unchanged. */
@media (min-width: 901px) {
  body.plan-a-trip_php .planning-page > .page-header,
  body.plan-a-trip_php .planning-page > .page-header.hsl-native-photo,
  body.pricing_php .payment-page > .page-header,
  body.pricing_php .payment-page > .page-header.hsl-native-photo,
  body.pricing_php .page-header[style*="jerusalem-donate"],
  body.pricing_php .page-header.hsl-native-photo[style*="jerusalem-donate"] {
    width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}
/* Keep the official BBB mark intact, but smaller than the top call-to-action buttons. */
.home-hero-footer .hsl-bbb-seal {
  width: 150px !important; max-width: 150px !important; min-width: 150px !important;
  padding: 4px 6px !important;
}
.home-hero-footer .hsl-bbb-seal a { width: 150px !important; }
.home-hero-footer .hsl-bbb-seal img {
  width: 150px !important; min-width: 150px !important; max-width: 150px !important;
  height: auto !important; object-fit: contain !important;
}

/* Nov 9: Plan A Trip desktop hero focal adjustment.
   Keep full-bleed cover and reveal the upper area including the cruise ship.
   Override the shared center-center hero rule; other pages remain unchanged. */
@media (min-width: 901px) {
  body.plan-a-trip_php .planning-page > .page-header,
  body.plan-a-trip_php .planning-page > .page-header.hsl-native-photo {
    background-size: cover !important;
    background-position: center 12% !important;
    background-repeat: no-repeat !important;
  }
}
