#page {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
div,
span,
a,
p {
    font-family: 'Inter Tight';
    font-style: normal;
}

#hero-section {
    /* background-image: url(https://stg-macgillivraypropertylawyers-mplstaging.kinsta.cloud/wp-content/themes/mgl/assets/images/ResidentialPropertyBanner.png); */
    /* //max-height: 700px; */
    height: 64vw;
    padding-top: 160px;
    align-items: flex-start;
    margin-bottom: 0 !important;
    background-position: bottom;
    flex-direction: column;
    padding-bottom: 150px;
    max-height: unset;
    position: relative;
}

/* @media (min-width: 1025px) and (max-width: 1500px) {
    #hero-section {
        height: 125vh;
        background-size: auto;
    }
} */

.hero-about-content_mobile {
    display: none;
}

@media (max-width: 767px) {
    .mouse-tracking-foreground {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hero-about-content_mobile {
        display: block !important;
        z-index: 1;
    }

    .hero-about-content {
        display: none !important;
    }

    #our-services-section .btn-mobile {

        margin-top: 25px;
    }
}

.mouse-tracking-foreground {
    position: absolute;
    bottom: 0;
    height: fit-content;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse-tracking-foreground img {
    width: 101%;
}

#about-section {
    /* //margin-bottom: 90px; */
    padding: 120px 0 150px 0;
}

#our-services-section {
    padding-top: 90px;
    background: #fff;
}

.hero-main-container {
    align-items: center;
    height: 100%;
    gap: unset;
    justify-content: flex-start;
    z-index: 1;
    width: unset;
}

.hero-content-section {
    text-align: center;
    gap: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-section h1 {
    line-height: 120%;
    color: #333333;
    margin: 0;
}

.hero-breadcrumb {
    display: flex;
    gap: 6px;
}

.hero-breadcrumb .current-page {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    color: #333333;
}

.hero-breadcrumb .separator svg {
    padding-bottom: 4px;
}

.main-container.about-main-container {
    display: flex;
    /* //justify-content: center; */
    flex-direction: column;
    align-items: center;
}


.commercial-about-content {
    position: relative;
    top: -70%;
}


.hero-about-content,
.hero-about-content_mobile,
.commercial-about-content p {
    color: #fff;
    font-size: 33px;
    font-weight: 600;
    line-height: 120%;
    max-width: 1105px;
    margin: 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.home-icon svg path {
    transition: 0.3s;
}


.container {
    max-width: 1200px;
    margin: auto;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 43px;
}

.services-header h1 {
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.services-header h1.active {
    font-size: 30px;
    color: black;
    font-weight: bold;
}

.services-header h1.inactive {
    color: gray;
}

.btn {
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.description {
    color: #000;
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 150%;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #E5F4F8;
    min-height: 332px;
    position: relative;
    text-align: center;
    perspective: 1000px;
    transition: transform 0.9s;
    transform-style: preserve-3d;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;

}

.card.flipped {
    transform: rotateY(180deg) scaleX(1.06);

}

.card-front,
.card-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 35px);
    height: calc(100% - 60px);
    padding: 30px 15px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .card-inner-top {
    display: flex;
    justify-content: space-between;
}

.card-back {
    transform: rotateY(180deg);
}

.number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #586A72;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    color: #586A72;
}

.card h4 {
    font-size: 26px;
    line-height: 120%;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000000;
    text-align: left;
    margin: 0;
}

.services-header h2 span {
    color: #000;
    font-size: 22px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.01em;
    /* //transition: 0.8s; */
    cursor: pointer;
    animation: services-heading-unbounce 1s;
}

.services-header h2 span.active {
    font-weight: 700;
    font-size: 94px;
    line-height: 95%;
    letter-spacing: -0.01em;
    color: #000;
    cursor: unset;
    animation: services-heading-bounce 1s;
    padding-bottom: 0;
}

.services-header h2 span:not(.active) {
    padding-bottom: 5px;
}

.services-header h2 {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 94px;
    line-height: 95%;
    height: 89px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

@keyframes services-heading-bounce {
    0% {
        font-size: 22px;
        font-weight: 500;
        line-height: 120%;
        padding-bottom: 5px;
    }

    85% {
        font-size: 96px;
        font-weight: 700;
        line-height: 95%;
        padding-bottom: 0;
    }

    100% {
        font-size: 94px;
        font-weight: 700;
        line-height: 95%;
        padding-bottom: 0;
    }
}

@keyframes services-heading-unbounce {
    0% {
        font-size: 94px;
        font-weight: 700;
        line-height: 95%;
        padding-bottom: 0;
    }

    85% {
        font-size: 21px;
        font-weight: 500;
        line-height: 120%;
        padding-bottom: 5px;
    }

    100% {
        font-size: 22px;
        font-weight: 500;
        line-height: 120%;
        padding-bottom: 5px;
    }
}

.services-header .subtitle {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

.services-header .services-heading-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#cta-section {
    background-color: #7F9297;
}

#cta-section .cta-section-overlay {
    padding-top: 66px;
    padding-bottom: 60px;
    height: 100%;
    width: 100%;
    background-image: url(https://stg-macgillivraypropertylawyers-mplstaging.kinsta.cloud/wp-content/themes/mgl/assets/images/Pattern%202.png);
}

#container-box .cta-header h2 {
    color: white;
    font-weight: 800;
    font-size: 62px;
    line-height: 87%;
    letter-spacing: -0.01em;
    margin: 0;
}

#cta-section .description {
    color: white;
    margin: 0;
}

#cta-section .separator {
    width: 100%;
    height: 2px;
    background-color: #fff;
    opacity: 0.4;
    margin-top: 46px;
    margin-bottom: 22px;
}

