/*
Theme Name: Cirus Ekstruzija
Theme URI: https://cirusindjija.com
Author: Cirus Ekstruzija
Author URI: https://cirusindjija.com
Description: Custom WordPress theme for Cirus Ekstruzija - manufacturer of rubber and TPE profiles in Inđija, Serbia. Features a product gallery with lightbox, contact section with map, and smooth scrolling navigation.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cirus
Tags: business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

*{margin:0;padding:0;box-sizing:border-box;font-family:Arial, sans-serif;}
body{background:#f4f6f7;scroll-behavior:smooth;}

/* NAV */
.site-nav{
position:fixed;
top:0;left:0;
width:100%;
background:#0f2e29;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 30px;
color:white;
z-index:1000;
}

.site-nav h2{
color:white;
margin:0;
}

.site-nav .menu{
display:flex;
gap:20px;
list-style:none;
margin:0;
padding:0;
}

.site-nav .menu a{
color:white;
text-decoration:none;
padding:6px 12px;
border-radius:20px;
transition:0.3s;
display:inline-block;
}

.site-nav .menu a:hover{
background:#9be59b;
color:#0f2e29;
}

/* HERO */
.hero{
height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
background-color:#1a3c34;
background-size:contain;
background-position:center;
background-repeat:no-repeat;
}
.hero h1{font-size:4rem;margin:0;}
.hero p{font-size:1.3rem;margin:10px 0 20px;}

.btn{
background:white;
color:#1a3c34;
padding:12px 25px;
border-radius:50px;
text-decoration:none;
font-weight:bold;
display:inline-block;
border:none;
cursor:pointer;
}

/* SECTIONS */
.section{
padding:90px 20px;
text-align:center;
opacity:0;
transform:translateY(40px);
transition:0.6s;
}
.section.show{
opacity:1;
transform:translateY(0);
}

.section h2{
margin-bottom:20px;
}

/* GRID */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:12px;
max-width:1100px;
margin:auto;
}
.grid img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
cursor:pointer;
transition:0.3s;
display:block;
}
.grid img:hover{transform:scale(1.05);}

/* LIGHTBOX */
.lightbox{
position:fixed;
top:0;left:0;
width:100%;height:100%;
background:rgba(0,0,0,0.92);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.lightbox-controls{
position:absolute;
top:20px;
right:20px;
display:flex;
gap:10px;
z-index:10000;
}

.lightbox-controls button{
background:white;
border:none;
padding:10px 15px;
border-radius:10px;
cursor:pointer;
font-weight:bold;
font-size:16px;
box-shadow:0 4px 10px rgba(0,0,0,0.4);
}

.navBtn{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:34px;
color:#0f2e29;
background:#e6e6e6;
border:none;
cursor:pointer;
padding:14px 18px;
border-radius:14px;
z-index:10000;
box-shadow:0 6px 15px rgba(0,0,0,0.3);
transition:0.25s;
}

.navBtn:hover{
background:#cfcfcf;
transform:translateY(-50%) scale(1.15);
}

#prevBtn{left:20px;}
#nextBtn{right:20px;}

#lightboxImg{
position:relative;
z-index:1;
max-width:none;
max-height:none;
transform:scale(1);
transition:0.2s;
}

.img-wrapper{
position:relative;
z-index:1;
overflow:hidden;
cursor:grab;
}

/* CONTACT */
.contact{
background:white;
max-width:800px;
margin:auto;
padding:30px;
border-radius:15px;
box-shadow:0 0 20px rgba(0,0,0,0.1);
}

.contact p{
margin:8px 0;
}

/* FOOTER */
.site-footer{
background:#0f2e29;
color:white;
padding:40px;
text-align:center;
}

iframe{
width:100%;
height:300px;
border:0;
border-radius:10px;
margin-top:20px;
}

/* Single product / page styling */
.single-content{
max-width:900px;
margin:120px auto 60px;
padding:30px;
background:white;
border-radius:15px;
box-shadow:0 0 20px rgba(0,0,0,0.1);
}

.single-content h1{
margin-bottom:20px;
color:#0f2e29;
}

.single-content img{
max-width:100%;
height:auto;
border-radius:10px;
margin:15px 0;
}

@media(max-width:768px){
.hero h1{font-size:2.5rem;}
.site-nav{padding:15px 15px;}
.site-nav h2{font-size:1.1rem;}
}
/* TELEFON */
@media (max-width: 768px) {

    img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .swiper-slide img,
    .slick-slide img {
        object-fit: contain !important;
        height: auto !important;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {

    img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .swiper-slide img,
    .slick-slide img {
        object-fit: contain !important;
        height: auto !important;
    }
}
