/* ==========================================================================
   Homepage
   Scoped to body.home (front page)
   ========================================================================== */

/* Tokens, .pill-btn, and .section-wrap moved to _design-system.css.
   The homepage opts into them via the `cb-ds` body class (functions.php). */

/* --- Baseline Overrides --- */
body.home #content {
  margin-top: 0;
}

/* Note: transparent/glass header rules, .ast-container full-bleed, logo, nav,
   and dropdown styling all moved to _design-system.css (body.cb-ds). The
   homepage additionally needs #content { margin-top: 0 } below because the
   hero is tall enough to host the transparent header zone. */

/* ---------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------- */
body.home .hero-section {
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-bottom: 20vh;
}

/* Transparent header bar (border + background) moved to _design-system.css. */

/* Hero CTA Buttons */
body.home .hero-section .uagb-buttons__wrap {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

body.home .hero-section .uagb-buttons-repeater {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background-color: var(--ast-global-color-0);
  color: #fff;
  font-size: 1.2em;
  font-weight: var(--btn-weight);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  border: 2px solid var(--ast-global-color-0);
  border-radius: var(--btn-radius);
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

body.home .hero-section .uagb-buttons-repeater:hover {
  background-color: #fff;
  color: var(--ast-global-color-0);
}

body.home .hero-section .uagb-buttons-repeater:hover .uagb-button__link {
  color: var(--ast-global-color-0);
}

body.home .hero-section .uagb-buttons-repeater:hover .uagb-button__icon svg {
  fill: var(--ast-global-color-0);
}

body.home .hero-section .uagb-button__icon {
  display: inline-flex;
  align-items: center;
}

body.home .hero-section .uagb-button__icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: fill 0.2s;
}

/* Booking-button hide/show + past-hero rules moved to _design-system.css
   (body.cb-ds) — homepage and ROI both get the same hide-by-default + show-on-
   .past-hero treatment. Homepage's homepage.js still drives the .past-hero
   trigger here; non-homepage cb-ds pages use cb-ds-header.js. */

/* Logo, nav, and dropdown styling moved to _design-system.css (body.cb-ds). */

/* Call Now button: mobile only */
body.home .hero-section .uagb-block-f7a1b3c5 {
  display: none;
}

@media (max-width: 768px) {
  body.home .hero-section .uagb-block-f7a1b3c5 {
    display: block;
  }
}

/* Mobile logo sizing moved to _design-system.css (body.cb-ds @ max-width 921px). */

/* Image zoom: show more of the top of the image */
body.home .hero-section {
  background-position: center 20% !important;
}

/* Mobile: swap to vertical hero image */
@media (max-width: 768px) {
  body.home .hero-section {
    background-image: url('/wp-content/uploads/2026/03/cincybath-homepage-vertical3.png') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;
    padding-bottom: 60px;
  }

  body.home .hero-section .uagb-block-f7a1b3c5 {
    display: block;
  }
}

/* ---------------------------------------------------------------
   Social Proof Section — The Showcase
   --------------------------------------------------------------- */
body.home .reviews-section {
  background: #ffffff;
  padding: var(--section-py) var(--section-px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.home .reviews-section .uagb-container-inner-blocks-wrap {
  max-width: var(--section-max-w);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* 5-Star Divider */
body.home .reviews-section .star-divider {
  display: flex;
  align-items: center;
  width: 70%;
  gap: 20px;
  margin-bottom: 16px;
}

body.home .reviews-section .star-divider-line {
  flex: 1;
  height: 2px;
  background: var(--ast-global-color-4);
}

body.home .reviews-section .star-divider-stars {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

body.home .reviews-section .star-divider-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--ast-global-color-0);
}

/* Stats row */
body.home .reviews-section .stats-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 80px !important;
  width: 100%;
  padding: 0 !important;
}

body.home .reviews-section .stats-row .uagb-container-inner-blocks-wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 80px;
  max-width: none;
}

/* Counter blocks */
body.home .reviews-section .wp-block-uagb-counter {
  text-align: center;
}

body.home .reviews-section .wp-block-uagb-counter__number {
  font-family: var(--heading-font);
  font-weight: var(--btn-weight);
  font-size: var(--counter-size);
  color: var(--ast-global-color-2);
  line-height: 1.1;
}

body.home .reviews-section .uagb-counter-block-number {
  font-family: var(--heading-font);
  font-weight: var(--btn-weight);
  font-size: var(--counter-size);
}

body.home .reviews-section .uagb-counter-block-suffix {
  font-family: var(--heading-font);
  font-weight: var(--btn-weight);
  font-size: var(--counter-size);
}

body.home .reviews-section .wp-block-uagb-counter__title {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 14px;
  color: var(--ast-global-color-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* Trustindex Widget: slider with no extras */
body.home .reviews-section .ti-widget {
  width: 100% !important;
}

/* Center the slider on desktop */
@media (min-width: 769px) {
  body.home .reviews-section .ti-widget {
    display: flex !important;
    justify-content: center !important;
  }

  body.home .reviews-section .ti-widget .ti-widget-container {
    display: flex !important;
    justify-content: center !important;
  }

  body.home .reviews-section .ti-widget .ti-reviews-container {
    justify-content: center !important;
  }
}

/* Hide aggregate header/footer (our counters replace it) */
body.home .reviews-section .ti-widget .ti-header,
body.home .reviews-section .ti-widget .ti-footer {
  display: none !important;
}

/* Clean up review card styling */
body.home .reviews-section .ti-widget .ti-review-item {
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* CTA button — center */
body.home .reviews-section .uagb-buttons__outer-wrap {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

body.home .reviews-section .uagb-buttons__wrap {
  justify-content: center !important;
}

body.home .reviews-section .uagb-buttons-repeater {
  font-family: var(--btn-font);
  font-weight: var(--btn-weight);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-letter-spacing);
  font-size: 1em;
  padding: 14px 40px;
  border-radius: var(--btn-radius);
  background: var(--ast-global-color-0);
  color: #ffffff;
  border: 2px solid var(--ast-global-color-0);
  transition: all 0.3s ease;
}

body.home .reviews-section .uagb-buttons-repeater:hover {
  background: #ffffff;
  color: var(--ast-global-color-0);
}

/* ---------------------------------------------------------------
   Services Section
   --------------------------------------------------------------- */
body.home .services-section {
  padding: 20px var(--section-px) 40px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #ffffff;
}

/* Stack divider + grid vertically inside Spectra's inner-blocks-wrap */
body.home .services-section > .uagb-container-inner-blocks-wrap {
  flex-direction: column !important;
  align-items: center !important;
  max-width: var(--section-max-w) !important;
  width: 100% !important;
}

/* Services divider — gray lines + centered label */
body.home .services-section .services-divider {
  display: flex;
  align-items: center;
  width: 70%;
  gap: 20px;
  margin-bottom: 28px;
}

body.home .services-section .services-divider-line {
  flex: 1;
  height: 2px;
  background: var(--ast-global-color-4);
}

body.home .services-section .services-divider-text {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(84, 84, 84);
  flex-shrink: 0;
}

/* Grid — override Spectra's inner-blocks-wrap flexbox with CSS Grid */
body.home .services-section .svc-grid {
  max-width: var(--section-max-w);
  width: 100%;
  flex: 1 1 100% !important;
}

body.home .services-section .svc-grid > .uagb-container-inner-blocks-wrap,
body.home .services-section .svc-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch !important;
  gap: 20px;
  width: 100%;
}

/* Card — info-box blocks */
body.home .services-section .wp-block-uagb-info-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px;
  padding: 28px 20px !important;
  background: #f5f4f2 !important;
  border-radius: 10px !important;
  border: 1px solid #ebe9e6 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  /* Scroll-reveal: start hidden */
  opacity: 0;
  transform: translateY(24px);
}

body.home .services-section .wp-block-uagb-info-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

body.home .services-section .wp-block-uagb-info-box:hover {
  border-color: rgba(192, 0, 32, 0.25) !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

/* Center icon + title inside the card */
body.home .services-section .uagb-ifb-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

/* Icon */
body.home .services-section .uagb-ifb-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  line-height: 0;
  align-self: center !important;
}

body.home .services-section .uagb-ifb-icon,
body.home .services-section .uagb-ifb-icon svg,
body.home .services-section .uagb-ifb-icon-wrap > svg {
  width: 100% !important;
  height: 100% !important;
  fill: var(--ast-global-color-0) !important;
}

/* Service name */
body.home .services-section .uagb-ifb-title {
  font-family: var(--heading-font) !important;
  font-weight: 600 !important;
  font-size: 1.05em !important;
  color: #333 !important;
  text-align: center;
  letter-spacing: 0.3px;
  margin: 0 !important;
}

body.home .services-section .wp-block-uagb-info-box:hover .uagb-ifb-title {
  color: #1a1a1a !important;
}

/* Hide unused info-box elements */
body.home .services-section .uagb-ifb-separator,
body.home .services-section .uagb-ifb-desc,
body.home .services-section .uagb-ifb-button-wrapper {
  display: none !important;
}

/* Overlay link cleanup */
body.home .services-section a.uagb-infbox__link-to-all {
  box-shadow: none !important;
  text-decoration: none !important;
}

/* ---------------------------------------------------------------
   Mobile Responsive
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hero buttons: stack vertically on mobile, hide Contact Us */
  body.home .hero-section .uagb-buttons__wrap {
    flex-direction: column;
  }

  body.home .hero-section .uagb-block-d4c6e8f2 {
    display: none;
  }

  body.home .services-section {
    padding: 15px var(--section-px-mobile) 30px !important;
  }

  body.home .services-section .services-divider {
    width: 90%;
  }

  body.home .services-section .svc-grid > .uagb-container-inner-blocks-wrap,
  body.home .services-section .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.home .services-section .wp-block-uagb-info-box {
    padding: 22px 16px !important;
    gap: 10px;
  }

  body.home .services-section .uagb-ifb-content {
    gap: 10px !important;
  }

  body.home .services-section .uagb-ifb-icon-wrap {
    width: 32px !important;
    height: 32px !important;
  }

  body.home .services-section .uagb-ifb-title {
    font-size: 0.85em !important;
  }

  body.home .reviews-section {
    padding: var(--section-py-mobile) var(--section-px-mobile) !important;
  }

  body.home .reviews-section .uagb-container-inner-blocks-wrap {
    gap: 32px;
  }

  /* Keep counters in a row on mobile — force width so they don't wrap */
  body.home .reviews-section .stats-row,
  body.home .reviews-section .stats-row .uagb-container-inner-blocks-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  body.home .reviews-section .stats-row > .wp-block-uagb-counter {
    width: auto !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  body.home .reviews-section .wp-block-uagb-counter__number {
    font-size: var(--counter-size-mobile);
  }

  body.home .reviews-section .uagb-counter-block-number,
  body.home .reviews-section .uagb-counter-block-suffix {
    font-size: var(--counter-size-mobile);
  }

  body.home .reviews-section .wp-block-uagb-counter__title {
    font-size: 10px;
    letter-spacing: 1px;
  }

  body.home .reviews-section .star-divider {
    width: 90%;
  }

  body.home .reviews-section .star-divider-stars svg {
    width: 14px;
    height: 14px;
  }

  /* Fix: Trustindex slider hijacks touch scrolling on mobile — force vertical pan */
  body.home .reviews-section .ti-widget,
  body.home .reviews-section .ti-widget * {
    touch-action: pan-y !important;
  }

  /* Trust badges: compact horizontal row on mobile */
  body.home .uagb-block-9a97d13d {
    padding: 20px 12px !important;
  }

  body.home .uagb-block-9a97d13d > .uagb-container-inner-blocks-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  /* Each badge wrapper — remove margins from nested containers */
  body.home .uagb-block-9a97d13d > .uagb-container-inner-blocks-wrap > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home .uagb-block-9a97d13d > .uagb-container-inner-blocks-wrap > * > * {
    margin: 0 !important;
    padding: 4px !important;
    border-width: 0 !important;
  }

  /* Inner badge card */
  body.home .uagb-block-9a97d13d .wp-block-uagb-info-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
  }

  body.home .uagb-block-9a97d13d .uagb-ifb-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  body.home .uagb-block-9a97d13d .uagb-ifb-icon-wrap {
    width: auto !important;
    height: 28px !important;
    align-self: center !important;
    margin-bottom: 10px !important;
  }

  body.home .uagb-block-9a97d13d .uagb-ifb-icon-wrap svg {
    width: auto !important;
    height: 100% !important;
  }

  body.home .uagb-block-9a97d13d .uagb-ifb-title {
    font-size: 0.7em !important;
    line-height: 1.3 !important;
    text-align: center !important;
    word-wrap: break-word !important;
  }

  body.home .uagb-block-9a97d13d .uagb-ifb-separator,
  body.home .uagb-block-9a97d13d .uagb-ifb-desc {
    display: none !important;
  }
}
