/* ============================
   GLOBAL
============================ */

body {
    margin: 0;
    background: #fafafa;
    font-family: Arial, sans-serif;
    color: #333;
}

h2 {
    color: #c9a04d;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

/* ============================
   NAVBAR — 3 DIJELA: 20% - 60% - 20%
============================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f9faf5;
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1250px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

/* LEFT */
.nav-left {
    width: 20%;
    display: flex;
    align-items: center;
}

/* CENTER */
.nav-center {
    width: 60%;
    display: flex;
    justify-content: center;
}

/* RIGHT */
.nav-right {
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 70px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #c9a04d;
}

/* DESKTOP CALL BUTTON */
.nav-call-button {
    background: #c9a04d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

/* MOBILE CALL */
.mobile-call {
    background: #c9a04d;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

/* ACTIVE STATE */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   MOBILE NAV
============================ */

@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-left {
        width: auto;
    }

    .nav-center {
        width: 100%;
        order: 3;
        margin-top: 15px;
    }

    .nav-right {
        width: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f9faf5;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 25px;
        border-bottom: 1px solid #eee;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-call {
        display: block !important;
    }

    .hamburger {
        display: flex;
    }
}

/* ============================
   HERO
============================ */

.hero {
    position: relative;
    background: url('static/slika_1.png') center/cover;
    padding: 140px 20px;
    text-align: center;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-main {
    background: #c9a04d;
    color: white;
    padding: 12px 28px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: #b48d3f;
}

/* ============================
   SECTIONS
============================ */

.section {
    max-width: 1250px;
    margin: 80px auto;
    padding: 20px;
}

/* ============================
   USLUGE
============================ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #c9a04d;
    margin-bottom: 15px;
}

/* ============================
   LOGO CAROUSEL
============================ */

.brands-carousel {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.brands-track {
    display: flex;
    gap: 45px;
    width: max-content;
    animation: scrollBrands 15s linear infinite;
}

.brands-track img {
    width: 130px;
    height: 70px;
    object-fit: contain;
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    transition: 0.2s;
}

.brands-track img:hover {
    transform: scale(1.08);
}

@keyframes scrollBrands {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

.brand-note {
    text-align: center;
    margin-top: 20px;
    color: #555;
    font-size: 16px;
}

/* ============================
   GALERIJA
============================ */

.gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.gallery img:hover {
    transform: scale(1.03);
}

.gallery-more-wrap {
    text-align: center;
    margin-top: 25px;
}

/* LIGHTBOX */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lb-left { left: 10px; }
.lb-right { right: 10px; }

.lb-arrow:hover {
    color: #c9a04d;
}

/* ============================
   CONTACT (FIXED VERSION)
============================ */

.contact-section {
    background: #fefefe;
    padding: 80px 20px;
}

.contact-container {
    max-width: 700px;
    margin: auto;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c9a04d;
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 14px;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: #c9a04d;
}

/* ============================
   FOOTER
============================ */

footer {
    text-align: center;
    padding: 25px;
    color: #777;
    background: #f9faf5;
    border-top: 1px solid #eee;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 768px) {

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: 100px 20px;
    }

    .brands-track img {
        width: 110px;
        height: 60px;
    }

    .gallery img {
        height: 180px;
    }
}

@media (max-width: 480px) {

    h2 {
        font-size: 24px;
    }

    .hero {
        padding: 80px 20px;
    }

    .brands-track img {
        width: 90px;
        height: 50px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .lb-arrow {
        font-size: 24px;
        padding: 15px;
    }
}
/* ============================
   FORM POPUP
============================ */

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.popup-content {
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 18px;
    color: #333;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

