/*==============================================
   KIMST home page: Why Choose Us
   Uses .kh-reveal from home.css for the scroll reveal.
===============================================*/

.kh-why {
    --kh-green: #108543;
    --kh-green-700: #0b6a34;
    --kh-green-800: #0a4f29;
    --kh-green-900: #073d20;
    --kh-green-300: #8fe0b0;
    --kh-green-50: #eef7f1;
    --kh-red: #d02010;
    --kh-red-700: #a8180c;
    --kh-ink: #14231a;
    --kh-muted: #5b6b61;
    --kh-line: #e3eae5;
    --kh-ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    overflow: hidden;
    padding: 92px 0 96px;
    font-family: var(--kh-font-ui);
    background: #fff;
}

/* Soft decorative glows */
.kh-why::before,
.kh-why::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.kh-why::before {
    top: -240px;
    left: -200px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(16, 133, 67, .09), transparent 68%);
}

.kh-why::after {
    right: -220px;
    bottom: -260px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(208, 32, 16, .06), transparent 68%);
}

.kh-why .container {
    position: relative;
    z-index: 1;
}

/*---------- Intro: heading + photo ----------*/

.kh-why__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    margin-bottom: 60px;
}

.kh-why__head {
    max-width: 560px;
}

.kh-why .kh-why__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--kh-red);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kh-why__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
}

.kh-why h2.kh-why__title {
    margin: 16px 0 14px;
    color: var(--kh-ink);
    font-family: var(--kh-font-ui);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.kh-why__title em {
    color: var(--kh-green);
    font-style: normal;
}

.kh-why p.kh-why__sub {
    margin: 0;
    color: var(--kh-muted);
    font-family: var(--kh-font-body);
    font-size: 17px;
    line-height: 1.7;
}

.kh-why__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.kh-why a.kh-why__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.kh-why a.kh-why__btn i {
    font-size: 15px;
    transition: transform .25s var(--kh-ease);
}

.kh-why a.kh-why__btn--primary {
    background: var(--kh-red);
    color: #fff;
    box-shadow: 0 12px 28px rgba(208, 32, 16, .3);
}

.kh-why a.kh-why__btn--primary:hover {
    background: var(--kh-red-700);
    color: #fff;
    transform: translateY(-2px);
}

.kh-why a.kh-why__btn--primary:hover i {
    transform: translateX(4px);
}

.kh-why a.kh-why__btn--ghost {
    border-color: var(--kh-green);
    background: transparent;
    color: var(--kh-green-700);
}

.kh-why a.kh-why__btn--ghost:hover {
    background: var(--kh-green);
    color: #fff;
    transform: translateY(-2px);
}

/* Photo: the source is a portrait shot, so it is cropped to a landscape band around the faces */
.kh-why__photo {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.kh-why__photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid rgba(16, 133, 67, .28);
    border-radius: 30px;
}

.kh-why__photo img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 16%;
    border-radius: 28px;
    background: var(--kh-green-800);
    box-shadow: 0 28px 60px rgba(7, 61, 32, .25);
    transition: none;
}

.kh-why__chip {
    position: absolute;
    left: -28px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 8px);
    padding: 12px 18px 12px 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--kh-ink);
    box-shadow: 0 18px 40px rgba(7, 61, 32, .22);
}

.kh-why__chip i {
    color: var(--kh-green);
    font-size: 28px;
    line-height: 1;
}

.kh-why__chip b,
.kh-why__chip small {
    display: block;
}

.kh-why__chip b {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.kh-why__chip small {
    margin-top: 2px;
    color: var(--kh-muted);
    font-size: 13px;
    line-height: 1.25;
}

/*---------- Feature cards ----------*/

.kh-why__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-feature {
    --accent: var(--kh-green);
    --accent-2: #2bb86b;
    --glow: rgba(16, 133, 67, .3);
    --line: rgba(16, 133, 67, .4);

    position: relative;
    margin: 0;
    padding: 30px 28px 28px;
    overflow: hidden;
    border: 1px solid var(--kh-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(7, 61, 32, .04), 0 12px 28px rgba(7, 61, 32, .06);
    transition: transform .35s var(--kh-ease), box-shadow .35s ease, border-color .35s ease;
}

.kh-feature:nth-child(3n + 2) {
    --accent: var(--kh-red);
    --accent-2: #e5483a;
    --glow: rgba(208, 32, 16, .3);
    --line: rgba(208, 32, 16, .35);
}

.kh-feature:nth-child(3n) {
    --accent: #1d2f25;
    --accent-2: #3d5e4c;
    --glow: rgba(20, 35, 26, .28);
    --line: rgba(20, 35, 26, .35);
}

/* Accent underline that draws in on hover */
.kh-feature::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s var(--kh-ease);
}

.kh-feature:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    box-shadow: 0 2px 4px rgba(7, 61, 32, .04), 0 26px 50px rgba(7, 61, 32, .14);
}

