/* Final responsive layer: loaded after all visual theme styles. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

p,
li,
a,
span,
strong {
    overflow-wrap: break-word;
}

.footer .footer-email-row {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.footer .footer-email-row i {
    flex: 0 0 auto;
}

.footer .footer-email-link {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Compact content-card images; hero, logo, map and main feature images are excluded. */
#services .service-item img {
    height: 90px;
    object-fit: cover;
}

.project-item img {
    height: 100px;
    object-fit: cover;
}

.portfolio-image {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .container,
    .container-fluid,
    .container-xxl {
        --bs-gutter-x: 1.75rem;
    }

    .navbar.sticky-top {
        top: 0 !important;
        min-height: 72px;
        padding: .35rem .9rem !important;
    }

    .navbar-brand {
        min-width: 0;
        margin: 0 !important;
        padding: 0;
    }

    .navbar-logo {
        width: auto;
        max-width: 135px;
        max-height: 58px;
    }

    .navbar-toggler {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .45rem;
    }

    .navbar .navbar-collapse,
    .navbar .navbar-collapse.collapsing {
        width: min(88vw, 340px);
        height: 100vh !important;
        height: 100dvh !important;
        padding: 1rem 1.15rem max(1.25rem, env(safe-area-inset-bottom));
        overscroll-behavior: contain;
    }

    .mobile-menu-head {
        margin-bottom: .85rem;
        padding-bottom: .7rem;
    }

    .mobile-menu-backdrop {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .navbar .navbar-nav .nav-link {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: .5rem .35rem .5rem .75rem;
    }

    .mobile-menu-contact {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    #header-carousel .carousel-item {
        height: 500px;
        min-height: 500px;
    }

    #header-carousel .carousel-caption {
        padding: 1rem 2.75rem;
    }

    #header-carousel .carousel-caption > div {
        width: 100%;
        max-width: 720px;
        padding: 1.4rem .5rem !important;
    }

    #header-carousel .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        line-height: 1.12;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 12%;
    }

    #header-carousel .carousel-control-prev-icon,
    #header-carousel .carousel-control-next-icon {
        width: 2.3rem;
        height: 2.3rem;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .65rem;
    }

    .hero-actions .btn {
        min-width: 138px;
        margin: 0 !important;
    }

    .page-header {
        min-height: 360px;
    }

    .page-header h1 {
        font-size: clamp(2.15rem, 7vw, 3.25rem);
    }

    .page-header-subtitle {
        max-width: 620px;
        padding: 0 1rem;
        font-size: .92rem;
        line-height: 1.6;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .about-section .img-border,
    .vision-section .img-border,
    main .img-border {
        height: 310px;
        min-height: 310px;
    }

    .img-border::before {
        right: 1.25rem;
        bottom: 1.25rem;
        border-width: 3px;
    }

    .img-border img,
    .about-section .img-border img,
    .vision-section .img-border img {
        top: 1.25rem;
        left: 1.25rem;
        width: calc(100% - 1.25rem);
        height: calc(100% - 1.25rem);
    }

    .brand-panel.p-5,
    .cta-panel.p-5,
    .quote-strip.p-5 {
        padding: 2rem !important;
    }

    .brand-panel .btn,
    .cta-panel .btn,
    .quote-strip .btn {
        white-space: normal;
        text-align: center;
    }

    .portfolio-section,
    .industries-section,
    .commitment-section {
        border-radius: 18px;
    }

    .commitment-section .testimonial-item {
        min-height: 225px;
    }

    .contact-shell .row > [class*="col-"] {
        width: 100%;
    }

    .contact-panel-map {
        height: 190px;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        width: 100%;
        font-size: 16px;
    }

    .contact-action-card {
        min-height: 86px;
    }

    .footer-logo {
        max-width: 210px;
    }

    .footer .row.g-5 {
        --bs-gutter-y: 2.25rem;
    }

    .footer p,
    .footer a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: .94rem;
    }

    .container,
    .container-fluid,
    .container-xxl {
        --bs-gutter-x: 1.35rem;
    }

    .container-xxl.py-5,
    main > section.py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    h1,
    .display-4,
    .display-5,
    .display-6 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        line-height: 1.16;
    }

    h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .text-center.mx-auto.mb-5,
    .profile-intro.mb-5 {
        margin-bottom: 2rem !important;
    }

    #header-carousel .carousel-item {
        height: 470px;
        min-height: 470px;
    }

    #header-carousel .carousel-caption {
        padding-right: 2.25rem;
        padding-left: 2.25rem;
    }

    #header-carousel .hero-title {
        font-size: clamp(1.8rem, 8.5vw, 2.35rem);
    }

    #header-carousel .carousel-caption h4 {
        font-size: .66rem;
        line-height: 1.5;
    }

    .page-header {
        min-height: 340px;
    }

    .page-header > .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .page-header-subtitle {
        margin-bottom: 1rem;
        font-size: .86rem;
    }

    .page-header .breadcrumb {
        max-width: calc(100vw - 2rem);
        flex-wrap: wrap;
        row-gap: .2rem;
        justify-content: center;
    }

    .about-section .img-border,
    .vision-section .img-border,
    main .img-border {
        height: 265px;
        min-height: 265px;
    }

    .fact-item,
    .service-item,
    .project-item,
    .profile-card,
    .service-detail,
    .sector-card,
    .process-card {
        border-radius: 16px !important;
    }

    .service-detail,
    .profile-card,
    .sector-card,
    .process-card {
        padding: 1.35rem !important;
    }

    .brand-panel.p-5,
    .cta-panel.p-4,
    .cta-panel.p-5,
    .quote-strip.p-4,
    .quote-strip.p-5 {
        padding: 1.5rem !important;
    }

    .cta-panel .btn,
    .brand-panel .btn,
    .quote-strip .btn {
        width: 100%;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .contact-section > .container {
        padding-right: .35rem;
        padding-left: .35rem;
    }

    .contact-details-panel,
    .contact-form-panel {
        padding: 1.35rem 1rem;
    }

    .contact-panel-map {
        height: 175px;
    }

    .contact-form .row {
        --bs-gutter-y: .75rem;
    }

    .contact-form .btn {
        width: 100%;
    }

    .contact-form-privacy {
        width: 100%;
        text-align: center;
    }

    .contact-action-card {
        padding: 1rem;
    }

    .contact-map-frame iframe {
        height: 300px;
    }

    .portfolio-image {
        height: 175px;
    }

    .footer {
        margin-top: 1.5rem !important;
        padding-top: 2rem !important;
    }

    .footer > .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .navbar.sticky-top {
        min-height: 66px;
        padding-right: .7rem !important;
        padding-left: .7rem !important;
    }

    .navbar-logo {
        max-width: 116px;
        max-height: 52px;
    }

    .navbar .navbar-collapse,
    .navbar .navbar-collapse.collapsing {
        width: min(91vw, 330px);
    }

    #header-carousel .carousel-caption {
        padding-right: 1.6rem;
        padding-left: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    #header-carousel .carousel-caption > div > .btn {
        width: min(230px, 100%);
    }

    .facts-section .row > div,
    #industries .row > div {
        width: 50%;
    }

    .facts-section .fact-item {
        min-height: 116px;
        padding: .7rem !important;
    }

    .facts-section .fact-item h6 {
        font-size: .76rem;
    }

    .facts-section .fact-value {
        font-size: 1.12rem;
    }

    #industries .row {
        --bs-gutter-x: .65rem;
        --bs-gutter-y: .65rem;
    }

    #industries .row > div > div {
        min-height: 120px;
        padding: .65rem !important;
    }

    #industries .row > div > div i {
        font-size: 1.6rem;
    }

    #industries .row > div > div h6 {
        font-size: .72rem;
        line-height: 1.3;
    }

    .project-item img {
        height: 115px;
    }

    .commitment-section {
        margin-right: .35rem;
        margin-left: .35rem;
    }

    .commitment-section .testimonial-item {
        min-height: 215px;
        padding: 1.35rem !important;
    }

    .contact-response-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-detail-item strong {
        font-size: .8rem;
    }

    .contact-action-card .contact-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .footer-logo {
        max-width: 180px;
    }

    .footer .copyright .col-md-6 {
        white-space: nowrap;
        font-size: clamp(.54rem, 2.65vw, .66rem);
        line-height: 1.4;
    }

    .back-to-top {
        right: 10px !important;
        bottom: 66px !important;
    }
}

@media (max-width: 359.98px) {
    #header-carousel .hero-title {
        font-size: 1.65rem;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .facts-section .row > div,
    #industries .row > div {
        width: 100%;
    }

    .contact-detail-item {
        gap: .65rem;
    }
}

@media (hover: none) {
    #services .service-item::after {
        display: none;
        animation: none;
    }

    .fact-item:hover,
    .service-item:hover,
    .project-item:hover,
    .profile-card:hover,
    .service-detail:hover,
    .sector-card:hover,
    .process-card:hover,
    .contact-card:hover,
    .contact-action-card:hover {
        transform: none !important;
    }
}
