/* =========================================
   1. OSNOVNE POSTAVKE I VARIJABLE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #0b1120;
    --accent-color: #d4af37;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

/* =========================================
   2. ANIMACIJE PRI SKROLANJU (Intersection Observer)
   ========================================= */
.skriveno {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.prikazano {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   3. GUMBI ("Lift" efekt)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.btn:hover, .btn:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    color: var(--accent-color);
}

.btn:focus {
    outline: 2px dashed var(--primary-color);
    outline-offset: 4px;
}

/* =========================================
   2. NAVIGACIJA (HEADER)
   ========================================= */
.navbar {
    position: fixed; /* Fiksira navigaciju za ekran */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Osigurava da je navigacija uvijek iznad ostalog sadržaja */
    background-color: var(--white); /* Početna boja pozadine */
    padding: 20px 0; /* Malo veći razmak na vrhu */
    transition: var(--transition); /* Glatki prijelaz */
}

/* Stil koji se primjenjuje kada korisnik počne skrolati */
.navbar.scrolled {
    padding: 10px 0; /* Smanjujemo visinu navigacije */
    background-color: rgba(255, 255, 255, 0.95); /* Postaje lagano prozirno bijela */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Dodajemo suptilnu sjenu ispod */
    backdrop-filter: blur(5px); /* Moderni efekt zamućenja pozadine (kao na Apple uređajima) */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

.highlight { color: var(--accent-color); }

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Stil za aktivni link u navigaciji (Scrollspy) */
.nav-link.active {
    color: var(--accent-color);
    font-weight: 700; /* Podebljavamo tekst za dodatni naglasak */
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Hamburger animacija */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   3. HERO SEKCIJA
   ========================================= */
.hero {
    height: 100vh;
    /* Povezivanje pozadinske slike */
    background: linear-gradient(rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.8)), url('Slike/cover.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax efekt */
    background-repeat: repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 0; 
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   4. USLUGE (SERVICES)
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* =========================================
   IKONE U KARTICAMA USLUGA (Održavanje, Projektiranje, itd.)
   ========================================= */
.service-card i {
    font-size: 3rem; /* Veličina ikone */
    color: var(--accent-color); /* Ovo osigurava da je ikona ZLATNA */
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

/* Opcionalno: Hover efekt da ikona malo 'poskoči' i promijeni boju u plavu */
.service-card:hover i {
    transform: translateY(-5px);
    color: var(--primary-color); 
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 15px; }

/* =========================================
   O NAMA SEKCIJA (Logo u pozadini - Watermark)
   ========================================= */
.logo-bg-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Pseudo-element koji stvara veliki blagi logo u pozadini */
.logo-bg-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /* Veličina loga u pozadini */
    height: 70%;
    background-image: url('logo.png'); /* Ovdje provjerite je li točan naziv vašeg loga */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25; /* Samo 5% vidljivosti - savršen vodeni žig */
    z-index: 0;
}

.about-content-centered {
    position: relative;
    z-index: 2; /* Osigurava da tekst bude IZNAD loga */
    max-width: 1000px;
    margin: 0 auto;
}

.about-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-header-centered .section-title {
    font-size: 2.4rem;
    margin-bottom: 25px;
    line-height: 1.25;
}

.about-header-centered .about-description {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Ključne vrijednosti složene u 3 kolone (mreža) */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.value-item-centered {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7); /* Blaga bijela pozadina iza teksta */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px); /* Blago zamućenje onoga što je ispod kartice */
    transition: var(--transition);
}

.value-item-centered:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.value-item-centered .value-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin: 0 auto 20px auto;
    transition: var(--transition);
}

.value-item-centered:hover .value-icon {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.value-item-centered h5 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.value-item-centered p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responzivnost za manje ekrane */
@media (max-width: 768px) {
    .core-values-grid {
        grid-template-columns: 1fr; /* Na mobitelu jedna ispod druge */
    }
    .about-header-centered .section-title {
        font-size: 1.9rem;
    }
}

/* =========================================
   STATISTIKA ("Brojke koje govore")
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Stvara 2 kolone */
    gap: 20px;
    margin-top: 30px;
    background-color: var(--white); /* Ili rgba(255, 255, 255, 0.9) ako ide preko slike */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Fina sjena koja odvaja okvir */
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color); /* Vaša zlatna boja */
    font-family: 'Montserrat', sans-serif;
}

.stat-item .stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 5px;
    font-weight: 600;
    line-height: 1.3;
}

