/*
Theme Name: KACC
Description: KACC WordPress theme.
Version: 1.1
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-basic-theme
*/


/* ================== Large Desktop ================== */

/* root styling */
:root {
  --primary-color: #35685e;
  --secondary-color: #4a9183;
  --dark-color: #323232;
  --light-color: #e4e4e4;
}

body {
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    margin:0;
    padding:0;
}

.container, .elementor-element.container {
    width: 100%;
    max-width: 980px;
    margin: auto;
}

h1 {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 54px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 54px;
    line-height: 54px;
}

.elementor-widget-text-editor p {
    margin: 0;
}

.infobox-content p {
    text-align: justify;
}

/* Header */
.header__nav--desktop {
    display: flex;
    align-items: center;
}

.header__nav--mobile {
    display: none;
}

.header__top .header__burger {
    font-size:30px;
    background:none;
    border:none;
    cursor:pointer;
    color: var(--color-header-font);
    z-index: 210;
    transition: transform 0.5s ease;
}

.header__top .header__burger:hover, .header__top .header__burger:focus {
    border: none;
    background: none;
    animation: spin 0.3s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.header__nav--mobile .header__menu{
    display:none;
}

.header__nav--mobile .header__menu.active{
    display:block;
}

.header__nav{
    background:transparent;
    max-width: 1200px;
    margin: auto;
    padding:30px 15px;
    position: relative;
    z-index: 9999;
}

.header__logo img {
    margin: 0 auto;
    max-width: 400px;
    height: auto;
    object-fit: cover;
}

.header__menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header__menu li {
    flex: auto;
    text-align: center;
}

.header__menu a {
    display: inline-block;
    padding: 0 10px;
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    color: var(--color-header-font);
    text-decoration: none;
}

.header__menu a:hover {
    color: var(--color-hover-header-font);
    transition: var(--trans, color .4s ease 0s);
}

.header__menu .current_page_item a {
    color: var(--color-active-header-font);
}

.header__banner{
    position:absolute;
    top: 0;
    left: 0;
    width:100%;
    height:900px;
    overflow:hidden;
}

.header__bannerbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.header__bannerbg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1600px;
    height: 1200px;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.header__bannerbg::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000090;
    z-index: 1;
}

.header__bannertagline {
    width: 100%;
    max-width: 1200px;
    position: absolute;
    margin: 0 auto 120px;
    text-align: left;
    bottom: 50px;
    z-index:2;
    left:50%;
    transform:translateX(-50%);
}

.header h1 {
    width: 100%;
    max-width: 840px;
    color: var(--color-header-font);
    line-height: normal;
}

.header h2 {
    color: var(--color-header-font) ;
    font-weight: 200;
    margin: 0;
    line-height: 42px;
}

/* Body */
.container-top {
    margin-top: 725px;
}

.elementor h2.elementor-heading-title {
    line-height: 54px;
}

.elementor .elementor-button {
    max-width: 160px;
    width: 100%;
}

.carousel-container {
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
}

.core-service__infobox .eael-infobox {
    min-height: 250px;
}

/* Carousel */
.projects-carousel {
    overflow: hidden;
    position: relative;
}

.projects-carousel__track {
    display: flex;
    gap: 20px;
    width: max-content;
    cursor: grab;
    user-select: none;
}

.project-carousel__item {
    flex: 0 0 auto;
    width: 310px;
}

.project-carousel__thumb {
    width: 310px;
    height: 460px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-carousel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    opacity: 0;
    transition: 0.3s ease;
}

.project-carousel__overlay > * {
    margin: 0 auto;
    max-width: 210px;
    text-align: center;
    display: flex;
}

.project-carousel__overlay h3 {
    font-size: 20px;
    justify-content: flex-end;
    line-height: 30px;
}

.project-carousel__overlay h3 {
    min-height: 80px;
}


