/*
Theme Name: Moje Ogrodzenia Child Theme
Theme URI: https://www.ogrodzenia-lubrza.pl/
Description: Niestandardowy motyw dziecka dla strony ogrodzeń.
Author: nowoczesne-ogrodzenia
Author URI: https://www.ogrodzenia-lubrza.pl/
Template: twentytwentyfive
Version: 1.0.0
*/

/* Twoje niestandardowe style CSS zaczynają się tutaj */
:root {
    /* Twoje istniejące zmienne kolorów */
    --bg-dark-blue: #1A202C; /* Bardzo ciemny niebieski/szary dla tła */
    --accent-orange: #FF8000; /* Jaskrawy pomarańczowy jako akcent */
    --text-white: #FFFFFF; /* Biały tekst */
    --light-gray: #CCCCCC; /* Jasny szary */

    /* Zmienne uzupełnione dla sekcji bloczków i ogólnych elementów */
    --primary-color: #FF8000;     /* Możesz ustawić jako accent-orange lub inny główny kolor */
    --secondary-color: #2c3e50;   /* Ciemniejszy kolor dla nagłówków */
    --text-dark: #333;            /* Ciemny tekst */
    --text-medium: #555;          /* Średnio ciemny tekst */
    --background-light: #f4f4f4; /* Jasne tło sekcji */
    --background-white: #ffffff;  /* Białe tło bloków */
}

/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark-blue);
    color: var(--text-white);
    padding-top: 90px; /* Dostosuj, jeśli zmienisz wysokość navbaru */
}

/* Style dla nagłówków kategorii zdjęć przed karuzelą */
.gallery-section h4 {
    font-size: 1.5em; /* Rozmiar czcionki, możesz dostosować */
    color: var(--text-white); /* Kolor pomarańczowy z Twoich zmiennych */
    text-align: center; /* Wyśrodkowanie tekstu */
    margin-top: 30px; /* Margines górny, aby odsunąć od poprzedniej sekcji */
    margin-bottom: 20px; /* Margines dolny, aby odsunąć od karuzeli */
    text-transform: uppercase; /* Opcjonalnie: wszystkie litery duże */
    letter-spacing: 1px; /* Opcjonalnie: odstępy między literami */
    font-weight: bold; /* Opcjonalnie: pogrubienie tekstu */
}

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

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: var(--bg-dark-blue);
    padding: 15px 0;
    display: flex;
    justify-content: center; /* Centruje wewnętrzny kontener */
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* TO ROZKŁADA ELEMENTY NA CAŁEJ SZEROKOŚCI WEWNĘTRZNEGO KONTENERA */
    align-items: center;
    max-width: 1200px; /* Powtórzone, ale ważne dla klarowności */
    margin: 0 auto;    /* Powtórzone, ale ważne dla klarowności */
    padding: 0 20px;
}

.logo img {
    height: 60px;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links ul li a:hover {
    color: var(--accent-orange);
}

/* Style dla aktywnego elementu menu - PODŚWIETLANIE STRONY */
.nav-links ul li.current-menu-item a, /* Gdy element LI ma klasę current-menu-item */
.nav-links ul li.current_page_item a { /* Gdy element LI ma klasę current_page_item */
    color: var(--accent-orange); /* Zachowaj Twój kolor podświetlenia */
}

/* Opcjonalnie: Jeśli chcesz, aby rodzic podświetlał się, gdy jesteś na podstronie,
   a WordPress dodaje klasy current_page_parent lub current-menu-ancestor do <li>: */
.nav-links ul li.current_page_parent a,
.nav-links ul li.current-menu-ancestor a {
    color: var(--accent-orange); /* Lub inny, subtelniejszy kolor */
}

.social-location {
    display: flex; /* Upewnia się, że ikony są zawsze wyświetlane jako flex */
    align-items: center;
}

.social-location a {
    color: var(--text-white);
    font-size: 24px;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-location a:hover {
    color: var(--accent-orange);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-white);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--accent-orange);
}
.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-orange);
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}
.hero img{
    width: 100%;
    height: 80%;
    margin-bottom: 20px;
    margin-top: 0px;
}

