/*   
Theme Name: your-clean-template-3
Theme URI: https://github.com/saxap/clean-wp-template
Version: 3.0
Tags: clean, development, html5, bootstrap
Description: Clean wordpress theme with minimal bootstrap3 markup for fast development starting
Author: saxa:p
Author URI: http://dontforget.pro
*/

/* -------------------------------------------------------------------------- */
/* NORMALIZE                                 */
/* -------------------------------------------------------------------------- */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

a {
    background-color: transparent;
    text-decoration: none;
}

img {
    border-style: none;
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    overflow: visible;
    text-transform: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* BASE & THEME                               */
/* -------------------------------------------------------------------------- */
:root {
    /* Light Theme Colors - UPDATED */
    --clr-accent: #f09b34;
    --clr-accent-dark: #fdbf20;
    --clr-background: #FFFFFF;
    --clr-text: #212529;
    /* Softer Black */
    --clr-text-light: #6C757D;
    /* Grey */
    --clr-section-bg: #F8F9FA;
    /* Off-White/Light Grey */
    --clr-border: #DEE2E6;
    --clr-header-bg: rgba(255, 255, 255, 0.85);
    --clr-header-shadow: rgba(0, 0, 0, 0.07);
    --popup-bg: rgba(25, 25, 25, 0.6);
    --hero-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
}

body.dark-theme {
    /* Dark Theme Colors - UPDATED */
    --clr-accent: #f09b34;
    --clr-accent-dark: #fdbf20;
    --clr-background: #181A1B;
    --clr-text: #E8EAED;
    --clr-text-light: #ADB5BD;
    --clr-section-bg: #202124;
    --clr-border: #3A3F44;
    --clr-header-bg: rgba(24, 26, 27, 0.85);
    --clr-header-shadow: rgba(255, 255, 255, 0.07);
    --popup-bg: rgba(0, 0, 0, 0.7);
    --hero-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--clr-background);
    color: var(--clr-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

h1,
h2,
h3,
h4,
.hero__btn,
.faq__question,
.review-card__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section__title {
    font-size: 2.5rem;
    color: var(--clr-text);
    text-align: center;
    margin-bottom: 50px;
}

/* -------------------------------------------------------------------------- */
/* SCROLL ANIMATION                             */
/* -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------------------------------------------------------------- */
/* HEADER                                   */
/* -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--clr-header-bg);
    box-shadow: 0 2px 10px var(--clr-header-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.fixed {
    background-color: var(--clr-header-bg);
    box-shadow: 0 2px 10px var(--clr-header-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-link {
    display: flex;
    height: 50px;
    width: auto;
}

.header__logo-link img {
    transition: all .3s ease;
}

.header__logo-link img:first-child {
    display: block;
}

body.dark-theme .header__logo-link img:first-child {
    display: none;
}

.header__logo-link img:last-child {
    display: none;
}

body.dark-theme .header__logo-link img:last-child {
    display: block;
}

.header__logo-placeholder {
    color: var(--clr-text);
}

.header__nav {
    margin-inline: auto;
}

.header__nav-list {
    display: flex;
    gap: 35px;
}

.header__nav-link,
.header__nav-list > li > a {
    font-family: 'Montserrat', sans-serif;
    color: var(--clr-text);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.header__nav-link::after,
.header__nav-list > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-accent);
    transition: width 0.4s ease;
}

.header__nav-link:hover,
.header__nav-list > li > a:hover {
    color: var(--clr-accent);
}

.header__nav-link:hover::after,
.header__nav-list > li > a:hover::after {
    width: 100%;
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 24px;
    height: 24px;
    color: var(--clr-text);
}

.theme-toggle svg {
    width: 100%;
    height: 100%;
}

.theme-toggle .theme-toggle__icon-moon {
    display: none;
}

.theme-toggle .theme-toggle__icon-sun {
    display: block;
}

body.dark-theme .theme-toggle .theme-toggle__icon-moon {
    display: block;
}

body.dark-theme .theme-toggle .theme-toggle__icon-sun {
    display: none;
}

.burger {
    display: none;
    position: relative;
    width: 24px;
    height: 18px;
}

.burger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--clr-text);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* HERO                                    */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 800px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #ffffff;
    padding: 60px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    z-index: 1;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hero__bg-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
}

.hero__text {
    font-size: 2.8rem;
    line-height: 1.2;
    max-width: 1200px;
}

/* -------------------------------------------------------------------------- */
/* ABOUT                                   */
/* -------------------------------------------------------------------------- */
.about {
    padding: 80px 0;
    background-color: var(--clr-section-bg);
}

.about__inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
}

.about__text-wrapper > * {
    font-size: 1rem;
    color: var(--clr-text-light);
    margin-bottom: 20px;
}

.hero__btn {
    display: inline-block;
    padding: 15px 45px;
    border: 1px solid var(--clr-accent);
    background-color: var(--clr-accent);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border-radius: 4px;
}

.hero__btn:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    transform: translateY(-2px);
}

.about__btn {
    margin-top: 10px;
}

.about__image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 600px;
}

.about__grid-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.about__grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about__grid-item:hover img {
    transform: scale(1.1);
}

.about__image-grid .about__grid-item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.about__image-grid .about__grid-item:nth-child(2) {
    grid-area: 1 / 3 / 2 / 4;
}

.about__image-grid .about__grid-item:nth-child(3) {
    grid-area: 2 / 3 / 4 / 4;
}

.about__image-grid .about__grid-item:nth-child(4) {
    grid-area: 3 / 1 / 4 / 2;
}

.about__image-grid .about__grid-item:nth-child(5) {
    grid-area: 3 / 2 / 4 / 3;
}

.about__image-grid .about__grid-item:nth-child(6) {
    grid-area: 1 / 2 / 3 / 3;
}

