/* CUB-FIX-BUILD: 2026-09-03-r5  (search this string to confirm deployment) */
/* CareUrBaby client modifications — Phase 1. Loaded last intentionally. */

/* Keep the promotional strip aligned with the same wide content grid as hero/home sections. */
.phase1-home .phase5-hero-partners {
    box-sizing: border-box;
    width: min(100%, var(--p1-container-wide, 1440px));
    margin-inline: auto !important;
    padding-inline: var(--p1-gutter, 24px) !important;
    overflow: hidden;
}
.phase1-home .phase5-hero-partners .container-fluid,
.phase1-home .phase5-hero-partners .ads-partner-slider {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}
.phase1-home .phase5-hero-partners .swiper-wrapper { align-items: stretch; }

/* Give Category and Offers the same restrained title treatment. */
.phase1-home .pdf2-category-section .pdf2-section-heading,
.phase1-home .pdf2-quick-deal-section .pdf2-quick-deal-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-bottom: 20px;
    padding: 10px 18px 15px;
    background: transparent !important;
    border: 0 !important;
}
.phase1-home .pdf2-category-section .pdf2-section-heading::after,
.phase1-home .pdf2-quick-deal-section .pdf2-quick-deal-titlebar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 3px;
    border-radius: 999px;
    background: #1f2937;
    transform: translateX(-50%);
}
.phase1-home #pdf2-category-title,
.phase1-home #pdf2-quick-deal-title {
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    letter-spacing: -.02em;
}

