/* ===========================================
   Car Inspection Page — CarAssure
   =========================================== */

/* ===========================================
   HERO
   =========================================== */
.ci-hero {
    background-color: #FEFEFE;
    padding: 70px 0 60px;
}

.ci-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ---- Text content ---- */
.ci-hero-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0 0 20px;
}

.ci-hero-sub {
    font-size: 17px;
    color: var(--color-text);
    margin: 0 0 32px;
    line-height: 1.7;
}

.ci-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ci-hero-deposit-note {
    font-size: 14px;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

/* ---- Image with yellow accent ---- */
.ci-hero-image-wrap {
    position: relative;
    padding: 0 0 24px 24px;
}

/* Yellow accent block — visible bottom-left of image */
.ci-hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 24px 24px 0 0;
    background-color: var(--color-secondary);
    border-radius: 16px;
    z-index: 0;
}

.ci-hero-image-wrap img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* ===========================================
   WHAT WE INSPECT
   =========================================== */
.ci-inspect {
    background-color: #f7f8fc;
}

.ci-inspect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

/* ---- Image — yellow accent bottom-right (mirrored from hero) ---- */
.ci-inspect-image-wrap {
    position: relative;
    padding: 0 24px 24px 0;
    /* image is absolutely positioned so it doesn't drive row height */
}

.ci-inspect-image-wrap::before {
    content: '';
    position: absolute;
    inset: 24px 0 0 24px;
    background-color: var(--color-secondary);
    border-radius: 16px;
    z-index: 0;
}

.ci-inspect-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    right: 24px;
    bottom: 24px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

/* ---- Item list — drives the row height, vertically centered ---- */
.ci-inspect-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ci-inspect-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 22, 57, 0.1);
}

.ci-inspect-item:first-child {
    padding-top: 0;
}

.ci-inspect-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ci-inspect-item h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ci-inspect-item p {
    font-size: 15px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

/* ===========================================
   WHY CHOOSE CARASSURE
   =========================================== */
.ci-why {
    background-color: var(--color-primary);
}

.ci-why .section-header h2 {
    color: var(--color-white);
}

.ci-why .section-header p {
    color: var(--color-white);
}

.ci-why-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ci-why-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--color-white);
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 56%;
    margin-right: auto;
}

/* Even cards shift to the right */
.ci-why-card:nth-child(even) {
    margin-right: 0;
    margin-left: auto;
}

.ci-why-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.ci-why-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ci-why-card-body p {
    font-size: 15px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

/* ===========================================
   HOW IT WORKS
   =========================================== */
.ci-how {
    background-color: var(--color-white);
}

.ci-how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ci-how-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-white);
    border: 1px solid rgba(0, 22, 57, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
}

.ci-how-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.ci-how-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ci-how-card p {
    font-size: 15px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

.ci-how-cta {
    text-align: center;
}

/* ===========================================
   WHY CHOOSE A PACKAGE
   =========================================== */
.ci-wyp {
    background-color: var(--color-white);
}

.ci-wyp-heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.2;
}

.ci-wyp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.ci-wyp-layout--no-image {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.ci-wyp-image-col {
    position: sticky;
    top: 100px;
}

.ci-wyp-image-col img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.ci-wyp-items {
    display: flex;
    flex-direction: column;
}

.ci-wyp-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 22, 57, 0.1);
}

.ci-wyp-item:first-child {
    padding-top: 0;
}

.ci-wyp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ci-wyp-item h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.3;
}

.ci-wyp-item p {
    font-size: 15px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

/* ===========================================
   COVERAGE AREAS
   =========================================== */
.ci-coverage {
    background-color: var(--color-primary);
}

.ci-coverage-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

.ci-coverage-heading {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 20px;
    line-height: 1.25;
}

.ci-coverage-body {
    font-size: 16px;
    color: var(--color-white);
    margin: 0;
    line-height: 1.7;
}

.ci-coverage-image-wrap img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

/* ===========================================
   CONCLUSION
   =========================================== */
.ci-conclusion {
    background-color: var(--color-white);
}

.ci-conclusion-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ci-conclusion-heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 28px;
    line-height: 1.2;
}

.ci-conclusion-inner p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.75;
    margin: 0 0 20px;
}

.ci-conclusion-inner p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   VEHICLE BRANDS
   =========================================== */
.ci-brands {
    background-color: var(--color-white);
}

.ci-brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.ci-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 22, 57, 0.07);
    border-radius: 16px;
    padding: 32px 20px 24px;
    text-align: center;
}

.ci-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.ci-brand-logo {
    max-width: 100px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ci-brand-name {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1023px) {
    .ci-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ci-hero-ctas {
        justify-content: center;
    }

    .ci-hero-image-wrap {
        max-width: 100%;
        margin: 0;
    }

    .ci-inspect-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ci-inspect-image-wrap {
        max-width: 520px;
        margin: 0 auto;
        order: 2;
    }

    .ci-inspect-items {
        order: 1;
    }

    .ci-inspect-image-wrap img {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: calc(100% - 24px);
        height: auto;
    }

    .ci-why-card,
    .ci-why-card:nth-child(even) {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .ci-how-grid {
        grid-template-columns: 1fr;
    }

    .ci-wyp-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ci-wyp-image-col {
        position: static;
        max-width: 520px;
        margin: 0 auto;
    }

    .ci-coverage-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ci-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 479px) {
    .ci-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ci-brand-logo-wrap {
        height: 160px;
    }

    .ci-brand-logo {
        max-width: 200px;
        max-height: 160px;
    }

    .ci-brand-name {
        font-size: 15px;
    }
}

@media (max-width: 599px) {
    .ci-hero {
        padding: 48px 0 40px;
    }

    .ci-hero-title {
        font-size: clamp(26px, 6vw, 36px);
    }

    .ci-hero-sub {
        font-size: 15px;
    }

    .ci-hero-image-wrap {
        padding: 0 0 16px 16px;
    }

    .ci-hero-image-wrap::before {
        inset: 16px 16px 0 0;
        border-radius: 12px;
    }

    .ci-inspect-image-wrap {
        padding: 0 16px 16px 0;
    }

    .ci-inspect-image-wrap::before {
        inset: 16px 0 0 16px;
        border-radius: 12px;
    }
}
