/* -------- OSNOVNI RESET I POSTAVKE -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    /*overflow: hidden; /* Sprječava kolaps margina i pomaže kod float elemenata (ako ih ima) */
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #0A2463; /* Glavna boja za linkove */
}

ul {
    list-style: none; /* Uklanja defaultne bullet pointe */
}

img {
    max-width: 100%; /* Osigurava da slike ne prelaze širinu roditelja */
    height: auto;    /* Zadržava proporcije slike */
    display: block;  /* Uklanja donji prostor ispod inline slika */
}

/* -------- POMOĆNE KLASE I SEKCIJE -------- */
.section-padding {
    padding: 60px 0;
}

.section-padding-dark {
    padding: 60px 0;
    background-color: #333;
    color: #fff;
}
.section-padding-dark a {
    color: #FF9505; /* Akcentna boja za linkove na tamnoj pozadini */
}
.section-padding-dark .section-title {
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0A2463;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: #FF9505; /* Akcentna boja */
    color: #fff !important; /* Osigurava bijeli tekst */
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #e08000; /* Tamnija nijansa za hover */
    transform: translateY(-2px);
}

/* -------- ZAGLAVLJE (HEADER) I NAVIGACIJA -------- */
header {
    background: #fff;
    padding: 10px 0; /* Prilagodite padding po potrebi */
    border-bottom: 3px solid #0A2463;
    position: sticky; /* Ljepljivo zaglavlje */
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000; /* Da bude iznad ostalog sadržaja */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Za pozicioniranje padajućeg menija */
}

header #logo img {
    height: 100px; /* Visina loga na desktopu */
    width: auto;
}
header #logo a { /* Ako je logo unutar linka */
    display: inline-block; /* Da se ponaša kao blok ali zadrži inline tok */
}


/* Navigacijski meni - Desktop */
header .nav-menu ul {
    display: flex; /* Horizontalni prikaz linkova */
    align-items: center;
}

header .nav-menu ul li {
    margin-left: 20px;
}

header .nav-menu ul li a {
    color: #333;
    font-weight: bold;
    padding: 8px 10px; /* Malo veći padding za lakši klik */
    transition: color 0.3s ease;
    display: block;
}

header .nav-menu ul li a:hover,
header .nav-menu ul li a.active { /* Za označavanje aktivnog linka */
    color: #FF9505;
}

/* Hamburger ikona (.nav-toggle) - inicijalno skrivena */
.nav-toggle {
    display: none; /* Skriveno na desktopu */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Za lakši dodir */
    z-index: 1001; /* Da bude iznad padajućeg menija ako se preklapaju */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: #333; /* Boja linija hamburgera */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px; /* Razmak gornje linije */
}

.hamburger::after {
    bottom: -8px; /* Razmak donje linije */
}

/* -------- HERO SEKCIJA -------- */
#hero {
    background: url('images/six.png?auto=format&fit=max&w=1920&h=1080&q=80') no-repeat center center/cover;
    color: #fff;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* Za pseudo-element overlay */
}

#hero::before { /* Overlay za bolju čitljivost teksta */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Tamni poluprozirni overlay */
}

#hero .container { /* Sadržaj hero sekcije mora biti iznad overlay-a */
    position: relative; 
    z-index: 1;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* -------- O NAMA SEKCIJA -------- */
#o-nama .o-nama-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
#o-nama .o-nama-content img {
    width: 40%;
    max-width: 450px; /* Povećano malo ograničenje */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#o-nama .o-nama-content div { /* Tekstualni dio */
    flex: 1;
}
#o-nama ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5em; /* Malo veći padding za kvačicu */
    position: relative; /* Za pozicioniranje kvačice */
}
#o-nama ul li::before { /* Stil za kvačicu */
    content: '✓';
    position: absolute;
    left: 0;
    color: #0A2463; /* Boja kvačice */
    font-weight: bold;
}


