
/* =========================================================
   MAIN SECTION
========================================================= */

.modern-contact-section {

    position: relative;

    width: 100%;

    padding: 105px 0 115px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f6fafb 100%
        );

    overflow: hidden;
}


/* Background decoration */

.modern-contact-section::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -250px;
    top: 80px;

    border-radius: 50%;

    background:
        rgba(20,82,99,.035);

    pointer-events: none;
}


.modern-contact-section::after {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -180px;
    bottom: -170px;

    border-radius: 50%;

    border:
        1px solid
        rgba(20,82,99,.08);

    pointer-events: none;
}



/* =========================================================
   TOP HEADING
========================================================= */

.modern-contact-top {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: 0 auto 65px;

    text-align: center;
}


/* Label */

.modern-contact-label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: #145263;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}


.modern-label-line {

    width: 30px;

    height: 2px;

    display: block;

    background: #145263;
}


/* Heading */

.modern-contact-top h2 {

    margin: 0;

    color: #102f3a;

    font-size: 48px;

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -1.8px;
}


.modern-contact-top h2 span {

    color: #145263;
}


/* Description */

.modern-contact-top p {

    max-width: 620px;

    margin: 20px auto 0;

    color: #718087;

    font-size: 15px;

    line-height: 1.8;
}



/* =========================================================
   MAIN LAYOUT
========================================================= */

.modern-contact-layout {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        .85fr 1.5fr;

    gap: 30px;

    max-width: 1250px;

    margin: 0 auto;
}



/* =========================================================
   LEFT CONTACT CARD
========================================================= */

.modern-contact-main {

    position: relative;

    min-height: 520px;

    padding: 48px 42px;

    overflow: hidden;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #145263 0%,
            #0c414f 100%
        );

    box-shadow:
        0 25px 60px
        rgba(20,82,99,.16);
}


/* Number */

.modern-contact-number {

    position: absolute;

    top: 25px;

    right: 30px;

    color:
        rgba(255,255,255,.15);

    font-size: 72px;

    font-weight: 700;

    line-height: 1;
}


/* Small title */

.modern-small-title {

    position: relative;

    z-index: 2;

    display: inline-block;

    margin-bottom: 25px;

    color:
        rgba(255,255,255,.65);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


/* Main title */

.modern-contact-main h3 {

    position: relative;

    z-index: 2;

    max-width: 380px;

    margin: 0;

    color: #ffffff;

    font-size: 43px;

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -1.2px;
}


.modern-contact-main h3 span {

    color: #f5ad1b;
}


/* Description */

.modern-contact-main > p {

    position: relative;

    z-index: 2;

    max-width: 370px;

    margin: 25px 0 40px;

    color:
        rgba(255,255,255,.70);

    font-size: 15px;

    line-height: 1.75;
}



/* =========================================================
   EMAIL CTA
========================================================= */

.modern-email-link {

    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    padding: 13px 14px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius: 14px;

    background:
        rgba(255,255,255,.08);

    text-decoration: none;

    transition:
        all .35s ease;
}


.modern-email-link:hover {

    transform: translateY(-4px);

    background:
        rgba(255,255,255,.14);

    border-color:
        rgba(255,255,255,.28);
}


/* Email icon */

.modern-email-icon {

    width: 48px;

    height: 48px;

    min-width: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #f5ad1b;

    color: #ffffff;

    font-size: 18px;
}


.modern-email-icon i {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    line-height: 1;
}


/* Email text */

.modern-email-text {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.modern-email-text small {

    color:
        rgba(255,255,255,.55);

    font-size: 11px;

    line-height: 1.2;
}


.modern-email-text strong {

    display: block;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    word-break: break-word;
}


/* Arrow */

.modern-email-arrow {

    width: 34px;

    height: 34px;

    min-width: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(255,255,255,.10);

    transition:
        all .3s ease;
}


.modern-email-link:hover
.modern-email-arrow {

    color: #ffffff;

    background: #f5ad1b;

    transform:
        translateX(4px);
}



/* =========================================================
   DECORATIVE CIRCLE
========================================================= */

.modern-contact-circle {

    position: absolute;

    width: 270px;

    height: 270px;

    right: -135px;

    bottom: -135px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 50%;

    pointer-events: none;
}


.modern-contact-circle::after {

    content: "";

    position: absolute;

    inset: 35px;

    border:
        1px dashed
        rgba(255,255,255,.12);

    border-radius: 50%;
}



/* =========================================================
   OFFICE GRID
========================================================= */

.modern-office-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}



/* =========================================================
   OFFICE CARD
========================================================= */

.modern-office-card {

    overflow: hidden;

    border:
        1px solid
        rgba(20,82,99,.10);

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(20,82,99,.055);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


.modern-office-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 25px 55px
        rgba(20,82,99,.12);
}



/* =========================================================
   OFFICE IMAGE
========================================================= */

.modern-office-image {

    position: relative;

    width: 100%;

    height: 205px;

    overflow: hidden;
}


.modern-office-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .6s ease;
}


