
:root { --primary: #0b1a2e; --gold: #d4af37; --gold-hover: #bfa035; --text: #2c3e50; --bg-light: #f4f7f6; --wa-green: #25D366; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--text); overflow-x: hidden; line-height: 1.6; margin: 0; padding: 0; }
h1, h2, h3, h4, .navbar-brand, .btn { font-family: 'Poppins', sans-serif; }
strong { font-weight: 700; color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* NAVBAR */
.navbar { background: rgba(11, 26, 46, 0.98); backdrop-filter: blur(10px); padding: 16px 0; }
.navbar-brand { color: #fff !important; letter-spacing: 0.5px; font-weight: 700; text-transform: uppercase; }
.nav-link { color: rgba(255,255,255,0.85) !important; margin-left: 15px; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }
.lang-switcher { display: flex; align-items: center; gap: 8px; margin-left: 15px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: 0.3s; text-decoration: none; display: inline-block; }
.lang-btn:hover, .lang-btn.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: bold; }

/* HERO SECTIONS */
.hero { background: linear-gradient(135deg, rgba(11, 26, 46, 0.9), rgba(11, 26, 46, 0.8)), url('../slike/hero-bg.jpg') center/cover fixed; min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.page-hero { background-color: var(--primary); background-size: cover; background-position: center; background-repeat: no-repeat; padding: 150px 0 80px 0; text-align: center; color: #fff; position: relative; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(11, 26, 46, 0.85), rgba(11, 26, 46, 0.75)); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.bg-fasete { background-image: url('../slike/bg-fasete.jpg'); }
.bg-protetika { background-image: url('../slike/bg-protetika.jpg'); }
.bg-smile { background-image: url('../slike/bg-smile.jpg'); }
.bg-implant { background-image: url('../slike/bg-implant.jpg'); }
.hero-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 70px 40px; max-width: 950px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,0.4); color: #fff; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -1px; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.badge-pill { background: rgba(255, 255, 255, 0.1); padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.15); }

/* BUTTONS */
.btn-gold { background: var(--gold); color: #0b1a2e; font-weight: 600; padding: 15px 35px; border-radius: 100px; border: none; transition: all 0.3s; text-decoration: none; display: inline-block; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4); color: #0b1a2e; }
.btn-outline-custom { border: 2px solid rgba(255,255,255,0.3); color: #fff; font-weight: 600; padding: 14px 35px; border-radius: 100px; transition: all 0.3s; background: transparent; text-decoration: none; display: inline-block; }
.btn-outline-custom:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* SECTIONS */
.section-padding { padding: 100px 0; position: relative; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); font-weight: 700; letter-spacing: -0.5px; }
.section-line { width: 50px; height: 4px; background: var(--gold); margin: 0 auto 50px auto; border-radius: 2px; }
.section-line.left { margin: 0 0 40px 0; }
.feature-box { background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: 100%; transition: 0.3s; border-bottom: 3px solid transparent; }
.feature-box:hover { transform: translateY(-5px); border-bottom-color: var(--gold); }
.expertise-card { background: #fff; padding: 40px 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; height: 100%; cursor: pointer; position: relative; border: 1px solid transparent; color: var(--text); }
.expertise-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--gold); }
.expertise-card::after { content: '→'; position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: #ddd; transition: 0.3s; }
.expertise-card:hover::after { color: var(--gold); }
.expertise-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.card-link { text-decoration: none; display: block; height: 100%; }
.dsd-img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.tech-list i { color: var(--gold); margin-right: 15px; font-size: 1.2rem; }
.content-img { border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* GOOGLE MAPS */
.map-container { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 25px; background: #eee; position: relative; }
.map-iframe { width: 100%; height: 100%; border: 0; }
.map-link-overlay { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 10; display: block; } /* Clickable layer */

/* CALENDLY FULL WIDTH */
.calendly-wrapper { width: 100%; margin: 0; border-radius: 0; background: transparent; }

/* SLIDER LOGIKA */
.slider-container { position: relative; padding: 0; width: 100%; overflow: hidden; }

/* Kontejner za kartice */
.slider-track { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    padding: 40px 0; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    align-items: center; 
}

@media (min-width: 992px) {
    /* "Rezultati" Slajder - FIX 1: KORISTIMO 50% UMJESTO 50VW ZA PRECIZNO CENTRIRANJE */
    #galleryTrack {
        justify-content: flex-start;
        /* (100% sirina roditelja / 2) - (800px slajd / 2) = centrirano u odnosu na sadrzaj */
        padding-left: calc(50% - 400px); 
        padding-right: 20px;
    }
    /* Gura ostale slike daleko u desno */
    #galleryTrack .special-slide {
        margin-right: 100vw; 
    }

    /* TikTok Slajder - CENTRIRAN GRUPNO */
    #tiktokTrack {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 991px) {
    .slider-track { padding-left: 20px; padding-right: 20px; }
    .special-slide { margin-right: 20px; } 
}

.slider-track::-webkit-scrollbar { display: none; }
.slider-nav-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; position: absolute; top: 50%; transform: translateY(-50%); z-index: 900; box-shadow: 0 10px 30px rgba(0,0,0,0.4); font-size: 1.5rem; }
.slider-nav-btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }

.special-slide { flex: 0 0 800px; height: 600px; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.25); background: #000; scroll-snap-align: center; }

.ba-img-static { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-img-clipped { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 50% 0 0); }
.ba-slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--gold); pointer-events: none; z-index: 10; }
.ba-slider-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: var(--gold); border-radius: 50%; color: #0b1a2e; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.ba-range { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 20; margin: 0; }

.gallery-slide { flex: 0 0 300px; height: 500px; position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: pointer; scroll-snap-align: start; opacity: 1; background: #0b1a2e; }
.gallery-slide:hover { transform: translateY(-10px); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(11,26,46,0.9); color: #fff; padding: 20px; font-size: 0.95rem; text-align: center; font-weight: 500; }

.tiktok-slide { flex: 0 0 280px; height: 500px; position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: transform 0.3s; display: block; text-decoration: none; }
.tiktok-slide:hover { transform: translateY(-5px); }
.tiktok-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.3s; }
.play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 3rem; color: #fff; text-shadow: 0 0 20px rgba(0,0,0,0.5); pointer-events: none; }
.tiktok-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 20px; color: #fff; text-align: left; }

.btn-social { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: #fff; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; border: 1px solid #eee; }
.btn-social:hover { transform: translateY(-5px); background: var(--gold); color: #fff; }

/* FOOTER & FLOATING */
footer { background: var(--primary); color: #fff; padding: 40px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.address-link { text-decoration: none; color: inherit; transition: color 0.3s; }
.address-link:hover { color: var(--gold); }
.float-wa { position: fixed; bottom: 25px; right: 25px; width: 65px; height: 65px; background-color: var(--wa-green); color: #FFF; border-radius: 50%; text-align: center; font-size: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.25); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; text-decoration: none; }
.float-wa:hover { transform: scale(1.1); color: #fff; }

/* RESPONSIVE */
@media(max-width: 991px){ 
    .special-slide { flex: 0 0 85vw; height: 400px; margin-right: 20px; } 
    .gallery-slide { flex: 0 0 260px; height: 450px; } 
    .slider-nav-btn { width: 45px; height: 45px; font-size: 1rem; } 
}
@media(max-width: 768px){ 
    .hero h1 { font-size: 2.2rem; } 
    .hero-card { padding: 40px 20px; } 
    .tiktok-slide { flex: 0 0 240px; height: 420px; } 
}