#container-box .cta-header {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

#container-box .cta-header h2 span {
    display: inline-flex;
    position: absolute;
    margin-left: 5px;
}

#cta-section .ctas .phone-icon {
    display: inline-flex;
    background: rgb(255 255 255 / 50%);
    padding: 9px 9px 10px 10px;
    border-radius: 50%;
    transition: 0.5s;
}

#cta-section .ctas .contact {
    display: flex;
    gap: 6px;
    align-items: center;
    color: white;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0;
    transition: 0.5s;
}

#cta-section .ctas .contact span:not(.phone-icon) a {
    color: white;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: none;
}

#cta-section .ctas {
    display: flex;
    justify-content: space-between;
}

.resources-section {
    margin: 96px auto 55px;

}

@media screen and (max-width: 767px) {
    #hero-section {
        padding-top: 134px;
        padding-bottom: 50px;
        height: 108vh;
    }
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    #hero-section {
        padding-top: 134px;
        padding-bottom: 100px;
        height: 68vw;
        background-size: 119% !important;
    }
}

@media screen and (max-width: 1024px) {
    #about-section {
        padding: 51px 0 54px 0;
    }

    .cards {
        grid-template-columns: repeat(1, 5fr);
        gap: 15px;
    }

    .card {
        min-height: 205px;
    }

    .card-back {
        transform: rotateX(180deg);
    }

    .number {
        width: 43px;
        height: 43px;
        font-size: 16px;
        line-height: 120%;
        font-weight: 600;
    }

    .card h4 {
        font-size: 20px;
        line-height: 110%;
    }

    .card img {
        width: 105px;
        height: 105px;
    }

    .services-header h2 span.active {
        font-size: 55px;
        line-height: 100%;
    }

    .services-header h2 span {
        font-size: 18px;
        line-height: 125%;
    }

    @keyframes services-heading-bounce {
        0% {
            font-size: 18px;
            font-weight: 500;
            line-height: 125%;
            padding-bottom: 5px;
        }

        85% {
            font-size: 56px;
            font-weight: 700;
            line-height: 100%;
            padding-bottom: 0;
        }

        100% {
            font-size: 55px;
            font-weight: 700;
            line-height: 100%;
            padding-bottom: 0;
        }
    }

    @keyframes services-heading-unbounce {
        0% {
            font-size: 55px;
            font-weight: 700;
            line-height: 100%;
            padding-bottom: 0;
        }

        85% {
            font-size: 17px;
            font-weight: 500;
            line-height: 125%;
            padding-bottom: 5px;
        }

        100% {
            font-size: 18px;
            font-weight: 500;
            line-height: 125%;
            padding-bottom: 5px;
        }
    }

    #our-services-section .btn-desktop {
        display: none;
    }

    .services-header .subtitle {
        font-size: 16px;
        line-height: 120%;
    }

    .description {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .services-header h2 {
        font-size: 55px;
        line-height: 100%;
        height: unset;
    }

    #container-box .cta-header h2 {
        font-weight: 700;
        font-size: 43px;
        line-height: 110%;
        margin: 0;
    }

    #our-services-section .why-choose-main-container {
        margin-bottom: 88px !important;
    }

    #cta-section .cta-header svg {
        width: 42px;
        height: 52px;
    }

    #cta-section .cta-section-overlay {
        padding-top: 71px;
        padding-bottom: 49px;
    }

    #cta-section .separator {
        margin-top: 94px;
        margin-bottom: 21px;
    }

    .hero-content-section h1 {
        text-align: left;
    }

    .hero-content-section {
        align-items: flex-start;
        gap: 19px;
    }

    .hero-about-content,
    .hero-about-content_mobile {
        font-size: 26px;
        line-height: 125%;
    }

    .hero-main-container {
        max-height: 100%;
    }

    .resource-container .owl-stage {
        padding-left: 0px !important;
    }

    .resources-section {
        margin: 77px auto 88px;
    }

    .resources-section h2 {
        font-size: 36px;
        line-height: 110%;
        margin-bottom: 20px;
        letter-spacing: 0px;
    }

    .hero-content-section h1 {
        line-height: 108% !important;

    }

    .commercial-about-content p {
        font-weight: 600;
        font-size: 26px;
        line-height: 125%;
    }

    .commercial-about-content {
        top: 15px;
    }
}



