/* ==========================================================================
   Custom Responsive CSS Overrides (Local Page Styles Extracted to CSS File)
   ========================================================================== */

/* --------------------------------------------------------------------------
   HOMEPAGE CUSTOM OVERRIDES (index.html)
   -------------------------------------------------------------------------- */

.bs-core-feature-4-item .item-title .bs-p-4 {
    text-align: center !important;
    margin: 20px auto !important;
}

/* Custom responsive section title classes */
.custom-home-sec-title {
    font-size: 45px !important;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .custom-home-sec-title {
        font-size: 42px !important;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .custom-home-sec-title {
        font-size: 38px !important;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .custom-home-sec-title {
        font-size: 32px !important;
    }
}
@media (max-width: 767px) {
    .custom-home-sec-title {
        font-size: 26px !important;
    }
}

/* Custom responsive section subtitle classes */
.custom-home-sec-subtitle {
    text-align: center !important;
    margin-top: 20px !important;
}
@media (max-width: 767px) {
    .custom-home-sec-subtitle {
        margin-top: 10px !important;
    }
}


/* --------------------------------------------------------------------------
   ABOUT PAGE CUSTOM OVERRIDES (about.html)
   -------------------------------------------------------------------------- */

/* Custom responsive section title classes */
.custom-about-sec-title {
    font-size: 45px !important;
    line-height: 1.25 !important;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .custom-about-sec-title {
        font-size: 42px !important;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .custom-about-sec-title {
        font-size: 38px !important;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .custom-about-sec-title {
        font-size: 32px !important;
    }
}
@media (max-width: 767px) {
    .custom-about-sec-title {
        font-size: 26px !important;
    }
}

/* Custom responsive section subtitle classes */
.custom-about-sec-subtitle {
    margin-top: 20px !important;
}
@media (max-width: 767px) {
    .custom-about-sec-subtitle {
        margin-top: 10px !important;
        font-size: 16px !important;
    }
}

/* Force 2-column grid layout on mobile for core features vertical wrap */
@media (max-width: 575px) {
    .bs-core-features-1-wrap-vertical {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Responsive adjustments for vertical core features and work process cards on mobile */
@media (max-width: 767px) {
    /* Core features list title and description font sizes */
    .bs-core-features-1-wrap-vertical .bs-core-features-1-item .item-title a {
        font-size: 18px !important;
    }
    .bs-core-features-1-wrap-vertical .bs-core-features-1-item .item-disc {
        font-size: 15px !important;
    }

    /* Work process cards title and description font sizes */
    .bs-work-5-card .title {
        font-size: 22px !important;
    }
    .bs-work-5-card .disc {
        font-size: 16px !important;
    }
}


/* --------------------------------------------------------------------------
   SERVICES PAGE CUSTOM OVERRIDES (services.html)
   -------------------------------------------------------------------------- */

.custom-services-header {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.custom-services-header .gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

.custom-services-header .gold-divider::before,
.custom-services-header .gold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--bs-clr-pr-1);
}

.custom-services-header .gold-divider .diamond {
    width: 10px;
    height: 10px;
    background-color: var(--bs-clr-pr-1);
    transform: rotate(45deg);
    margin: 0 15px;
    flex-shrink: 0;
}

.custom-services-header .services-subtitles {
    font-family: var(--bs-font-1);
    font-size: 32px;
    font-weight: 500;
    color: #1c1c1c;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    text-transform: capitalize;
}

.custom-services-header .services-subtitles .separator {
    color: var(--bs-clr-pr-1);
    font-weight: 300;
}

@media (max-width: 767px) {
    .custom-services-header .services-subtitles {
        font-size: 20px;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .custom-services-header .services-subtitles .separator {
        display: none;
    }
}

/* Custom Professional Services 3-Column Layout */
.custom-professional-services {
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: var(--bs-font-1);
}

.custom-professional-services .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    position: relative;
    margin-bottom: 40px;
}

.custom-professional-services .service-column {
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-professional-services .service-column:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.custom-professional-services .service-icon {
    width: 180px;
    height: 140px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-professional-services .service-icon svg {
    width: 100%;
    height: 100%;
}

.custom-professional-services .service-title {
    font-size: 22px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.custom-professional-services .service-title::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--bs-clr-pr-1);
    margin: 10px auto 0 auto;
}

.custom-professional-services .service-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    text-align: center;
}

.custom-professional-services .bottom-line {
    height: 1px;
    background-color: #333333;
    width: 100%;
}

@media (max-width: 991px) {
    .custom-professional-services .services-grid {
        grid-template-columns: 1fr;
        gap: 50px 0;
    }

    .custom-professional-services .service-column {
        padding: 0 20px;
    }

    .custom-professional-services .service-column:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 50px;
    }
}

.bs-work-1-tabs-item-single .item-img img {
    object-fit: contain !important;
}

/* Custom responsive section title classes */
.custom-services-sec-title {
    font-size: 45px !important;
    line-height: 1.25 !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .custom-services-sec-title {
        font-size: 42px !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .custom-services-sec-title {
        font-size: 38px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .custom-services-sec-title {
        font-size: 32px !important;
    }
}

@media (max-width: 767px) {
    .custom-services-sec-title {
        font-size: 26px !important;
    }
}

/* Custom responsive section subtitle classes */
.custom-services-sec-subtitle {
    margin-top: 20px !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .custom-services-sec-subtitle {
        margin-top: 10px !important;
        font-size: 14px !important;
    }
}

/* Services subtitle tag responsive class */
.services-subtitle-tag {
    font-size: 25px !important;
}

@media (max-width: 767px) {
    .services-subtitle-tag {
        font-size: 18px !important;
    }

    .img-cover-mobile {
        margin-top: 25px;
    }
}

/* Services page introductory paragraph custom class */
.services-intro-paragraph {
    font-size: 33px !important;
    line-height: 1.45 !important;
    display: block;
    text-align: justify !important;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .services-intro-paragraph {
        font-size: 28px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .services-intro-paragraph {
        font-size: 22px !important;
    }
}

@media (max-width: 767px) {
    .services-intro-paragraph {
        font-size: 18px !important;
    }
}

/* Services page intro subheading custom class */
.services-intro-text {
    font-size: 22px !important;
    line-height: 1.45 !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .services-intro-text {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .services-intro-text {
        font-size: 15px !important;
    }
}

/* Style the L2L approach date tag to have red background and white text */
.bs-property-1-item .item-date {
    background: #e3171b !important;
    color: #ffffff !important;
}

/* Increase mobile font size for core feature description texts */
@media (max-width: 767px) {
    .bs-core-feature-4-item .item-disc {
        font-size: 16px !important;
    }
}

/* Fix the large spacing gap above the tabs (What We Do section) on mobile and tablet */
@media only screen and (max-width: 991px) {
    .bs-work-1-area {
        padding-top: 80px !important;
        padding-bottom: 100px !important;
    }
}
@media (max-width: 767px) {
    .bs-work-1-area {
        padding-top: 30px !important;
        padding-bottom: 50px !important;
    }
}

/* Fix the large image container gaps on mobile/tablet for the work section tabs */
@media only screen and (max-width: 991px) {
    .bs-work-1-tabs-item-single .item-img {
        height: 350px !important;
        margin-bottom: 20px !important;
    }
}
@media (max-width: 767px) {
    .bs-work-1-tabs-item-single .item-img {
        height: auto !important;
        aspect-ratio: auto !important;
        margin-bottom: 15px !important;
    }
}