/* -------------------------------------------------------------------------- */
/* PROJECTS                                  */
/* -------------------------------------------------------------------------- */
.projects {
    padding: 80px 0;
    background-color: var(--clr-background);
}

.project-card {
    display: block;
    color: var(--clr-text);
    cursor: pointer;
}

.project-card__image-wrap {
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
}

.project-card__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.1);
}

.project-card__title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.projects__footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.projects .swiper-pagination {
    position: static;
    width: auto;
}

.projects .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 1px solid var(--clr-accent);
    opacity: 1;
    transition: background-color 0.3s ease;
}

.projects .swiper-pagination-bullet-active {
    background-color: var(--clr-accent);
}

/* -------------------------------------------------------------------------- */
/* FAQ                                   */
/* -------------------------------------------------------------------------- */
.faq {
    padding: 80px 0;
    background-color: var(--clr-section-bg);
}

.faq__list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--clr-border);
}

.faq__item {
    border-bottom: 1px solid var(--clr-border);
}

.faq__question {
    width: 100%;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.2rem;
    color: var(--clr-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq__question:hover {
    color: var(--clr-accent);
}

.faq__icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease-out;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--clr-text-light);
    font-size: 1rem;
    padding: 0 10px 0;
}

.faq__answer p {
    padding: 0 10px 20px 10px;
}

.faq__item.active .faq__question {
    color: var(--clr-accent);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__item.active .faq__answer {
    max-height: 300px;
    padding: 0 10px 20px;
}

/* -------------------------------------------------------------------------- */
/* REVIEWS                                  */
/* -------------------------------------------------------------------------- */
.reviews {
    padding: 80px 0;
    background-color: var(--clr-background);
    position: relative;
}

.reviews .swiper-slide {
    height: auto;
}

.review-card {
    text-align: center;
    padding: 30px;
    background-color: var(--clr-section-bg);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card__image-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--clr-accent);
    flex-shrink: 0;
}

.review-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--clr-accent);
    margin-bottom: 10px;
}

.review-card__name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--clr-text);
}

.review-card__text {
    color: var(--clr-text-light);
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-card__project {
    font-size: 0.9rem;
    color: var(--clr-text);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: auto;
}

.reviews .swiper-button-next,
.reviews .swiper-button-prev {
    color: var(--clr-accent);
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.reviews .swiper-button-next:hover,
.reviews .swiper-button-prev:hover {
    opacity: 0.7;
}

.reviews .swiper-button-next::after,
.reviews .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: 900;
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    padding: 80px 0 30px;
    background-color: var(--clr-section-bg);
}

.footer__main {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__info,
.footer__form-container {
    flex: 1;
}

.footer__title {
    text-align: left;
    margin-bottom: 20px;
}

.footer__description {
    color: var(--clr-text-light);
    margin-bottom: 30px;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--clr-text-light);
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: var(--clr-accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--clr-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    background-color: var(--clr-background);
    color: var(--clr-text);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    max-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-accent) 25%, transparent);
}

.footer__btn {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__contacts {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer__contact-link {
    color: var(--clr-text);
    transition: color 0.3s ease;
}

.footer__contact-link:hover {
    color: var(--clr-accent);
}

.footer__copyright p {
    color: var(--clr-text-light);
}

.wpcf7 form.sent .wpcf7-response-output {
    margin: 0;
    border: none;
    padding: 10px;
    font-size: 12px;
    background-color: #46b4504a;
    border-radius: 4px;
}

.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output, 
.wpcf7 form.payment-required .wpcf7-response-output {
    margin: 0;
    border: none;
    padding: 10px;
    font-size: 12px;
    background-color: #ffb9004a;
    border-radius: 4px;
}

.wpcf7-not-valid-tip {
    position: absolute;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
}

.wpcf7-acceptance span {
    margin: 0;
}

.wpcf7-acceptance span label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.wpcf7-acceptance span label input {
    width: 16px;
    height: 16px;
    margin: 5px 0 0;
    padding: 0;
    flex-shrink: 0;
}

.page-template-default section {
    padding: 80px 0;
}

.page-template-default aside {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* POPUP                                   */
/* -------------------------------------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-bg);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.popup.active {
    display: flex;
}

.popup__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup__close:hover {
    color: var(--clr-accent);
}

.popup__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* POPUP GALLERY (NEW)                                */
/* -------------------------------------------------------------------------- */
.popup-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-bg);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-gallery.active {
    display: flex;
}

.popup-gallery__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.popup-gallery__close:hover {
    color: var(--clr-accent);
}

.popup-gallery-slider {
    width: 100%;
    height: 100%;
}

.popup-gallery-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-gallery-slider .swiper-slide img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.popup-gallery .swiper-button-next,
.popup-gallery .swiper-button-prev {
    color: #ffffff;
    transition: color 0.3s ease;
}

.popup-gallery .swiper-button-next:hover,
.popup-gallery .swiper-button-prev:hover {
    color: var(--clr-accent);
}

.popup-gallery .popup-gallery__close,
.popup-gallery .swiper-button-next,
.popup-gallery .swiper-button-prev {
    z-index: 100;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-grid {
        height: 450px;
    }

    .footer__main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header.active .header__nav {
        display: flex;
    }

    .header.active {
        background-color: var(--clr-header-bg);
        box-shadow: 0 2px 10px var(--clr-header-shadow);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-background);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--clr-border);
    }

    .header__nav.active {
        display: flex;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .burger {
        display: block;
    }

    .hero {
        height: 100vh;
        padding: 40px 20px;
    }

    .hero__text {
        font-size: 2.2rem;
    }

    .about__image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: auto;
    }

    .about__grid-item {
        grid-area: unset !important
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__contacts {
        flex-direction: column;
        gap: 15px;
    }
}