/* Definicja głównych kolorów (Zmienne CSS) */
:root {
    --primary-color: #1a365d; /* Granatowy - kojarzy się z Norwegią i profesjonalizmem */
    --secondary-color: #c5832b; /* Odcień drewna */
    --text-color: #333333;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth; /* Płynne przewijanie do sekcji */
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Nagłówki */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Przyciski */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a66a1f;
    transform: translateY(-2px);
}

/* Menu Nawigacyjne */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.img-logo{
    width: 140px;
    margin-top: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 1.2rem;
}

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

/* Ikona Hamburgera dla wersji mobilnej */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Sekcja Główna (Hero) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    transition: all 1s ease-in-out;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

/* Sekcja Atutów */
.features {
    padding: 100px 20px;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: 0 -15px 20px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
}

/* Linia oddzielająca */
.section-divider {
    border: none; 
    height: 2.5cm; 
    background-color: var(--primary-color); 
    margin: 0; 
    width: 100%;
}

/* Sekcja galerii */
.gallery {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    /* Automatycznie dopasowuje liczbę kolumn. Zdjęcia będą miały min. 300px szerokości */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover; /* Ucina zdjęcie tak, by idealnie wypełniło kwadrat bez zniekształceń */
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-img:hover {
    transform: scale(1.03); /* Delikatne powiększenie po najechaniu myszką */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- LIGHTBOX (Powiększanie zdjęć po kliknięciu) --- */
.lightbox {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 2000; /* Musi być nad menu nawigacyjnym */
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Ciemne, półprzezroczyste tło */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

/* Stopka i Kontakt */
footer {
    background-color: #0f172a;
    color: var(--white);
    padding: 100px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-form input, .footer-form textarea {
    padding: 18px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    outline: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-form input::placeholder, .footer-form textarea::placeholder {
    color: #94a3b8;
}

.footer-form input:focus, .footer-form textarea:focus {
    border-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-link{
    width: 30px;
    margin: 30px;
}

/* Responsywność dla urządzeń mobilnych (RWD) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a {
        display: block;
        padding: 25px;
    }

    .hamburger {
        display: block;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}