/*
Theme Name: bike-fest-glac
Theme URI: http://beskidbikefest.pl
Description: Dedykowany motyw dla festiwalu rowerowego z integracją WPBakery.
Author: Twoje Imię
Version: 1.0
Text Domain: bike-fest-glac
Tags: custom-background, custom-menu, full-width-template
*/

/* Reset i podstawowe style */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular jako domyślny */
    color: #292929; /* Domyślny kolor tekstu */
    overflow-x: hidden;
}

p {
    line-height: 1.5em;
}

/* Globalne style dla nagłówków */
h1, h2, h3, h4, h5, h6 {
    color: #000; /* Nadpisanie koloru dla nagłówków, aby nie dziedziczyły #292929 jeśli mają być czarne */
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Black dla H1 */
}

/* Globalna klasa dla kontenerów (np. w WPBakery) */
.contentbox {
    width: 75%;
    max-width: 1200px; /* Opcjonalne zabezpieczenie przed zbyt szerokim rozciągnięciem na ogromnych ekranach */
    margin: 0 auto; /* Centrowanie samego boxa na stronie */
    display: flex;
    flex-direction: column; /* Domyślnie układa elementy jeden pod drugim */
    justify-content: center; /* Centrowanie zawartości w pionie */
    align-items: center; /* Centrowanie zawartości w poziomie */
    text-align: center; /* Centrowanie tekstu */
}

/* Na mniejszych ekranach box powinien zajmować więcej miejsca */
@media (max-width: 768px) {
    .contentbox {
        width: 90%;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Klasa dodawana przez JS podczas scrollowania */
.site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px; /* To accommodate the 107px logo */
    transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 90px; /* Zmniejszamy wysokość po scrollu */
}

.site-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.site-logo a {
    display: inline-block;
}

.site-logo img,
.site-logo .custom-logo {
    width: 274px;
    max-width: 100%;
    height: auto;
    max-height: 107px;
    display: block;
    transition: max-height 0.3s ease, width 0.3s ease;
    object-fit: contain;
    object-position: left center;
}

.site-header.scrolled .site-logo img,
.site-header.scrolled .site-logo .custom-logo {
    max-height: 80px;
    width: 205px; /* Proportional width for 80px height */
    /* Zmiana koloru logo na #e94f1b za pomocą CSS filter */
    filter: brightness(0) saturate(100%) invert(42%) sepia(87%) saturate(1352%) hue-rotate(346deg) brightness(93%) contrast(96%);
}

/* Navigation Styles */
.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-navigation a {
    text-decoration: none;
    color: #ffffff; /* Biały tekst na przezroczystym tle (na Hero) */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Cień dla czytelności na zdjęciach */
}

.site-header.scrolled .site-navigation a {
    color: #1a1a1a; /* Ciemny tekst po scrollu (na białym tle) */
    text-shadow: none;
}

.site-navigation a:hover {
    color: #e94f1b;
}

.site-header.scrolled .site-navigation a:hover {
    color: #e94f1b;
}

/* Last Menu Item - "Zapisz się" Button */
.site-navigation ul li:last-child a {
    background-color: #e94f1b; /* Orange background */
    color: #ffffff !important; /* Zawsze biały tekst na przycisku */
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-shadow: none;
}

.site-navigation ul li:last-child a:hover {
    background-color: #c83e12;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle span {
    background-color: #1a1a1a;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 100px;
    }

    .site-navigation.active {
        right: 0;
    }

    .site-navigation ul {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .site-navigation a {
        color: #1a1a1a;
        text-shadow: none;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #1a1a1a;
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #1a1a1a;
    }
}
