/* --- OSNOVNE POSTAVKE I GLOBALNI RESET --- */
:root {
    --primary: #3c5852;
    --secondary: #5e7f87;
    --bg-color: #f6f3ed;
    --btn-bg: #f9faf7;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; 
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary);
    background-color: var(--bg-color);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.4) 2px,
        transparent 2px,
        transparent 40px
    );
    z-index: -999;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- GLAVNA NAVIGACIJA --- */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(246, 243, 237, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(94, 127, 135, 0.1);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

.nav-logo img {
    max-width: 140px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- SEKUNDARNA NAVIGACIJA (Pilule) --- */
.sub-nav {
    background-color: transparent;
    padding: 5px 20px 15px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(94, 127, 135, 0.2);
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-nav a:hover {
    background-color: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* --- HERO SEKCIJA (Za naslovnicu) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: translateZ(0); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 64px;
    color: #ffffff;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- GLAVNI KONTEJNER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

/* --- SEKCIJE ZAGLAVLJA --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1, .section-header h2 {
    font-size: 48px;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- KARTICE USLUGA (Cjenik / Usluge) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card, .service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(94, 127, 135, 0.1);
}

.service-card { padding: 40px 30px; text-align: center; border-radius: 25px; }

.card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title { font-size: 26px; margin-bottom: 10px; }
.service-card h3 { font-size: 26px; color: var(--secondary); margin-bottom: 15px; }

.card-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
}

.card-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}
.service-card p { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }

/* GUMBI */
.btn-rezerviraj, .btn-outline {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--secondary);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.btn-rezerviraj:hover, .btn-outline:hover {
    background-color: var(--secondary);
    color: #fff;
}

/* --- PRIČA O NAMA (STORY SEKCIJA - DODANO!) --- */
.story-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    background-color: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(94, 127, 135, 0.1);
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    object-fit: cover;
    display: block;
}

.story-content {
    flex: 1.2;
}

.story-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.story-content h3 {
    font-size: 20px;
    font-weight: 400;
    color: #888;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.story-content strong {
    color: var(--secondary);
    font-weight: 600;
}

/* --- O NAMA SEKCIJA (Stara klasa - Sačuvano) --- */
.about-section { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 42px; margin-bottom: 25px; }
.about-text p { font-size: 18px; line-height: 1.8; color: #555; margin-bottom: 15px; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); object-fit: cover; }


/* --- GALERIJA (SWIPE) --- */
.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 80px;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 127, 135, 0.5) transparent;
}

.gallery-container::-webkit-scrollbar { height: 6px; }
.gallery-container::-webkit-scrollbar-thumb { background-color: rgba(94, 127, 135, 0.5); border-radius: 10px; }

.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 60%;
    max-width: 600px;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* Dodan glatki hover efekat */
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05); /* Skaliranje pri hoveru */
}


/* --- KONTAKT FORMA I INFORMACIJE --- */
.contact-section {
    display: flex;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 60px;
    width: 100%;
}

.contact-info, .contact-form {
    flex: 1;
    background-color: #fdfcf9;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(94, 127, 135, 0.1);
    width: 100%;
}

.contact-form { flex: 1.2; background: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }

.contact-info h2 { font-size: 32px; margin-bottom: 30px; color: var(--secondary); }

