/*========================================================
 Definicja palety kolorów dla lepszej czytelności 
========================================================*/
:root {
    --color-body-bg: #FBFEF9; /* Tło strony */
    --color-text: #191923;    /* Główny kolor tekstu */
    --color-container-bg: #FBFEF9; /* Tło głównego kontenera */
    --color-accent-primary: #2F2D2E; /* Główny akcent  */
    --color-accent-secondary: #DB995A; /* Drugi akcent */
    --color-link-hover: #E24E1B; /* Kolor przy najechaniu na linki */
}

/*==========================================================
  1. OGÓLNE USTAWIENIA STRONY
==========================================================*/
body {
   font-family: 'Open Sans', Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    
    background-color: var(--color-body-bg);
    color: var(--color-text);
}

/*==========================================================
  2. KONTENER GŁÓWNEJ TREŚCI
==========================================================*/
.container { 
    max-width: 960px; 
    margin: 15px auto; 
    background-color: var(--color-container-bg); 
    padding: 30px; 
    
    border-radius: 12px; 
    /* Lepsze cieniowanie dla efektu 3D */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); 
}


/*==========================================================
  3. STYLIZACJA LOGO I NAGŁÓWKA
==========================================================*/
.header-logo {
    text-align: center;
    padding: 20px 0;
    background-color: transparent;
   
    
}

.header-logo img {
    max-width:250px; 
    height: auto;
    margin: 0 auto;
}

/*==========================================================
  4. STYLIZACJA NAWIGACJI
==========================================================*/
nav {
    padding: 10px 0; 
    text-align: center;
  
   
}

nav a {
    color: var(--color-text); 
    font-size: 20px;
    text-decoration: none;
    padding: 10px 18px; 
    margin: 0 5px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s; 
    border-radius: 6px; 
    font-weight: 600; 
}

nav a:hover {
    background-color: var(--color-link-hover); 
    color: white; 
    border-radius: 6px
}


nav a.current {
    
    background-color: var(--color-link-hover); 
    color: white; 
    font-weight: 700;/
     border-radius: 6px;
        cursor: default; 
}


nav a.current:hover {
    background-color: var(--color-link-hover); 

    color: white;
}

/*==========================================================
  5. TYPOGRAFIA I ELEMENTY TREŚCI
==========================================================*/

/* Nagłówki */
h1 {
    color: var(--color-accent-primary);
    font-size: 2.2em; 
    padding-bottom: 5px; 
    border-bottom: 3px solid var(--color-link-hover);
    margin-top: 60;
    margin-bottom: 0px; 
    margin-left: 20px;
    margin-right: 20px;
}

h2 {
    color: var(--color-accent-secondary);
    margin-top: 0px;
    margin-bottom: 5px;
    margin-left: 20px;
    margin-right: 20px;
}

/* Akapity */
p {
    margin-bottom: 20px;
    margin-left: 20px;
    text-align: left; /
}

p2 {
    margin-bottom: 15px;
    font-size: 10px;
    text-align: center; 
}

/* Linie oddzielające */
hr {
    border: none;
    height: 1px; 
    background-color: #E24E1B; 
    margin: 5px 0; 
}


/* Linki w treści */
a {
    color: var(--color-accent-secondary); 
    font-weight: 600; 
    text-decoration: none;
    transition: color 0.2s;
    
}

a:hover {
    color: var(--color-link-hover); 
    text-decoration: underline;
}
/*==========================================================
  5. GALERIA ZDJEC
==========================================================*/

/* 1. Ustawienie Flexbox */
.galeria-obiektow-flex {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 20px; 
}

/* 2. Stylizacja pojedynczej karty  */
.obiekt-karta {
    
    flex: 1 1 calc(20% - 20px); 
    max-width: auto; 
    box-sizing: border-box; 
    
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 3. Responsywność dla małych ekranów */
@media (max-width: 768px) {
    .galeria-obiektow-flex {
        flex-direction: column; 
        align-items: center; 
    }
    
    .obiekt-karta {
        max-width: 80%; 
        margin-bottom: 15px;
    }
    
    .obiekt-karta img {
        max-width: 100%; 
        height: auto;    
        display: block;  
        margin: 0 auto;   
    }
}
/*==========================================================
  5. Wyświetlanie PDF
==========================================================*/
  
.pdf-container iframe {
    width: 100%;    
    height: 500px;  
    border: none;   
    display: block;
    margin: 0 auto;
}


@media (min-width: 769px) {
    .pdf-container iframe {
        width: 1000px !important; 
        height: 800px !important;  
    }
}

/*==========================================================
  6. STYLIZACJA PODSTRONY KONTAKT
==========================================================*/


.contact-wrapper.no-form-layout {
    
    justify-content: center;
}

/* Wewnętrzny dla danych kontaktowych */
.contact-details-section.full-width-details {
    flex: 1 1 100%; 
    min-width: 90%; 
    padding: 10px 10px; 
    
    
    border-left: none; 
    border-radius: 8px;
    background-color: var(--color-body-bg); 
    box-shadow: none; 
}


.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin: 40px 20px;
}


.contact-info-grid .details-item {
    padding: 20px;
    border: 1px solid #eee; 
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.contact-info-grid .details-item:hover {
   
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
}

.contact-info-grid .details-item strong {
    font-size: 1.3em;
}

.contact-info-grid .details-item a {
    font-size: 1.1em;
}

.small-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}


.contact-details-section.full-width-details h1,
.contact-details-section.full-width-details p {
    margin-left: 0;
    text-align: center;
}
.contact-details-section.full-width-details h1 {
    margin-top: 0;
}



@media (max-width: 600px) {
    .contact-details-section.full-width-details {
        padding: 10px 10px;
    }
    .contact-info-grid {
        /* Wymusza jedną kolumnę na bardzo małych ekranach, jeśli auto-fit nie zadziała */
        grid-template-columns: 1fr;
    }
}