/* Ogólne style */
:root {
    --primary-color: #0B5A86; /* Ciemny niebieski SIC */
    --secondary-color: #094588; /* Nieco jaśniejszy niebieski */
    --accent-color: #3498db; /* Jasny błękit do akcentów */
    --text-color: #333;
    --light-gray: #f8f8f8;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Przykład nowoczesnej czcionki */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Inna czcionka dla nagłówków */
    color: var(--primary-color);
    margin-bottom: 1em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.6em; }

p { margin-bottom: 1em; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
}

/* Nagłówek (Header) */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    width: 150px;   /* lub inna wartość */
    height: auto;   /* zachowuje proporcje */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

/* Burger menu dla mobilnych */
.menu-toggle {
    display: none; /* Domyślnie ukryty na desktopie */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Sekcje strony */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Sekcja Hero */
.hero-section {
    background: url('../img/hero-background.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ciemniejsza warstwa dla czytelności tekstu */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sekcja O nas */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Umożliwia zawijanie na mniejszych ekranach */
    gap: 40px;
    align-items: center;
}

.about-content p {
    flex: 1;
    min-width: 300px; /* Minimalna szerokość kolumny tekstu */
}

.about-content img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sekcja Usługi */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* Sekcja Kontakt */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    color: var(--secondary-color);
}

.map-placeholder {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Stopka (Footer) */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.main-footer p {
    margin: 0;
}

.main-footer .footer-nav ul {
    list-style: none;
    display: flex;
}

.main-footer .footer-nav ul li {
    margin-left: 20px;
}

.main-footer .footer-nav ul li a {
    color: var(--white);
    opacity: 0.8;
}

.main-footer .footer-nav ul li a:hover {
    opacity: 1;
}

/* Responsywność */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    .main-nav ul {
        display: none; /* Ukryj menu na mobilnych domyślnie */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Poniżej nagłówka */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .main-nav ul.active {
        display: flex; /* Pokaż menu po kliknięciu */
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--primary-color);
        border-bottom: 1px solid var(--light-gray);
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block; /* Pokaż burger menu */
    }

    /* Animacja burgera */
    .menu-toggle.active .icon-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .icon-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .about-content, .contact-grid, .main-footer .container {
        flex-direction: column;
    }

    .about-content img, .contact-form, .contact-info {
        width: 100%;
        max-width: none; /* Usuń max-width z obrazka w sekcji "O nas" */
    }

    .main-footer .footer-nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    .main-footer .footer-nav ul li {
        margin: 5px 0;
    }
}