/* -------- USLUGE SEKCIJA -------- */
.usluge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.usluga-item {
    background: #fff;
    padding: 25px; /* Malo veći padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Malo jači shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333; /* Osigurava da tekst unutar itema nije bijel ako je roditelj taman */
}
.usluga-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.usluga-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
.usluga-item h4 {
    color: #0A2463;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

/* -------- PROJEKTI SEKCIJA -------- */
.projekti-galerija {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.projekt-item {
    position: relative;
    overflow: hidden; /* Za efekt hovera na slici i overlayu */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.projekt-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.projekt-item:hover img {
    transform: scale(1.05); /* Suptilniji zoom */
}
.projekt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 36, 99, 0.9); /* Malo jači overlay */
    color: #fff;
    padding: 20px; /* Veći padding */
    transform: translateY(100%);
    transition: transform 0.4s ease-out; /* Malo drugačiji easing */
}
.projekt-item:hover .projekt-overlay {
    transform: translateY(0);
}
.projekt-overlay h4 {
    margin-top: 0; /* Reset */
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.projekt-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* -------- KONTAKT SEKCIJA -------- */
.kontakt-flex {
    display: flex;
    gap: 40px;
}
.kontakt-info, .kontakt-forma {
    flex: 1;
}
.kontakt-info p {
    margin-bottom: 12px; /* Malo veći razmak */
}
.kontakt-forma label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
.kontakt-forma input[type="text"],
.kontakt-forma input[type="email"],
.kontakt-forma input[type="text"], /* Duplikat, treba biti za predmet ako ga imate */
.kontakt-forma textarea {
    width: 100%;
    padding: 12px; /* Veći padding */
    margin-bottom: 18px; /* Veći razmak */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1rem;
}
.kontakt-forma textarea {
    resize: vertical;
    min-height: 120px;
}
.kontakt-forma button[type="submit"] {
    /* Koristi .cta-button klasu za konzistentnost */
}

/* -------- PODNOŽJE (FOOTER) -------- */
footer {
    background: #1c1c1c;
    color: #aaa;
    text-align: center;
    padding: 30px 0; /* Veći padding */
}
footer a {
    color: #FF9505;
}
footer a:hover {
    text-decoration: underline;
}

/* -------- RESPONZIVNI DIZAJN - PRILAGODBE ZA MANJE EKRANE -------- */
@media(max-width: 768px) {
    /* Header i Navigacija za mobilne uređaje */
    header #logo img {
        height: 40px; /* Manji logo */
    }

    .nav-toggle {
        display: block; /* Prikaži hamburger gumb */
		z-index: 2002;
    }

    header .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 2001; /* <<<< DODAJTE OVO (ili veći broj ako treba) */
    }

    header .nav-menu.nav-open {
        display: block;
/*        z-index: 2005; */
    }

    header .nav-menu ul {
        flex-direction: column; /* Linkovi jedan ispod drugog */
        width: 100%;
    }

    header .nav-menu ul li {
        margin: 0; /* Ukloni lijevu marginu s desktopa */
        text-align: center; /* Ili left, po želji */
        border-bottom: 1px solid #f0f0f0; /* Linija između linkova */
    }
    header .nav-menu ul li:last-child {
        border-bottom: none;
    }

    header .nav-menu ul li a {
        padding: 15px 20px; /* Veći padding za lakši dodir */
        width: 100%; /* Da link zauzme cijelu širinu */
        color: #333; /* Osiguraj boju teksta */
    }
    header .nav-menu ul li a:hover {
        background-color: #f8f8f8; /* Blaga pozadina na hover za mobilni meni */
        color: #FF9505;
    }

    /* Animacija hamburgera u 'X' */
    .nav-toggle.nav-open .hamburger {
        background-color: transparent; /* Srednja linija nestaje */
    }
    .nav-toggle.nav-open .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.nav-open .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Opće prilagodbe za manje ekrane */
    .section-title {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }

    #o-nama .o-nama-content {
        flex-direction: column; /* Slaži vertikalno */
        text-align: center; /* Centriraj tekst ako slika ide iznad */
    }
    #o-nama .o-nama-content img {
        width: 70%; /* Prilagodi širinu slike */
        max-width: 350px; /* Ograničenje za manje ekrane */
        margin: 0 auto 25px auto; /* Centriraj sliku i dodaj marginu ispod */
    }

    .usluge-grid {
        grid-template-columns: 1fr; /* Jedan stupac */
    }

    .projekti-galerija {
         grid-template-columns: 1fr; /* Jedan stupac */
    }

    .kontakt-flex {
        flex-direction: column; /* Slaži vertikalno */
    }
    .kontakt-forma {
        margin-top: 30px;
    }
}

@media(max-width: 480px) {
    /* Još specifičnije prilagodbe za vrlo male ekrane */
    .section-title {
        font-size: 1.8rem;
    }
    #hero h2 {
        font-size: 1.8rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    header #logo img {
        height: 35px; /* Još manji logo */
    }
    header .nav-menu ul li a {
        padding: 12px 15px;
    }
}