/* Innerpage Updates */

a.button,
a.wp-block-button__link {
    font-size: 16px;
}

/* Header */

.top-level-nav-item > a[href="/contact-us"] {
    border-radius: 0 !important;
    margin-left: 10 !important;
}

.top-level-nav-item > a {
    padding-inline: 10px !important;
}

.hamburger.is-active + .header--phone {
    display: none !important;
}

@media (min-width: 1200px) {
    #header .container {
        max-width: 1180px;
    }
}

.main-container a[href*="tel:"],
.header--phone {
    border: none;
    border-radius: 0;
    color: #fff !important;
    background-color: #212628;
    padding: 8px 13px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 208px;
    margin-block: 10px 5px;
    transition: all ease-in 0.2s;

    &:before {
        content: "";
        display: inline-block;
        width: 1em;
        aspect-ratio: 1 / 1;
        background-color: currentColor;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg version='1.1' id='fi_597177' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 513.64 513.64' style='enable-background:new 0 0 513.64 513.64;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M499.66,376.96l-71.68-71.68c-25.6-25.6-69.12-15.359-79.36,17.92c-7.68,23.041-33.28,35.841-56.32,30.72 c-51.2-12.8-120.32-79.36-133.12-133.12c-7.68-23.041,7.68-48.641,30.72-56.32c33.28-10.24,43.52-53.76,17.92-79.36l-71.68-71.68 c-20.48-17.92-51.2-17.92-69.12,0l-48.64,48.64c-48.64,51.2,5.12,186.88,125.44,307.2c120.32,120.32,256,176.641,307.2,125.44 l48.64-48.64C517.581,425.6,517.581,394.88,499.66,376.96z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg version='1.1' id='fi_597177' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 513.64 513.64' style='enable-background:new 0 0 513.64 513.64;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M499.66,376.96l-71.68-71.68c-25.6-25.6-69.12-15.359-79.36,17.92c-7.68,23.041-33.28,35.841-56.32,30.72 c-51.2-12.8-120.32-79.36-133.12-133.12c-7.68-23.041,7.68-48.641,30.72-56.32c33.28-10.24,43.52-53.76,17.92-79.36l-71.68-71.68 c-20.48-17.92-51.2-17.92-69.12,0l-48.64,48.64c-48.64,51.2,5.12,186.88,125.44,307.2c120.32,120.32,256,176.641,307.2,125.44 l48.64-48.64C517.581,425.6,517.581,394.88,499.66,376.96z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3C/svg%3E");
    }
}

.main-container a[href*="tel:"]:hover,
.header--phone:hover {
    background-color: #651100;
}

.header--phone {
    display: flex !important;
    min-width: auto;
    font-size: 14px;
    margin: -9px 0 0 5px;
    padding-block: 11px;
    .hidden-md {
        display: none;
    }
}

#header #primary-nav #mobile-nav {
    display: flex !important;
    align-items: center;
}

.menu-item-toggle {
    width: 25px;
    height: 25px;
    position: relative;
}

#utility .menu-item-toggle:before {
    content: '' !important;
    display: block;
    width: 1em;
    aspect-ratio: 1 / 1;
    background-color: #b7b8bb;
    position: absolute;
    top: 4px;
    transition: all 0.3s ease 0s;
    right: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg height='512pt' viewBox='0 -93 512 512' width='512pt' xmlns='http://www.w3.org/2000/svg' id='fi_1633716'%3E%3Cpath d='m441.667969 0-185.667969 185.667969-185.667969-185.667969-70.332031 70.332031 256 256 256-256zm0 0'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url(
        "data:image/svg+xml,%3Csvg height='512pt' viewBox='0 -93 512 512' width='512pt' xmlns='http://www.w3.org/2000/svg' id='fi_1633716'%3E%3Cpath d='m441.667969 0-185.667969 185.667969-185.667969-185.667969-70.332031 70.332031 256 256 256-256zm0 0'%3E%3C/path%3E%3C/svg%3E");
}

@media (min-width: 1200px) {
    #header #utility:hover ul li .menu-item-toggle::before{
        rotate: 180deg;
        background-color: #fff;
    }
}

@media (min-width: 769px) {
    #header #primary-nav #mobile-nav {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    ul.sub-menu.hidden {
        display: block !important;
    }

    ul.sub-menu.menu-hidden {
        display: none !important;
    }

    .menu-item {
        /* position: relative; */
    }

    #header #primary-nav #mobile-menu ul:not(.sub-menu) {
        padding-right: 20px;
        padding-left: 20px;
    }

    #header #primary-nav #mobile-menu ul.sub-menu {
        left: 0;
        margin-bottom: 20px !important;
    }

    #utility .menu-item-open > .menu-item-toggle::before{
        background-color: #fff !important;
        rotate: 180deg;
    }

    #header #utility-menu ul li.menu-item-open .sub-menu {
        display: block !important;
        top: 35px !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    #header #primary-nav #primary {
        flex-wrap: wrap;
    }

    .top-level-nav-item {
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .top-level-nav-item:last-of-type {
        padding-top: 0;
    }

    .header--phone {
        margin-top: -20px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    #header #primary-nav #primary {
        width: calc(100% - 200px);
    }
}