.modern-office-card:hover
.modern-office-image img {

    transform:
        scale(1.07);
}


/* Image overlay */

.modern-office-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(0,0,0,.30)
        );

    pointer-events: none;
}


/* Badge */

.modern-office-badge {

    position: absolute;

    z-index: 3;

    left: 18px;

    bottom: 17px;

    padding: 7px 12px;

    border-radius: 30px;

    background:
        rgba(20,82,99,.94);

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.2px;
}



/* =========================================================
   OFFICE BODY
========================================================= */

.modern-office-body {

    padding: 26px 25px 28px;
}


/* Title row */

.modern-office-title-row {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}


/* City */

.modern-office-label {

    display: block;

    margin-bottom: 5px;

    color: #145263;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.8px;
}


/* Office title */

.modern-office-title-row h4 {

    margin: 0;

    color: #142f39;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;
}


/* Location icon */

.modern-office-icon {

    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #145263;

    background: #eef6f7;

    font-size: 17px;

    transition:
        all .3s ease;
}


.modern-office-icon i {

    line-height: 1;
}


.modern-office-card:hover
.modern-office-icon {

    color: #ffffff;

    background: #145263;

    transform:
        rotate(-8deg);
}



/* =========================================================
   ADDRESS
========================================================= */

.modern-office-address {

    min-height: 75px;

    margin: 0 0 20px;

    color: #718087;

    font-size: 14px;

    line-height: 1.7;
}



/* =========================================================
   OFFICE CONTACT DETAILS
========================================================= */

.modern-office-details {

    display: flex;

    flex-direction: column;

    gap: 11px;

    padding-top: 17px;

    border-top:
        1px solid
        #edf1f2;
}


.modern-office-details a {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    color: #5f7077;

    font-size: 13px;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color .3s ease;
}


.modern-office-details a i {

    width: 20px;

    min-width: 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #145263;

    font-size: 14px;

    line-height: 1;
}


.modern-office-details a span {

    min-width: 0;

    word-break: break-word;
}


.modern-office-details a:hover {

    color: #145263;
}



/* =========================================================
   1100px
========================================================= */

@media (max-width: 1100px) {

    .modern-contact-layout {

        grid-template-columns: 1fr;

    }


    .modern-contact-main {

        min-height: auto;

    }


    .modern-office-grid {

        max-width: 850px;

        width: 100%;

        margin: 0 auto;

    }

}



/* =========================================================
   991px
========================================================= */

@media (max-width: 991px) {

    .modern-contact-section {

        padding: 80px 0;

    }


    .modern-contact-top h2 {

        font-size: 42px;

    }


    .modern-contact-main {

        padding: 40px;

    }


    .modern-contact-main h3 {

        font-size: 38px;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .modern-contact-section {

        padding: 65px 0;

    }


    .modern-contact-top {

        padding: 0 15px;

        margin-bottom: 40px;

    }


    .modern-contact-top h2 {

        font-size: 34px;

        line-height: 1.18;

        letter-spacing: -1px;

    }


    .modern-contact-top p {

        font-size: 14px;

        line-height: 1.7;

    }


    .modern-contact-layout {

        padding: 0 15px;

    }


    .modern-contact-main {

        padding: 35px 28px;

        border-radius: 20px;

    }


    .modern-contact-main h3 {

        font-size: 34px;

    }


    .modern-contact-number {

        font-size: 55px;

    }


    .modern-office-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .modern-office-image {

        height: 220px;

    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .modern-contact-top h2 {

        font-size: 29px;

    }


    .modern-contact-main h3 {

        font-size: 30px;

    }


    .modern-contact-main {

        padding: 30px 22px;

    }


    .modern-email-text strong {

        font-size: 12px;

    }


    .modern-office-body {

        padding: 22px;

    }


    .modern-office-title-row h4 {

        font-size: 19px;

    }

}
