/* ==========================================================================
   1. RESET, CZCIONKI I USTAWIENIA GLOBALNE
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f7f2; /* Delikatny, kremowy kolor */
    color: #4a4a4a;
    text-align: center;
}

/* ==========================================================================
   2. WSPÓLNA STRUKTURA (NAGŁÓWEK, STOPKA, PRZYCISKI)
   ========================================================================== */
header {
    background-color: #fff;
    padding: 40px 20px;
    border-bottom: 2px solid #e0dcd0;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #5d6d3e; /* Przytulna zieleń */
}

header p {
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 5px;
}

footer {
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Przebudowany styl dla ikony Facebooka (zamiast inline) */
.footer-social {
    margin-top: 10px;
}

.footer-social a {
    color: #3b5998;
    font-size: 24px;
    text-decoration: none;
}

/* Kontener dla przycisku powrotu */
.btn-container {
    margin: 40px auto;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5d6d3e;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-back:hover {
    background-color: #4a5731;
    transform: translateX(-3px);
}

/* ==========================================================================
   3. SEKCJA O MNIE & OFERTA (UKŁAD TEKSTU)
   ========================================================================== */
.main-kolumna {
    max-width: 600px; 
    width: 90%;
    margin: 0 auto;
    text-align: justify;
}

.main-kolumna p {
    text-indent: 30px;
}

.main-kolumna h2 {
    font-weight: bold;
    text-align: left;
}

main h1 {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 5px;
    text-align: left;
}

/* Wyciągnięte style obrazka ze strony O Mnie */
.about-img {
    max-width: 70%;
    height: auto;
    border-radius: 15px;
    border: 5px solid white;
    display: block;
    margin: 20px auto;
}

/* ==========================================================================
   4. STRONA GŁÓWNA (MENU KAFELKOWE)
   ========================================================================== */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-link h2 {
    padding: 15px;
    font-size: 1.3rem;
    margin: 0;
    background-color: #fff;
}

/* ==========================================================================
   5. OFERTA (TABELA CENNIKA)
   ========================================================================== */
.cennik-tabela {
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0;  
}

.cennik-tabela th, .cennik-tabela td {
    padding: 12px 15px; 
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cennik-tabela th {
    background-color: #f4f4f4;
    color: #333;
}

/* ==========================================================================
   6. GALERIA & LIGHTBOX
   ========================================================================== */
.gallery-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: #e0dcd0;
}

/* ==========================================================================
   7. KONTAKT (MAPA I ADRES)
   ========================================================================== */
.map-container {
    max-width: 100%;
    padding: 0 20px;
    margin: 30px auto;
    box-sizing: border-box;
}

.map-container iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

address {
    font-style: normal;
    max-width: 250px;
    margin: 20px auto;
    text-align: left;
}