/*
Theme Name: Nezgasni
Description: WordPress + React development theme with Vite HMR support
Version: 1.0.0
Author: Nezgasni Team
*/

/* Reset some WordPress defaults */
* {
    box-sizing: border-box;
}

:root{
    --header-height: 82px;
    --scrolling-height: 85px;
    --hero-min: 590px;
    --hero-max: 1450px;
}

body {
    font-family: 'UAF Memory', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F9F9F9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.search-help-text,
.hero-search-form,
.search-input,
.search-button,
.hero-search-form input,
.hero-search-form button {
    font-family: 'Lato', sans-serif;
}

/* =========================
   Container styles
========================= */

body .container {
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    padding: 2.5rem 0;
}

@media (min-width: 1840px) {
    body .container {
        max-width: 1800px;
    }
}

@media (max-width: 1839px) and (min-width: 1400px) {
    body .container {
        max-width: 1320px;
    }
}

@media (max-width: 1399px) {
    body .container {
        max-width: 1140px;
    }
}

@media (max-width: 1190px) {
    body .container {
        max-width: 980px;
    }
}

@media (max-width: 1024px) {
    body .container {
        max-width: 904px;
    }
}

@media (max-width: 945px) {
    body .container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
}

.container-fluid {
    width: 100%;
    padding: 0;
}


.power-grid {
    display: grid;
    grid-template-columns: 837fr 923fr;
    gap: 40px;
    width: 100%;
    align-items: center;

    @media (max-width: 1500px) {
        grid-template-columns: 616fr 680fr;
        gap: 24px;
    }

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

.power-grid.items-start { align-items: flex-start; }
.power-grid.items-end { align-items: flex-end; }

/* =========================
   Header (Site Header)
========================= */

.site-header {
    background-color: #F9F9F9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Додаємо плавність для анімації приховування */
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Новий клас для приховування хедера */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header .container {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    text-decoration: none;
    color: #2c3e50;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.site-logo a:hover {
    opacity: 0.8;
}

.site-logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-logo .custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 250px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: stretch;
}

.nav-menu li {
    margin: 0;
}

/* Links */
.site-header .header-content .main-navigation .nav-menu li a {
    text-decoration: none;
    color: #101017;
    font-weight: 400;
    font-size: 17px;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

.site-header .header-content .main-navigation .nav-menu li a:hover,
.site-header .header-content .main-navigation .nav-menu li.current-menu-item a {
    opacity: 0.7;
}

/* Last menu item button */
.site-header .header-content .main-navigation .nav-menu li:last-child a {
    display: flex;
    padding: 0.625rem 1rem;
    justify-content: center;
    align-items: center;
    margin-left: 0.5rem;
    border-radius: 2px;
    background: #B28F23;
    text-transform: uppercase;

    color: #F9F9F9;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.09px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.is-active .menu-toggle-icon {
    transform: rotate(180deg);
}

/* Header - Mobile Menu */
@media (max-width: 1024px) {

    .site-header{
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .mobile-menu-toggle{
        z-index: 202;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation {
        position: fixed;
        left: 0;
        right: 0;

        top: var(--header-height, 82px);
        background: #F9F9F9;

        display: flex;
        width: 100%;
        padding: 1.75rem 1.5rem 2.8rem 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;

        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;

        z-index: 150;
        box-shadow: 0 10px 20px -14px rgba(0,0,0,0.25);
        will-change: max-height, opacity;
    }

    .main-navigation.is-open {
        max-height: calc(100vh - var(--header-height, 82px));
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.75rem;
        align-items: stretch;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        list-style: none;
    }

    .nav-menu li a {
        padding: 0;
        font-size: 18px;
        color: #101017;
        text-align: center;
        display: block;
    }

    .site-header .header-content .main-navigation .nav-menu li:last-child a {
        margin: 0 auto;
        width: fit-content;
        background: #B28F23;
        color: #F9F9F9;
        border-radius: 2px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* =========================
   Main content
========================= */

.site-main {
    padding: 0;
    min-height: 60vh;
}

.hero-slider-section {
    margin: 0;
    padding: 0;
}

.scrolling-text-wrapper-section {
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.scrolling-text-static {
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    color: #101017BF;
}

.front-page-content {
    padding: 3rem 0;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   Footer styles
========================= */

.site-footer {
    background: #E6E1D4;
    color: #333;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
}

/* Footer Row 1 */
.footer-row-1 {
    display: flex;
    justify-content: space-between;
    padding: 3.75rem 0;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-email {
    color: #121110;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
}

.footer-social a {
    color: #121110;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-social .separator {
    color: #121110;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 7.5rem;
}

.footer-links-col ul {
    list-style-type: square;
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col li {
    margin: 0;
}

.footer-links-col a {
    color: #121110;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.footer-links-col a:hover {
    opacity: 0.7;
}

/* Footer Row 2 - Newsletter */
.footer-row-2 {
    padding: 3.75rem 0 2.5rem;
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    margin: 0 0 2.5rem;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    color: #121110;
    margin: 0;
    line-height: 1.4;
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 540px;
    width: 100%;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid rgba(18, 17, 16, 0.2);
    background: white;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: rgba(18, 17, 16, 0.4);
}

.newsletter-input::placeholder {
    color: rgba(18, 17, 16, 0.5);
}

.newsletter-button {
    padding: 1rem 2rem;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    background: #121110;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    opacity: 0.85;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(18, 17, 16, 0.6);
    line-height: 1.6;
}

/* =========================
   Responsive (Global)
========================= */

@media (max-width: 768px) {

    .logo-text {
        font-size: 1.25rem;
    }

    .footer-container {
        padding: 0 1.25rem;
    }

    .footer-row-1 {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem 0;
    }

    .footer-links {
        gap: 2.5rem;
        flex-direction: column;
    }

    .footer-logo-text {
        font-size: 32px;
    }

    /* Newsletter */
    .newsletter-section {
        flex-direction: column;
        gap: 1.25rem;
    }

    .newsletter-title {
        font-size: 20px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .newsletter-button {
        width: 100%;
    }

    .footer-row-2 {
        padding: 2.5rem 1.875rem;
    }
}

/* =========================
   Development indicator
========================= */

.dev-mode-indicator {
    position: fixed;
    top: 0;
    right: 0;
    background: #23282d;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 11px;
    z-index: 9999;
    border-bottom-left-radius: 4px;
}
