/* Boca Pool Servicing Conversion Layer v1.0.0
   Scoped styles only. No global resets. */

.bps-conversion-home-upgrade,
.bps-conversion-home-upgrade *,
.bps-conv-cta-panel,
.bps-conv-cta-panel *,
.bps-inline-blog-cta,
.bps-inline-blog-cta *,
.bps-global-trust-strip,
.bps-global-trust-strip *,
.bps-mobile-sticky-cta,
.bps-mobile-sticky-cta * {
  box-sizing: border-box;
}

.bps-conversion-home-upgrade {
  --bps-navy: #052235;
  --bps-deep: #031827;
  --bps-blue: #0477b8;
  --bps-cyan: #12c7d6;
  --bps-muted: #5d7184;
  --bps-border: rgba(5, 34, 53, 0.13);
  --bps-shadow: 0 24px 70px rgba(3, 24, 39, 0.12);
  padding: clamp(56px, 7vw, 94px) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(18,199,214,0.09), transparent 28%),
    radial-gradient(circle at 92% 74%, rgba(4,119,184,0.08), transparent 32%),
    #f8fbfc;
  color: var(--bps-navy);
}

.bps-conv-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.bps-conv-head {
  max-width: 850px;
  margin: 0 auto clamp(26px, 4vw, 46px);
  text-align: center;
}

.bps-conv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 199, 214, 0.14);
  color: #087383;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bps-conv-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12c7d6, #0477b8);
}

.bps-conv-head h2,
.bps-conv-cta-panel h2 {
  margin: 16px 0 14px;
  color: #052235;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.bps-conv-head p,
.bps-conv-cta-panel p {
  margin: 0;
  color: #5d7184;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}

.bps-conv-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.bps-conv-service-grid article {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(5, 34, 53, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(3, 24, 39, 0.075);
}

.bps-conv-service-grid span {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18, 199, 214, 0.12);
  color: #087383;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bps-conv-service-grid h3 {
  margin: 0 0 10px;
  color: #052235;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.bps-conv-service-grid p {
  margin: 0 0 18px;
  color: #5d7184;
  font-size: 15.5px;
  line-height: 1.58;
}

.bps-conv-service-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #052235;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
}

.bps-conv-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 0;
}

.bps-conv-process article {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(5, 34, 53, 0.11);
  background: rgba(255, 255, 255, 0.75);
}

.bps-conv-process strong {
  display: block;
  color: #052235;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bps-conv-process span {
  display: block;
  margin-top: 8px;
  color: #5d7184;
  font-size: 14.5px;
  line-height: 1.45;
}

.bps-conv-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1080px, calc(100% - 36px));
  margin: 48px auto 0;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(5, 34, 53, 0.12);
  box-shadow: 0 24px 70px rgba(3, 24, 39, 0.12);
}

.bps-conv-cta-panel h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.bps-conv-cta-actions,
.bps-inline-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bps-conv-btn,
.bps-inline-blog-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bps-conv-btn:hover,
.bps-conv-btn:focus-visible,
.bps-inline-blog-actions a:hover,
.bps-inline-blog-actions a:focus-visible {
  transform: translateY(-2px);
}

.bps-conv-btn-primary,
.bps-inline-blog-actions a:first-child {
  background: linear-gradient(135deg, #12c7d6, #0477b8);
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(18, 199, 214, 0.22);
}

.bps-conv-btn-secondary,
.bps-inline-blog-actions a:last-child {
  background: #052235;
  color: #ffffff !important;
}

.bps-inline-blog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(18, 199, 214, 0.22);
  background:
    radial-gradient(circle at 94% 8%, rgba(18,199,214,0.16), transparent 28%),
    #eefcff;
}

.bps-inline-blog-cta strong {
  display: block;
  color: #052235;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.bps-inline-blog-cta span {
  display: block;
  margin-top: 8px;
  color: #4d6478;
  font-size: 15px;
  line-height: 1.5;
}

.bps-global-trust-strip {
  padding: 18px 0;
  background: #052235;
  color: #ffffff;
}

.bps-global-trust-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bps-global-trust-wrap span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.bps-global-trust-wrap span::before {
  content: "✓";
  margin-right: 7px;
  color: #12c7d6;
  font-weight: 900;
}

.bps-mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99999;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(3, 24, 39, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 48px rgba(3, 24, 39, 0.36);
  backdrop-filter: blur(14px);
}

.bps-mobile-sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.bps-mobile-call {
  background: #052235;
}

