/* General styles and typography */
:root {
    --primary-color: #f7f7f7; /* Ciemny szary/czarny, tło główne */
    --secondary-color: #af2627; /* Czerwony akcent */
    --text-color: #333;
    --light-bg-color: #f7f7f7; /* Jasne tło sekcji */
    --white-color: #fff;
    --dark-color: rgba(28, 45, 55, 0.72);
    --mid-color: #3d4c56;
    --contact-color: rgba(28, 45, 55, 0.72);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    
    /* Tło całej strony - obrazek */
    background: url('bg-new.jpg') no-repeat center center fixed;
    background-size: cover;
}

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

h1, h2, h3 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 700;
}

/* Header and Navigation */
header {
    background: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 150px;
    height: auto;
    /* Usunięto filtr, aby wyświetlić oryginalne kolory */
}

nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 15px;
    border: 1px solid var(--white-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: url('schody-fa10e572fa5c3fcf_1920x650.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    
    /* Dodanie efektu paralaksy */
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    max-width: 70%;
}

.cta-button:hover {
    background: #c01d1d;
}

/* Materials Section */
.materials-section {
    padding: 80px 0;
    background: transparent;
    text-align: center;
}

.materials-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.materials-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.material-card {
    background: var(--contact-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.material-card h3 {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: var(--white-color);
}

.material-card p {
    font-size: 1em;
    padding: 0 20px 20px;
    color: var(--white-color);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: transparent;
    text-align: center;
}

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

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Contact Form Section */
.contact-form-section {
    background: var(--contact-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.contact-form-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.contact-form-section p {
    margin-bottom: 40px;
    font-size: 1.1em;
    
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 0.5px solid #3d4c56;
    border-radius: 5px;
    font-size: 1em;
    background-color: #607d8b1f !important;
    color: var(--white-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.submit-button {
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 18px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.submit-button:hover {
    background: #c01d1d;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

.footer-links a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo img {
        max-width: 120px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Zmniejszenie przycisku nawigacyjnego "Skorzystaj z promocji" */
    nav a.cta-nav {
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .cta-button {
    padding: 14px 28px; /* Zmniejszony padding */
    font-size: 3.5vw;  /* Rozmiar czcionki skalujący się z szerokością ekranu */
    max-width: 70%;    /* Ograniczenie maksymalnej szerokości */
    }

    .materials-section .container {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Styl dla przycisku zamykania w Lightboxie */
.sl-close {
    color: #fff !important; /* Upewnia się, że kolor jest biały i widoczny */
    font-size: 3em !important; /* Zwiększa rozmiar dla lepszej widoczności */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Dodaje cień, aby był bardziej czytelny */
    right: 20px; /* Ustawia pozycję przy prawym boku */
    top: 20px; /* Ustawia pozycję przy górnym boku */
    opacity: 1 !important; /* Zapewnia pełną widoczność */
    background-color: rgba(0, 0, 0, 1) !important;
}

.sl-wrapper {
    background-color: rgba(0, 0, 0, 1);
}



/* === MODAL – premium styl Rintal === */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 120px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

.modal-content h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #a60000; /* akcent w kolorze premium */
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.close-button {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #a60000;
}

/* Animacje wejścia */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