@media (min-width: 1200px) {
    .header--phone {
        display: flex !important;
        padding-block: 7px;
        .hidden-md {
            display: inline-block;
        }
    }
}

/* Homepage Updates */

.blog-box {
    max-height: initial !important;
}

#home-offers .team-box img {
    height: auto;
}

@media (max-width: 1024px) {
    #industry-solutions,
    #industry-solutions * {
        transition: none !important;
    }

    .solution {
        height: auto;
    }

    #industry-solutions .solution {
        background: white;
        padding: 20px;
        cursor: pointer;
    }

    #industry-solutions .solution.hidden p.title,
    #industry-solutions .solution p.title {
        font-family: "Poppins";
        color: #650000;
        text-transform: uppercase;
        line-height: 21px;
        font-size: 18px !important;
        letter-spacing: 0px;
        font-weight: 600 !important;
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }

    .home #industry-solutions .solution p.title {
        color: #990000 !important;
    }

    #industry-solutions .solution:not(.hidden) p.excerpt,
    #industry-solutions .solution:not(.hidden) a.learn-more,
    #industry-solutions .solution p.excerpt,
    #industry-solutions .solution a.learn-more {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 1 !important;
        padding-right: 0;
    }

    #industry-solutions .solution:not(.hidden) p.title {
        color: #650000;
    }
}

.home #home-offers .team-box img {
    height: auto !important;
}

.home .team-box .our-team-box>div {
    min-height: 250px !important;
    height: auto;
}

.home .section-header-h2 {
    font-size: 25px !important;
    font-family: "Poppins", sans-serif;
}

.home #experience .section-wrapper {
    margin-bottom: 10px;
}

.home #experience .section-header {
    margin-bottom: 35px;
}

.home #experience .section-header-h2 {
    color: #990000;
}

.home #home-offers .section-header-h2 {
    color: #ffffff;
}

.home #home-offers .section-wrapper {
    top: -120px;
    z-index: 1;
}

.project-description {
    display: block;
    padding:0;
}

/* ========================================
   Single Project Page - Details & Content
   ======================================== */

/* --- Project Details Section (image + sidebar panel) --- */

.project-details-section {
    padding: 0;
    padding-bottom: 0 !important;
}

.project-details-grid {
    display: flex;
    flex-direction: column-reverse;
}

.project-details-image {
    width: 100%;
    min-height: 280px;
    overflow: hidden;
}

.project-details-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
    .project-details-image img:hover{
        opacity: 1;
    }

.single-project .project-details-section {
    margin-bottom: 0;
}

.project-details-panel {
    background-color: #f6f6f6;
    padding: 30px 20px;
}

.project-details__heading {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.54px;
    color: #000;
    margin: 0 0 15px;
}

.project-details__divider {
    border: none;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 0 25px;
}

.project-details__meta {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-details__meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-details__meta-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-details__meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-details__label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: normal;
}

.project-details__icon {
    width: 16px;
    height: 18px;
    flex-shrink: 0;
    color: #990000;
}

.project-details__value,
.project-details__value p {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #616161;
    margin: 0;
    line-height: 1.5;
}

.project-details__full-width {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-details__full-width .project-details__label {
    font-size: 18px;
}

/* --- Project Content Section --- */

.project-content-section, 
.project-details-section {
    padding: 40px 0;
}

.project-content-body {
    max-width: 100%;
    max-width: unset;
}
    .project-content-body img:hover{
        opacity: 1;
    }

.project-content-body h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- Tablet (769px+) --- */

@media (min-width: 769px) {
    .project-details-grid {
        flex-direction: row;
    }

    .project-details-panel {
        width: 55%;
        flex-shrink: 0;
        padding: 40px 45px;
    }

    .project-details-image {
        width: 45%;
        min-height: 400px;
    }

    .project-details__heading {
        font-size: 18px;
    }

    .project-details__meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .project-details__label {
        font-size: 20px;
    }

    .project-details__value,
    .project-details__value p {
        font-size: 16px;
    }

    .project-details__full-width .project-details__label {
        font-size: 20px;
    }

    .project-content-section, 
    .project-details-section {
        padding: 50px 0;
    }

    
}

/* --- Desktop (992px+) --- */

@media (min-width: 992px) {
    .project-details-panel {
        padding: 40px 50px;
    }

    .project-details-image {
        min-height: 508px;
    }

    .project-content-section, 
    .project-details-section {
        padding: 60px 0;
    }
}

/* ========================================
   Single Project Page - Related Projects
   ======================================== */

.related-projects {
    background-color: #e0e0e0;
    padding: 40px 0 80px;
}

.related-projects__heading {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 26px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    margin: 0 0 30px;
}

.related-projects__slider {
    position: relative;
}

.related-projects__slide {
    padding: 0 10px;
}

.related-projects__card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-projects__card:hover {
    text-decoration: none;
    color: inherit;
}

.related-projects__image {
    width: 100%;
    aspect-ratio: 310 / 182;
    overflow: hidden;
}

.related-projects__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-projects__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 15px;
    flex-grow: 1;
}

