/* =========================================================
   KMG ONLINE
   CONTACT PAGE
========================================================= */

.contact-page {
    background: #ffffff;
    color: #1d2330;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    padding: 55px 0;
    background: #09134F;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    color: #f0f0f0;
}

.contact-breadcrumb a {
    color: #F63D37;
    text-decoration: none;
    transition: color .2s ease;
}

.contact-breadcrumb a:hover {
    color: #F63D37;
}

.contact-hero-content {
    max-width: 760px;
}

.contact-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: #F63D37;

    font-weight: 600;
    letter-spacing: 1.5px;
}

.contact-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    line-height: 1.2;
}

.contact-hero p {
    max-width: 650px;

    margin: 0;
    color: #f0f0f0;
    line-height: 1.75;
}


/* =========================================================
   MAIN CONTACT
========================================================= */

.contact-main {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .85fr) minmax(0, 1.15fr);

    align-items: stretch;
    gap: 70px;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-info {
    min-width: 0;
}

.contact-section-head {
    margin-bottom: 32px;
}

.contact-section-head>span {
    display: block;
    margin-bottom: 8px;

    color: #F63D37;

    font-weight: 600;
    letter-spacing: 1px;
}

.contact-section-head h2 {
    margin: 0;

    color: #09134F;

    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   CONTACT ITEMS
========================================================= */

.contact-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);

    gap: 18px;
    padding: 22px 0;

    border-bottom: 1px solid #e9ebf1;
}

.contact-item:first-of-type {
    border-top: 1px solid #e9ebf1;
}

.contact-item-number {
    padding-top: 3px;

    color: #F63D37;
    font-weight: 600;
}

.contact-item-content {
    min-width: 0;
}

.contact-item-label {
    display: block;
    margin-bottom: 6px;

    color: #8a909c;
    font-weight: 500;
}

.contact-item-content p,
.contact-item-content a {
    margin: 0;

    color: #252b37;
    line-height: 1.7;
}

.contact-item-content a {
    display: inline-block;
    text-decoration: none;
    transition: color .2s ease;
}

.contact-item-content a:hover {
    color: #F63D37;
}


/* =========================================================
   MAP BUTTON
========================================================= */

.contact-actions {
    margin-top: 32px;
}

.contact-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    min-height: 48px;
    padding: 12px 20px;

    border-radius: 7px;

    background: #09134F;
    color: #ffffff;

    font-weight: 500;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.contact-map-button:hover {
    background: #F63D37;
    transform: translateY(-2px);
}


/* =========================================================
   MAP
========================================================= */

.contact-map {
    min-width: 0;
}

.contact-map-image {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 570px;

    overflow: hidden;

    border: 1px solid #e8eaf0;
    border-radius: 12px;

    background: #f2f3f6;
}

.contact-map-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.contact-map-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;

    display: flex;
    flex-direction: column;

    min-width: 160px;
    padding: 16px 20px;

    border-radius: 8px;

    background: #09134F;
    color: #ffffff;

    box-shadow: 0 10px 30px rgba(9, 19, 79, .20);
}

.contact-map-badge strong {
    font-weight: 700;
    line-height: 1.3;
}

.contact-map-badge span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
}


/* =========================================================
   CONTACT SERVICES
========================================================= */

.contact-services {
    padding: 80px 0 100px;

    background: #f7f8fb;
    border-top: 1px solid #eef0f4;
}

.contact-services-head {
    max-width: 650px;
    margin-bottom: 38px;
}

.contact-services-head>span {
    display: block;
    margin-bottom: 8px;

    color: #F63D37;

    font-weight: 600;
    letter-spacing: 1px;
}

.contact-services-head h2 {
    margin: 0;

    color: #09134F;

    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   SERVICE GRID
========================================================= */

.contact-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contact-service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 250px;
    padding: 28px;

    overflow: hidden;

    border: 1px solid #e5e8ee;
    border-radius: 10px;

    background: #ffffff;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.contact-service-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: #F63D37;

    transition: width .25s ease;
}

.contact-service-card:hover {
    transform: translateY(-3px);

    border-color: #d7dbe5;

    box-shadow: 0 12px 30px rgba(9, 19, 79, .06);
}

.contact-service-card:hover::before {
    width: 100%;
}

.contact-service-number {
    display: block;
    margin-bottom: 38px;

    color: #F63D37;
    font-weight: 600;
}

.contact-service-card h3 {
    margin: 0 0 10px;

    color: #09134F;

    font-weight: 600;
    line-height: 1.5;
}

.contact-service-card p {
    margin: 0;

    color: #737985;
    line-height: 1.75;
}

.contact-service-card a {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;
    padding-top: 20px;

    color: #F63D37;

    font-weight: 500;
    text-decoration: none;
}

.contact-service-card a span {
    transition: transform .2s ease;
}

.contact-service-card a:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .contact-grid {
        gap: 45px;
    }

}


@media (max-width: 900px) {

    .contact-main {
        padding: 70px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-map-image {
        height: 500px;
        min-height: 0;
    }

    .contact-services {
        padding: 70px 0 80px;
    }

}


@media (max-width: 768px) {

    .contact-services-grid {
        grid-template-columns: 1fr;
    }

    .contact-service-card {
        min-height: auto;
    }

    .contact-service-card a {
        margin-top: 18px;
        padding-top: 0;
    }

}


@media (max-width: 600px) {

    .contact-hero {
        padding: 30px 0 45px;
    }

    .contact-breadcrumb {
        margin-bottom: 28px;
    }

    .contact-eyebrow {
        margin-bottom: 9px;
    }

    .contact-hero h1 {
        margin-bottom: 14px;
    }

    .contact-main {
        padding: 55px 0;
    }

    .contact-grid {
        gap: 40px;
    }

    .contact-section-head {
        margin-bottom: 25px;
    }

    .contact-item {
        grid-template-columns: 34px minmax(0, 1fr);

        gap: 10px;
        padding: 18px 0;
    }

    .contact-actions {
        margin-top: 25px;
    }

    .contact-map-button {
        width: 100%;
    }

    .contact-map-image {
        height: 380px;
        border-radius: 9px;
    }

    .contact-map-badge {
        left: 15px;
        bottom: 15px;

        min-width: 140px;
        padding: 13px 16px;
    }

    .contact-services {
        padding: 55px 0 65px;
    }

    .contact-services-head {
        margin-bottom: 28px;
    }

    .contact-services-grid {
        gap: 14px;
    }

    .contact-service-card {
        padding: 22px;
    }

    .contact-service-number {
        margin-bottom: 25px;
    }

}


@media (max-width: 420px) {

    .contact-map-image {
        height: 320px;
    }

}