.bps-mobile-quote {
  background: linear-gradient(135deg, #12c7d6, #0477b8);
}

/* Small typography cleanup for archives where excerpts repeat post titles. */
.blog article .entry-summary,
.archive article .entry-summary {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .bps-conv-service-grid,
  .bps-conv-process,
  .bps-conv-cta-panel,
  .bps-inline-blog-cta {
    grid-template-columns: 1fr;
  }

  .bps-conv-cta-actions,
  .bps-inline-blog-actions {
    width: 100%;
  }

  .bps-conv-btn,
  .bps-inline-blog-actions a {
    width: 100%;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  .bps-mobile-sticky-cta {
    display: grid;
  }

  .bps-conversion-home-upgrade {
    padding: 52px 0;
  }

  .bps-conv-wrap,
  .bps-conv-service-grid,
  .bps-conv-process,
  .bps-global-trust-wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .bps-conv-head {
    text-align: left;
  }

  .bps-conv-head h2,
  .bps-conv-cta-panel h2 {
    letter-spacing: -0.045em;
  }
}

/* Boca Pool Servicing Conversion Layer v1.1.0 visual upgrade */
.bps-home-visual-intro,
.bps-home-visual-intro *,
.bps-visual-trust-gallery,
.bps-visual-trust-gallery *,
.bps-context-photo-section,
.bps-context-photo-section * {
  box-sizing: border-box;
}

.bps-home-visual-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin: 0 auto clamp(46px, 6vw, 76px);
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(5, 34, 53, 0.12);
  box-shadow: 0 28px 80px rgba(3, 24, 39, 0.12);
}

.bps-home-visual-media,
.bps-context-photo-media {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #e9f7fb;
}

.bps-home-visual-media::after,
.bps-context-photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,24,39,0), rgba(3,24,39,0.10));
  pointer-events: none;
}

.bps-home-visual-media img,
.bps-context-photo-media img,
.bps-service-card-img,
.bps-visual-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.bps-home-visual-media img,
.bps-context-photo-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bps-home-visual-copy h2,
.bps-context-photo-copy h2 {
  margin: 16px 0 14px;
  color: #052235;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.bps-home-visual-copy p,
.bps-context-photo-copy p {
  margin: 0;
  color: #5d7184;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.58;
}

.bps-home-visual-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
}

.bps-home-visual-points span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  color: #12384f;
  font-size: 14.5px;
  font-weight: 850;
  line-height: 1.35;
}

.bps-home-visual-points span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(18, 199, 214, 0.15);
  color: #087383;
  font-weight: 950;
}

.bps-conv-head-spaced {
  margin-top: 0;
}

.bps-conv-service-grid article {
  overflow: hidden;
  padding: 0;
}

.bps-conv-service-grid article > span,
.bps-conv-service-grid article > h3,
.bps-conv-service-grid article > p,
.bps-conv-service-grid article > a {
  margin-left: clamp(22px, 3vw, 32px);
  margin-right: clamp(22px, 3vw, 32px);
}

.bps-conv-service-grid article > a {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.bps-service-card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 0 20px;
}

.bps-visual-trust-gallery {
  margin: clamp(30px, 5vw, 56px) auto 0;
}

.bps-visual-gallery-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 18px;
}

.bps-visual-gallery-head h3 {
  margin: 0;
  color: #052235;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.bps-visual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bps-visual-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(5, 34, 53, 0.12);
  box-shadow: 0 14px 34px rgba(3, 24, 39, 0.07);
}

.bps-visual-gallery-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bps-visual-gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: #12384f;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 850;
}

.bps-context-photo-section {
  padding: clamp(52px, 7vw, 90px) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(18,199,214,0.08), transparent 28%),
    #f8fbfc;
}

.bps-context-photo-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.bps-context-equipment .bps-context-photo-wrap,
.bps-context-trust .bps-context-photo-wrap {
  grid-template-columns: minmax(330px, .92fr) minmax(0, 1.08fr);
}

.bps-context-equipment .bps-context-photo-media,
.bps-context-trust .bps-context-photo-media {
  order: 2;
}

.bps-context-photo-media {
  box-shadow: 0 24px 70px rgba(3, 24, 39, 0.14);
}

.bps-context-photo-copy {
  padding: clamp(8px, 2vw, 20px) 0;
}

.bps-context-photo-copy .bps-conv-cta-actions {
  margin-top: 24px;
}

/* Give Avada/Elementor pages a little spacing if this is injected after dense content. */
.entry-content > .bps-context-photo-section:first-child,
.post-content > .bps-context-photo-section:first-child {
  margin-top: 0;
}

@media (max-width: 980px) {
  .bps-home-visual-intro,
  .bps-context-photo-wrap,
  .bps-context-equipment .bps-context-photo-wrap,
  .bps-context-trust .bps-context-photo-wrap {
    grid-template-columns: 1fr;
  }

  .bps-context-equipment .bps-context-photo-media,
  .bps-context-trust .bps-context-photo-media {
    order: 0;
  }

  .bps-visual-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bps-home-visual-intro {
    width: min(1180px, calc(100% - 28px));
    padding: 12px;
    border-radius: 26px;
  }

  .bps-home-visual-media,
  .bps-context-photo-media {
    border-radius: 20px;
  }

  .bps-home-visual-copy {
    padding: 4px 6px 10px;
  }

  .bps-context-photo-wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .bps-visual-gallery-grid {
    grid-template-columns: 1fr;
  }
}