/* Testimonial heading must follow the neutral section palette, never brand red. */
.phase1-home .testimonial-six-right .sub-title-main {
    color: #4b5563 !important;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.phase1-home .testimonial-six-right .title-animation { color: #1f2937 !important; }

@media (max-width: 767.98px) {
    .phase1-home .phase5-hero-partners { padding-inline: 12px !important; }
    .phase1-home .pdf2-category-section .pdf2-section-heading,
    .phase1-home .pdf2-quick-deal-section .pdf2-quick-deal-titlebar { min-height: 46px; margin-bottom: 14px; }
}

/* ==========================================================================
   CLIENT FIX ROUND 2  (03 Sep 2026, rev 3)
   Header, hero banner and promo strip all begin and end on the same vertical
   line. Three knobs at the top control everything.
   ========================================================================== */

:root {
    /* The homepage grid already established by home-responsive-fix inside
       phase6-storefront-bundle: 1320px wide, 16px of breathing room each side
       at narrow widths, no inner padding. Everything below matches it. */
    --cub-shell-max: 1320px;
    /* cub-logo-white.png carries transparent margin of its own that CSS cannot
       measure. This pulls the visible mark back onto the gutter line.
       Less negative = logo moves right. More negative = logo moves left. */
    --cub-logo-nudge: -7px;
}

/* --------------------------------------------------------------------------
   1) ONE SHARED INSET
   The header was on `min(100%, 1440px)` plus 16-32px padding. The promo strip
   was on 1320px plus 12px padding. The hero was on 1320px with no padding.
   Three different edges. All three now resolve to the hero's.
   -------------------------------------------------------------------------- */
.phase1-storefront .stx-header-container,
.phase1-storefront .stx-navbar-container,
.phase1-storefront .stx-topbar-container,
.phase1-home .pdf1-hero-container,
.phase1-home .pdf1-promo-container,
.phase1-home .pdf4-home-container,
.phase1-home .pdf2-section-container {
    --bs-gutter-x: 0 !important;
    width: min(100% - 32px, var(--cub-shell-max)) !important;
    max-width: var(--cub-shell-max) !important;
    margin-inline: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* The marquee sits inside the promo container, and the track adds a 12px
   right gutter between the two repeated groups. Without cancelling that on the
   band itself the three cards ended up ~12px narrower than the banner above. */
.phase1-home .pdf1-promo-section {
    padding-inline: 0 !important;
}

/* The logo sits in a surface with 10px of side padding, which pushed the mark
   inward past the gutter even once the containers matched. */
@media (min-width: 992px) {
    .phase1-storefront .stx-mainbar__inner {
        grid-template-columns: 132px minmax(280px, 1fr) auto !important;
        align-items: center !important;
    }

    .phase1-storefront .stx-logo {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .phase1-storefront .stx-logo__surface {
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: var(--cub-logo-nudge) !important;
    }
}

/* --------------------------------------------------------------------------
   2) PROMO STRIP: AUTO-ADVANCING, FLUSH AT EVERY REST

   Two separate faults were stacked here.

   a) The gap at the left and right was never the container. The cards were
      already flush - the IMAGES inside them were not. home-responsive-fix.css
      (inside phase6-storefront-bundle) sets, above 768px:
          .pdf1-promo-image { object-fit: contain; background: #f5f6f7; }
      Card ratio is 2.72:1 but the artwork is nearer 3:1, so each image was
      letterboxed inside its own card against a near-white backdrop. That pale
      strip read as misalignment. Matching the card ratio to the artwork and
      filling it removes the inner whitespace entirely.

   b) Motion. A constant-speed marquee always has a card mid-travel, so it can
      never rest flush. This steps instead: three cards held flush for ~4s,
      one card slides across in ~0.6s, hold again, loop.

   The step distance is exact, not approximate:
       group = 3 columns + 2 gaps(12px) + right padding(12px) = 3 x (col + 12)
   so one card pitch is exactly one third of a group and one sixth of the
   200%-wide track. Keep gap and padding-right equal or the rests will drift.
   -------------------------------------------------------------------------- */

/* Bootstrap's .container computes padding from a variable, so the variable is
   what has to be zeroed - overriding padding alone gets recomputed back. */
.phase1-home .pdf1-promo-section,
.phase1-home .pdf1-promo-container,
.phase1-home .pdf1-promo-container.container {
    --bs-gutter-x: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.phase1-home .pdf1-promo-container,
.phase1-home .pdf1-promo-container.container {
    width: min(100% - 32px, var(--cub-shell-max)) !important;
    max-width: var(--cub-shell-max) !important;
    margin-inline: auto !important;
}

/* (a) No letterboxing inside the card. */
.phase1-home .pdf1-promo-card {
    aspect-ratio: 3 / 1 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
}

.phase1-home .pdf1-promo-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    background: transparent !important;
}

/* (b) Stepped auto-advance. */
.phase1-home .pdf1-promo-marquee {
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 6px;
    -webkit-mask-image: none !important;
            mask-image: none !important;
}

.phase1-home .pdf1-promo-track {
    display: flex !important;
    width: 200% !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: cubPromoStep 15s cubic-bezier(.55, 0, .45, 1) infinite !important;
}

.phase1-home .pdf1-promo-group {
    flex: 0 0 50% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 12px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* The duplicate group is what the strip advances into - keep it rendered. */
.phase1-home .pdf1-promo-group[aria-hidden="true"] {
    display: grid !important;
}

@keyframes cubPromoStep {
    0%,   26%  { transform: translateX(0); }
    33%,  59%  { transform: translateX(calc(-100% / 6)); }
    66%,  92%  { transform: translateX(calc(-200% / 6)); }
    100%       { transform: translateX(-50%); }
}

/* Pause while a visitor is reading or about to click a banner. */
.phase1-home .pdf1-promo-marquee:hover .pdf1-promo-track,
.phase1-home .pdf1-promo-marquee:focus-within .pdf1-promo-track {
    animation-play-state: paused !important;
}

@media (max-width: 767.98px) {
    .phase1-home .pdf1-promo-track {
        animation: none !important;
        width: 100% !important;
        transform: none !important;
    }

    .phase1-home .pdf1-promo-group {
        flex: 0 0 100% !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .phase1-home .pdf1-promo-group[aria-hidden="true"] {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phase1-home .pdf1-promo-track {
        animation: none !important;
        width: 100% !important;
        transform: none !important;
    }

    .phase1-home .pdf1-promo-group {
        flex: 0 0 100% !important;
        padding: 0 !important;
    }

    .phase1-home .pdf1-promo-group[aria-hidden="true"] {
        display: none !important;
    }
}

/* FREEZE - uncomment to stop the advance for everyone.
.phase1-home .pdf1-promo-track { animation: none !important; width: 100% !important; transform: none !important; }
.phase1-home .pdf1-promo-group { flex: 0 0 100% !important; padding: 0 !important; }
.phase1-home .pdf1-promo-group[aria-hidden="true"] { display: none !important; }
*/

/* --------------------------------------------------------------------------
   3) NOTHING PAINTS OUTSIDE ITS BAND
   -------------------------------------------------------------------------- */
.phase1-home {
    overflow-x: clip;
}

.phase1-home .pdf1-hero-section,
.phase1-home .pdf1-promo-section {
    overflow-x: clip;
}

.phase1-home .pdf1-hero-container {
    overflow: hidden !important;
}


.phase1-home .pdf1-promo-card:empty,
.phase1-home .pdf1-promo-card:not(:has(img)) {
    display: none !important;
}

@media (max-width: 991.98px) {
    :root {
        --cub-logo-nudge: -4px;
    }
}

/* --------------------------------------------------------------------------
   4) TESTIMONIALS
   Same vertical rhythm as the bands above, heading text and underline pinned
   to the true centre of the navy band.
   -------------------------------------------------------------------------- */
.phase1-home .pdf4-testimonials {
    margin-top: 48px !important;
    padding: 0 0 56px !important;
}

.phase1-home .pdf4-testimonials .pdf4-section-heading,
.pdf4-testimonials .pdf4-section-heading {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 16px 24px !important;
    margin: 0 0 36px !important;
    text-align: center !important;
}

.phase1-home .pdf4-testimonials .pdf4-section-heading h2,
.pdf4-testimonials .pdf4-section-heading h2 {
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.phase1-home .pdf4-testimonials .pdf4-section-heading h2::after,
.pdf4-testimonials .pdf4-section-heading h2::after {
    margin-inline: auto !important;
}

.phase1-home .pdf4-testimonials .cub-testi-swiper {
    padding: 4px 4px 54px !important;
}

.phase1-home .pdf4-testimonials .cub-testi-dots {
    bottom: 14px !important;
}

@media (max-width: 767.98px) {
    .phase1-home .pdf4-testimonials {
        margin-top: 30px !important;
        padding: 0 0 36px !important;
    }

    .phase1-home .pdf4-testimonials .pdf4-section-heading,
    .pdf4-testimonials .pdf4-section-heading {
        min-height: 50px !important;
        padding: 12px 16px !important;
        margin-bottom: 22px !important;
    }
}
