/*
Theme Name: critec
Theme URI: https://critec.pt/
Author: critec
Author URI: https://critec.pt/
Description: critec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: critec
*/

.reset-list-styles ul {
    padding: revert !important;
    margin: revert !important;
}

#cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode {
    max-width: unset !important;
}

#sidebar-overlay {
    pointer-events: none;
}

/* WordPress admin bar: theme header is position:absolute/fixed at viewport top */
body.admin-bar .header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

body.admin-bar .header .primary-header.fixed {
    top: var(--wp-admin--admin-bar--height, 32px);
    margin-top: 0;
}

body.admin-bar .sidebar-area {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

/* WP switches admin bar to absolute at ≤600px, which breaks html margin-top bump */
@media screen and (max-width: 600px) {
    body.admin-bar #wpadminbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
}

.header .primary-header-inner {
    flex-wrap: nowrap !important;
}

.header-4 .primary-header-inner .header-right-wrap .search-icon,
.header-4 .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger {
    color: var(--tl-color-common-white) !important;
    border-color: var(--tl-color-common-white) !important;
}

.header-4 .primary-header.fixed .primary-header-inner .header-right-wrap .search-icon,
.header-4 .primary-header.fixed .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger {
    color: var(--tl-color-common-black) !important;
    border-color: var(--tl-color-common-black) !important;
}

.img-servicos {
    max-height: 1000px;
    width: 100%;
    object-fit: cover;
}

.critec-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
}

