/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ===========================
   Container
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Nawigacja
   =========================== */
.navbar {
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 8px 12px;
}

.nav-link:hover {
    color: #2D5A27;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px 60px;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.7);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
    text-align: center;
}

.btn-primary {
    background-color: #fff;
    color: #2D5A27;
}

.btn-primary:hover {
    background-color: #2D5A27;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #2D5A27;
    transform: translateY(-2px);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    color: #2D5A27;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* ===========================
   Gdzie Działamy Section
   =========================== */
.gdzie-dzialamy {
    background-color: #f9f9f9;
}

.obszar-dzialania {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.glowny-obszar {
    background: linear-gradient(135deg, #2D5A27 0%, #1a3317 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.glowny-obszar h3 {
    font-size: 28px;
}

.miasta-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.miasto {
    background-color: #fff;
    color: #2D5A27;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.miasto:hover {
    background-color: #2D5A27;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Usługi Section
   =========================== */
.uslugi {
    background-color: #fff;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.usluga-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.usluga-card:hover {
    border-color: #2D5A27;
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.15);
    transform: translateY(-5px);
}

.usluga-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.usluga-card h3 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

/* ===========================
   Galeria Section - Masonry Grid
   =========================== */
.galeria {
    background-color: #f9f9f9;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-auto-flow: dense;
}

.galeria-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pionowe zdjęcia (3:4) */
.galeria-item.portrait {
    aspect-ratio: 3/4;
}

/* Poziome zdjęcia (16:9) */
.galeria-item.landscape {
    aspect-ratio: 16/9;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.galeria-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D5A27 0%, #1a3317 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* ===========================
   Kontakt Section
   =========================== */
.kontakt {
    background-color: #fff;
}

.kontakt-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.kontakt-info h3 {
    font-size: 24px;
    color: #2D5A27;
    margin-bottom: 20px;
}

.kontakt-item {
    margin-bottom: 15px;
}

.kontakt-label {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.kontakt-telefon {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A27;
    display: inline-block;
    transition: color 0.3s ease;
}

.kontakt-telefon:hover {
    color: #1a3317;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #2D5A27;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #1a3317;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.kontakt-mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer p {
    font-size: 14px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet - 768px */
@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 40px;
    }

    .uslugi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .kontakt-content {
        grid-template-columns: 1fr 1fr;
    }

    .miasto {
        font-size: 16px;
    }

    .nav-menu {
        display: flex;
    }
}

/* Desktop - 1024px */
@media (min-width: 1024px) {
    .section {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 56px;
    }

    .uslugi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .usluga-card h3 {
        font-size: 17px;
    }
}

/* Large Desktop - 1440px */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 64px;
    }

    .uslugi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .galeria-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Mobile Menu - Max 767px */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-link:hover {
        background-color: #2D5A27;
        color: #fff;
    }
}