.info-block { margin-bottom: 30px; }
.info-block p { font-size: 18px; line-height: 1.8; color: #555; margin: 0; }
.info-block strong { color: var(--secondary); display: block; margin-bottom: 5px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

.social-icons { display: flex; gap: 15px; margin-top: 40px; }
.social-icons a { display: block; width: 40px; height: 40px; transition: transform 0.3s ease; }
.social-icons a:hover { transform: scale(1.1); }

.form-group { margin-bottom: 25px; }
.form-control {
    width: 100%; padding: 16px 20px; border-radius: 15px; border: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif; font-size: 16px; box-sizing: border-box;
    background-color: #fcfbf9; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(94, 127, 135, 0.1); }
textarea.form-control { resize: vertical; min-height: 150px; }

.btn-submit {
    width: 100%; background-color: var(--secondary); color: #fff; border: none;
    padding: 18px; font-size: 18px; font-weight: 700; border-radius: 30px;
    cursor: pointer; transition: opacity 0.3s ease;
}
.btn-submit:hover { opacity: 0.8; }

.map-container {
    width: 100%; height: 450px; border-radius: 30px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 60px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.legal-info {
    text-align: center; font-size: 14px; line-height: 1.8; color: #666;
    background-color: rgba(255,255,255,0.6); padding: 40px; border-radius: 20px; margin-bottom: 60px;
}

/* --- CTA SEKCIJE (Zelene trake) --- */
.cta-banner, .cta-section { 
    background-color: var(--secondary); 
    padding: 80px 20px; 
    text-align: center; 
}
.cta-banner h2, .cta-section h2 { 
    color: #efe7dc; 
    font-size: 36px; 
    margin-bottom: 30px; 
    font-family: 'Playfair Display', serif; 
}
.btn-cta {
    display: inline-block; background-color: #f9faf7; color: var(--secondary);
    font-weight: 700; font-size: 20px; padding: 15px 40px; border-radius: 40px; transition: all 0.3s ease;
}
.btn-cta:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- HERO SEKCIJA (Za Usluge i O nama - slika i tekst) --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    padding-top: 40px;
}
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; }
.hero-text { flex: 1; text-align: center; }
.hero-text h2 { font-size: 42px; line-height: 1.3; margin-bottom: 20px; color: var(--secondary); }
.hero-divider { width: 60px; height: 3px; background-color: var(--secondary); margin: 0 auto; }


/* --- FOOTER --- */
.footer { background-color: #efe7dc; padding: 40px 20px; text-align: center; border-top: 1px solid #eaddcf; }
.footer-text { font-size: 14px; margin-bottom: 15px; color: var(--secondary); }
.scroll-top { font-size: 14px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary) !important; }

.footer-socials {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
}

.footer-socials a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    overflow: hidden !important; 
}

.footer-socials a svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    display: block !important;
}
.footer-socials, 
.footer-socials li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- 404 KOD --- */
.error-container { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; height: 70vh; }
.error-code { font-size: 150px; font-weight: 700; color: var(--secondary); line-height: 1; margin-bottom: 20px; }

/* LAZY LOAD EFEKT */
.lazy-img { filter: blur(10px); transition: filter 0.5s ease-in-out; }
.lazy-img.loaded { filter: blur(0); }


/* --- RESPONZIVNOST (MOBITELI) --- */
@media screen and (max-width: 900px) {
    /* Integrirana i objedinjena oba prethodna pravila za 900px */
    .contact-section, .about-section, .hero-section, .story-section { 
        flex-direction: column; 
        width: 100%; 
        text-align: center; 
    }
    .story-section {
        padding: 30px 20px;
    }
    .story-content {
        text-align: left; /* Bolje na mobitelu za dug tekst */
    }
    .hero-text h2 { font-size: 32px; }
    .section-header h1, .section-header h2 { font-size: 38px; }
    .contact-info, .contact-form { padding: 30px 20px; width: 100%; } 
    .map-container { height: 350px; border-radius: 20px; }
    .gallery-item { flex: 0 0 85%; }
}

@media screen and (max-width: 768px) {
    .navbar { flex-direction: column; gap: 12px; padding: 15px 15px 5px 15px; }
    .nav-links { width: 100%; justify-content: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; gap: 20px; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { flex-shrink: 0; white-space: nowrap; }

    .sub-nav { padding: 5px 15px 15px 15px; gap: 8px; justify-content: flex-start; }
    .sub-nav a { font-size: 10px; padding: 7px 14px; }
    
    html { scroll-padding-top: 100px; } 
    .hero-content h1 { font-size: 42px; }
    .hero-content p { font-size: 18px; }
}