/* ==========================================================================
   fixes.css  -  load LAST (after style.css and responsive-devices.css)

   RULE FOR THIS FILE: it never changes font sizes, font weights or colours.
   Your typography, device-specific sizing and design stay exactly as they were.
   It only fixes layout bugs, spacing consistency and responsiveness.
   ========================================================================== */

:root {
    --section-y: clamp(56px, 7vw, 96px);   /* one vertical rhythm for every section */
    --title-gap: clamp(32px, 4vw, 56px);   /* title block -> content gap            */
}

html { -webkit-text-size-adjust: 100%; }

img, svg, video { max-width: 100%; }

/* ==========================================================================
   1. NO PAGE-WIDE TRANSFORM  (ScrollSmoother is disabled in theme.js)
   ========================================================================== */
#smooth-wrapper,
#smooth-content {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    height: auto !important;
}

section { max-width: 100%; overflow-x: clip; }

/* ==========================================================================
   2. HERO  -  stop the "twinkling" / jagged pill + buttons
      Live backdrop-blur on top of an auto-playing slider is recomputed every
      frame. Removing it keeps the look, removes the shimmer.
   ========================================================================== */
.bizzen-hero .sub-title,
.hero-fixed-content .sub-title,
.header-area.sticky-on {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.bizzen-hero .bizzen-hero_one {
    position: relative;
    isolation: isolate;          /* keeps the dark overlay above the photo */
}

.bizzen-hero .sub-title {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

/* ==========================================================================
   3. SECTION RHYTHM  (was 13/25, 20/50, 31/41, 35/45, 70/65, 70/80 ...)
   ========================================================================== */
.intro-modern-section,
.services-stack-section,
.sports-infrastructure-section,
.why-choose-section,
.key-strengths-section,
.applications-section,
.bizzen-testimonial_one,
.our-process-section {
    padding-top: var(--section-y) !important;
    padding-bottom: var(--section-y) !important;
}

section .section-title { margin-bottom: var(--title-gap) !important; }
.services-title-sticky-wrap { margin-bottom: var(--title-gap) !important; }
.services-title-sticky-wrap .section-title { margin-bottom: 0 !important; }

/* manual <br> line breaks in headings are only wanted on wide screens */
@media (max-width: 991.98px) {
    .section-title br,
    .why-main-title br,
    .process-main-title br,
    .application-content h4 br,
    .why-feat-title br,
    .strength-content h4 br { display: none; }
}
@media (max-width: 767.98px) {
    .hero-content p br { display: none; }
}

/* ==========================================================================
   4. INTRODUCTION  -  stack cleanly on tablet / phone
   ========================================================================== */
@media (max-width: 991.98px) {
    .intro-modern-section .row { row-gap: 32px; }
    .intro-details-box { margin-bottom: 0; }
}

@media (max-width: 575.98px) {
    .intro-buttons-row { flex-direction: column; align-items: stretch; }
    .intro-buttons-row .btn-consultation { justify-content: center; }
}

/* ==========================================================================
   5. SERVICE STACK CARDS
   ========================================================================== */
/* 42% + 58% + gap was wider than the card; keep the same ratio but let it shrink */
.service-stack-card-inner {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) !important;
}

.service-stack-content-wrap { min-width: 0 !important; }

@media (max-width: 991.98px) {
    .service-stack-card-inner { grid-template-columns: minmax(0, 1fr) !important; }
}

/* tag pills: 3 per row, equal width.
   The old rule also kept a 16% right margin which squeezed the columns and
   made labels such as "School & College Areas" wrap onto two lines. */
.service-stack-card .service-stack-bottom-content .service-tags-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-right: 0 !important;
}

.service-stack-card .service-stack-bottom-content .service-tags-list .service-tag-pill {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 40px;
    text-align: center !important;
    white-space: normal;
}

