/* ============================================================
   Pirelli Tyres Dubai - page-specific components
   Extends: ../assets/css/flat-tyre-redesign.css (ft- design system)
   Fonts: Space Grotesk (headings), IBM Plex Sans (body),
          IBM Plex Mono (eyebrow / mono accents)
   ============================================================ */

/* ============================================================
   HERO FIXES
   ============================================================ */

/* The four Pirelli trust facts are long enough to wrap onto three lines,
   which left the "/" separators orphaned at the end of each line.
   From 576px up, drop the separators and lay the facts out as a tidy 2x2
   grid with a red dot marker per fact. Below 576px the design system's
   existing pill-chip treatment takes over. */
@media (min-width: 576px) {
    .ft-hero-trust {
        display: grid;
        /* two across when the column is wide enough for the longest fact,
           otherwise one across - never a half-wrapped line */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        align-items: start;
        gap: 12px 30px;
        font-size: 12px;
        letter-spacing: .4px;
    }

    .ft-hero-trust .ft-trust-sep {
        display: none;
    }

    .ft-hero-trust > span:not(.ft-trust-sep) {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        line-height: 1.35;
    }

    .ft-hero-trust > span:not(.ft-trust-sep)::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--ft-red);
        flex: 0 0 auto;
    }

    /* first fact already carries the star icon */
    .ft-hero-trust > span:first-child::before {
        display: none;
    }

    .ft-hero-trust .fa-star {
        margin-right: 0;
    }
}

/* .ft-hero has padding-bottom:0 so the photo should meet the dark banner
   below it. Bootstrap's align-items-center was centring the shorter media
   column and leaving a ~30px white strip under the image. */
@media (min-width: 992px) {
    .ft-hero .row > [class*="col-lg-"]:last-child {
        align-self: flex-end;
    }
}

/* ---------- Shared: section sub-heading paragraph ---------- */
.ft-sub {
    font-family: var(--ft-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ft-muted);
    max-width: 760px;
    margin: 18px 0 0;
}

.ft-sub--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ft-section-cta {
    margin-top: 48px;
}

/* ============================================================
   CURATED COLLECTION - product cards
   Card component from ../assets/css/premium-tyre-slider.css
   (.premium-tyre-card / .tyre-brand-badge / .main-image /
    .car-model / .size-badge / .enquiry-btn-whatsapp).
   Only harmonisation with the ft- design system lives here.
   ============================================================ */
.ft-range {
    background: var(--ft-grey-bg);
}

.ft-range-grid {
    margin-top: 48px;
}

.ft-range-grid .premium-tyre-card {
    height: 100%;
    min-height: 0;
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ft-range-grid .premium-tyre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .09);
    border-color: rgba(227, 30, 37, .3);
}

.ft-range-grid .tyre-brand-badge {
    top: 26px;
    left: 24px;
    max-width: 82px;
    height: 30px;
}

.ft-range-grid .premium-tyre-card .main-image {
    height: 190px;
    margin-bottom: 22px;
    padding: 10px;
}

.ft-range-grid .premium-tyre-card .main-image img {
    transition: transform .4s ease;
}

.ft-range-grid .premium-tyre-card:hover .main-image img {
    transform: scale(1.06);
}

/* Warranty badge - red accent to match the page palette */
.ft-range-grid .warranty-row {
    text-align: right;
    width: 100%;
    margin-bottom: 14px;
}

.ft-range-grid .warranty-badge {
    display: inline-block;
    background: rgba(227, 30, 37, .08);
    border: 1px solid rgba(227, 30, 37, .22);
    color: var(--ft-red);
    font-family: var(--ft-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.ft-range-grid .premium-tyre-card .car-model {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.3px;
    color: var(--ft-black);
    margin-bottom: 12px;
    min-height: 48px;
}

/* "Sizes Available" disclosure - button styled like the original <p> */
.ft-range-grid .size-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--ft-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ft-red);
    margin-bottom: 10px;
    transition: color .15s ease;
}

.ft-range-grid .size-toggle:hover {
    color: var(--ft-red-dark);
}

.ft-range-grid .size-toggle i {
    font-size: .85rem;
    transition: transform .25s ease;
}