/* Gallery Sections */
.gallery-section {
    padding: 40px 0;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--accent-orange);
}

/* Carousel Specific Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.gallery-item {
    background-color: #2D3748; /* Możesz usunąć to tło, jeśli przeszkadza i chcesz tylko zdjęcie */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none; /* ZMIANA: Usunięto cień (który mógł wyglądać jak ramka) */
    flex-shrink: 0;
    width: calc((100% / 3) - (40px / 3));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border: none;   /* DODANO: Usunięcie ramki */
    outline: none;  /* DODANO: Usunięcie obrysu */
}

.gallery-item p {
    display: none; /* ZMIANA: Całkowite ukrycie nazwy/opisu pod zdjęciem */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--accent-orange);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: var(--text-white);
    font-size: 1.2em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-orange);
    text-decoration: none;
    cursor: pointer;
}

/* Style dla strzałek nawigacyjnych w lightboxie */
.lightbox-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
    color: var(--text-white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 30px; /* Większy rozmiar strzałki */
    z-index: 101; /* Wyżej niż obraz, ale niżej niż close button */
    border-radius: 50%; /* Okrągłe przyciski */
    transition: background-color 0.3s ease;
    width: 60px; /* Stała szerokość */
    height: 60px; /* Stała wysokość */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* Poprawia centrowanie tekstu/symbolu */
}

.lightbox-nav-button:hover {
    background-color: var(--accent-orange); /* Zmienia kolor po najechaniu */
}

.lightbox-prev {
    left: 20px; /* Pozycja od lewej */
}

.lightbox-next {
    right: 20px; /* Pozycja od prawej */
}

/* Contact Page Specific Styles */
.contact-blocks {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 0;
}

.contact-block {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    min-height: 150px;
    max-height: 300px;
}

.contact-block .icon {
    font-size: 4em;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.contact-block h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.contact-block p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-block a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
}

.contact-block a:hover {
    color: var(--accent-orange);
}

.contact-form-section {
    padding: 50px 0;
    background-color: #2D3748;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-form-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--accent-orange);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background-color: #3f4a59;
    color: var(--text-white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e07200;
}

.map-section {
    margin-top: 50px;
    text-align: center;
}

.map-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--accent-orange);
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #111827;
    color: var(--light-gray);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* --- Sekcja Wystawy Bloczki (Poprawiona) --- */
.block-display-section {
    padding: 80px 0;
    background-color: var(--bg-dark-blue); /* Jasne tło */
    text-align: center;
    color: var(--background-white); /* Ciemny tekst */
}

.block-display-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.block-display-section .section-title {
    font-size: 3em; /* Duży tytuł */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.block-display-section .section-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--background-white);
}

/* --- Sekcja Lokalizacji (Wystawa Bloczki) --- */
.display-location {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.display-location h3 {
    font-size: 2em;
    color: var(--background-white); /* Nagłówek w ciemniejszym kolorze */
    margin-bottom: 20px;
}

.display-location p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.display-location address {
    font-style: normal; /* Usuwa kursywę z <address> */
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--background-white);
}

.display-location .map-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.display-location .map-link:hover {
    background-color: var(--accent-orange);
}

/* --- Sekcja Producentów (Wystawa Bloczki) --- */
.company-showcase h3 {
    font-size: 2em;
    color: var(--background-white); /* Nagłówek w ciemniejszym kolorze */
    margin-bottom: 30px;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsywna siatka */
    gap: 30px; /* Odstępy między firmami */
    margin-bottom: 60px;
}

