/*==============================================
   KIMST home page: About Us
   Uses .kh-reveal (home.css) for the scroll reveal and
   .kh-justify (home.css) for the justified paragraphs.
===============================================*/

.kh-about {
    --kh-green: #108543;
    --kh-green-700: #0b6a34;
    --kh-green-800: #0a4f29;
    --kh-green-900: #073d20;
    --kh-green-50: #eef7f1;
    --kh-red: #d02010;
    --kh-red-700: #a8180c;
    --kh-ink: #14231a;
    --kh-body: #46564c;
    --kh-line: #e3eae5;
    --kh-ease: cubic-bezier(.22, 1, .36, 1);

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

/* soft decorative glow */
.kh-about::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 133, 67, .09), transparent 68%);
    pointer-events: none;
}

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

.kh-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 64px;
    align-items: center;
}

/*---------- Copy ----------*/

.kh-about .kh-about__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-about__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
}

.kh-about h2.kh-about__title {
    margin: 16px 0 22px;
    color: var(--kh-ink);
    font-family: var(--kh-font-display);
    font-size: clamp(27px, 2.9vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.kh-about__title em {
    display: block;
    margin-top: 4px;
    color: var(--kh-green);
    font-family: inherit;
    font-style: normal;
}

/* Accent rule down the left of the paragraphs */
.kh-about__text {
    padding-left: 22px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--kh-green), #2bb86b 60%, var(--kh-red)) 1;
}

.kh-about__text p {
    margin: 0 0 14px;
    color: var(--kh-body);
    font-family: var(--kh-font-body);
    font-size: 16.5px;
    line-height: 1.8;
}

.kh-about__text p:first-child {
    color: var(--kh-ink);
}

.kh-about__text p:last-child {
    margin-bottom: 0;
}

/*---------- Actions ----------*/

.kh-about__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin-top: 30px;
}

.kh-about a.kh-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--kh-red);
    box-shadow: 0 12px 28px rgba(208, 32, 16, .3);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

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

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

.kh-about a.kh-about__btn:hover i {
    transform: translateX(4px);
}

.kh-about a.kh-about__call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 24px 7px 7px;
    border: 1.5px solid var(--kh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--kh-ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.kh-about a.kh-about__call:hover {
    border-color: var(--kh-green);
    box-shadow: 0 10px 24px rgba(16, 133, 67, .15);
    transform: translateY(-2px);
}

.kh-about__call-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2bb86b, var(--kh-green));
    box-shadow: 0 8px 18px rgba(16, 133, 67, .3);
    color: #fff;
    font-size: 19px;
}

.kh-about__call-num {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
}

/*---------- Photo composition ----------*/

.kh-about__media {
    position: relative;
    padding: 0 0 78px 70px;
}

/* offset outline behind the main photo */
.kh-about__media::before {
    content: "";
    position: absolute;
    top: 20px;
    right: -16px;
    bottom: 100px;
    left: 88px;
    border: 2px solid rgba(16, 133, 67, .28);
    border-radius: 30px;
}

.kh-about__photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--kh-green-800);
}

.kh-about__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--kh-ease);
}

.kh-about__photo--main {
    aspect-ratio: 5 / 4;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(7, 61, 32, .22);
}

.kh-about__photo--main img {
    object-position: 50% 40%;
}

.kh-about__photo--second {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 3 / 2; /* a little wider than the photo, anchored to the top: crops the camera stamp along its bottom edge */
    border: 7px solid #fff;
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(7, 61, 32, .28);
}

.kh-about__photo--second img {
    object-position: 50% 0%;
}

.kh-about__media:hover .kh-about__photo--main img {
    transform: scale(1.04);
}

.kh-about__badge {
    position: absolute;
    top: -22px;
    right: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #2bb86b, var(--kh-green-700));
    box-shadow: 0 16px 34px rgba(16, 133, 67, .35);
    color: #fff;
    font-size: 32px;
}

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

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

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

    .kh-about__media {
        padding-left: 48px;
    }

    .kh-about__media::before {
        left: 64px;
    }
}

@media (max-width: 991.98px) {
    .kh-about__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    /* photos first, copy underneath, like the home hero */
    .kh-about__media {
        order: -1;
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }
}

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

    .kh-about__media::before {
        top: 14px;
        right: -10px;
        bottom: 68px;
        left: 42px;
        border-radius: 24px;
    }

    .kh-about__photo--main {
        border-radius: 22px;
    }

    .kh-about__photo--second {
        width: 54%;
        border-width: 5px;
        border-radius: 18px;
    }

    .kh-about__badge {
        top: -16px;
        right: 14px;
        width: 64px;
        height: 64px;
        border-width: 5px;
        font-size: 24px;
    }

    .kh-about__text {
        padding-left: 16px;
    }

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

    .kh-about__actions {
        gap: 14px;
    }

    .kh-about a.kh-about__btn {
        width: 100%;
    }

    .kh-about a.kh-about__call {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-about a.kh-about__btn,
    .kh-about__btn i,
    .kh-about a.kh-about__call,
    .kh-about__photo img {
        transition: none;
    }

    .kh-about__media:hover .kh-about__photo--main img {
        transform: none;
    }
}
