/*
Theme Name: BuildOut Solutions
Author: ZOAR
Author URI: https://zoar.agency/
Description: Вёрстка и натяжка шаблона - ZOAR.agency. Для связи: <a href="https://t.me/d9d9_Sun">d9d9_Sun</a>
Version: 0.1
*/


@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/montserrat.ttf');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --main-color: #04426f;
    --secondary-color: #ff4228;
    --main-font: 'Montserrat';
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-locale: auto;
    white-space: normal;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Montserrat';
}

.container {
    max-width: 1920px;
    padding: 0 120px;
    margin: auto;
}

p {
    margin-bottom: 18px;
}

.top-bar {
    background-color: var(--main-color);
    color: #fff;
    font-size: 16px;
    padding: 12px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.top-bar a:hover {
    border-color: #fff;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 48px;
}

.main-header {
    padding: 24px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.main-header .logo {
    margin-top: 10px;
}

.main-header .logo a {
    color: var(--main-color);
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 8px;
}

.main-header .logo a span {
    color: var(--secondary-color);
    font-size: 32.5px;
}

nav {
    display: flex;
    gap: 24px;
    font-size: 24px;
}

nav a {
    text-decoration: none;
    color: var(--main-color);
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.burger span {
    height: 3px;
    width: 100%;
    background-color: var(--main-color);
    transition: all 0.3s ease;
}

.hero-section {
    height: 80vh;
}

.hero-section {
    display: flex;
}

.hero-section__left {
    background-image: url('./images/hero-image.jpg');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    height: 70vh;
    flex: 1;
    z-index: 200;
    position: relative;
}

.hero-section__right {
    background-color: var(--secondary-color);
    height: 75vh;
    flex: 1.3;
    margin-left: -200px;
    z-index: 100;
    position: relative;
}

.hero-section__header {
    padding-left: 250px;
    padding-top: 200px;
    padding-right: 60px;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
}

.hero-section__desc {
    padding-left: 250px;
    max-width: 70%;
    color: #fff;
    font-weight: 300;
}

.hero-section__buttons {
    padding-left: 250px;
    margin-top: 50px;
    display: flex;
    gap: 48px;
}

.hero-section__buttons a {
    text-decoration: none;
    color: #fff;
}

.hero-section__about-button {
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
    border-radius: 30px;
    padding: 15px 25px;
    transition: all 0.3s ease-in-out;
}

.hero-section__about-button:hover {
    transform: scale(1.02);
}

.hero-section__about-button:active {
    transform: scale(0.99);
}

.hero-section__services-button {
    border: 1px solid #fff;
    border-radius: 30px;
    padding: 15px 25px;
    transition: all 0.3s ease-in-out;
}

.hero-section__services-button:hover {
    transform: scale(1.02);
}

.hero-section__services-button:active {
    transform: scale(0.99);
}

.about-section {
    padding: 120px 0;
}

.about-section .container {
    display: flex;
    gap: 80px;
}

.about-section__left {
    background-image: url('./images/yers-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-width: 380px;
    height: 460px;
    border-radius: 10px;
    padding: 25px;
}

.about-section__left-inner {
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    isolation: isolate;
}

.about-section__left-years {
    font-size: 92px;
    font-weight: 700;
    color: var(--main-color);
}

.about-section__left-header {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 500;
}

.about-section__left-desc {
    max-width: 80%;
    text-align: center;
}

.about-section__right {
    flex: 1;
}

.about-section__right-header {
    margin-top: 10px;
    font-weight: 900;
    font-size: 92px;
    color: var(--main-color);
}

.about-section__right-desc {
    font-size: 24px;
    max-width: 80%;
    line-height: 36px;
}

.about-section__right-desc span {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-section__right-project-numbers {
    margin-top: 36px;
    display: flex;
    gap: 48px;
}

.about-section__right-project-number::before {
    content: "";
    background-color: var(--secondary-color);
    width: 36px;
    height: 36px;
    display: block;
    margin-bottom: -25px;
    margin-left: -17px;
}

.about-section__right-project-number {
    color: var(--main-color);
    font-size: 36px;
    padding-left: 15px;
}

.services-section {
    background-color: #dadada;
    padding: 120px 0;
}

.services-section__header {
    font-weight: 900;
    font-size: 92px;
    color: var(--main-color);
    margin-bottom: 60px;
}

.services-section__residential-header,
.services-section__commercial-header {
    font-size: 36px;
    color: #6B7280;
    margin-bottom: 24px;
}

.services-section__residential {
    margin-bottom: 60px;
}

.services-section__residential-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-section__residential-item {
    background-color: #fff;
    aspect-ratio: 1/1;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.services-section__residential-item-icon {
    margin-bottom: 36px;
}

.item-remodeling .services-section__residential-item-icon {
    margin-bottom: 12px;
}

.services-section__residential-item-icon svg {
    width: 92px;
    height: 92px;
}

.services-section__residential-item-header {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
}

.services-section__residential-item-desc {
    color: #bdbdbd;
    max-width: 60%;
}

.services-section__commercial-list {
    display: flex;
    gap: 24px;
}

.services-section__commercial-item {
    background-color: #fff;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    flex: 1;
}

.services-section__commercial-item-icon {
    margin-bottom: 36px;
}

.services-section__commercial-item-icon svg {
    width: 92px;
    height: 92px;
}

.services-section__commercial-item-header {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
}

.services-section__commercial-item-desc {
    color: #bdbdbd;
    max-width: 60%;
}

.projects-section {
    padding: 120px 0;
    background-color: var(--main-color);
}

.projects-section__header {
    font-weight: 900;
    font-size: 92px;
    color: #fff;
    margin-bottom: 60px;
}

.projects-section__list-vert {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  grid-auto-rows: 500px;
  margin-bottom: 15px;
}

.projects-section__list-vert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.projects-section__list-hor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  grid-auto-rows: 300px;
}

.projects-section__list-hor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contacts-section {
    padding: 120px 0;
}

fieldset.hidden-fields-container {
    display: none;
}

.contacts-section__header {
    font-weight: 900;
    font-size: 92px;
    color: var(--main-color);
    margin-bottom: 60px;
}

.fields-wrapper {
    width: 100%;
    display: flex;
    gap: 36px;
}

.fields-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fields-right-column input {
    padding: 12px;
    font-size: 20px;
    width: 100%;
    border: 1px solid #dadada;
    border-radius: 12px;
    font-family: 'Montserrat';
}

.fields-left-column {
    flex: 1;
}

.fields-left-column textarea {
    padding: 12px;
    font-size: 20px;
    height: 100%;
    width: 100%;
    border: 1px solid #dadada;
    border-radius: 12px;
    font-family: 'Montserrat';
}

.wpcf7-submit {
    display: block;
    margin: 0 auto;
    border: 0;
    background-color: var(--main-color);
    color: #fff;
    transition:  all 0.3s ease-in-out;
}

.wpcf7-submit:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.wpcf7-submit:active {
    transform: scale(0.99);
}

.wpcf7-spinner {
    display: none;
}

footer {
    background-color: var(--main-color);
    color: #fff;
    padding: 60px 0;
}

@media (max-width: 1620px) {
    .container {
        padding: 0 60px;
    }
    .services-section__residential-item-header {
        font-size: 24px;
    }
}

@media (max-width: 1375px) {
    .hero-section__desc {
        max-width: 90%;
    }
    .about-section__right-desc {
        max-width: 90%;
    }
    .services-section__residential-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .services-section__commercial-list {
        gap: 16px;
    }
    .about-section__right-header,
    .services-section__header,
    .projects-section__header,
    .contacts-section__header {
        font-size: 72px;
    }
}

@media (max-width: 1044px) {
    .top-bar .container {
        gap: 24px;
    }
    .about-section .container {
        gap: 16px;
    }
    .services-section__residential-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .services-section__commercial-list {
        gap: 12px;
    }
    .projects-section__list-vert {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-section__list-hor {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 998px) {
    .top-bar .container {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }
    .burger {
        display: flex;
    }
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 60px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    nav.open {
        display: flex;
    }
    .burger.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    .hero-section__left {
        flex: 0.5;
    }
    .about-section .container {
        flex-direction: column;
        align-items: center;
    }
    .about-section__right-header {
        text-align: center;
    }
    .about-section__right-desc {
        text-align: center;
        max-width: 100%;
    }
    .about-section__right-project-numbers {
        gap: 24px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .hero-section__left {
        display: none;
    }
    .services-section__residential-list {
        grid-template-columns: 1fr;
    }
    .services-section__commercial-list {
        flex-direction: column;
    }
    .projects-section__list-vert {
        grid-template-columns: 1fr;
    }
    .projects-section__list-hor {
        grid-template-columns: 1fr;
    }
    .fields-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    .fields-right-column {
        gap: 12px;
    }
    .about-section__right-header,
    .services-section__header,
    .projects-section__header,
    .contacts-section__header {
        font-size: 48px;
    }
    .hero-section__right {
        margin: 0;
        height: 65vh;
    }
    .hero-section__header {
        padding-left: 24px;
        padding-top: 50px;
        padding-right: 24px;
    }
    .hero-section__desc {
        max-width: 100%;
        padding: 0 24px;
    }
    .hero-section__buttons {
        flex-direction: column;
        padding: 0 24px;
        gap: 24px;
    }
    .hero-section {
        height: auto;
    }
    .about-section__left {
        max-width: 100%;
        min-width: unset;
    }
    .about-section__right-project-numbers {
        flex-direction: column;
        align-items: center;
    }
}