/* RESET I PODSTAWY */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* NAWIGACJA */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2ecc71;
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), 
                url("./images/inne/tlo.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* SEKCJE */
section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #2c3e50;
}

/* OFERTA */
.domki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.domek {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
    padding-bottom: 20px;
}

.domek:hover {
    transform: translateY(-10px);
}

.domek-img-wrapper {
    position: relative;
    height: 250px;
}

.domek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 204, 113, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.domek:hover .overlay {
    opacity: 1;
}

/* FORMULARZ */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-submit {
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #27ae60;
}

/* MODAL GALERII */
.gallery-modal {
    display: none; /* JS przełącza na flex */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

#galleryImage {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.gallery-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-controls button:hover { background: rgba(255,255,255,0.4); }
.prev { left: -60px; }
.next { right: -60px; }

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: white;
}

@media (max-width: 768px) {
    .prev { left: 10px; }
    .next { right: 10px; }
    .nav-links { display: none; } /* Uproszczenie na mobile */
}

.intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: justify;       /* To odpowiada za wyrównanie do obu brzegów */
    text-align-last: center;   /* To sprawia, że ostatnia linia jest na środku */
    max-width: 800px;          /* Ogranicza szerokość tekstu dla lepszej czytelności */
    margin: 20px auto;         /* Środkuje cały blok tekstu */
    hyphens: auto;             /* Dzieli wyrazy, żeby nie było wielkich dziur między słowami */
}