.ft-range-grid .size-toggle[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.ft-range-grid .size-toggle[aria-expanded="false"]+.size-badges-wrapper {
    display: none;
}

.ft-range-grid .size-badges-wrapper {
    gap: 6px;
    margin-bottom: 14px;
}

.ft-range-grid .size-badge {
    background: var(--ft-black);
    font-family: var(--ft-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    border-radius: 4px;
    padding: 5px 10px;
    text-transform: none;
}

.ft-range-grid .tyre-model-name {
    font-family: var(--ft-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-muted);
    border-top: 1px dashed #ececec;
    padding-top: 14px;
    margin: 0 0 16px;
}

.ft-range-grid .enquiry-btn-whatsapp {
    font-family: var(--ft-font-body);
    font-size: 14.5px;
    border-radius: 8px;
    padding: 12px 18px;
}

.ft-range-grid .enquiry-btn-whatsapp:hover {
    background: #1eb855;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .ft-range-grid .premium-tyre-card .car-model {
        min-height: 0;
    }

    .ft-range-grid .premium-tyre-card {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .ft-range-grid .premium-tyre-card {
        padding: 22px 20px;
    }

    .ft-range-grid .premium-tyre-card .main-image {
        height: 165px;
    }
}

/* ============================================================
   INTRO PROSE + QUICK STATS
   ============================================================ */
.ft-intro {
    background: #fff;
}

.ft-intro p {
    font-family: var(--ft-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ft-muted);
    margin-bottom: 20px;
}

.ft-intro p a {
    color: var(--ft-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-intro p a:hover {
    color: var(--ft-red-dark);
}

.ft-stats-label {
    font-family: var(--ft-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ft-black);
    margin: 0 0 20px;
}

.ft-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ft-stat-card {
    background: var(--ft-grey-bg);
    border-radius: 16px;
    padding: 26px 24px;
    border-left: 4px solid var(--ft-red);
}

.ft-stat-value {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--ft-black);
    margin: 0 0 8px;
}

.ft-stat-value .fa-star {
    font-size: .5em;
    color: var(--ft-red);
    margin-left: 3px;
    vertical-align: middle;
}

.ft-stat-label {
    font-family: var(--ft-font-body);
    font-size: 14px;
    line-height: 1.45;
    color: var(--ft-muted);
    margin: 0;
}

@media (max-width: 991px) {
    .ft-intro-stats {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .ft-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   WHICH PIRELLI SUITS YOU - numbered cards + deep links
   ============================================================ */
.ft-suits {
    background: #fff;
}

.ft-suits .ft-steps {
    margin-top: 48px;
}

.ft-suits .ft-step {
    display: flex;
    flex-direction: column;
}

.ft-step-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--ft-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ft-red);
    text-decoration: none;
    transition: gap .18s ease, color .18s ease;
}

.ft-step-link:hover {
    color: var(--ft-red-dark);
    gap: 13px;
}

.ft-step-link i {
    font-size: 11px;
}

/* ============================================================
   EXPLORE THE RANGE - dark rows (tag chip variant)
   ============================================================ */
.ft-onsite .ft-sub {
    color: var(--ft-muted-dark);
}

.ft-onsite-tag {
    display: inline-block;
    background: rgba(227, 30, 37, .14);
    border: 1px solid rgba(227, 30, 37, .34);
    color: #ff5a5f;
    font-family: var(--ft-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
    margin-top: 10px;
}

/* ============================================================
   SCIENCE OF THE DRIVE - technology cards
   ============================================================ */
.ft-tech {
    background: var(--ft-grey-bg);
}

.ft-tech-grid {
    margin-top: 48px;
}

.ft-tech-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ft-tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .08);
}

.ft-tech-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ft-tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ft-red);
    color: #fff;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-tech-num {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: #e8e8ea;
}

.ft-tech-card h3 {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--ft-black);
    margin: 0 0 8px;
}

.ft-tech-card p {
    font-family: var(--ft-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ft-muted);
    margin: 0;
}

.ft-tech-card p a {
    color: var(--ft-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-tech-card p a:hover {
    color: var(--ft-red-dark);
}

/* ============================================================
   PROFESSIONAL SERVICE - checklist
   ============================================================ */
.ft-service {
    background: #fff;
}

.ft-service-list {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
}

.ft-service-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    border-top: 1px solid var(--ft-border);
    font-family: var(--ft-font-body);
    font-size: 17px;
    line-height: 1.5;
    color: var(--ft-text);
}

.ft-service-list li:last-child {
    border-bottom: 1px solid var(--ft-border);
}

.ft-service-list li a {
    color: var(--ft-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-service-list li a:hover {
    color: var(--ft-red-dark);
}

.ft-service-ico {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(227, 30, 37, .08);
    color: var(--ft-red);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   EMERGENCY / ROADSIDE CTA - inline link on dark red bg
   ============================================================ */
.ft-emergency p a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-emergency p a:hover {
    color: var(--ft-yellow);
}

/* ============================================================
   VEHICLES THAT USE PIRELLI
   ============================================================ */
.ft-vehicles {
    background: var(--ft-dark-bg);
    text-align: center;
}

.ft-vehicles .ft-heading {
    color: #fff;
}

.ft-vehicles .ft-sub {
    color: var(--ft-muted-dark);
}

.ft-vehicles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.ft-vehicle-card {
    flex: 1 1 190px;
    max-width: 240px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 30px 20px;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.ft-vehicle-card:hover {
    border-color: rgba(227, 30, 37, .55);
    background: rgba(227, 30, 37, .07);
    transform: translateY(-4px);
}

.ft-vehicle-card i {
    color: var(--ft-red);
    font-size: 22px;
    margin-bottom: 14px;
    display: block;
}

.ft-vehicle-card span {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .3px;
    color: #fff;
}

/* ============================================================
   FINDING THE RIGHT FIT
   ============================================================ */
.ft-fit {
    background: var(--ft-grey-bg);
}

.ft-fit-grid {
    margin-top: 48px;
}

.ft-fit-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 26px;
    height: 100%;
    border-top: 3px solid var(--ft-yellow);
}

.ft-fit-num {
    font-family: var(--ft-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--ft-red);
    display: block;
    margin-bottom: 12px;
}

.ft-fit-card p {
    font-family: var(--ft-font-body);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ft-black);
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .ft-sub {
        font-size: 16px;
    }

    .ft-service-list li {
        gap: 16px;
        font-size: 16px;
        padding: 18px 2px;
    }
}

@media (max-width: 575px) {
    .ft-tech-card {
        padding: 26px 22px;
    }

    .ft-vehicle-card {
        flex: 1 1 140px;
        padding: 24px 14px;
    }

    .ft-service-ico {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .ft-stat-card {
        padding: 22px 20px;
    }
}