/* @media(min-width: 1025px) {
    #hero-section .reveal-text .line-wrapper:last-child {
        margin-top: -25px;
    }
} */



@media(hover:hover) {
    .hero-breadcrumb a:hover svg path {
        fill: #263a76 !important;
    }

    #cta-section .ctas .contact:hover .phone-icon {
        background: rgb(255 255 255 / 100%);
    }

    #cta-section .ctas .contact:hover {
        color: #CBE9F1;
    }

    #cta-section .ctas .contact:hover .phone-icon svg path {
        fill: #263A76;
        transition: 0.5s;
    }
}


.services-header .reveal-text {
    line-height: 113%;
}


/* .header-main-container>.header-logo img {
    content: url(http://stg-macgillivraypropertylawyers-mplstaging.kinsta.cloud/wp-content/uploads/2025/02/Group-14.svg);
} */


/* #our-services-section .btn-mobile {
    display: none;
} */



@media(max-width: 1296px) {

    .header-main-container>.header-logo img {
        content: url('/wp-content/uploads/2025/05/Horizontal-Logo-1.svg');
        width: 100%;
        height: 100%;
    }
}


@media(min-width: 360px) and (max-width: 767px) {
    #hero-section {
        background-position: 100% 45% !important;
    }

    .commercial-about-content {
        top: -50px !important;
    }
}


@media(min-width: 1025px) and (max-width: 1400px) {
    #hero-section {
        background-position: 100% 0% !important;
        height: 68vw !important;
        background-size: auto !important;
    }


    .commercial-about-content {
        top: 0% !important;
    }
}


.btn-mobile {
    display: none !important;
}


@media(max-width: 1024px) {

    .btn-mobile.inactive {
        display: none !important;
    }


     .btn-mobile.active{
        display: block !important; 
    }

 
}



@media(max-width: 767px) {
    .description {
        display: inline-block !important;
    }

}

.card-front
{
    transform: translate(0px);
}