.kh-feature:hover::after {
    transform: scaleX(1);
}

.kh-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 22px var(--glow);
    color: #fff;
    font-size: 25px;
    transition: transform .4s var(--kh-ease);
}

.kh-feature__icon i {
    line-height: 1;
}

.kh-feature:hover .kh-feature__icon {
    transform: rotate(-6deg) scale(1.08);
}

.kh-why h3.kh-feature__title {
    margin: 0 0 8px;
    color: var(--kh-ink);
    font-family: var(--kh-font-ui);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.kh-why p.kh-feature__text {
    margin: 0;
    color: var(--kh-muted);
    font-family: var(--kh-font-body);
    font-size: 15.5px;
    line-height: 1.65;
}

/*---------- Enquiry band ----------*/

.kh-why__enquiry {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 28px 34px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(16, 133, 67, .55), transparent 65%),
        linear-gradient(135deg, var(--kh-green-900), var(--kh-green-800) 60%, var(--kh-green-700));
    box-shadow: 0 26px 50px rgba(7, 61, 32, .22);
}

/* Dotted texture */
.kh-why__enquiry::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(100deg, #000, transparent 60%);
    mask-image: linear-gradient(100deg, #000, transparent 60%);
    pointer-events: none;
}

.kh-why__enq-icon,
.kh-why__enq-body,
.kh-why__enq-btn {
    position: relative;
}

.kh-why__enq-icon {
    display: inline-flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: var(--kh-green-300);
    font-size: 26px;
}

.kh-why__enq-body {
    flex: 1 1 auto;
    min-width: 0;
}

.kh-why__enquiry p {
    margin: 0 0 2px;
    color: rgba(255, 255, 255, .86);
    font-family: var(--kh-font-body);
    font-size: 16px;
    line-height: 1.4;
}

.kh-why__enquiry .kh-why__enq-body a {
    display: inline-block;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.kh-why__enquiry .kh-why__enq-body a:hover {
    color: var(--kh-green-300);
}

.kh-why__enquiry a.kh-why__enq-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--kh-green-800);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.kh-why__enquiry a.kh-why__enq-btn:hover {
    background: var(--kh-red);
    color: #fff;
    transform: translateY(-2px);
}

.kh-why__enq-btn i {
    transition: transform .25s var(--kh-ease);
}

.kh-why__enq-btn:hover i {
    transform: translateX(4px);
}

.kh-why :focus-visible {
    outline: 2px solid var(--kh-green);
    outline-offset: 3px;
}

.kh-why__enquiry :focus-visible {
    outline-color: var(--kh-green-300);
}

/*---------- Responsive ----------*/

@media (max-width: 1199.98px) {
    .kh-why__intro {
        gap: 44px;
    }

    .kh-why__features {
        gap: 20px;
    }

    .kh-feature {
        padding: 26px 22px 24px;
    }

    .kh-why__chip {
        left: -12px;
    }
}

@media (max-width: 991.98px) {
    .kh-why {
        padding: 64px 0 68px;
    }

    .kh-why__intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        margin-bottom: 44px;
    }

    .kh-why__head {
        max-width: 640px;
    }

    .kh-why__photo {
        justify-self: stretch;
        max-width: 640px;
        margin-right: auto;
    }

    .kh-why__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kh-why__enquiry {
        margin-top: 36px;
    }
}

@media (max-width: 767.98px) {
    .kh-why__photo {
        width: calc(100% - 14px);
    }

    .kh-why__photo::before {
        inset: 12px -12px -12px 12px;
        border-radius: 24px;
    }

    .kh-why__photo img {
        border-radius: 22px;
    }

    .kh-why__chip {
        left: 12px;
        bottom: 14px;
        padding: 9px 14px 9px 11px;
    }

    .kh-why__chip i {
        font-size: 22px;
    }

    .kh-why__chip b {
        font-size: 14px;
    }

    .kh-why__chip small {
        font-size: 12px;
    }

    .kh-why__enquiry {
        flex-wrap: wrap;
        padding: 24px;
    }

    .kh-why__enq-body {
        flex-basis: calc(100% - 80px);
    }

    .kh-why__enquiry a.kh-why__enq-btn {
        flex: 1 1 100%;
    }

    .kh-why__enquiry .kh-why__enq-body a {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .kh-why {
        padding: 52px 0 56px;
    }

    .kh-why p.kh-why__sub {
        font-size: 16px;
    }

    .kh-why__features {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .kh-feature {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 4px 16px;
        padding: 20px;
    }

    .kh-feature__icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .kh-why a.kh-why__btn {
        flex: 1 1 auto;
        padding: 13px 20px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-feature,
    .kh-feature::after,
    .kh-feature__icon,
    .kh-why a.kh-why__btn,
    .kh-why a.kh-why__btn i,
    .kh-why__enquiry a.kh-why__enq-btn,
    .kh-why__enq-btn i {
        transition: none;
    }

    .kh-feature:hover {
        transform: none;
    }
}
