/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
    --bg-dark: #121212;
    --bg-secondary: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #d4af37; /* Złoty industrialny */
    --accent-hover: #b5952f;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Nav */
header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}
.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 24px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 30px; list-style: none; }
nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 14px; }

/* Hero */
.hero {
    height: 100vh;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative;
}
.overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

/* Buttons */
.btn {
    padding: 15px 40px; background-color: var(--accent); color: #000;
    text-decoration: none; font-weight: 700; display: inline-block; margin: 5px;
    transition: 0.3s; cursor: pointer; border: none;
}
.btn:hover { background-color: var(--accent-hover); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: var(--accent); font-size: 36px; }

/* Grid Systems - Korekta dla 3 kafelków (300px) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: var(--bg-secondary); padding: 40px; border: 1px solid #333; transition: 0.3s; }
.card:hover { border-color: var(--accent); }

/* --- SEKCJA PRODUKTÓW I REALIZACJI (ZAAWANSOWANY HOVER) --- */
.product-card { 
    position: relative; 
    height: 380px; 
    overflow: hidden; 
    background: #000; 
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer; 
}
.product-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease, opacity 0.6s ease; 
    opacity: 0.8; 
}
.product-card:hover img { 
    transform: scale(1.05); 
    opacity: 0.15; 
}

.product-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 40px 30px 30px 30px;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0.8) 40%, transparent 100%);
    pointer-events: none; 
}

.product-badge { 
    font-size: 10px; 
    background: var(--accent); 
    color: #000; 
    padding: 3px 8px; 
    font-weight: bold; 
    display: inline-block;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 20px;
    line-height: 1.3;
}

.product-info p {
    font-size: 14px;
    color: #d0d0d0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.product-card:hover .product-info p {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
input, textarea { width: 100%; padding: 15px; margin-bottom: 15px; background: #222; border: 1px solid #333; color: #fff; }
textarea { resize: vertical; min-height: 120px; }

/* --- RESPONSYWNOŚĆ (TELEFONY) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    nav { display: none; } 
    
    .product-card { 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        background: var(--bg-secondary); 
    }
    .product-card img { 
        height: 250px; 
        opacity: 1; 
    }
    .product-card:hover img { 
        transform: none; 
        opacity: 1; 
    }
    .product-info { 
        position: relative; 
        background: transparent; 
        padding: 25px; 
    }
    .product-info p { 
        max-height: none; 
        opacity: 1; 
        overflow: visible; 
        margin-top: 15px; 
    }
}

/* --- MODAL GALERII (LIGHTBOX) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.95); 
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

#modal-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.modal-close:hover { color: var(--accent); }

.modal-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    user-select: none;
}
.modal-nav:hover { background-color: var(--accent); color: #000; border-color: var(--accent); }
.modal-nav.prev { left: -50px; }
.modal-nav.next { right: -50px; }

.modal-info {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 0 20px;
}

.modal-info h3 { font-size: 24px; margin-bottom: 10px; color: #fff; }
.modal-info p { font-size: 15px; color: var(--text-muted); }

@media (max-width: 1100px) {
    .modal-nav.prev { left: 0; }
    .modal-nav.next { right: 0; }
}

@media (max-width: 768px) {
    .modal-content-wrapper { margin-top: 60px; }
    #modal-img { max-height: 50vh; }
    .modal-nav { padding: 10px; font-size: 18px; }
    .modal-info h3 { font-size: 20px; }
}