.related-projects__title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.related-projects__industry {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.related-projects__btn {
    display: block;
    background-color: #262626;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.9px;
    padding: 12px 20px;
    transition: background-color 0.2s ease;
}

.related-projects__card:hover .related-projects__btn {
    background-color: #991000;
}

.related-projects .slick-list {
    margin: 0 -10px;
}

.related-projects .slick-track {
    display: flex;
}

.related-projects .slick-slide {
    height: auto;
}

.related-projects .slick-slide > div {
    height: 100%;
}

.related-projects__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #4a8b93;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    transition: background-color 0.2s ease;
}

.related-projects__arrow:hover,
.related-projects__arrow:focus {
    background-color: #3a7079;
    color: #fff;
}

.related-projects__arrow svg {
    width: 18px;
    height: 18px;
}

.related-projects .slick-prev,
.related-projects .slick-next {
    position: absolute;
    top: auto;
    bottom: -44px;
    left: 50%;
    right: auto;
    transform: none;
    z-index: 1;
}

.related-projects .slick-prev {
    transform: translateX(calc(-100% - 2px));
}

.related-projects .slick-next {
    transform: translateX(2px);
}

.related-projects__slider {
    position: relative;
    padding-bottom: 32px;
}

.related-projects__slider .slick-dots {
    display: none !important;
}

.related-projects__slide,
.related-projects__card {
    height: 100%;
}

/* --- Tablet (769px+) --- */

@media (min-width: 769px) {
    .related-projects {
        padding: 50px 0 90px;
    }

    .related-projects__heading {
        font-size: 30px;
        margin-bottom: 35px;
    }

    .related-projects__title {
        font-size: 20px;
    }

    .related-projects__industry {
        font-size: 15px;
    }

    .related-projects__btn {
        font-size: 17px;
    }
}

/* --- Desktop (1200px+) --- */

@media (min-width: 1200px) {
    .related-projects {
        padding: 60px 0 100px;
    }

    .related-projects__heading {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .related-projects__title {
        font-size: 22px;
    }

    .related-projects__industry {
        font-size: 16px;
    }

    .related-projects__btn {
        font-size: 18px;
    }
}

/* Service page Select Clients: header + logos share left edge with page content */
.page-template-default .clients-wrapper section.clients-section:nth-child(1),
.page-template-default .clients-wrapper .clients-section {
    padding-top: 20px;
    padding-bottom: 40px !important;
}

.page-template-default .clients-wrapper .client-slider > .section-wrapper {
    top: 0;
    text-align: left;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.page-template-default .clients-wrapper .col-sm-12.client-slider {
    margin-top: 30px !important;
    float: none;
}

.page-template-default .clients-wrapper .owl-carousel-clients.desktopOnly.owl-carousel.owl-theme,
.page-template-default .clients-wrapper .owl-carousel-clients.mobileOnly.owl-carousel.owl-theme,
.page-template-default .clients-wrapper .owl-carousel-clients.owl-carousel.owl-theme {
    padding-bottom: 20px !important;
}

.page-template-default .clients-wrapper .clients-section:nth-child(1) .owl-controls {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 20px;
    text-align: left;
}

.page-template-default .clients-wrapper .two-logos img:nth-child(1) {
    margin-bottom: 0 !important;
}

.page-template-default .clients-wrapper .owl-wrapper-outer .item {
    text-align: left;
}

.page-template-default .clients-wrapper .clients-section .owl-wrapper-outer img {
    object-position: left center;
    width: auto;
    max-width: 100%;
}

/* Match .about-body (col-md-8.pull-right) - offset the whole slider column only */
@media (min-width: 992px) {
    .page-template-default .clients-wrapper .col-sm-12.client-slider {
        width: 66.66666667%;
        margin-left: 33.33333333% !important;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-template-default .clients-wrapper .col-sm-12.client-slider {
        width: 66.66666667%;
        margin-left: 33.33333333% !important;
        margin-right: 0;
    }
}