.critec-pin__head {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background-color: var(--pin-color);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.critec-pin__logo {
    position: absolute;
    inset: 0;
    width: 70% !important;
    height: 70% !important;
    margin: auto;
    transform: rotate(45deg);
    /* counter-rotate to keep logo upright */
    object-fit: contain !important;
    filter: brightness(0) invert(1);
    /* makes any logo white — remove if your logo is already light */
    border-radius: 0 !important;
}

.critec-pin__tail {
    width: 2px;
    height: 10px;
    background-color: var(--pin-color);
    opacity: 0.7;
}

.forminator-ui.forminator-custom-form-171 .forminator-response-message {
    color: var(--tl-color-common-white) !important;
}

.form-light .forminator-ui.forminator-custom-form-503 .forminator-field-html p,
.form-light .forminator-ui.forminator-custom-form-504 .forminator-field-html p,
.form-light .forminator-ui.forminator-custom-form-505 .forminator-field-html p,
.form-light .forminator-ui.forminator-custom-form-503 .forminator-checkbox__label.forminator-consent__label p,
.form-light .forminator-ui.forminator-custom-form-504 .forminator-checkbox__label.forminator-consent__label p,
.form-light .forminator-ui.forminator-custom-form-505 .forminator-checkbox__label.forminator-consent__label p {
    color: var(--tl-color-common-black) !important;
}

.form-light .forminator-ui.forminator-custom-form-503 .forminator-input,
.form-light .forminator-ui.forminator-custom-form-504 .forminator-input,
.form-light .forminator-ui.forminator-custom-form-505 .forminator-input,
.form-light .forminator-ui.forminator-custom-form-503 .forminator-textarea,
.form-light .forminator-ui.forminator-custom-form-504 .forminator-textarea,
.form-light .forminator-ui.forminator-custom-form-505 .forminator-textarea {
    background-color: var(--tl-color-common-white) !important;
}

.form-light .forminator-ui.forminator-custom-form-503 .forminator-label,
.form-light .forminator-ui.forminator-custom-form-504 .forminator-label,
.form-light .forminator-ui.forminator-custom-form-505 .forminator-label {
    color: var(--tl-color-common-black) !important;
}

.forminator-response-message.forminator-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grecaptcha-badge {
    z-index: 9999;
}

.project-details-wrap .project-details-img img {
    object-position: top;
}

.header-4.white-content .primary-header:not(.fixed) .primary-header-inner .header-menu-wrap ul li:not(.active) a {
    color: var(--tl-color-common-white);
}

body.light-header-page .primary-header .logo-white {
    display: none;
}

body.light-header-page .primary-header .logo-color {
    display: block;
}

body.light-header-page .header .primary-header:not(.fixed) .primary-header-inner .header-menu-wrap ul li a,
body.light-header-page .header-4.white-content .primary-header:not(.fixed) .primary-header-inner .header-menu-wrap ul li:not(.active) a {
    color: var(--tl-color-heading-primary);
}

body.light-header-page .header .primary-header:not(.fixed) .primary-header-inner .header-menu-wrap ul li.menu-item-has-children:after {
    color: var(--tl-color-heading-primary);
}

body.light-header-page .header .primary-header:not(.fixed) .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger,
body.light-header-page .header-4 .primary-header:not(.fixed) .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger {
    color: var(--tl-color-heading-primary) !important;
    border-color: var(--tl-color-heading-primary) !important;
    background: transparent;
}

body.light-header-page .header .primary-header:not(.fixed) .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger svg,
body.light-header-page .header .primary-header:not(.fixed) .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger svg path {
    fill: currentColor;
}

/* .project-item-7 .project-thumb:before {
    background: linear-gradient(180deg, rgba(185, 183, 174, 0) 0%, rgba(134, 132, 126, 0.54) 19.25%, var(--tl-color-theme-primary) 46.79%);
} */

.primary-header .logo-white {
    display: block;
}

.primary-header .logo-color {
    display: none;
}

.primary-header.fixed .logo-white {
    display: none;
}

.primary-header.fixed .logo-color {
    display: block;
}

.header .primary-header-inner .header-right-wrap .header-btn {
    background-color: var(--accent) !important;
}

.header-4 .primary-header-inner .header-right-wrap .header-btn-wrap .header-btn {
    border: 1px solid var(--accent) !important;
}

.header-area-link img {
    transition: transform 0.15s ease-in-out;
}

.header-area-link:hover img {
    transform: scale(1.1);
}

.hero-section-6 .hero-text {
    bottom: -30px;
}

.hero-section-6 .hero-text span,
.footer-text span {
    font-size: 200px;
    background: linear-gradient(180deg, var(--accent) 50.9%, rgba(153, 153, 153, 0) 72.95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section-6 .bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-section-6 .bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section-6 .bg-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact-section .request-item-wrap>.request-item:first-of-type {
    max-width: 42ch !important;
}

.service-section-2 .service-item {
    transition: box-shadow 0.3s ease-in-out;
}

.service-section-2 .service-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-section-2 .service-item.service-item-bg h3,
.service-section-2 .service-item.service-item-bg p {
    color: #FFFFFF;
}

.service-section-2 .service-item:hover .area-link h3 {
    color: var(--area-accent);
}

.service-item.service-item-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-item.service-item-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Adjust opacity as needed */
    pointer-events: none;
    z-index: 1;
}

.service-item .service-top {
    padding-bottom: 60px;
}

.footer-section {
    padding-bottom: 235px;
}

.footer-text {
    bottom: -35px;
}

.footer-text span {
    background: linear-gradient(180deg, var(--accent) 55.9%, rgba(153, 153, 153, 0) 75.95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

*::placeholder {
    font-size: 16px !important;
    font-family: var(--tl-ff-body) !important;
    color: #9f9fa4 !important;
}

.footer-widget a {
    color: var(--tl-color-common-white);
    font-size: 16px;
}

.last-paragraph-no-margin p:last-of-type {
    margin-bottom: 0 !important;
}

.project-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.project-filter-btn {
    font-family: var(--tl-ff-heading);
    font-size: 13px;
    padding: 5px 15px;
    text-transform: uppercase;
    border: 1px solid var(--tl-color-heading-primary);
    border-radius: 100px;
    background: transparent;
    color: var(--tl-color-heading-primary);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.project-filter-btn:hover,
.project-filter-btn.active {
    background-color: var(--accent, var(--tl-color-theme-primary));
    border-color: var(--accent, var(--tl-color-theme-primary));
    color: var(--tl-color-common-white);
}

@media (max-width: 1600px) {
    .project-left-content-7 .section-heading {
        margin-bottom: 300px;
    }
}

@media (max-width: 1400px) {
    .project-left-content-7 .section-heading {
        margin-bottom: 170px;
    }

    .contact-section .request-item-wrap>.request-item:first-of-type {
        max-width: 36ch !important;
    }
}

@media (max-width: 1300px) and (min-width: 993px) {
    .contact-section .request-item-wrap>.request-item:first-of-type {
        max-width: 24ch !important;
    }
}

@media (max-width: 1000px) {
    .img-servicos {
        max-height: 700px;
    }
}

@media (max-width: 992px) {
    .page-header .page-header-content {
        padding: 150px 0 100px 0;
    }

    .page-header .page-header-content .title {
        font-size: 50px;
    }

    .project-details-wrap .project-details-meta {
        flex-wrap: wrap;
        gap: 16px 16px;
    }
}

@media (max-width: 625px) {
    .project-item-7 .project-thumb:before {
        height: 235px;
    }

    .page-header .page-header-content .title {
        font-size: 35px;
    }

    .project-details-wrap .details-title {
        font-size: 35px;
    }
}

@media (max-width: 575px) {
    .page-header .page-header-content {
        padding: 200px 0 100px 0;
    }
}