/* Carousel Modal */
.project-carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.project-carousel-modal__dialog {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-carousel-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.project-carousel-modal__body {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.project-carousel-modal__media img {
    max-width: 100%;
    height: 510px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.project-carousel-modal__content {
    text-align: center;
}

.project-carousel-modal__category {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-carousel-modal__title {
    font-size: 16px;
}

.project-carousel-modal__header .project-carousel-modal__btn, .project-carousel-modal__header .project-carousel-modal__btn:focus {
    background: none;
    color: var(--dark-color);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s ease-in-out;
}

.project-carousel-modal__header .project-carousel-modal__btn:hover {
    background: none;
    border: none;
    color: var(--secondary-color);
    transform: scale(1.3);
}

.project-carousel-modal__btn--enlarge i,
.project-carousel-modal__btn--close i {
    pointer-events: none;
}

.brand-services__container .infobox-content {
    max-width: 735px;
}

.company-values__container .infobox-content .infobox-title-section{
    min-height: 60px;
    justify-content: center;
}

.core-service__container .infobox-content {
    max-width: 190px;
}

/* Request Contact Form */
.req-form__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.req-form__container .wpcf7-form-control-wrap input, .req-form__container .wpcf7-form-control-wrap textarea {
    margin-top: 10px;
}

.wpcf7-form .req-form__container .req-form__submit-btn:hover {
    cursor: pointer;
}

.wpcf7-spinner {
    display: none;
}

.req-form__container p {
    flex: 0 0 45%;
}

.req-form__container p:nth-last-child(-n + 2) {
    flex: 0 0 100%;
}

.req-form__container .req-form__field, .req-form__container input:-webkit-autofill {
    background: transparent;
    border: none;
    color: var(--dark-color);
    outline: none;
    padding: 8px 0;
}

/* Management */
.management-item {
    display: flex;
    gap: 50px;
    padding: 50px 0;
    border-bottom: 1px solid var(--primary-color);
}

.management-item__image img {
    width: 305px;
    height: auto;
    object-fit: cover;
}

.management-item__content {
    flex: 1;
}

.management-item__name {
    margin: 0 0 20px;
    font-family: 'Helvetica', sans-serif;
    font-weight: bold;
    font-size: 23px;
    line-height: 25px;
    color: var(--primary-color);
}

.management-item__achievement {
    font-family: 'Lato', sans-serif;
    font-weight: light;
    font-size: 18px;
    line-height: 25px;
    color: black;
    text-align: justify;
}

.management-item__achievement strong {
    font-weight: bold;
}

/* Project Grid */
.projects__grid-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.project-card {
    width: calc(33.333% - 20px);
}

.project-card__thumb {
    max-width: 320px;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card .project-card__overlay  {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 15px;
    opacity: 0;
    transition: 0.3s ease;
    border: none;
}

.project-card__thumb:hover .project-card__overlay  {
    cursor: pointer;
    opacity: 1;
}

.project-card__thumb h3 {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    text-align: center;
    line-height: 30px;
}


/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.project-modal__dialog {
    width: 100%;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

.project-modal__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-modal__header .project-modal__btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-modal__header .project-modal__btn:hover {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 18px;
    transform: scale(1.2);
}

.project-modal__body {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-modal__media {
    flex: 0 1 720px;
    max-width: 100%;
}

.project-modal__media .project-modal__image {
    object-fit: cover;
    width: 100%;
    height: 550px;
    max-width: 100%;
}

.project-modal__content {
    flex: 1;
}

.project-modal__title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-modal--expanded {
    overflow: auto;
}

.project-modal--expanded .project-modal__body {
    flex-direction: column;
}

.project-modal--expanded .project-carousel-modal__body {
    max-width: 100%;
}

.project-modal--expanded .project-modal__media {
    width: 100%;    
}

.project-modal--expanded img, .project-modal--expanded .project-modal__media .project-modal__image {
    height: 100%;
}

.project-modal--expanded .project-carousel-modal__content, .project-modal--expanded .project-modal__content {
    display: none;
}

.eael-gf-mfp-popup .mfp-container button {
    border-style: none;
}

.eael-gf-mfp-popup .mfp-container button:hover {
    background: none;
}

.eael-gf-mfp-popup .mfp-container button:before {
    border-style: none;
}

.eael-gf-mfp-popup .mfp-container .mfp-arrow-right:hover::after {
    border-left: 17px solid white;
}

.eael-gf-mfp-popup .mfp-container .mfp-arrow-left:hover::after {
    border-right: 17px solid white;
}

.eael-gf-mfp-popup .mfp-container .mfp-close {
    font-size: 45px;
}


/* licenses-carousel */
.swiper-slide-inner img.swiper-slide-image {
    object-fit: cover;
    height: 400px;
}


/* elementor-lightbox */
header.elementor-slideshow__header {
    flex-direction: row !important;
}

.elementor-slideshow__share-menu .elementor-slideshow__share-links {
    inset-inline-end: initial; 
    left: 1em;
}

.elementor-slideshow__share-menu .elementor-slideshow__share-links:before {
    inset-inline-end: initial;
    left: 10px;
}

.elementor-lightbox .elementor-lightbox-item {
    background:#000000cc;
}


/* Sustainability Big Button */
#sustain-economic__btn, #sustain-environment__btn, #sustain-social__btn {
    cursor: pointer;
}

.sustain-framework__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.sustain-framework__modal-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sustain-framework__modal-container {
    position: relative;
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 980px;
    height: 100%;
    max-height: 670px;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.sustain-framework__modal-bg .sustain-framework__modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: var(--light-color);
    background: transparent;
    border: none !important;
    cursor: pointer;
    z-index: 10;
}

.sustain-framework__modal-close:hover {
    opacity: 0.7;
}

.sustain-content {
    display: none; /* hide all by default */
}

.sustain-framework__modal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 30px;
    line-height: normal;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.sustain-framework__modal-content p, .sustain-framework__modal-content li {
    font-family: 'helvetica', sans-serif;
    font-size: 16px;
    line-height: 21px;
    margin: 0 0 20px;
}


/* Search Page */
.search-results__section {
    background: var(--light-color);
    padding: 50px 0;
}

.search-results__container h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px;
}

.search-results__container .search-form, .search-results__container .search-input {
    width: 100%;
    border-radius: 0;
}

.search-results__container .search-form .search-button, .search-results__container .search-form .search-button:hover {
    border-radius: 0;
}

.search-results__container .search-result__bar {
    margin-bottom: 10px;
    padding: 0;
}

.search-result {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.search-result h3 {
    margin: 0;
}

.search-result h3 a {
    color: var(--dark-color);
    font-family: 'poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
}

.search-result h3 a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.search-highlight {
    padding: 0 5px;
    color: var(--light-color);
    background-color: var(--primary-color);
}


/* Footer */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-font);
    padding: 50px 0;
}

.footer__container {
    position: relative;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.footer__logo {
    width: 100%;
    max-width: 210px;
}

footer a{
    font-family: 'Poppins', sans-serif;
    font-size: 17px;   
    font-weight: 400;
    color: white;
    line-height: normal;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer__site-nav {
    margin-bottom: 45px;
} 

.footer__site-nav .footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 15px;
}

.footer__site-nav .footer__menu>li:not(:last-child) {
    margin-bottom: 20px;
}

footer li ul {
    list-style: none;
    padding: 10px 0 0;
}

footer li li a {
    color: var(--color-footer-font);
}

/* Footer Licenses */
.footer-licenses-gallery img {
    max-width: 355px;
    height: auto;
}

/* Footer Search */
.footer__search-container {
    display: flex;
    justify-content: end;
    margin-top: 20px;
    text-align: center;
}

/* Search bar General */
.search-form {
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 200px;
    overflow: hidden;
}

.search-input {
    width: 220px;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    height: 100%;
    max-height: 45px;
}

.search-form .search-button {
    background: var(--dark-color);
    border: none;
    border-radius: 0 200px 200px 0;
    height: 100%;
    max-height: 45px;
    padding: 10px 20px;
    cursor: pointer;
}

.search-form .search-button:hover {
    border: none;
    border-radius: 0 200px 200px 0;
    background-color: var(--secondary-color);
}

.search-button i {
    color: var(--light-color);
}


/* ================== Above Small Desktop ================== */
@media (min-width: 769px) {
    .project-carousel__thumb:hover .project-carousel__overlay {
        opacity: 1;
    }

    .projects-carousel:hover .projects-carousel__track {
        animation-play-state: paused;
    }

}

/* 1100px special */
@media (max-width: 1100px) {
    .header__nav--desktop {
        display: none;
    }

    .header__nav--mobile {
        display: block;
        position: fixed;
        width: 100%;
        box-sizing: border-box;
        top: 0;
        justify-content: space-between;
        align-items: center;
        z-index: 9999;
    }

    .header__nav--mobile.scrolled {
        background: var(--color-header-bg);
        backdrop-filter: blur(6px);
        transition: background 0.3s ease;
    }

    .header__top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding:0;
    }

    .header__nav--mobile .header__logo img {
        height: auto;
        margin: 0;
        display: block;
     }

    .header-menu__bar {
        display: block;
        width: 100%;
        margin: 0 20px;
        border: none;
        height: 1px;
    }

    .header__menu-wrapper {
        display: none;
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 8px 8px;
        z-index: 200;
    }

    .header__nav--mobile .header__menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .container-top {
        margin-top: 875px;
    } 

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

/* ================== Small Desktop ================== */
@media (max-width: 1024px) {
    .container{
        padding: 0 15px;
        box-sizing: border-box;
    }

    .management__container .elementor-widget-eael-info-box {
        flex: 0 0 calc(33% - 10px);
    }

    .management-img img {
        max-width: 200px;
    }

    .management-item.hover-right .management-img img {
        transform: translateX(-80px);
    }

    .management-item.hover-right .management-img:hover img {
        transform: translateX(-50px);
    }

    .management-item.hover-left .management-img img {
        transform: translateX(80px);
    }

    .management-item.hover-left .management-img:hover img {
        transform: translateX(50px);
    }

    .project-modal__media {
        flex: 0 0 60%;
    }
}


/* ================== Tablet ================== */
@media (max-width: 768px) {
    .container{
        padding: 0 20px;
    }
    
    .header__nav--mobile .header__logo img {
        max-width: 220px;
    }

    .header__banner {
        height: 750px;
    }

    .header__bannertagline {
        margin: 50px auto;
    }

    .header__bannertagline h1 {
        padding: 0 20px;
        font-size: 54px;
    } 
    
    .header__bannertagline div {
        padding: 0 20px;
        font-size: 20px;
    }

    .container-top {
        margin-top: 735px;
    }
    
    .management-item {
        flex-direction: column;
    }

    .project-carousel__overlay {
        opacity: 1;
    }

    .project-carousel-modal__media img {
        height: 310px;
        margin-bottom: 10px;
    }

    .project-card {
        width: calc(50% - 10px);
    }

    .search-results__section {
        padding: 50px 20px;
    }

    .project-card .project-card__overlay {
        opacity: 1 !important;
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

    .project-card__thumb h3 {
        font-size: 16px;
    }
    
    .project-modal__body {
        flex-direction: column;
        overflow: auto;
    }

    .project-modal__media .project-modal__image{
        height: 280px;
    }

    .project-modal__title {
        margin: 0;
    }
    
    .footer__container {
        padding: 0 20px;
        flex-direction: column;
    }

    .footer__col--logo-licenses {
        display: flex;
        gap: 20px;
    }

    .footer__logo {
        max-width: 150px;
    }
    
    .footer-licenses-gallery img {
        max-width: 200px;
    }

    .footer-licenses__container {
        align-self: flex-end;
    }

    .footer__site-nav, .footer__col--site-nav {
        width: 100%;
    }

    .footer__site-nav .footer__menu {
        column-count: 2;
        column-gap: 20px;
    }

    .footer__site-nav .footer__menu li {
        break-inside: avoid;
        margin: 0 0 10px;
    }

    .footer__search-container {
        justify-content: center;
    }
}


/* ================== Phone ================== */
@media (max-width: 426px) {
    .container{
        padding: 0 10px;
    }

    h1 {
        font-weight: 400;
        font-size: 30px;
        line-height: 54px;
    }

    h2 {
        font-weight: 400;
        font-size: 20px;
    }
    
    .header__banner {
        height: 550px;
    }

    .header__bannertagline {
        margin: 30px auto;
        max-width: 220px;
        left: 105px;
    }

    .header__bannertagline h1 {
        font-size: 30px;
    } 
    
    .header__bannertagline div h2 {
        font-size: 16px;
        line-height: normal;
    }

    .container-top {
        margin-top: 535px;
    }

    .footer .footer__container {
        padding: 20px;
    }

    .footer__col--logo-licenses {
        gap: 10px;
    }

    .footer__logo {
        max-width: 150px;
    }
    
    .footer-licenses-gallery img {
        max-width: 180px;
    }

    .footer__site-nav .footer__menu {
        column-count: 1;
        text-align: center;
    }

    .project-card {
        width: 100%;
    }

    .req-form__container .req-form__submit-btn {
        display: block;
        max-width: 100%;
    }
}