/*
Theme Name: Garant Online Metal
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://openai.com/
Description: Лёгкая WordPress-тема на основе самописного сайта для продажи кровельных материалов, металлопроката и металлоконструкций. При активации создаёт основные страницы, меню, SEO-мета и WhatsApp-контакты.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garant-online-metal
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,800;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body{
    background: url("./assets/img/bg.png");
    font-family: 'Montserrat', sans-serif;
    color: #333;
    min-width: 320px;
}

img {
    max-width: 100%;
    height: auto;
}

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

.line {
    max-width: 850px;
    height: 1px;
    background: #FF4912;
    margin: 15px auto 35px;
}

.header {
    width: 100%;
    background: url("./assets/img/top_bg3.webp") center top no-repeat;
    height: 900px;
    position: relative;
    margin-bottom: 80px;
}

.header__nav_mobile {display: none}

.header__nav {
    max-width: 850px;
    border-bottom: 1px solid #FF4912;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    column-gap: 20px;
    padding: 40px 0 30px;
    margin: 0 auto;
}

.header__nav-item,
.header__nav .menu-item a {
    padding: 13px 25px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    color: #FF4912;
    text-transform: uppercase;
    background: #fff;
    display: inline-block;
    border: 1px solid transparent;
    transition: .2s ease;
}

.header__nav-item:hover,
.header__nav .menu-item a:hover,
.header__nav-item:focus,
.header__nav .menu-item a:focus {
    color: #fff;
    background: #FF4912;
    outline: none;
}

.header__nav-logo {
    margin-bottom: -20px;
    padding: 0 15px;
    background: transparent !important;
    border: none !important;
}

.header__nav-logo:hover,
.header__nav-logo:focus {
    background: transparent !important;
}

.header__nav-logo-img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.header__info {
    background: #fff;
    position: absolute;
    bottom: 0;
    right: 50%;
    max-width: 425px;
    padding: 30px;
}

.header__info-h1 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.35;
    color: #333;
    padding-bottom: 30px;
}

.header__info-text {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.45;
    color: #333;
    padding-bottom: 30px;
}

.header__info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button,
.page-content a.button,
.contact__text a.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 54px;
    padding: 15px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid #FF4912;
    color: #fff !important;
    background: #FF4912;
    transition: color .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 73, 18, .16);
}

.button:hover,
.button:focus,
.page-content a.button:hover,
.page-content a.button:focus,
.contact__text a.button:hover,
.contact__text a.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    color: #FF4912 !important;
    background: #fff;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.button--white,
.page-content a.button--white {
    color: #FF4912 !important;
    background: #fff;
}

.button--white:hover,
.button--white:focus,
.page-content a.button--white:hover,
.page-content a.button--white:focus {
    color: #fff !important;
    background: #FF4912;
}

.product__title,
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 24px;
    color: #FF4912;
    text-align: center;
    text-transform: uppercase;
}

.product__cards,
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 80px;
}

.product__cards-item,
.card-grid__item {
    max-width: 270px;
    min-width: 250px;
    width: calc(33.3333% - 14px);
    background: #FF4912;
    padding: 25px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.product__cards-item:hover {
    transform: translateY(-3px);
}

.product__cards-h3,
.card-grid__title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    padding-bottom: 30px;
}

.product__cards-text,
.card-grid__text {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.45;
    color: #fff;
    padding-bottom: 20px;
}

.product__cards-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-width: 170px;
    min-height: 44px;
    margin-top: auto;
    padding: 12px 18px;
    border: 1px solid #fff;
    color: #fff !important;
    background: #FF4912;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
    transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.product__cards-link:hover,
.product__cards-link:focus {
    color: #FF4912 !important;
    background: #fff;
    transform: translateY(-2px);
    outline: none;
}

.product__rulon {
    max-width: 850px;
    margin: 0 auto 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.rulon__text {
    min-width: 240px;
    max-width: 540px;
}

.product__rulon-img {
    max-width: 260px;
}

.partner__cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 20px;
    max-width: 850px;
    margin: 0 auto 80px;
}

.partner__cards-item {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(0.1);
}

.contact__flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.contact__text,
.contact__text a {
    max-width: 570px;
    min-width: 250px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #333;
    padding-bottom: 18px;
}

.contact__text b {
    font-weight: 800;
}

.contact__map {
    width: 100%;
    max-width: 570px;
}

.contact__box {
    background: #fff;
    border-left: 4px solid #FF4912;
    padding: 28px 32px;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .04);
}

.content-area {
    max-width: 850px;
    margin: 0 auto 80px;
}

.page-content {
    background: #fff;
    padding: 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: #FF4912;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 18px;
}

.page-content h1 {font-size: 30px;}
.page-content h2 {font-size: 24px; margin-top: 30px;}
.page-content h3 {font-size: 20px; margin-top: 22px;}
.page-content p {margin: 0 0 16px;}
.page-content ul,
.page-content ol {margin: 0 0 18px 22px;}
.page-content li {margin-bottom: 8px;}
.page-content a {color: #FF4912; font-weight: 800;}

.page-lead {
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 25px;
}

.service-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-step {
    background: #fff;
    border: 1px solid #FF4912;
    padding: 20px;
}

.service-step:before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    background: #FF4912;
    color: #fff;
    font-weight: 800;
}

.footer {
    max-width: 850px;
    margin: 0 auto 40px;
    border-top: 1px solid #FF4912;
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.footer a {
    color: #FF4912;
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 46px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid #FF4912;
    background: #FF4912;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: color .22s ease, background-color .22s ease, opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: #fff;
    color: #FF4912;
    outline: none;
    transform: translateY(-2px);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .button,
    .page-content a.button,
    .contact__text a.button,
    .wp-block-button__link,
    .product__cards-link,
    .back-to-top {
        transition: none;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 920px) {
    .header__nav {
        column-gap: 10px;
    }
    .header__nav-item {
        padding: 13px 18px;
    }
}

@media (max-width: 800px) {
    .header__nav-logo {
        padding: 0;
    }
    .product__cards-item,
    .card-grid__item {
        max-width: unset;
        min-width: unset;
        width: 100%;
        padding: 15px;
    }
    .rulon__text {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    .service-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header {
        width: 100%;
        background: url("./assets/img/top_bg3.png") center/cover no-repeat;
        height: 700px;
        margin-bottom: 20px;
    }
    .header__nav {visibility: hidden}
    .header__nav_mobile {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        margin-top: 40px;
        width: 100%;
        padding: 10px;
    }
    .header__nav-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .header__nav-item-mobile {
        padding: 8px 10px;
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 11px;
        color: #FF4912;
        text-transform: uppercase;
        background: #fff;
        display: inline-block;
    }
    .header__nav-item-mobile:hover,
    .header__nav-item-mobile:focus {
        background: #FF4912;
        color: #fff;
        outline: none;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 10px;
    }
    .header {
        width: 100%;
        background: url("./assets/img/top_bg3.png") center/cover no-repeat;
        min-height: 520px;
        height: 640px;
        margin-bottom: 20px;
        margin-top: -30px;
    }
    .header__info {
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 10px;
    }
    .header__info-h1 {
        font-size: 19px;
        padding-bottom: 18px;
    }
    .header__info-text {
        font-size: 16px;
        padding-bottom: 18px;
    }
    .page-content {
        padding: 22px 15px;
    }
    .back-to-top {
        right: 10px;
        bottom: 10px;
        min-width: 98px;
        min-height: 42px;
        padding: 10px 12px;
    }
    .button,
    .page-content a.button,
    .contact__text a.button,
    .wp-block-button__link {
        width: 100%;
        min-width: 0;
    }
}