@media (max-width: 767.98px) {
    .service-stack-card .service-stack-bottom-content .service-tags-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

@media (max-width: 400px) {
    .service-stack-card .service-stack-bottom-content .service-tags-list {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   6. SPORTS & FITNESS INFRASTRUCTURE (ring)
      Items are placed on the ring from one radius (no hand-tuned offsets), so
      the "01" badge no longer collides with its text and nothing overlaps.
      Ring >= 1200px, tidy card grid below that.
   ========================================================================== */
.sports-infrastructure-section .showcase-dot {
    margin: 0 !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    background: #fff;
}

@media (min-width: 1200px) {
    .sports-infrastructure-section .infrastructure-showcase {
        --cy: 420px;
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 1100px !important;
        height: 780px !important;
        margin: 0 auto !important;
    }

    .sports-infrastructure-section .showcase-circle {
        display: block !important;
        top: var(--cy) !important;
        left: 50% !important;
    }

    .sports-infrastructure-section .showcase-center {
        position: absolute !important;
        top: var(--cy) !important;
        left: 50% !important;
       
        transform: translate(-50%, -50%) !important;
    }

    .sports-infrastructure-section .showcase-item {
        position: absolute !important;
        left: calc(50% + var(--x)) !important;
        top: calc(var(--cy) + var(--y)) !important;
        right: auto !important;
        bottom: auto !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        background: none !important;
        display: block !important;
        transform: none !important;
    }

    .sports-infrastructure-section .showcase-item:hover { transform: none !important; }

    .sports-infrastructure-section .showcase-dot {
        position: absolute;
        left: -22px;
        top: -22px;
    }

    .sports-infrastructure-section .showcase-item-content {
        position: absolute;
        top: 0;
        width: 220px;
        transform: translateY(-50%);
    }

    /* 7 items evenly spaced clockwise from the top, 300px radius */
    .sports-infrastructure-section .item-one   { --x: 0px;    --y: -300px; }
    .sports-infrastructure-section .item-two   { --x: 235px;  --y: -187px; }
    .sports-infrastructure-section .item-three { --x: 293px;  --y: 67px;   }
    .sports-infrastructure-section .item-four  { --x: 130px;  --y: 270px;  }
    .sports-infrastructure-section .item-five  { --x: -130px; --y: 270px;  }
    .sports-infrastructure-section .item-six   { --x: -293px; --y: 67px;   }
    .sports-infrastructure-section .item-seven { --x: -235px; --y: -187px; }

    /* text sits outside the ring */
    .sports-infrastructure-section .item-two .showcase-item-content,
    .sports-infrastructure-section .item-three .showcase-item-content,
    .sports-infrastructure-section .item-four .showcase-item-content {
        left: 34px;
        text-align: left;
    }

    .sports-infrastructure-section .item-five .showcase-item-content,
    .sports-infrastructure-section .item-six .showcase-item-content,
    .sports-infrastructure-section .item-seven .showcase-item-content {
        right: 34px;
        text-align: right;
    }

    .sports-infrastructure-section .item-one .showcase-item-content {
        left: -130px;
        width: 260px;
        top: auto;
        bottom: 34px;
        transform: none;
        text-align: center;
    }
}

@media (max-width: 1199.98px) {
    .sports-infrastructure-section .infrastructure-showcase {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 820px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .sports-infrastructure-section .showcase-circle { display: none !important; }

    .sports-infrastructure-section .showcase-center {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        grid-column: 1 / -1;
       
        margin: 0 auto 8px !important;
        transform: none !important;
    }

    .sports-infrastructure-section .showcase-item {
        position: static !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: flex-start;
        gap: 14px;
        padding: 18px !important;
        background: #fff !important;
        border: 1px solid rgba(0, 175, 239, 0.18);
        border-radius: 14px;
        transform: none !important;
    }

    .sports-infrastructure-section .showcase-item:hover { transform: translateY(-3px) !important; }

    .sports-infrastructure-section .showcase-dot {
        position: static;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .sports-infrastructure-section .showcase-item-content {
        position: static;
        width: auto;
        transform: none;
        text-align: left;
    }

    .sports-infrastructure-section .item-seven { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .sports-infrastructure-section .infrastructure-showcase { grid-template-columns: 1fr !important; }
    .sports-infrastructure-section .item-seven { grid-column: auto; }
}

/* ==========================================================================
   7. WHY CHOOSE / KEY STRENGTHS / PROCESS  -  column counts only
   ========================================================================== */
.why-choose-grid { display: grid; gap: 24px; }
.why-feat-card { height: 100%; }

@media (max-width: 1199.98px) {
    .why-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .why-choose-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 991.98px) {
    .strengths-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .strengths-timeline::before { display: none; }
}
@media (max-width: 575.98px) {
    .strengths-timeline { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .process-flow-line,
    .process-flow-dot-wrap { display: none; }
    .process-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
    .process-flow-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .process-flow-grid { grid-template-columns: 1fr; gap: 32px; }
    .process-flow-item:last-child { grid-column: auto; }
}

/* ==========================================================================
   8. APPLICATIONS  -  equal-height cards, descriptions on one line, no overflow
   ========================================================================== */
.applications-section .row { row-gap: 28px; }

.applications-section .row > [class*="col-"] { display: flex; }

.application-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0 !important;
}

.application-content { flex: 1 1 auto; }

.application-content h4 { overflow-wrap: anywhere; }

@media (min-width: 1200px) {
    .application-content h4 { min-height: 2.4em; }   /* 1-line and 2-line titles align */
}

/* ==========================================================================
   9. PRODUCT SLIDER
   ========================================================================== */
.flooringSwiper .swiper-slide { height: auto; }
.flooringSwiper .swiper-slide .product-solution-card { width: 100%; height: 100%; }
.flooringSwiper .swiper-slide img { height: 100%; }   /* generic .swiper-slide img{height:400px} leaked here */

/* ==========================================================================
   10. FOOTER / FORMS
   ========================================================================== */
.rf-email-link { overflow-wrap: anywhere; }

.contact-form .form_control { width: 100%; max-width: 100%; }
.contact-form textarea.form_control { resize: vertical; }

@media (max-width: 575.98px) {
    .contact-form .btn-consultation { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
