/* ===================================
   Stalkol – Wyroby ze stali nierdzewnej
   Static site CSS – replication of e-stalkol.pl
   =================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f5;
}

a {
    color: #8b8b00;
    text-decoration: none;
}

a:hover {
    color: #5a5a00;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================================
   SITE WRAPPER
   =================================== */
.site-wrapper {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    background: #ffffff;
}

/* ===================================
   HEADER
   =================================== */
#site-header {
    background-color: #000000;
    width: 100%;
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
}

.header-logo {
    display: block;
    width: 100%;
}

.header-logo img {
    display: block;
    width: 100%;
    max-width: 1150px;
    height: auto;
}

/* ===================================
   NAVIGATION
   =================================== */
#site-nav {
    background-color: #1a1a1a;
    width: 100%;
    position: relative;
}

.nav-inner {
    max-width: 1150px;
    margin: 0 auto;
}

.nav-inner > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-inner > ul > li {
    position: relative;
}

.nav-inner > ul > li > a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nav-inner > ul > li > a:hover,
.nav-inner > ul > li.active > a {
    background-color: #8b8b00;
    color: #ffffff;
    text-decoration: none;
}

/* Dropdown */
.nav-inner > ul > li > ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.nav-inner > ul > li:hover > ul.dropdown {
    display: block;
}

.nav-inner > ul > li > ul.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #cccccc;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.2s, color 0.2s;
}

.nav-inner > ul > li > ul.dropdown li a:hover {
    background-color: #8b8b00;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: #8b8b00;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */
#main-content {
    display: flex;
    align-items: flex-start;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 10px;
    gap: 20px;
}

/* Content column */
#content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 20px;
}

/* Sidebar */
#sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* ===================================
   PAGE CONTENT
   =================================== */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #8b8b00;
    border-bottom: 2px solid #8b8b00;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 14px;
    color: #333333;
    line-height: 1.7;
}

.entry-content ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 14px;
}

.entry-content ul li {
    margin-bottom: 6px;
}

.entry-content ul li a {
    color: #8b8b00;
}

.entry-content ul li a:hover {
    color: #5a5a00;
}

.entry-content img {
    display: block;
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}

/* Image float right (as in original) */
.entry-content .alignright {
    float: right;
    margin: 0 0 16px 20px;
}

.entry-content .alignleft {
    float: left;
    margin: 0 20px 16px 0;
}

.entry-content .aligncenter {
    display: block;
    margin: 16px auto;
}

/* clearfix */
.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ===================================
   HOME PAGE – No sidebar layout
   =================================== */
.home-layout #main-content {
    max-width: 1150px;
}

.home-layout #content {
    padding: 30px 20px;
}

/* ===================================
   SIDEBAR WIDGETS
   =================================== */
.widget {
    margin-bottom: 24px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 16px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #8b8b00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #8b8b00;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    border-bottom: 1px solid #e8e8e8;
    padding: 5px 0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555555;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: #8b8b00;
}

.widget-nav ul li a {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ===================================
   GALLERY
   =================================== */
.gallery-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #8b8b00;
    border-bottom: 2px solid #8b8b00;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 30px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s, transform 0.2s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    border-color: #8b8b00;
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(139,139,0,0.7);
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-info {
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 6px;
}

.contact-info strong {
    color: #8b8b00;
}

.contact-map {
    margin-top: 20px;
}

.contact-map iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: 0;
    display: block;
}

/* ===================================
   FOOTER
   =================================== */
#site-footer {
    background-color: #2a2a2a;
    color: #bbbbbb;
    padding: 30px 10px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
}

.footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #8b8b00;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.footer-widget p {
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-widget a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-widget a:hover {
    color: #8b8b00;
    text-decoration: none;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    padding: 3px 0;
    border-bottom: 1px solid #3a3a3a;
}

.footer-widget ul li:last-child {
    border-bottom: none;
}

.footer-bottom {
    max-width: 1150px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
    text-align: center;
    font-size: 12px;
    color: #666666;
}

.footer-bottom a {
    color: #888888;
}

.footer-bottom a:hover {
    color: #8b8b00;
}

/* ===================================
   PRODUKCJA – 3 column image layout
   =================================== */
.produkcja-images {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}

.produkcja-images a {
    display: block;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.produkcja-images a img {
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
    margin: 0;
}

.produkcja-images a:hover img {
    border-color: #8b8b00;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-inner > ul {
        display: none;
        flex-direction: column;
    }

    .nav-inner > ul.open {
        display: flex;
    }

    .nav-inner > ul > li > ul.dropdown {
        position: static;
        display: none;
        background-color: #333;
        box-shadow: none;
    }

    .nav-inner > ul > li.open > ul.dropdown {
        display: block;
    }

    #main-content {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