/* Prilagodba za jako male ekrane */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Na mobitelu idu jedna ispod druge */
    }
}

/* =========================================
   6. TURNKEY / PLATFORME SEKCIJA
   ========================================= */
.turnkey-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.turnkey-section .section-subtitle {
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #cbd5e1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.process-item h3 { color: var(--accent-color); margin-top: 20px; margin-bottom: 10px; }
.process-item p { color: #cbd5e1; }

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
/* =========================================
   VRSTE DIZALA (Čiste kartice + Slideshow pozadina)
   ========================================= */
.dynamic-bg-section {
    position: relative;
    /* overflow: hidden sprječava da slike izađu van granica sekcije */
    overflow: hidden; 
}

/* Kontejner za pozadinske slike */
.bg-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

/* Same slike koje se pretapaju */
.bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* Prekrasan, lagan i dug prijelaz */
}

.bg-slide.active {
    opacity: 1;
}

/* Tamni premaz preko slika kako bi kartice i naslov bili čitljivi */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 17, 32, 0.75); /* Tamno plava s 75% neprozirnosti */
    z-index: 1;
}

/* Podiže sadržaj IZNAD pozadine */
.relative-z {
    position: relative;
    z-index: 2;
}

/* Mreža kartica */
.elevator-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* SAME KARTICE */
.elevator-card-clean {
    /* Blago prozirna bijela boja (0.95) za luksuzan efekt stakla */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.elevator-card-clean:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--accent-color);
}

.elevator-card-clean i { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 20px; transition: var(--transition); }
.elevator-card-clean:hover i { color: var(--accent-color); transform: scale(1.1); }
.elevator-card-clean h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-color); }
.elevator-card-clean p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   KONTAKT SEKCIJA (Mapa i Forma)
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dvije jednake kolone */
    gap: 50px;
    align-items: start;
}

.contact-info .contact-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-details strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.contact-details span, 
.contact-details a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Stil za Google Mapu */
.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Blagi filter da se mapa vizualno bolje uklopi u tamniju temu */
    filter: contrast(1.1) grayscale(0.2); 
}

/* Okvir oko forme */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Responzivnost za Kontakt sekciju */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Na manjim ekranima ide jedno ispod drugog */
        gap: 40px;
    }
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
/* =========================================
   VALIDACIJA FORME
   ========================================= */
.contact-form .form-group {
    position: relative;
    margin-bottom: 25px; /* Povećan razmak zbog teksta greške */
}

/* Osnovni stil za polja (prilagodite ako već imate svoj) */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

/* Stil kada je polje ispravno popunjeno */
.contact-form input.success,
.contact-form textarea.success {
    border-color: #10b981; /* Lijepa zelena boja */
}

/* Stil kada postoji greška */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #ef4444; /* Crvena boja greške */
}

/* Male poruke o grešci ispod polja */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    position: absolute;
    bottom: -20px;
    left: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    visibility: visible;
}

/* Poruka o uspješnom slanju */
.success-message {
    color: #10b981;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 5px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-link {
    color: #94a3b8;
    margin: 0 10px;
    font-size: 0.85rem;
}

.legal-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   9. PRAVNE STRANICE (GDPR & UVJETI)
   ========================================= */
