/*
Theme Name: Hero Solutions
Author: Hero Solutions
Description: Hero Solutions Main Theme
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herosolutions
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --wp--preset--shadow--natural: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

 html {
      -webkit-font-smoothing: antialiased; /* For Webkit browsers like Chrome, Safari */
      -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
      font-smooth: never;
    }

strong {
    font-weight: bold;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left,
.slide-in-right {
    opacity: 0;
}

.slide-in-left.animate {
    animation: slideInFromLeft 1s ease-out forwards;
}

.slide-in-right.animate {
    animation: slideInFromRight 1s ease-out forwards;
}

.contact-form input,
.contact-form textarea {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px;
    border-style: solid;
    border-color: var(--wp--preset--color--text-mid);
    padding-left: 10px;
    padding-right: 10px;
    border-color: var(--wp--preset--color--text-mid);
    height: 45px;
    background-color: rgba(211, 211, 211, 0.3);
    margin-top: var(--wp--preset--spacing--10);
    color: var(--wp--preset--color--text-dark);
    width: 100%;
    box-sizing: border-box;
    font-size: var(--wp--preset--font-size--body-regular);
}

.contact-form div {
    display: flex;
    gap: var(--wp--preset--spacing--10);
}

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

.contact-form textarea {
    padding: var(--wp--preset--spacing--10);
    height: 130px;
}

.contact-form button {
    background-color: var(--wp--preset--color--primary);
    border-radius: 0px;
    padding: 15px 25px;
    width: auto;
    float: right;
}

.contact-form button:hover {
    background-color: var(--wp--preset--color--primary-dark);
}

.contact-form input[type=file]::file-selector-button {
    display: none;
}

.contact-form input[type=file] {
    padding-top: 12px;
}

.contact-form input:hover,
.contact-form textarea:hover {
    background-color: #ffffff1A;
}



footer .contact-form>div>p:last-of-type {
    display: none;
}

.wpcf7-not-valid-tip {
    margin-top: var(--wp--preset--spacing--10);
    color: var(--wp--preset--color--secondary);
}


.hs-logo-carousel figure {
    padding: 20px !important;
    filter: grayscale(100%) drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.3));
}

.hs-logo-carousel figure:hover {
    filter: grayscale(0%) drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.6))
}

.hs-footer-certifications img {
    width: 200px;
    height: auto;
}

.wp-block-navigation-item.wp-block-navigation-link {
    padding-bottom: 6px;
}

.wp-block-navigation-item.wp-block-navigation-link:hover {
    color: var(--wp--preset--color--secondary);
}

.wp-block-navigation-item {
    border-bottom: 4px solid var(--wp--preset--color--background-black) !important;
}

.wp-block-navigation-item.current-menu-item {
    border-bottom: 4px solid var(--wp--preset--color--primary) !important;
}


.hs-featured-image img {
    height: 468px;
}

@media (min-width: 782px) {
    .hs-header-block { 
        position: relative;
        margin-bottom: 0;
    }

    .hs-block-offset:not(.editor-styles-wrapper .hs-block-offset) {
        position: absolute;
        bottom: -30%; 
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px); 
        max-width: 1466px; 
        z-index: 10; 
    }

    .hs-header-block + * {
        margin-top: 120px;
    }

    .hs-block-offset + .wp-block-group,
    .hs-block-offset + .wp-block-cover {
        padding-top: 120px;
    }
}
.hs-block-offset {
    margin-top: -20%;
}

@media (max-width: 769px) {
    .hs-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}


.our-work-card {
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
}

.our-work-card:hover {
    box-shadow: 0px 0px 2px 3px rgba(0, 173, 239, 1);
}
.our-work-card:hover .wp-block-heading {
    color: var(--wp--preset--color--secondary);
}

