/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* root */
:root {
    --green: #0b8524;
    --light-gray: #777;
    --gray: #333;
    --white: #fff;
    --light: #fbfbfb;
    --hover: #e7e7e7;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: var(--gray);
}

/* --- HEADER & BRANDING --- */
.site-header {
    padding: 0;
}

.site-branding {
    padding: 10px 0;
}

/* --- MENU DESKTOP --- */
.menu,
.menu li {
    height: 100%;
    align-items: center;
}

.menu a {
    display: flex !important;
    align-items: center;
    color: var(--light-gray);
    height: 100%;
    transition: color 0.3s ease;
}

.menu li:active,
.menu li:focus-within {
    background-color: var(--light);
}

.menu li:active a,
.menu li:focus-within a {
    color: var(--green);
}

.menu a:hover {
    color: var(--gray);
}

/* --- TOGGLE BUTTON (HAMBURGER) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--green);
    transition: 0.3s;
}

/* --- MOBILE STYLES --- */
@media (max-width: 1024px) {
    
    .site-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .menu-toggle {
        display: block;
        z-index: 999;
    }
	
	.menu a {
		margin: auto;
	}

    .menu-toggle.is-active {
        background-color: transparent;
        border: 1px solid #ddd;
        border-radius: 12px;
    }

    /* Animacja Hamburgera w "X" */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Panel Nawigacji (Slide Effect) */
    .site-navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 998;
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
    }

    .site-navigation.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Lista wewnątrz menu mobile */
    .site-navigation ul.menu {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .site-navigation ul.menu li {
        width: 100%;
        padding: 10px 0;
    }

    .site-navigation button:hover, 
    .site-navigation button:focus { 
        background-color: transparent; 
    }
}