/* 1. VAŽNO: Importi moraju biti na vrhu */
@import url('https://unpkg.com/photoswipe/dist/photoswipe.css');

/* --- OSNOVNE POSTAVKE --- */
:root {
    --primarna: #a67c52;
    --tamna: #2c2c2c;
    --svijetla: #fdfdfd;
    --bijela: #ffffff;
    --siva: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--tamna);
    background-color: var(--bijela);
}

/* --- NAVIGACIJA --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    background: var(--bijela);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li { margin-left: 20px; }
nav ul li a { 
    text-decoration: none; 
    color: var(--tamna); 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}
nav ul li a:hover { color: var(--primarna); }

/* --- HERO SEKCIJA --- */
.hero {
    height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bijela);
    text-align: center;
    position: relative;
    background-size: cover !important; 
    background-position: center !important;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    background: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.btn-main {
    display: inline-block;
    margin-top: 40px;
    width: auto;
    min-width: 220px;
    padding: 15px 35px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: 0.3s;
}

.btn-main:hover {
    background: var(--primarna);
    border-color: var(--primarna);
    transform: translateY(-2px);
}

/* --- USLUGE I KARTICE --- */
.services {
    padding: 80px 8%;
    background: var(--siva);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
}

.card-content { padding: 20px; text-align: center; }
.card-content h3 { color: var(--primarna); margin-bottom: 10px; }

.vidi-vise {
    display: inline-block;
    margin-top: 10px;
    color: var(--primarna);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- KONTAKT FORMA --- */
.contact-section { padding: 80px 8%; background: var(--tamna); color: #fff; }
#contact-form { max-width: 600px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 10px; color: #333; }
.form-group { margin-bottom: 15px; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-submit { 
    width: 100%; 
    background: var(--primarna); 
    color: #fff; 
    padding: 15px; 
    border: none; 
    border-radius: 5px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-submit:hover { background: #8e6843; }

/* --- FOOTER --- */
footer {
    background: #222;
    color: #fff;
    padding: 40px 8%;
    text-align: center;
}

.cookie-note {
    font-size: 0.75rem;
    color: #999;
    max-width: 600px;
    margin: 10px auto;
    line-height: 1.4;
    font-style: italic;
}

/* --- SEKCIJA: OD NACRTA DO REALIZACIJE (2 STUPCA) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(166, 124, 82, 0.9);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* ==========================================================================
   NOVA FIKSNA GALERIJA ZA PODSTRANICE (2 STUPCA - MALE SLIKE)
   ========================================================================== */

.gallery-grid-main {
    display: grid;
    /* Forsiramo 2 stupca */
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    /* Smanjili smo max-width na 700px da bi na tvom 27" monitoru slike bile male */
    max-width: 700px; 
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-card {
    display: block; 
    width: 100%;
    /* Visina 200px čini slike malima i preglednima */
    height: 200px; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Fix za Lightbox slike da se ne rastežu */
.pswp__img {
    object-fit: contain !important;
}

/* Prilagodba za mobitele */
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 250px; }
    
    .gallery-grid-main {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
    .gallery-card {
        height: 150px; /* Još manje na mobitelu */
    }
}