.legal-page {
    padding-top: 120px;
    background-color: var(--white);
    min-height: 80vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 { margin-bottom: 10px; text-align: left; }
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.legal-content p, .legal-content li { text-align: left; margin-bottom: 15px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }

/* =========================================
   10. COOKIE POP-UP & MODAL
   ========================================= */
/* Lebdeći Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    max-width: 90%;
    background-color: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 25px;
    z-index: 9999;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 15px;
    flex: 1;
    text-align: center;
}

.cookie-buttons #btn-settings {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-dark);
}
.cookie-buttons #btn-settings:hover { background: var(--bg-light); color: var(--primary-color); }

.cookie-buttons #btn-reject-all {
    background: none; border: none; color: var(--text-light);
    text-decoration: underline; flex: 0; padding: 0 10px;
}

/* Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-modal.show { display: flex; opacity: 1; }

.cookie-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cookie-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cookie-body { padding: 20px; }
.cookie-footer { padding: 15px 20px; background: var(--bg-light); text-align: right; }

.cookie-option {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #eee;
}
.cookie-option:last-child { border: none; margin: 0; padding: 0; }
.small-text { font-size: 0.8rem; color: var(--text-light); display: block; }

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(24px); }
input:disabled + .slider { background-color: #94a3b8; opacity: 0.6; cursor: not-allowed; }

/* =========================================
   11. RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    .logo { font-size: 1.4rem; } 
    .navbar { padding: 0 10px; }
    .menu-toggle { display: block; z-index: 1001; }
    
    .nav-menu {
        position: fixed;
        top: 80px; left: -100%;
        width: 100%; height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    
    .about-container, .contact-wrapper { grid-template-columns: 1fr; }
    
    .cookie-banner {
        bottom: 10px; right: 10px; left: 10px;
        width: auto; padding: 20px;
    }
}
/* Početno stanje: element je nevidljiv i spušten 30px prema dolje */
.skriveno {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out; /* Malo sporija tranzicija za elegantniji dojam */
}

/* Završno stanje: element je vidljiv i na svojoj originalnoj poziciji */
.prikazano {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   5. BLOG / EDUKACIJA
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 { margin-bottom: 15px; font-size: 1.3rem; }
.blog-content p { margin-bottom: 20px; color: var(--text-light); }

/* =========================================
   GUMB "POVRATAK NA VRH"
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%; /* Okrugli gumb */
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Osigurava da je uvijek na vrhu */
    
    /* Početno stanje: skriven (proziran i pomaknut dolje) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Stanje kada dobije klasu 'show' (vidljiv) */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px); /* Mali hover 'lift' efekt */
}

/* Prilagodba za mobitele (malo manji gumb i margina) */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* =========================================
   FAQ SEKCIJA (Harmonika)
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.faq-question:hover, 
.faq-question.active {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.4s ease;
}

/* Okretanje strelice kada je pitanje otvoreno */
.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease; /* Glatka animacija otvaranja */
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================================
   SPECIJALNI GUMBI (Navigacija i Hero sjaj)
   ========================================= */

/* Zlatni gumb 'Kontakt' u navigaciji */
.nav-btn-golden {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    padding: 8px 24px !important;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn-golden:hover {
    background-color: var(--primary-color) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   MOBILNE KOREKCIJE (Sprečavanje širenja ekrana)
   ========================================= */

/* 1. Glavni osigurač protiv vodoravnog skrolanja za cijelu stranicu */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Osigurava da padding (unutarnji razmak) ne povećava ukupnu širinu elemenata */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Specifične korekcije za mobitele */
@media (max-width: 768px) {
    /* Navbar korekcija */
    .nav-container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    /* Mapa korekcija (nasilno joj ograničavamo širinu) */
    .map-container iframe {
        width: 100% !important;
        max-width: 100%;
    }

    /* Forma korekcija (smanjujemo unutarnje razmake kako bi stala na ekran) */
    .contact-form-wrapper {
        padding: 25px 15px;
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 100%;
        max-width: 100%;
    }
}