.our-work-card-image  {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    width: 100%;
}
.our-work-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.form-control {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 0px; /* Remove rounded corners */
    border: none; /* Remove all borders */
    border-bottom: 1px solid #CFCFCF; /* Only bottom border */
    background: #3C4448; /* Dark background like in image */
    font-size: var(--wp--preset--font-size--body-one);
    color: var(--wp--preset--color--background-white); /* White text */
    padding-inline-start: 8px;
    padding-inline-end: 8px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Semi-transparent white placeholder */
}

.form-control:focus {
    outline: none;
    border-bottom: 1px solid var(--wp--preset--color--primary); /* Blue underline on focus */
    background: #3C4448; /* Keep same background on focus */
}

.form-control:hover {
    border-bottom: 1px solid var(--wp--preset--color--primary); /* Blue underline on hover */
}

.round-button {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;

}

.search-filter-buttons {
    display: flex;
    gap: 24px;
}

.search-filters-form .wp-block-columns {
    gap: 24px !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

p:empty { display: none; }

.hs-about-the-client-section {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
}

.hs-quote-cover {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hs-cover-logo-box {
    width: max-content;
    right: -16px;
    top: -160px;
    position: absolute;
}
.hs-cover-logo-box img {
    object-fit: contain;
}

.hs-chip {
    font-size:14px;
    max-width: fit-content;
    border-radius: 16px;
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;

}

.hs-image-card-tile-grid {
    height: 100%;
}
.hs-image-card-image-section {
    overflow: hidden;
}

.hs-image-card-image-section figure {
    height: 100% !important;
}
.hs-image-card-image-section img {
    height: 100% !important;
    object-fit: cover;
}

@media (min-width: 782px) { 
    .hs-image-card-tile-grid .hs-image-card-image-section:first-child {
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }
    
    .hs-image-card-tile-grid .hs-image-card-image-section:last-child {
        border-top-right-radius: 16px;
        border-bottom-right-radius: 16px;
    }
}
@media (max-width: 781px) {
    .hs-image-card-tile-grid .hs-image-card-image-section:first-child {
        border-top-right-radius: 16px;
        border-top-left-radius: 16px;
    }

    .hs-image-card-tile-grid .hs-image-card-image-section:last-child {
        border-bottom-right-radius: 16px;
        border-bottom-left-radius: 16px;
    }
}


.wp-block-button__link {
    border-radius: 16px !important;
}


@media (max-width: 769px) {
    .wp-block-button  {
        width: 100% !important;
        max-width: 100% !important;
    }
    .wp-block-button__link {  
        width: 100% !important;
        max-width: 100% !important;
    }
}

.quote-cover-quote-row {
    align-items: center !important;
}

.hs-image-card-tile p {
    line-height: 24px;
}

* {
    line-height: 140%;
}


.hs-image-card-tile:has(a):hover {
    box-shadow: 0px 0px 2px 3px rgba(0, 173, 239, 1) !important;
    cursor: pointer;
}

.hs-image-card-tile a {
    text-decoration: none;
    color: unset;
}

.hs-image-card-tile:has(a):hover  a {
    color: var(--wp--preset--color--secondary);
}




header,
.wp-block-template-part:has(header),
[data-type="core/template-part"] header {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    height: 114px;
    z-index: 999;
    background-color: white;
}

/* Main Menu Styling */
.hs-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.hs-main-menu:not(.hs-mobile-menu){
    white-space: nowrap;
}
.hs-sub-menu {
    white-space: wrap;
}

.hs-main-menu > li {
    position: relative;
}

.hs-main-menu > li > a {
    text-decoration: none;
    color: var(--wp--preset--color--text-dark, #333);
    padding: 16px 0;
    display: flex;
    align-items: center;
    font-weight: 400;
    transition: color 0.3s ease;
}

.hs-main-menu > li > a:hover {
    color: var(--wp--preset--color--primary, #0073aa);
}

/* Dropdown arrows */
.hs-main-menu > li:has(.hs-sub-menu) > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hs-main-menu > li:hover > a::after {
    transform: rotate(180deg);
}

/* Sub Menu Styling */
.hs-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.hs-main-menu > li:hover .hs-sub-menu {
    opacity: 1;
    visibility: visible;
}

.hs-sub-menu > li {
    position: relative;
}

.hs-sub-menu > li > a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.hs-sub-menu > li > a:hover {
    background-color: #f8f9fa;
    color: var(--wp--preset--color--primary, #0073aa);
}

.hs-sub-menu:has(.hs-sub-menu-columns)  {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: absolute;
    left: 100%;
    gap: 24px;
    transform: translateX(-29%);
    width: 80vw;
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 768px) {
    .hs-sub-menu:has(.hs-sub-menu-columns) {
        transform: translateX(-90%);
        width: 90vw;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hs-sub-menu:has(.hs-sub-menu-columns) {
        transform: translateX(-50%);
        width: 85vw;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .hs-sub-menu:has(.hs-sub-menu-columns) {
        transform: translateX(-48%);
        width: 75vw;
    }
}

@media (min-width: 1441px) {
    .hs-sub-menu:has(.hs-sub-menu-columns) {
        transform: translateX(-38%);
        width: 80vw;
    }
}

/* Sub Menu Columns (3-column grid) */
.hs-sub-menu-columns {
    top: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 24px;
    display: block;
    
    gap: 16px;
}

.hs-sub-menu > li:hover .hs-sub-menu-columns {

}

.hs-sub-menu-columns > li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--wp--preset--color--text-dark);
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hs-sub-menu-nav-item {
    font-weight: 400;
    color: var(--wp--preset--color--text-dark, #333);
    font-size: 16px;
    display: block;
    text-decoration: none;
}

.hs-sub-menu-nav-item-description {
    font-weight: 400;
    color: var(--wp--preset--color--text-mid);
    font-size: 14px;
    margin-top: 0;
}

.hs-sub-menu-columns .icon-link:hover {
    background-color: var(--wp--preset--color--primary-light, #e8f4fd);
    color: var(--wp--preset--color--primary, #0073aa);
}

/* Mobile Menu Styles */
.hs-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1002;
}

.hs-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile menu toggle animation */
.hs-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hs-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.hs-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Overlay */
.hs-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hs-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.hs-mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.hs-mobile-menu-panel.active {
    right: 0;
}

.hs-mobile-menu-content {
    padding: 80px 24px 24px;
}

/* Mobile menu items */
.hs-mobile-menu-panel .hs-main-menu {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.hs-mobile-menu-panel .hs-main-menu > li {
    border-bottom: 1px solid #eee;
}

.hs-mobile-menu-panel .hs-main-menu > li > a {
    padding: 16px 0;
    justify-content: space-between;
}

.hs-mobile-menu-panel .hs-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #f8f9fa;
    margin: 0;
    padding: 0px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.hs-mobile-menu-panel .hs-sub-menu.active {
    max-height: unset;
}

.hs-mobile-menu-panel .hs-sub-menu-columns {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #f0f0f0;
    margin: 0;
    
    padding: 16px 24px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hs-mobile-menu-panel .hs-sub-menu-columns.active {
    max-height: 300px;
}


/* Responsive breakpoint */
@media (max-width: 1247px) {
    .hs-main-menu:not(.hs-mobile-menu) {
        display: none;
    }
    
    .hs-mobile-menu-toggle {
        display: flex;
    }
    
    body.mobile-menu-open {
        overflow: hidden;
        margin-right: 80px; /* Show a bit of the page */
    }
    header .wp-block-buttons {
        display: none;
    }
}


@media (min-width: 1248px) {
    .hs-mobile-menu-toggle,
    .hs-mobile-overlay,
    .hs-mobile-menu-panel {
        display: none !important;
    }
}

.hs-mobile-menu-content .wp-block-buttons {
    display: flex !important;
}


.icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hs-sub-menu-columns .icon-link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.hs-sub-menu-columns .icon-link a {
    padding-left: 0;
}
.hs-sub-menu-columns .icon-link {
    gap: 4px
}
.hs-sub-menu-columns .icon-link img {
    width: 24px;
    height: 24px;
}

.hs-sub-menu p {
    height: 10%;
}


.hs-image-card-tile .hs-image-card-tile-grid {
    gap: 0px;
}


.wp-block-site-logo img {
    width: 270px !important;
    height: auto;
    z-index: 1001;
}

.hs-icon-and-text-tile-horizontal img {
    max-width: unset !important;
}

details {
    width: 100%;
}

.hs-footer-info-row a:hover {
    color: var(--wp--preset--color--primary-highlight);
}

.hs-footer-info-row svg {
    color: var(--wp--preset--color--primary-highlight) !important;
}


div.hs-footer-contact-section {
    margin-left: auto;
}





/* Micromodal */

.modal {
    display: none;
}

.modal.is-open {
    display: contents;
}

/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;

    max-width: 800px;
    max-height: 80vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}



.modal__footer {
    padding: 30px;
    padding-top: 0px;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.25;
    color: white;
    box-sizing: border-box;
}

.modal__close {
    background: transparent;
    height: 44px;
    width: 44px !important;
    position: relative;
}

.modal__close:before {
    content: "\f00d";
    font-family: FontAwesome;
    position: absolute;
    top: 30%;
    left: 35%;
}

.modal__content {
    margin-top: unset;
    margin-bottom: unset;
    line-height: 1.5;
    padding: 30px;
    color: rgba(0, 0, 0, .8);
    position: relative;
}

.modal__content .wp-block-buttons {
    line-height: 1;
    height: 44px;
}

.modal__content .wp-block-buttons .wp-block-button {
    height: 44px;
}

.modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0, 0, 0, .8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out, -webkit-transform .25s ease-out;
}

.modal__btn:focus,
.modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.modal__btn-primary {
    background-color: #00449e;
    color: #fff;
}

.modal-profile-image {
    float: left;
    width: 50%;
    margin-right: 20px;
}

.modal-previous-button,
.modal-next-button {
    font-family: FontAwesome;
    content: "";
    height: 44px;
    width: 44px !important;
    padding-left: 15px;
    padding-top: 13px;
}

.modal-previous-button::before {
    content: "\f060";
}

.modal-next-button::before {
    content: "\f061";
}



@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {     
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
 } 
 
.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
} 

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
} 

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container, .micromodal-slide .modal__overlay {
    will-change: transform;
}


.is-layout-constrained > figure.hs-full-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}
.hs-full-image img{
    width: 100%;
}

/* Current page styling */
.hs-main-menu > li.current-page > a {
    color: var(--wp--preset--color--primary, #0073aa);
    font-weight: 600;
}

.hs-main-menu > li.current-page > a::after {
    color: var(--wp--preset--color--primary, #0073aa);
}

.hs-main-menu > li.current-page > a {
    border-bottom: 2px solid var(--wp--preset--color--secondary, #0073aa);
}

@media (min-width: 782px) { 

    .slider-cover {
        position: relative;
    }

    .slider-cover.wp-block-cover .wp-block-cover__inner-container {
        position: unset;
    }



    .slider-cover-title {
        top: 5%;
        left: 0;
        position: absolute;
        z-index: 100;
    }
    .slider-cover-description {
        bottom: 8%;
        right: 0;
        position: absolute;
        z-index: 100;
        max-width: 50%;
    }
}

.homepage-slider .swiper {
    margin-bottom: 0 !important;
}
.homepage-slider .wp-block-cover {
    min-height: 700px !important;
}
.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
    position:absolute;
    bottom: 2%;
}
.homepage-slider .swiper-pagination-bullet {
    background: unset !important;
    border: 1px solid white !important;
    opacity: 1 !important;
}

.homepage-slider .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: white !important;
}