.company-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.company-item p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.company-item .company-link {
    color: var(--background-white); /* Zmieniono na ciemniejszy kolor */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.company-item .company-link:hover {
    color: var(--primary-color); /* Zmieniono na primary-color dla hover */
    text-decoration: underline;
}

.company-description {
    font-size: 0.95em;
    color: var(--text-medium);
    line-height: 1.5;
}

/* --- Sekcja Kontaktowa (Wystawa Bloczki) --- */
.contact-prompt {
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-prompt p {
    font-size: 1.3em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-prompt .button-contact {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-orange); /* Jaskrawy kolor przycisku */
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-prompt .button-contact:hover {
    background-color: var(--secondary-color); /* Zmieniono na secondary-color dla hover, aby było ciemniej */
    transform: translateY(-2px); /* Delikatne podniesienie */
}

/* Media Queries dla responsywności */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0; /* Zmniejsz padding na mniejszych ekranach */
    }

    .navbar .container {
        /* Usunięto flex-direction: column; aby główne elementy pozostały w rzędzie, jeśli to możliwe */
        flex-direction: row; /* Zmieniamy na row */
        flex-wrap: wrap; /* Pozwoli elementom zawijać się w kolejny wiersz */
        justify-content: space-around; /* Rozmieść elementy */
        align-items: center;
        padding: 0 10px;
    }

    body {
        padding-top: 140px; /* Może być potrzebne zmniejszenie padding-top, jeśli nawbar będzie niższy */
                          /* Dostosuj tę wartość po testach, aby treść nie była zakryta */
    }

    .logo {
        width: 100%; /* Spraw, żeby logo zajmowało całą szerokość i było na górze */
        text-align: center;
        margin-bottom: 10px; /* Odstęp pod logo */
    }
    .logo img {
        height: 50px; /* Ewentualnie zmniejsz wysokość logo na telefonie */
    }


    .nav-links {
        width: 100%; /* Menu zajmuje całą szerokość */
        order: 2; /* Ustaw kolejność po social-location, jeśli social-location ma być wyżej */
    }

    .nav-links ul {
        flex-direction: row; /* Zmieniamy z powrotem na row, aby elementy menu były w poziomie */
        flex-wrap: wrap; /* Pozwoli elementom menu zawijać się w kolejny wiersz, jeśli jest ich za dużo */
        justify-content: center; /* Wyśrodkowanie elementów menu */
        margin-top: 5px; /* Mniejszy margines górny */
    }

    .nav-links ul li {
        margin: 5px 10px; /* Mniejsze marginesy między elementami menu */
    }

    .social-location {
        width: 100%; /* Ikony zajmują całą szerokość */
        order: 1; /* Ustaw kolejność, aby ikony były wyżej niż menu, ale pod logo */
        justify-content: center; /* Wyśrodkowanie ikon */
        margin-top: 10px; /* Odstęp nad ikonami */
        margin-bottom: 10px; /* Odstęp pod ikonami */
    }
    .social-location a {
        font-size: 20px; /* Nieco mniejsze ikony na telefonach */
        margin: 0 10px; /* Mniejsze marginesy między ikonami */
    }


    .hero h1, .hero h2, .block-display-section .section-title, .map-section h2, .contact-form-section h2 {
        font-size: 2em; /* Zmniejsz nagłówki na telefonach */
    }

    .hero p, .block-display-section .section-description {
        font-size: 0.9em; /* Zmniejsz tekst opisu */
    }

    .contact-blocks {
        flex-direction: column;
        align-items: center;
    }

    .contact-block {
        width: 90%;
        max-width: 400px;
    }

    .gallery-item {
        width: 100%; /* Jedno zdjęcie na całą szerokość karuzeli na telefonie */
    }

    .block-display-section {
        padding: 40px 0; /* Zmniejsz padding sekcji */
    }
    .company-list {
        grid-template-columns: 1fr; /* Jedna kolumna na mniejszych ekranach */
    }
    .display-location, .contact-prompt {
        padding: 20px; /* Zmniejsz padding bloków informacyjnych */
    }
    .display-location h3, .company-showcase h3 {
        font-size: 1.6em; /* Mniejsze nagłówki w blokach */
    }
}