/********** Template CSS **********/
:root {
    --primary: #0B5FA5;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-item .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transform: scale(0);
    transition: .5s;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-overlay .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(4, 12, 26, .84), rgba(4, 12, 26, .84)), url(../img/footer-bg-2.webp) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
/*** Auto Servis Šunja — custom ***/
#header-carousel .carousel-item > img { width: 100%; max-height: 92vh; object-fit: cover; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem; padding: .4rem .9rem; border-radius: 50rem; background: #ffffff; color: #14532d; }
.status-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.status-pill.closed { color: #7f1d1d; }
.status-pill.closed .dot { background: #ef4444; }
.status-pill.on-dark { background: rgba(255,255,255,.15); color: #fff; }
.gallery-img { height: 430px; width: 100%; object-fit: cover; }
.hours-list p { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; padding: .15rem .5rem; border-radius: .35rem; }
.hours-list p.today { background: rgba(11,95,165,.35); color: #fff; font-weight: 700; }
.navbar-brand img { height: 52px; width: auto; }
.footer-brand img { height: 72px; width: auto; }
.mobile-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: none; box-shadow: 0 -2px 14px rgba(0,0,0,.18); }
.mobile-callbar a { flex: 1; text-align: center; padding: .85rem .5rem; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
.mobile-callbar a.call { background: var(--primary); color: #fff; }
.mobile-callbar a.dir { background: var(--secondary); color: #fff; }
@media (max-width: 991.98px) {
    .mobile-callbar { display: flex; }
    body { padding-bottom: 52px; }
    .back-to-top { bottom: 72px; right: 20px; }
}

/*** Primary fix: template's customized Bootstrap bakes in red (#D81324) — force Šunja blue ***/
.btn-primary { background-color: #0B5FA5; border-color: #0B5FA5; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background-color: #084D87 !important; border-color: #084D87 !important; color: #fff !important; }
.btn-primary:focus { box-shadow: 0 0 0 .25rem rgba(11,95,165,.35) !important; }
.text-primary { color: #0B5FA5 !important; }
.bg-primary { background-color: #0B5FA5 !important; }
.border-primary { border-color: #0B5FA5 !important; }

/*** v5.1 polish: anchor offset under sticky nav, hero type, iPhone safe area ***/
#pocetna, #o-nama, #usluge, #galerija, #lokacija, #kontakt, #termin { scroll-margin-top: 104px; }
.carousel-caption h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@media (max-width: 575.98px) {
    .carousel-caption h1 { font-size: 2.1rem; }
    .mobile-callbar a { padding-bottom: calc(.85rem + env(safe-area-inset-bottom)); }
}

/*** v5.3 modern rounded UI ***/
::selection { background: #0B5FA5; color: #fff; }
.btn { border-radius: 10px; }
.btn-primary { background-image: linear-gradient(135deg, #1273C4, #0B5FA5 60%, #084D87); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-image: linear-gradient(135deg, #0B5FA5, #084D87); }
#header-carousel { border-radius: 0 0 28px 28px; overflow: hidden; }
h6.text-primary.text-uppercase { display: inline-block; background: rgba(11,95,165,.10); border: 1px solid rgba(11,95,165,.18); padding: .45rem 1.1rem; border-radius: 50rem; letter-spacing: .06em; }
.service .nav .nav-link { border-radius: 14px; }
.service .tab-pane .position-relative { border-radius: 18px; overflow: hidden; }
#o-nama img.position-absolute { border-radius: 18px; }
.team-item { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(11,33,84,.10); transition: transform .3s ease, box-shadow .3s ease; }
.team-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,33,84,.16); }
.social-tile { border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.12); transition: transform .25s ease; }
.social-tile:hover { transform: translateY(-3px); }
#kontakt .bg-light { border-radius: 14px; }
#kontakt iframe { border-radius: 18px; }
#recenzije .bg-white { border-radius: 20px; box-shadow: 0 16px 40px rgba(11,33,84,.10) !important; }
.form-control, .form-select { border-radius: 10px; }
.mobile-callbar { border-radius: 16px 16px 0 0; overflow: hidden; }
.social-tile span, .social-tile i { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.carousel-item.active > img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.marquee { overflow: hidden; background: linear-gradient(90deg, #084D87, #0B5FA5, #084D87); border-radius: 18px; margin: 0 auto 3rem; max-width: 1320px; width: calc(100% - 3rem); }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marqueeMove 26s linear infinite; padding: .8rem 0; }
.marquee-track span { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; }
.marquee-track i { color: #9fd0f5; font-style: normal; margin: 0 .9rem; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }
.globe-scroll { height: 170svh; position: relative; }
.globe-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
#globeMap { width: 100%; height: 100%; background: #e9eef3; z-index: 1; }
.globe-stage { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 500; background: rgba(11,33,84,.88); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1.3rem; border-radius: 50rem; font-size: .95rem; pointer-events: none; }
.globe-hint { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); z-index: 500; background: rgba(255,255,255,.92); color: #0B2154; font-weight: 600; padding: .5rem 1.2rem; border-radius: 50rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .4s; pointer-events: none; animation: hintBob 1.8s ease-in-out infinite; }
@keyframes hintBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
#globeMap .leaflet-popup-content-wrapper { border-radius: 14px; }
#globeMap .leaflet-popup-content { font-size: .95rem; line-height: 1.5; }
@media (max-width: 991.98px) { .globe-stage { bottom: 132px; } }
.counters-band { background: linear-gradient(135deg, #0B2154, #0B5FA5); border-radius: 20px; box-shadow: 0 18px 40px rgba(11,33,84,.22); overflow: hidden; }
.counter-cell { padding: 2.1rem 1rem; }
.counter-cell + .counter-cell { border-left: 1px solid rgba(255,255,255,.12); }
@media (max-width: 991.98px) { .counter-cell + .counter-cell { border-left: none; } }
.counter-cell i { font-size: 1.6rem; color: #9fd0f5; }
.counter-num { font-family: 'Barlow', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-top: .4rem; }
.counter-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: rgba(255,255,255,.75); }
.container-xxl.py-5 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.text-center > h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn-primary:hover::after { left: 135%; }
.team-item .position-relative > img { transition: transform .6s ease; }
.team-item:hover .position-relative > img { transform: scale(1.06); }
.nav-bar { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255,255,255,.9) !important; box-shadow: 0 6px 24px rgba(11,33,84,.08); }
.footer-wave { line-height: 0; margin-top: 3rem; margin-bottom: -1px; }
.footer-wave svg { width: 100%; height: 70px; display: block; }
.footer.mt-5 { margin-top: 0 !important; }
.globe-scroll { height: 170svh; }
#globeMap { background: #dcebf7; }
#globeMap .maplibregl-canvas { outline: none; }
.maplibregl-popup-content { border-radius: 14px; font-size: .95rem; line-height: 1.5; padding: 14px 16px; box-shadow: 0 12px 32px rgba(11,33,84,.25); }
.maplibregl-popup-tip { display: none; }

/*** v8 hero slider redesign + extras ***/
html { scroll-behavior: smooth; }
#header-carousel .carousel-item { height: min(86vh, 760px); min-height: 540px; }
#header-carousel .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#header-carousel .carousel-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,20,45,.5), rgba(6,20,45,0) 42%); pointer-events: none; }
#header-carousel .carousel-caption { background: linear-gradient(90deg, rgba(6,20,45,.87) 0%, rgba(6,20,45,.52) 55%, rgba(6,20,45,.08) 100%); z-index: 3; }
#header-carousel .carousel-caption h6 { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: .45rem 1.1rem; border-radius: 50rem; letter-spacing: .08em; }
#header-carousel .carousel-caption h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
#header-carousel .carousel-caption p { font-size: 1.08rem; max-width: 560px; }
.hero-ghost { position: absolute; right: 3.5%; bottom: 4%; z-index: 2; font-family: 'Barlow', sans-serif; font-size: clamp(7rem, 17vw, 14rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.20); pointer-events: none; }
#header-carousel .carousel-item:nth-child(1) .hero-ghost::after { content: '01'; }
#header-carousel .carousel-item:nth-child(2) .hero-ghost::after { content: '02'; }
#header-carousel .carousel-item:nth-child(3) .hero-ghost::after { content: '03'; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
#header-carousel .h-anim { opacity: 0; }
#header-carousel .carousel-item.active .h-anim { animation: heroUp .8s cubic-bezier(.2,.7,.3,1) both; }
#header-carousel .carousel-item.active .h-anim:nth-of-type(1) { animation-delay: .05s; }
#header-carousel .carousel-caption .h-anim:nth-child(2) { animation-delay: .16s; }
#header-carousel .carousel-caption .h-anim:nth-child(3) { animation-delay: .27s; }
#header-carousel .carousel-caption a.h-anim { animation-delay: .4s; }
.hero-indicators { position: absolute; z-index: 5; bottom: 2rem; left: max(1.25rem, calc(50% - 660px + 12px)); right: auto; margin: 0; display: flex; gap: .55rem; }
.hero-indicators button { width: 64px !important; height: 5px !important; border: none !important; border-radius: 50rem; background: rgba(255,255,255,.35) !important; overflow: hidden; padding: 0; position: relative; text-indent: 0 !important; opacity: 1 !important; }
.hero-indicators button span { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 50rem; }
.hero-indicators button.active span { animation: heroFill 8s linear forwards; }
@keyframes heroFill { from { width: 0; } to { width: 100%; } }
.hero-nav { top: auto !important; bottom: 1.4rem; width: 52px !important; height: 52px; border-radius: 50%; background: rgba(11,33,84,.38) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); opacity: 1 !important; display: flex; align-items: center; justify-content: center; z-index: 5; transition: background .3s; }
.hero-nav:hover { background: rgba(11,95,165,.75) !important; }
.hero-nav.carousel-control-prev { left: auto; right: 6.4rem; }
.hero-nav.carousel-control-next { right: 2rem; }
.hero-nav .carousel-control-prev-icon, .hero-nav .carousel-control-next-icon { width: 1.3rem; height: 1.3rem; }
.hero-scroll { position: absolute; z-index: 5; left: 50%; bottom: 1.6rem; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 1.1rem; animation: hintBob 1.8s ease-in-out infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (max-width: 767.98px) {
    #header-carousel .carousel-item { height: 74vh; min-height: 480px; }
    .hero-ghost { display: none; }
    .hero-scroll { display: none; }
    .hero-indicators { left: 1.25rem; bottom: 5.2rem; }
    .hero-nav { bottom: 4.6rem; }
    .hero-nav.carousel-control-prev { right: 5.6rem; }
    .hero-nav.carousel-control-next { right: 1.25rem; }
}

/*** v8.1 globe release: after the flight completes, the section becomes a normal static map ***/
#globeScroll.globe-done { height: auto; }
#globeScroll.globe-done .globe-sticky { position: relative; top: auto; height: 70vh; }

/*** v9: slider fix (mobile overlap), marquee removed, plainer/professional look ***/
html, body { overflow-x: clip; }
body { -webkit-tap-highlight-color: transparent; }
.marquee { display: none !important; }
.carousel-item.active > img { animation: none !important; }
.btn-primary::after { display: none !important; }
.footer-wave { display: none !important; }
.hero-ghost, .hero-scroll { display: none !important; }
#header-carousel .carousel-caption h6 { background: transparent; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0; letter-spacing: .14em; font-size: .82rem; }
#header-carousel .carousel-caption h6::before { content: ''; display: inline-block; width: 36px; height: 3px; background: #4EA8E0; vertical-align: middle; margin-right: .65rem; border-radius: 2px; }
.hero-nav { background: #0B5FA5 !important; border: none; }
.hero-nav:hover { background: #084A82 !important; }
.hero-indicators button { width: 48px !important; }
@media (max-width: 767.98px) {
    #header-carousel .carousel-item { height: 94svh; min-height: 640px; max-height: 820px; }
    #header-carousel .carousel-caption { align-items: flex-end !important; padding-bottom: 5.6rem; background: linear-gradient(to top, rgba(6,20,45,.90) 0%, rgba(6,20,45,.58) 55%, rgba(6,20,45,.28) 100%); }
    #header-carousel .carousel-caption h1 { font-size: clamp(2.15rem, 9.5vw, 2.7rem); margin-bottom: .8rem !important; padding-bottom: 0 !important; }
    #header-carousel .carousel-caption p { font-size: .98rem; margin-bottom: 1rem !important; }
    #header-carousel .carousel-caption h6 { font-size: .72rem; margin-bottom: .7rem !important; }
    #header-carousel .carousel-caption .btn { display: block; width: 100%; margin: 0 0 .6rem 0 !important; padding-top: .85rem !important; padding-bottom: .85rem !important; }
    #header-carousel .carousel-caption .status-pill { font-size: .85rem; padding: .5rem .95rem; margin-bottom: .2rem; }
    .hero-nav { display: none !important; }
    .hero-indicators { left: 1.25rem; bottom: 1.15rem; }
    .hero-indicators button { width: 40px !important; }
    input, select, textarea { font-size: 16px !important; }
    .counters-band { border-radius: 18px; }
    .counter-cell { padding: 1.4rem .5rem; }
}

/*** v9.1: gallery hover overlay is a translucent tint, not a solid blue wall ***/
.team-item .team-overlay { background: rgba(6, 20, 45, .48); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

/*** v10: professional copy pass + images shown whole, not zoom-cropped ***/
#header-carousel .carousel-caption h6::before { content: none !important; }
h6.text-primary.text-uppercase { background: transparent; border: none; padding: 0; border-radius: 0; }
#header-carousel .carousel-item picture { position: absolute; inset: 0; display: block; }
#header-carousel .carousel-item picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.svc-photo { border-radius: 14px; }
.maplibregl-popup-content a { color: #0B5FA5 !important; }
#globeScroll.globe-done .globe-hud, #globeScroll.globe-done .globe-hint { display: none !important; }

/*** v10.1: hide the stage pill once the flight has finished (correct class) ***/
#globeScroll.globe-done .globe-stage { display: none !important; }

/*** v11: buttons normalized, map attribution bar off, shop photo marker ***/
.btn { border-radius: 10px; }
.btn:active { transform: scale(.98); }
.maplibregl-ctrl-attrib { display: none !important; }
.shop-photo-marker { width: 66px; height: 66px; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(6,20,45,.45); }
@media (max-width: 767.98px) {
    .back-to-top { bottom: 92px !important; }
    #header-carousel .carousel-caption .btn { padding-top: .8rem !important; padding-bottom: .8rem !important; font-size: 1rem; }
    #kontakt .btn-light, #kontakt .btn-outline-light { display: block; width: 100%; margin: .55rem 0 0 0 !important; }
    .shop-photo-marker { width: 54px; height: 54px; }
}

/*** v11.1: navbar CTA normal-sized; back-to-top tidy ***/
.navbar .btn { align-self: center; height: auto; margin: .5rem .8rem .5rem .5rem; padding: .62rem 1.35rem !important; border-radius: 10px; }
.back-to-top { right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px !important; box-shadow: 0 8px 20px rgba(6,20,45,.28); z-index: 999; }

/*** v12.1: navbar CTA height (template forces 75px) + back-to-top pinned by ID ***/
.navbar-light a.btn { height: auto !important; min-height: 0 !important; padding: .62rem 1.35rem !important; align-self: center; }
#backTop { position: fixed !important; left: auto !important; right: 24px !important; bottom: 24px !important; width: 46px; height: 46px; z-index: 999; }
@media (max-width: 767.98px) {
    #backTop { bottom: 92px !important; }
}

/*** v13: polish + accessibility + performance ***/
::selection { background: #0B5FA5; color: #fff; }
.sticky-top { box-shadow: 0 6px 24px rgba(6,20,45,.08); }
.gallery-img { transition: transform .5s ease; }
.team-item:hover .gallery-img { transform: scale(1.045); }
#usluge .nav-pills .nav-link { transition: all .25s ease; }
#termin .form-control:focus, #termin .form-select:focus { border-color: #0B5FA5; box-shadow: 0 0 0 .2rem rgba(11,95,165,.15); }
@media (prefers-reduced-motion: reduce) {
    .animated, .wow { animation: none !important; transition: none !important; }
    #header-carousel .carousel-item { transition: none !important; }
}

/*** v14: animated Google stars (fill up to the rating) ***/
.stars { position: relative; display: inline-block; line-height: 1; font-size: 1.9rem; }
.stars-row { display: inline-flex; gap: .14em; white-space: nowrap; }
.stars-bg { color: rgba(140,155,175,.55); }
.stars-fg { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; color: #FFC107; transition: width 1.5s cubic-bezier(.25,.8,.3,1) .15s; }
.stars.on .stars-fg { width: var(--fillw, 92%); }
.stars.on .stars-fg i { animation: starPop .45s ease both; }
.stars.on .stars-fg i:nth-child(2) { animation-delay: .18s; }
.stars.on .stars-fg i:nth-child(3) { animation-delay: .36s; }
.stars.on .stars-fg i:nth-child(4) { animation-delay: .54s; }
.stars.on .stars-fg i:nth-child(5) { animation-delay: .72s; }
@keyframes starPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.stars-big .stars { font-size: 2.3rem; }

/*** v15.1: hero photos shown WHOLE (blur-fill backdrop, no more zoom-crop) ***/
#header-carousel .hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.48) saturate(1.15); transform: scale(1.12); }
#header-carousel .carousel-item picture { position: absolute; inset: 0; z-index: 1; display: block; }
#header-carousel .carousel-item picture img { width: 100%; height: 100%; object-fit: contain; display: block; }
#header-carousel .carousel-item::after { z-index: 2; }

/*** v17.3 sweep fixes ***/
.status-pill { white-space: nowrap; }
#header-carousel .carousel-caption p { text-wrap: pretty; }



.footer {
    background-color: #0b2154;
    background-image: linear-gradient(165deg, #0b2154 0%, #102e5d 48%, #061631 100%) !important;
    background-repeat: no-repeat !important;
}

.team-item .position-relative {
    --gallery-bg: none;
    aspect-ratio: 4 / 5;
    background: #0a1831;
    isolation: isolate;
}

.team-item .position-relative::before {
    content: '';
    position: absolute;
    inset: -10%;
    z-index: 0;
    background-image: linear-gradient(rgba(6, 20, 45, .28), rgba(6, 20, 45, .42)), var(--gallery-bg);
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(1.08);
    transform: scale(1.08);
}

.gallery-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.team-item:hover .gallery-img {
    transform: none !important;
}

.team-overlay {
    z-index: 2;
}

[data-svc-cat] {
    object-fit: contain !important;
    object-position: center !important;
    background: linear-gradient(145deg, #eef4fa, #dfe9f4);
}

#header-carousel .carousel-item,
#header-carousel .carousel-caption,
.team-item,
.service .tab-pane {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (max-width: 991.98px) {
    .footer {
        background-position: center center !important;
    }
}

@media (max-width: 575.98px) {

    .team-item .position-relative::before {
        filter: blur(16px) brightness(.88);
    }

    .team-item {
        box-shadow: 0 10px 24px rgba(11, 33, 84, .10);
    }
}

@media (prefers-reduced-motion: reduce) {

    .team-item,
    .gallery-img,
    .service .nav .nav-link {
        transition: none !important;
    }
}


/*** v18.3: adaptive animation/performance pass ***/
html.perf-lite #header-carousel .hero-bg {
    filter: brightness(.5) saturate(.95) !important;
    transform: scale(1.025) !important;
}

html.perf-lite .team-item .position-relative::before {
    filter: none !important;
    opacity: .42;
    transform: scale(1.025);
}

html.perf-lite .wow {
    animation-duration: .35s !important;
}

html.perf-lite .team-item,
html.perf-lite .sticky-top,
html.perf-lite #backTop {
    box-shadow: none !important;
}

@media (max-width: 767.98px) {
    .team-item .position-relative::before {
        filter: blur(12px) brightness(.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    #header-carousel .hero-bg {
        transform: none !important;
        filter: brightness(.5) saturate(.95) !important;
    }

    .hero-scroll,
    .marquee-track {
        animation: none !important;
    }
}


/*** v18.4: controlled visual polish ***/
:root {
    --sunja-blue: #0B5FA5;
    --sunja-navy: #0B2154;
    --sunja-border: rgba(11, 33, 84, .09);
    --sunja-shadow: 0 16px 42px rgba(11, 33, 84, .10);
}

/* Header polish that was previously defined but never attached to the navbar. */
.nav-bar {
    border-bottom: 1px solid rgba(11, 33, 84, .06);
}
.navbar-brand img {
    height: 56px;
    transition: transform .28s cubic-bezier(.2,.75,.25,1), filter .28s ease;
}
.navbar-brand:hover img {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 7px 12px rgba(11, 33, 84, .12));
}
.navbar-light .navbar-nav .nav-link {
    position: relative;
    transition: color .22s ease, transform .22s ease;
}
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 30px;
    bottom: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0B5FA5, #4EA8E0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s cubic-bezier(.2,.75,.25,1);
}
.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Buttons: a little more depth without changing the site's shape language. */
.btn {
    transition: transform .22s cubic-bezier(.2,.75,.25,1), box-shadow .22s ease, background-color .22s ease, border-color .22s ease !important;
}
.btn-primary {
    box-shadow: 0 8px 18px rgba(11,95,165,.18);
}
.btn-primary:hover,
.btn-outline-light:hover,
.btn-light:hover {
    transform: translateY(-2px);
}
.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(11,95,165,.24);
}
.btn:active {
    transform: translateY(0) scale(.985) !important;
}

/* Section labels + headings get slightly cleaner hierarchy. */
h6.text-primary.text-uppercase {
    position: relative;
    padding-left: 34px !important;
    letter-spacing: .13em;
    font-size: .78rem;
    font-weight: 700;
}
h6.text-primary.text-uppercase::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0B5FA5, #66b9ee);
    transform: translateY(-50%);
}

/* About + services: subtle card treatment, not a redesign. */
#o-nama .position-relative.h-100 {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--sunja-shadow);
    border: 1px solid var(--sunja-border);
}
#o-nama .position-relative.h-100 > img {
    transition: transform .7s cubic-bezier(.2,.75,.25,1);
}
@media (hover:hover) {
    #o-nama .position-relative.h-100:hover > img {
        transform: scale(1.018);
    }
}
.service .nav .nav-link {
    border: 1px solid rgba(11,33,84,.07);
    box-shadow: 0 6px 18px rgba(11,33,84,.05);
    transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease, background .24s ease !important;
}
.service .nav .nav-link:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 24px rgba(11,33,84,.09);
}
.service .nav .nav-link.active {
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(11,95,165,.20);
}
.service .tab-content {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--sunja-border);
    border-radius: 22px;
    padding: clamp(1rem, 1.7vw, 1.55rem);
    box-shadow: 0 14px 36px rgba(11,33,84,.07);
}
.service .tab-pane.active {
    animation: sunjaTabIn .42s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes sunjaTabIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Gallery overlay no longer pops in as a scale-from-zero wall. */
.team-item {
    border: 1px solid rgba(11,33,84,.07);
    background: #fff;
    transition: transform .28s cubic-bezier(.2,.75,.25,1), box-shadow .28s ease, border-color .28s ease !important;
}
.team-item .team-overlay {
    transform: none !important;
    opacity: 0;
    background: linear-gradient(180deg, rgba(6,20,45,.08), rgba(6,20,45,.58)) !important;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    transition: opacity .28s ease !important;
}
.team-item .team-overlay .btn {
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transition: opacity .25s ease .04s, transform .28s cubic-bezier(.2,.75,.25,1) .04s;
}
@media (hover:hover) {
    .team-item:hover {
        transform: translateY(-6px);
        border-color: rgba(11,95,165,.18);
        box-shadow: 0 20px 42px rgba(11,33,84,.14);
    }
    .team-item:hover .team-overlay {
        opacity: 1;
    }
    .team-item:hover .team-overlay .btn {
        opacity: 1;
        transform: none;
    }
}
@media (hover:none) {
    .team-item .team-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 66%, rgba(6,20,45,.48)) !important;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 1rem;
    }
    .team-item .team-overlay .btn {
        opacity: 1;
        transform: none;
    }
}

/* Softer, more consistent reveal timing across the existing WOW animations. */
.wow {
    animation-duration: .72s !important;
    animation-timing-function: cubic-bezier(.2,.75,.25,1) !important;
}

/* Mobile: retain the same layout, just make the nav panel/card edges cleaner. */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 50px;
    }
    .navbar-collapse {
        background: rgba(255,255,255,.98);
        border-top: 1px solid rgba(11,33,84,.06);
        box-shadow: 0 14px 24px rgba(11,33,84,.08);
    }
    .navbar-light .navbar-nav .nav-link::after {
        right: auto;
        width: 28px;
        bottom: 5px;
    }
    .service .nav .nav-link:hover,
    .service .nav .nav-link.active {
        transform: none;
    }
}
@media (max-width: 575.98px) {
    .service .tab-content {
        border-radius: 18px;
        padding: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service .tab-pane.active,
    .wow {
        animation: none !important;
    }
    .navbar-brand img,
    .navbar-light .navbar-nav .nav-link,
    .btn,
    .service .nav .nav-link,
    .team-item,
    .team-item .team-overlay,
    .team-item .team-overlay .btn {
        transition: none !important;
    }
}


/*** v18.5: instant top control + stable map hold zone ***/
.globe-scroll {
    height: 170svh;
}

.globe-sticky {
    overflow: hidden;
}

.globe-stage {
    min-width: max-content;
    transition:
        background .28s ease,
        box-shadow .28s ease,
        transform .28s cubic-bezier(.2,.75,.25,1),
        opacity .28s ease;
}

#globeScroll.globe-arrived .globe-stage {
    background: rgba(11, 33, 84, .94);
    box-shadow: 0 12px 30px rgba(6, 20, 45, .28);
    transform: translateX(-50%) translateY(-2px);
}

#globeScroll.globe-arrived .globe-hint {
    opacity: 0 !important;
}

#globeScroll.globe-arrived .shop-photo-marker {
    animation: shopMarkerSettle .42s cubic-bezier(.2,.75,.25,1) both;
}

@keyframes shopMarkerSettle {
    from { opacity: 0; transform: translateY(8px) scale(.92); }
    to { opacity: 1; transform: none; }
}

#backTop {
    transition:
        transform .18s cubic-bezier(.2,.75,.25,1),
        box-shadow .18s ease,
        background-color .18s ease !important;
    touch-action: manipulation;
}

#backTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(6,20,45,.32);
}

#backTop:active {
    transform: scale(.94) !important;
}

@media (max-width: 767.98px) {
    .globe-scroll {
        height: 145svh;
    }

    .globe-stage {
        max-width: calc(100vw - 2rem);
        min-width: 0;
        width: max-content;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    .globe-stage,
    #backTop,
    #globeScroll.globe-arrived .shop-photo-marker {
        transition: none !important;
        animation: none !important;
    }
}


/*** v18.6: sharp media presentation ***/
/* Do not blur workshop photos. The contained foreground image stays sharp
   and the surrounding space uses a clean branded backdrop instead. */
#header-carousel .hero-bg {
    background: linear-gradient(135deg, #06142d 0%, #0a2c55 55%, #071a35 100%) !important;
    filter: none !important;
    transform: none !important;
}

#header-carousel .carousel-item picture img {
    filter: none !important;
    image-rendering: auto;
}

.team-item .position-relative {
    background: linear-gradient(145deg, #08182f, #0c2748) !important;
}

.team-item .position-relative::before {
    display: none !important;
    filter: none !important;
}

.gallery-img,
.svc-photo,
[data-svc-cat] {
    filter: none !important;
    image-rendering: auto;
}

/* One button, one scroll animation. Keep visibility changes on the compositor
   instead of jQuery fade animations, which were fighting iOS momentum scroll. */
#backTop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s cubic-bezier(.2,.75,.25,1),
        box-shadow .18s ease,
        background-color .18s ease !important;
}

#backTop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#backTop.is-visible:hover {
    transform: translateY(-2px);
}

#backTop.is-visible:active {
    transform: scale(.94) !important;
}

/* Once the map flight is complete, the visual state remains settled while the
   user moves back through the section. The JS lock persists until refresh. */
#globeScroll.globe-arrived .globe-stage {
    background: rgba(11, 33, 84, .96);
    box-shadow: 0 12px 30px rgba(6, 20, 45, .28);
}

@media (max-width: 767.98px) {
    #header-carousel .hero-bg {
        background: linear-gradient(160deg, #06142d, #0b315e) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #backTop {
        transition: none !important;
    }
}


/*** v18.7: map release + maximum image sharpness ***/
#globeScroll.globe-complete {
    height: 70vh !important;
    min-height: 520px;
}

#globeScroll.globe-complete .globe-sticky {
    position: relative !important;
    top: auto !important;
    height: 70vh !important;
    min-height: 520px;
}

#globeScroll.globe-complete .globe-stage,
#globeScroll.globe-complete .globe-hint {
    display: none !important;
}

/* Keep actual media pixels untouched. Avoid blur/compositing effects that can
   make high-resolution photos look soft on Safari/iOS. */
#header-carousel .carousel-item picture,
#header-carousel .carousel-item picture img,
.gallery-img,
.svc-photo,
[data-svc-cat],
#o-nama img {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    image-rendering: auto !important;
}

#header-carousel .carousel-item picture img,
.gallery-img,
.svc-photo,
[data-svc-cat],
#o-nama .position-relative.h-100 > img {
    transform: none !important;
}

.team-item .team-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#o-nama .position-relative.h-100:hover > img {
    transform: none !important;
}

@media (max-width: 767.98px) {
    #globeScroll.globe-complete {
        height: 62vh !important;
        min-height: 460px;
    }

    #globeScroll.globe-complete .globe-sticky {
        height: 62vh !important;
        min-height: 460px;
    }
}


/*** v18.8: short globe flight and carefully framed real workshop exterior ***/
#globeScroll:not(.globe-complete) {
    height: 170svh;
}
@media (max-width: 767.98px) {
    #globeScroll:not(.globe-complete) {
        height: 145svh;
    }
}

/* Use the real exterior photo of the entrance/sign, not an elongated photo
   of the parking lot. Crop the bottom dashboard foreground via CSS only. */
#o-nama [data-about-photo] {
    display: block;
    width: 100%;
    height: clamp(270px, 28vw, 355px);
    min-height: 270px;
    max-height: 355px;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
}
@media (max-width: 991.98px) {
    #o-nama [data-about-photo] {
        height: 290px;
        min-height: 0;
    }
}
@media (max-width: 575.98px) {
    #o-nama [data-about-photo] {
        height: min(62vw, 235px);
    }
}


/*** v18.9: no lingering map scroll trap, especially on iPhone ***/
/* The flight completes within one short screen segment. After completion
   the section is normal-height, so scrolling back up never sticks. */
#globeScroll:not(.globe-complete) {
    height: 140svh !important;
}
#globeScroll.globe-complete,
#globeScroll.globe-complete .globe-sticky {
    height: 85svh !important;
    min-height: 0 !important;
}
@media (max-width: 767.98px) {
    #globeScroll:not(.globe-complete) {
        height: 118svh !important;
    }
    #globeScroll.globe-complete,
    #globeScroll.globe-complete .globe-sticky {
        height: 82svh !important;
        min-height: 0 !important;
    }
}

/* In-place loading for the globe. Map is usable once tiles/style are ready. */
#globeScroll .globe-sticky { overflow: hidden; }
#globeMap .maplibregl-popup {
    max-width: min(310px, calc(100vw - 32px)) !important;
    font-size: .85rem;
}
#globeMap .maplibregl-popup-content {
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 12px 36px rgba(4,17,42,.20);
}
#globeScroll .globe-sticky .shop-photo-marker {
    display: none !important;
}

/* Gallery retains source context but no generic AI-looking image titles. */
.gallery-source-line {
    border-top: 1px solid rgba(13,44,81,.06);
    border-radius: 0 0 18px 18px;
    padding: 14px 18px !important;
    background: #f5f8fc !important;
    color: #536b82;
    font-size: .85rem;
    line-height: 1.45;
}
.gallery-source-line small { font-size: .85rem; font-weight: 600; }

/* Contact card: a contained layout that cannot overflow narrow phones. */
.contact-spotlight {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 24px;
    color: #f6faff;
    background: linear-gradient(150deg, #0c2451 0%, #183c75 54%, #1c5890 100%);
    border: 1px solid rgba(147,194,242,.22);
    box-shadow: 0 20px 52px rgba(11,33,84,.13);
}
.contact-spotlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    top: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(137,210,255,.12),transparent 70%);
    pointer-events: none;
}
.contact-spotlight-heading { margin-bottom: 24px; }
.contact-spotlight-heading h3 {
    font: 700 clamp(1.45rem, 3.2vw, 2rem)/1.2 "Barlow", sans-serif;
    letter-spacing: -.015em;
}
.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #c7e8ff;
    font: 700 .69rem/1.1 "Ubuntu", sans-serif;
    letter-spacing: .15em;
}
.contact-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7ed1ff;
    box-shadow: 0 0 0 4px rgba(126,209,255,.13);
}
.contact-facts { display: grid; gap: 17px; }
.contact-fact {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}
.contact-fact > div { flex: 1; min-width: 0; }
.contact-fact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #c7e6fc;
    background: rgba(184,221,255,.12);
    border: 1px solid rgba(184,221,255,.13);
}
.contact-fact-label {
    display: block;
    margin: 0 0 5px;
    font: 700 .63rem/1.3 "Ubuntu", sans-serif;
    letter-spacing: .16em;
    color: #a8d0ee;
}
.contact-fact p {
    margin: 0;
    color: #fff;
    font: 500 clamp(.93rem, 2.4vw, 1rem)/1.55 "Ubuntu", sans-serif;
    overflow-wrap: anywhere;
}
.contact-fact p a { color: #fff; text-decoration: none; font-weight: 700; }
.contact-muted { color: #d5e8fa; }
.contact-status-row {
    display: flex;
    margin: 25px 0;
    min-width: 0;
    width: 100%;
}
.contact-spotlight .status-pill {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 11px;
    white-space: normal !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid rgba(182,223,255,.2);
    border-radius: 15px;
    color: #fff;
    background: rgba(189,218,253,.12);
    line-height: 1.45;
    text-align: left;
    font: 600 clamp(.84rem, 2.2vw, .94rem)/1.45 "Ubuntu", sans-serif;
    overflow-wrap: anywhere;
}
.contact-spotlight .status-pill .dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
}
.contact-spotlight .status-pill [data-status-text] {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.contact-spotlight-copy {
    margin: 0 0 25px;
    font: 400 clamp(.9rem, 2.25vw, .98rem)/1.65 "Ubuntu", sans-serif;
    color: #dbe9f9;
}
.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 11px;
    width: 100%;
}
.contact-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 10px;
    border-radius: 13px;
    font: 700 .9rem/1.3 "Ubuntu", sans-serif;
    text-transform: none;
    white-space: normal;
}
.contact-btn-primary {
    color: #0b2854;
    background: #fff;
    border: 1px solid #fff;
}
.contact-btn-primary:hover { color: #08264d; background: #ecf6ff; }
.contact-btn-secondary {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(233,246,255,.5);
}
.contact-btn-secondary:hover { color: #fff; background: rgba(255,255,255,.16); }
@media (max-width: 1199.98px) {
    .contact-actions { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    #kontakt .row > .col-md-6 { min-width: 0; }
    .contact-spotlight { border-radius: 20px; padding: 25px 20px; }
    .contact-spotlight-heading { margin-bottom: 21px; }
    .contact-facts { gap: 17px; }
    .contact-fact { gap: 12px; }
    .contact-fact-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .contact-actions { grid-template-columns: 1fr; }
    .contact-actions .btn { padding: 15px 12px; }
}


/* v20.0: instant, compact and loader-free */
html {
    /* Section scroll-margin supplies the sole sticky-header offset. */
    -webkit-text-size-adjust: 100%;
}
body { overflow-x: clip; }

/* The navbar must not move away when the first link is tapped. */
.navbar-light.sticky-top {
    top: 0 !important;
    z-index: 1029;
    transition: box-shadow .2s ease, background-color .2s ease !important;
}
html.is-scrolled .navbar-light.sticky-top {
    box-shadow: 0 9px 28px rgba(11,33,84,.13) !important;
}
.navbar-light .navbar-nav .nav-link {
    font-size: .88rem;
    letter-spacing: .015em;
    padding-top: 18px;
    padding-bottom: 18px;
    touch-action: manipulation;
}
.navbar-toggler, .hero-indicators button, .hero-nav,
.service .nav .nav-link, .gallery-tile-link, .map-quick-link,
a[href], button, .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
/* Preserve a generous touch target without huge visual padding. */
.btn {
    text-transform: none;
    letter-spacing: 0;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 11px;
    transform: none !important;
    transition: background-color .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease !important;
}
.btn-primary.py-3, .btn-outline-light.py-3, .btn-light.py-3 {
    min-height: 45px;
    padding: .76rem 1.3rem !important;
}
.btn-primary:hover, .btn-outline-light:hover, .btn-light:hover,
.btn:active { transform: none !important; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(11,95,165,.21); }
.btn:focus-visible, a:focus-visible, button:focus-visible,
.service .nav .nav-link:focus-visible {
    outline: 3px solid #52a7e2;
    outline-offset: 3px;
}
.service .nav .nav-link {
    min-height: 62px;
    padding: .85rem 1rem !important;
    margin-bottom: .72rem !important;
    border-radius: 13px;
}
.service .nav .nav-link h4 { font-size: 1rem; line-height: 1.25; }
.service .nav .nav-link i { font-size: 1.35rem !important; }
.service .nav .nav-link:hover, .service .nav .nav-link.active {
    transform: none !important;
}
.service .tab-content { border-radius: 18px; }
.service .tab-pane.active { animation-duration: .22s; }

/* Reduce the oversized text across every main section. */
#o-nama h1, #usluge h1, #galerija h1, #recenzije h1,
#lokacija h1, #kontakt h1 {
    font-size: clamp(1.65rem, 2.65vw, 2.3rem) !important;
    line-height: 1.18;
    letter-spacing: -.025em;
}
#o-nama h1 { max-width: 24ch; }
#o-nama p, #o-nama .ps-3 span, .service .tab-content p {
    font-size: .96rem;
    line-height: 1.68;
}
#usluge h3 { font-size: 1.35rem; }
#kontakt h4, .footer h4 { font-size: 1.17rem; }
#header-carousel .carousel-caption h1 {
    font-size: clamp(2.05rem, 4.2vw, 3.35rem) !important;
    line-height: 1.08;
    letter-spacing: -.035em;
}
#header-carousel .carousel-caption p {
    font-size: clamp(.92rem, 1.05vw, 1.03rem);
    line-height: 1.65;
    max-width: 550px;
}
#header-carousel .carousel-caption h6 { font-size: .72rem; }
#header-carousel .h-anim { opacity: 1; }
#header-carousel .carousel-item.active .h-anim {
    animation: heroUp .35s cubic-bezier(.18,.75,.28,1) both;
    animation-delay: 0s !important;
}

/* Gallery tiles act as direct links, even before hover is detected. */
.team-item .gallery-tile-link {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto !important;
    border-radius: 0;
}
.gallery-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #0b5fa5;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
    font-size: 1.12rem;
    transition: box-shadow .2s ease;
}
.gallery-tile-link:hover .gallery-action-icon {
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
@media (hover: none), (pointer: coarse) {
    .team-item .gallery-tile-link {
        opacity: 1 !important;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 12px;
        background: linear-gradient(180deg, transparent 70%, rgba(8,26,49,.38)) !important;
    }
    .gallery-action-icon { width: 42px; height: 42px; }
}

/* The map offers directions immediately, without a progress screen. */
.map-quick-link {
    position: absolute;
    z-index: 701;
    right: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    background: rgba(255,255,255,.97);
    color: #0b2854;
    border: 1px solid rgba(11,33,84,.1);
    border-radius: 11px;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(6,20,45,.14);
}
.map-quick-link:hover, .map-quick-link:focus { background: #fff; color: #0b5fa5; }
.container-xxl.py-5 { padding-top: 3.7rem !important; padding-bottom: 3.7rem !important; }
.wow.is-revealed { animation: sunjaReveal .42s cubic-bezier(.2,.75,.25,1) both; animation-duration: .42s !important; }
@keyframes sunjaReveal {
    from { opacity: .92; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991.98px) {
    .nav-bar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #fff !important;
    }
    .navbar-light .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 0;
    }
    .navbar .btn { margin: .45rem .8rem; }
    .map-quick-link { top: 62px; right: 11px; padding: 10px 12px; }
}
@media (max-width: 767.98px) {
    #header-carousel .carousel-caption h1 { font-size: clamp(1.9rem, 7.6vw, 2.3rem) !important; }
    #header-carousel .carousel-caption p { font-size: .9rem; line-height: 1.5; }
    #header-carousel .carousel-caption .btn {
        min-height: 44px;
        padding: .66rem 1rem !important;
        font-size: .88rem;
    }
    #o-nama h1, #usluge h1, #galerija h1,
    #recenzije h1, #lokacija h1, #kontakt h1 {
        font-size: clamp(1.6rem, 6vw, 1.92rem) !important;
    }
    #usluge h3 { font-size: 1.2rem; }
    .container-xxl.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .service .tab-content { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .wow.is-revealed, #header-carousel .carousel-item.active .h-anim,
    .service .tab-pane.active { animation: none !important; }
    .btn, .gallery-action-icon, .map-quick-link { transition: none !important; }
}

/* Keep hero CTAs interactive from the first frame, not after the reveal. */
#header-carousel .carousel-caption a.h-anim,
#header-carousel .carousel-item.active .carousel-caption a.h-anim {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}
/* The decorative backdrop must never steal taps from the controls. */
#header-carousel .hero-bg { pointer-events: none; }

/* Map failure must not inherit the 118–140svh sticky scroll-flight height. */
#globeScroll.is-fallback,
#globeScroll.is-fallback:not(.globe-complete) {
    height: auto !important;
    min-height: 0 !important;
}
#globeScroll.is-fallback .globe-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
}
#globeScroll.is-fallback #globeMap {
    height: auto !important;
    min-height: 235px;
    display: grid;
    place-items: center;
}
#globeScroll.is-fallback .globe-stage,
#globeScroll.is-fallback .globe-hint {
    display: none !important;
}
.map-fallback-content {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 3rem 1.25rem 1.5rem;
    color: #17334e;
    text-align: center;
}
.map-fallback-content p { font-size: .95rem; line-height: 1.6; }

/* v20.1: visible 5px slide bars, full 44px one-tap hit targets. */
#header-carousel .hero-indicators {
    align-items: center;
    gap: 8px;
}
#header-carousel .hero-indicators button {
    box-sizing: border-box;
    display: block;
    flex: 0 0 48px;
    width: 48px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: relative;
    overflow: visible;
    background: transparent !important;
    opacity: 1 !important;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
}
#header-carousel .hero-indicators button::before {
    content: "";
    position: absolute;
    top: calc(50% - 2.5px);
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,.38);
    pointer-events: none;
}
#header-carousel .hero-indicators button > span {
    position: absolute;
    top: calc(50% - 2.5px);
    left: 0;
    right: auto;
    bottom: auto;
    width: 0;
    height: 5px;
    border-radius: 100px;
    pointer-events: none;
    background: #fff;
}
#header-carousel .hero-indicators button:focus-visible {
    outline: 3px solid #82cbff;
    outline-offset: 2px;
}
@media (max-width: 767.98px) {
    #header-carousel .hero-indicators button {
        width: 44px !important;
        flex-basis: 44px;
    }
}


/* Truly compact text: headings, description, list rows and mobile captions.
   Reduces the screenshot's 30px body-copy impression while preserving legibility. */
#o-nama > .container { max-width: 1140px; }
#o-nama h1, #usluge h1, #galerija h1, #recenzije h1,
#lokacija h1, #kontakt h1 {
    font-size: clamp(1.55rem, 2.2vw, 2rem) !important;
    line-height: 1.17 !important;
    letter-spacing: -.025em !important;
    margin-bottom: .95rem !important;
}
#o-nama h1 { max-width: none !important; }
#o-nama p, #o-nama .ps-3 > span,
.service .tab-content p, #galerija p, #recenzije p,
#lokacija p, #kontakt p {
    font-size: .875rem !important;
    line-height: 1.6 !important;
}
#o-nama h6:not(.text-primary) { font-size: .96rem !important; line-height: 1.28; margin-bottom: .4rem; }
#o-nama .ps-3 { padding-left: 13px !important; }
#o-nama .ps-3 > span { display: block; color: #53667d; }
#o-nama .row.g-4 { --bs-gutter-y: .85rem; --bs-gutter-x: .85rem; }
#o-nama .row.g-4 .col-12 .bg-light {
    width: 37px !important;
    height: 37px !important;
    border-radius: 11px;
    background: #e8f1fa !important;
    border: 1px solid #d9e7f5;
}
#o-nama .row.g-4 .col-12 .bg-light .fw-bold { font-size: .9rem; }
#o-nama .row.g-5 { --bs-gutter-y: 1.3rem; }
h6.text-primary.text-uppercase { font-size: .69rem !important; letter-spacing: .11em !important; }
#header-carousel .carousel-caption h1 {
    font-size: clamp(1.85rem, 3.6vw, 2.75rem) !important;
    line-height: 1.1;
}
#header-carousel .carousel-caption p {
    font-size: .91rem !important;
    line-height: 1.58 !important;
}
#usluge h3 { font-size: 1.22rem !important; }
.service .nav .nav-link h4 { font-size: .91rem !important; }
.contact-spotlight-heading h3 { font-size: 1.38rem !important; }
#recenzije .stars-big .stars { font-size: 1.95rem; }

/* Photo geometry: never letterbox a portrait inside a forced 4:5 frame.
   Natural image height determines each gallery card height; the whole photo
   fills the width with 1:1 pixel mapping and zero cropping/stretching. */
.team-item .position-relative {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: #eff5fb !important;
}
.team-item .position-relative::before {
    display: none !important;
}
.team-item .gallery-img,
.gallery-img[data-gallery-img] {
    position: relative;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
}
.team-item:hover .gallery-img { transform: none !important; }
.team-item .team-overlay.gallery-tile-link {
    border-radius: 0;
    cursor: pointer;
}
.gallery-source-line {
    background: #f4f8fc !important;
    border-color: rgba(25,90,142,.09);
}
.service .tab-pane .col-md-6[style*="min-height"],
#o-nama .col-lg-6[style*="min-height"] { min-height: 0 !important; }
.svc-photo, img[data-svc-cat], img[data-about-photo] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    filter: none !important;
}
#o-nama [data-about-photo] {
    border-radius: 18px;
}
.service .tab-pane .row.g-4 { --bs-gutter-y: 1.2rem; }

/* Three permanent hero photos remain uncropped at full original quality.
   A darker, full-bleed copy of EACH SAME photo fills the unused side area:
   no empty navy bars, while the sharp foreground is not enlarged/cropped. */
#header-carousel .hero-bg {
    background-image: linear-gradient(90deg,
       rgba(3,16,37,.77),rgba(5,27,53,.48) 62%,rgba(3,16,37,.65)),
       var(--hero-photo) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
    transform: none !important;
}
#header-carousel .carousel-item picture img {
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: auto !important;
    transform: none !important;
    filter: none !important;
}
#header-carousel .carousel-caption {
    background: linear-gradient(90deg,
        rgba(3,15,35,.78),rgba(3,15,35,.35) 62%,rgba(3,15,35,.22)) !important;
}
@media (max-width: 767.98px) {
    #o-nama h1, #usluge h1, #galerija h1, #recenzije h1,
    #lokacija h1, #kontakt h1 {
        font-size: 1.42rem !important;
        line-height: 1.2 !important;
    }
    #o-nama p, #o-nama .ps-3 > span,
    .service .tab-content p, #galerija p, #recenzije p,
    #lokacija p, #kontakt p {
        font-size: .875rem !important;
        line-height: 1.6 !important;
    }
    #o-nama .row.g-4 { margin-bottom: .8rem !important; padding-bottom: .7rem !important; }
    #header-carousel .carousel-caption h1 {
        font-size: clamp(1.65rem, 7.2vw, 1.95rem) !important;
    }
    #header-carousel .carousel-caption p { font-size: .85rem !important; line-height: 1.5 !important; }
    #header-carousel .carousel-caption {
        background: linear-gradient(0deg,
            rgba(3,16,35,.9),rgba(3,16,35,.46) 66%,rgba(3,16,35,.18)) !important;
    }
    .container-xxl.py-5 { padding-top: 2.65rem !important; padding-bottom: 2.65rem !important; }
    .service .nav .nav-link { min-height: 53px; padding: .66rem .82rem !important; }
    .service .tab-content { padding: .8rem !important; }
    .team-item { border-radius: 18px; }
    .contact-spotlight { padding: 21px 17px; }
}
/* Reuse the mobile source image as the mobile hero backdrop.
   No second image fetch, no letterboxing, no loss of original pixels. */
@media (max-width: 767.98px) {
    #header-carousel #heroMainBg {
        background-image: linear-gradient(0deg,
            rgba(3,16,37,.69),rgba(3,16,37,.23)),
            var(--hero-photo-mobile) !important;
        background-position: center !important;
        background-size: cover !important;
    }
}

/* Final spacing pass: offsets follow the new shorter floating header. */
#pocetna, #o-nama, #usluge, #galerija, #lokacija, #kontakt,
#termin, #recenzije { scroll-margin-top: 83px !important; }
@media (max-width: 767.98px) {
    #o-nama > .container > .row > .col-lg-6.pt-4 {
        padding-top: 0 !important;
    }
    .container-xxl.py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
    #o-nama .row.g-5 { --bs-gutter-y: 1.15rem; }
    #pocetna, #o-nama, #usluge, #galerija, #lokacija, #kontakt,
    #termin, #recenzije { scroll-margin-top: 79px !important; }
}

/* v21.3 — consistent site-wide typography */
/* One final source of truth: old Bootstrap .display-* and per-section overrides
   cannot unexpectedly enlarge text on mobile Safari. No zoom disabling. */
:root {
    --sunja-desktop-copy: 15px;
    --sunja-mobile-copy: 13.5px;
    --sunja-mobile-title: 20px;
    --sunja-mobile-label: 12px;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-size: var(--sunja-desktop-copy);
    line-height: 1.58;
}
#o-nama, #usluge, #galerija, #recenzije,
#lokacija, #kontakt, #siteFooter {
    font-size: var(--sunja-desktop-copy);
    line-height: 1.57;
}
#o-nama h1, #usluge h1, #galerija h1,
#recenzije h1, #lokacija h1, #kontakt h1 {
    font-size: clamp(24px, 2.1vw, 32px) !important;
    line-height: 1.19 !important;
    letter-spacing: -.024em !important;
    margin-bottom: 17px !important;
}
#header-carousel .carousel-caption h1 {
    font-size: clamp(29px, 3.5vw, 43px) !important;
    line-height: 1.1 !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important;
}
#o-nama p, #o-nama .ps-3 > span, #o-nama h6:not(.text-primary),
.service .tab-content p, .service .tab-content li,
#galerija p, #recenzije p, #lokacija p, #kontakt p,
#siteFooter p, #siteFooter a.btn-link, #siteFooter .hours-list,
#siteFooter .copyright, #termin .form-floating > label,
#termin .form-control, #termin .form-select {
    font-size: var(--sunja-desktop-copy) !important;
    line-height: 1.56 !important;
}
#o-nama h6:not(.text-primary),
.service .nav .nav-link h4 {
    font-size: 16px !important;
    line-height: 1.25 !important;
}
.service .tab-content h3 { font-size: 19px !important; }
#kontakt h3, .contact-spotlight-heading h3 { font-size: 20px !important; }
#kontakt h4, #siteFooter h4, #galerija h4, #recenzije h4 {
    font-size: 18px !important;
    line-height: 1.28 !important;
}
#kontakt h5, #siteFooter h5 { font-size: 15px !important; }
#o-nama p.mb-4 { margin-bottom: 15px !important; }
#o-nama .row.g-4 .col-12 { margin-top: 12px; }
#galerija h1.mb-5, #usluge h1.mb-5,
#recenzije h1.mb-5, #kontakt h1.mb-5 {
    margin-bottom: 23px !important;
}
#header-carousel .carousel-caption p { font-size: 15px !important; line-height: 1.53 !important; }
h6.text-primary.text-uppercase {
    font-size: 12px !important;
    letter-spacing: .09em !important;
}
.btn, #termin button.btn {
    font-size: 14px !important;
    line-height: 1.35 !important;
    min-height: 44px;
}
#termin input, #termin textarea, #termin select {
    font-size: 16px !important; /* no iOS focus auto-zoom */
}
#siteFooter .footer-menu a { font-size: 13px !important; }
#siteFooter .status-pill, #kontakt .status-pill { font-size: 13px !important; }

@media (max-width: 991.98px) {
    #header-carousel .carousel-caption h1 {
        font-size: clamp(26px, 3.9vw, 32px) !important;
    }
    #o-nama h1, #usluge h1, #galerija h1,
    #recenzije h1, #lokacija h1, #kontakt h1 {
        font-size: clamp(21px, 3vw, 26px) !important;
    }
}
@media (max-width: 767.98px) {
    body, #o-nama, #usluge, #galerija, #recenzije,
    #lokacija, #kontakt, #siteFooter {
        font-size: var(--sunja-mobile-copy) !important;
        line-height: 1.52 !important;
    }
    #o-nama h1, #usluge h1, #galerija h1,
    #recenzije h1, #lokacija h1, #kontakt h1 {
        font-size: var(--sunja-mobile-title) !important;
        line-height: 1.18 !important;
        letter-spacing: -.018em !important;
        margin-bottom: 13px !important;
        max-width: 100% !important;
    }
    #header-carousel .carousel-caption h1 {
        font-size: clamp(24px, 6vw, 27px) !important;
        line-height: 1.13 !important;
        margin-bottom: 11px !important;
        padding-bottom: 0 !important;
    }
    #header-carousel .carousel-caption p {
        font-size: var(--sunja-mobile-copy) !important;
        line-height: 1.49 !important;
        margin-bottom: 14px !important;
    }
    #o-nama p, #o-nama .ps-3 > span,
    .service .tab-content p, .service .tab-content li,
    #galerija p, #recenzije p, #lokacija p, #kontakt p,
    #siteFooter p, #siteFooter a.btn-link, #siteFooter .hours-list,
    #siteFooter .copyright, .contact-fact p,
    .contact-spotlight-copy, #termin > div > p {
        font-size: var(--sunja-mobile-copy) !important;
        line-height: 1.51 !important;
    }
    #o-nama p.mb-4 { margin-bottom: 13px !important; }
    #o-nama h6:not(.text-primary),
    .service .nav .nav-link h4 {
        font-size: 14px !important;
        line-height: 1.22 !important;
        margin-bottom: 4px !important;
    }
    #o-nama .ps-3 > span { display: block; }
    #o-nama .row.g-4 .col-12 { margin-top: 9px !important; }
    #o-nama .row.g-4 { --bs-gutter-y: .52rem; }
    #o-nama .row.g-5 { --bs-gutter-y: 1rem; }
    #o-nama .row.g-4 .col-12 .bg-light {
        width: 34px !important;
        height: 34px !important;
    }
    #o-nama .row.g-4 .col-12 .bg-light .fw-bold {
        font-size: 12px !important;
    }
    .service .tab-content h3, #kontakt h3,
    .contact-spotlight-heading h3 { font-size: 17px !important; }
    #kontakt h4, #siteFooter h4, #galerija h4, #recenzije h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    #kontakt h5, #siteFooter h5 { font-size: 14px !important; }
    #contact .contact-fact-label, .contact-fact-label,
    #kontakt .contact-eyebrow, .contact-eyebrow,
    h6.text-primary.text-uppercase { font-size: var(--sunja-mobile-label) !important; }
    .gallery-source-line small { font-size: 13px !important; }
    #galerija h1.mb-5, #usluge h1.mb-5,
    #recenzije h1.mb-5, #kontakt h1.mb-5 {
        margin-bottom: 17px !important;
    }
    #kontakt .row > .col-md-4 .bg-light.p-4 { padding: 14px !important; }
    #termin p, #termin .form-floating > label {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
    #termin input, #termin textarea, #termin select { font-size: 16px !important; }
    .btn, #termin button.btn {
        font-size: 13.5px !important;
        min-height: 44px !important;
    }
    .mobile-callbar a { font-size: 13.5px !important; min-height: 48px; }
    #siteFooter .footer-menu a { font-size: 13px !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    #o-nama h1, #usluge h1, #galerija h1,
    #recenzije h1, #lokacija h1, #kontakt h1 {
        font-size: 25px !important;
    }
}

/* v22.2: classic UI restored — no optical filter, refracted layers or blur. */
.navbar.nav-bar { background:#fff !important; border:0 !important; border-radius:0 !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  box-shadow:0 3px 15px rgba(11,33,84,.10) !important; }
.navbar.nav-bar::before,.navbar.nav-bar::after { content:none !important;display:none !important; }
.navbar.nav-bar .navbar-brand img { filter:none !important; transform:none !important; }
.navbar.nav-bar .navbar-toggler { background:#fff !important; border-radius:10px !important; box-shadow:none !important; }
.navbar-light .navbar-nav .nav-link::after { content:none !important;display:none !important; }
.navbar-light .navbar-nav .nav-link.active { color:#0b5fa5 !important; }
.footer,#siteFooter { background-color:#0b2154 !important;
 background-image:linear-gradient(165deg,#0b2154,#102e5d 48%,#061631) !important; }
a[href],button,[role="button"],.nav-link,.gallery-tile-link { touch-action:manipulation; }
a[href] > *,button > * { pointer-events:none !important; }
@media (hover:none),(pointer:coarse) {
 .team-item .team-overlay.gallery-tile-link,.team-item:hover .team-overlay.gallery-tile-link {
  opacity:1 !important; transform:none !important; pointer-events:auto !important;transition:none !important;
 }
 .team-item:hover,.social-tile:hover,.service .nav .nav-link:hover,.btn:hover {transform:none !important;}
 .team-item:hover .gallery-img {transform:none !important;}
 html {scroll-behavior:auto !important;}
}
@media (max-width:991.98px) {
 html,body {background:#fff !important;}
 body {padding-bottom:0 !important;}
 #siteFooter {padding-bottom:28px !important;margin-bottom:0 !important;}
 .mobile-callbar {display:flex !important;position:fixed;left:0 !important;right:0 !important;
  bottom:0 !important;width:100% !important;margin:0 !important;padding:0 !important;
  background:#0b5fa5 !important;border-radius:14px 14px 0 0 !important;
  overflow:hidden !important;border:0 !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  box-shadow:0 -3px 14px rgba(11,33,84,.13) !important;
 }
 .mobile-callbar a {flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;
  min-height:54px;gap:9px;padding:12px 7px calc(12px + env(safe-area-inset-bottom,0px)) !important;
  font-size:13.5px !important;font-weight:700;color:#fff !important;
  border:none !important;border-radius:0 !important;box-shadow:none !important;
  background:#0b5fa5 !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
 }
 .mobile-callbar a.dir {background:#0b2154 !important;}
 
 #backTop {bottom:calc(83px + env(safe-area-inset-bottom,0px)) !important;}
}
#backTop {width:48px !important;height:48px !important;border-radius:12px !important;
 background:#0b5fa5 !important;color:#fff !important;border:1px solid #0b5fa5 !important;
 filter:none !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
 box-shadow:0 7px 18px rgba(9,42,86,.18) !important;}
#backTop::before,#backTop::after {content:none !important;display:none !important;}
@media (prefers-reduced-motion:reduce) {
 .navbar.nav-bar,.mobile-callbar,#backTop {transition:none !important;}
}


/* v23: fixed no-flicker mobile dock */
/* Always visible on phones: scrolling never changes opacity, positioning,
   pointer events or visibility. Avoid animated transforms and compositing churn
   on iOS Safari when its address bar expands/collapses. */
@media (max-width: 991.98px) {
    .mobile-callbar {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        z-index: 1030;
    }
    .mobile-callbar a {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* A dark footer, not a white page tail, provides the room needed to
       scroll its last links above the persistent call bar. */
    #siteFooter {
        min-height: calc(96px + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        background-color: #0b2154 !important;
    }
}
@media (min-width: 992px) {
    .mobile-callbar { display: none !important; }
}


/* v23.1 compact service descriptions — no oversized promotional paragraphs */
#usluge .tab-pane p.mb-4 {
    font-size: 14px !important;
    line-height: 1.46 !important;
    color: #526277 !important;
    margin-bottom: 14px !important;
    max-width: 50ch;
}
@media (max-width: 767.98px) {
    #usluge .tab-pane p.mb-4 {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }
}

/* v23.1 map popup: clean compact shop card */
/* Minimal brand card, not a floating browser-default white text rectangle. */
#globeMap .maplibregl-popup.sunja-map-popup {
    z-index: 8;
    max-width: min(300px, calc(100vw - 34px)) !important;
}
#globeMap .sunja-map-popup .maplibregl-popup-content {
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e2eaf3;
    border-radius: 17px !important;
    box-shadow: 0 10px 28px rgba(10, 35, 76, .19) !important;
    overflow: hidden;
    color: #14294c;
}
#globeMap .sunja-map-popup .maplibregl-popup-tip {
    display: none !important;
}
#globeMap .sunja-map-card {
    width: min(278px, calc(100vw - 48px));
    padding: 15px 16px 14px;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
}
#globeMap .sunja-map-card__kicker {
    display: block;
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .13em;
    color: #0b69a7;
}
#globeMap .sunja-map-card__title {
    display: block;
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0b2154;
}
#globeMap .sunja-map-card__address {
    display: block;
    margin-bottom: 11px;
    font-size: 12.5px;
    line-height: 1.38;
    color: #64748b;
}
#globeMap .sunja-map-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #edf2f8;
    padding-top: 11px;
}
#globeMap .sunja-map-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 9px 9px;
    border: 1px solid #d9e8f4;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color .15s ease, border-color .15s ease;
}
#globeMap .sunja-map-card__actions a.sunja-map-card__directions {
    background: #0b5fa5;
    border-color: #0b5fa5;
    color: #fff !important;
}
#globeMap .sunja-map-card__actions a.sunja-map-card__phone {
    background: #f2f8fd;
    color: #0b4d83 !important;
}
#globeMap .sunja-map-card__actions a:focus-visible {
    outline: 2px solid #348dd0;
    outline-offset: 2px;
}
#globeMap .sunja-map-card__actions a:hover {
    background: #e2f1fc;
    color: #0b2154 !important;
}
#globeMap .sunja-map-card__actions a.sunja-map-card__directions:hover {
    background: #094e88;
    color: #fff !important;
}
@media (max-width: 767.98px) {
    #globeMap .sunja-map-card {
        width: min(260px, calc(100vw - 44px));
        padding: 13px 14px 12px;
    }
    #globeMap .sunja-map-card__title { font-size: 15px; }
    #globeMap .sunja-map-card__address { font-size: 12px; }
    #globeMap .sunja-map-card__actions a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    #globeMap .sunja-map-card__actions a { transition: none; }
}

/* v24: stable, self-playing globe fly-in */
/* A real four-stage MapLibre flyTo runs when the loaded map is visible.
   Never resize/collapse a sticky 118svh scroll trap while the person scrolls. */
#globeScroll,
#globeScroll:not(.globe-complete),
#globeScroll.globe-complete {
    position: relative !important;
    height: clamp(470px, 82svh, 780px) !important;
    min-height: 470px !important;
    max-height: 780px;
    overflow: hidden !important;
}
#globeScroll .globe-sticky,
#globeScroll.globe-complete .globe-sticky {
    position: relative !important;
    top: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
#globeScroll .globe-stage {
    bottom: 106px;
    max-width: calc(100vw - 28px);
    pointer-events: none !important;
}
@media (max-width: 767.98px) {
    #globeScroll,
    #globeScroll:not(.globe-complete),
    #globeScroll.globe-complete {
        height: clamp(440px, 76svh, 680px) !important;
        min-height: 440px !important;
    }
    #globeScroll .globe-stage {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
        letter-spacing: .035em;
    }
}

/* v25: scrubbed globe scroll animation */
/* A fixed-height sticky map panel. No release/collapse during scrolling. */
#globeScroll, #globeScroll:not(.globe-complete), #globeScroll.globe-complete {
    position: relative !important;
    height: 220svh !important;
    min-height: 1400px !important;
    max-height: none !important;
    overflow: clip !important;
}
#globeScroll .globe-sticky,
#globeScroll.globe-complete .globe-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100svh !important;
    min-height: 480px !important;
    overflow: hidden !important;
}
@media (max-width: 767.98px) {
    #globeScroll, #globeScroll:not(.globe-complete), #globeScroll.globe-complete {
        height: 220svh !important;
        min-height: 1150px !important;
        max-height: none !important;
    }
    #globeScroll .globe-sticky,
    #globeScroll.globe-complete .globe-sticky {
        height: 100svh !important;
        min-height: 420px !important;
    }
}


/* v29: stable finished map, lower GPU/tile cost and shorter fixed scroll run */
/* Keep the map's layout identical before and after reaching the shop.
   Reaching the end must never collapse the section or change scrollY. */
#globeScroll,
#globeScroll:not(.globe-complete),
#globeScroll.globe-complete {
    height: 190svh !important;
    min-height: 1100px !important;
    max-height: none !important;
    overflow: clip !important;
    position: relative !important;
}
#globeScroll .globe-sticky,
#globeScroll.globe-complete .globe-sticky {
    height: 100svh !important;
    min-height: 480px !important;
    top: 0 !important;
    position: sticky !important;
    overflow: hidden !important;
}
#globeScroll.globe-complete .globe-stage,
#globeScroll.globe-complete .globe-hint {
    display: none !important;
}
@media (max-width: 767.98px) {
    #globeScroll,
    #globeScroll:not(.globe-complete),
    #globeScroll.globe-complete {
        height: 185svh !important;
        min-height: 1050px !important;
    }
    #globeScroll .globe-sticky,
    #globeScroll.globe-complete .globe-sticky {
        min-height: 420px !important;
        height: 100svh !important;
    }
}

/* A failed CDN/style request must never leave a 190svh empty sticky section. */
#globeScroll.is-fallback,
#globeScroll.is-fallback:not(.globe-complete) {
    height: auto !important;
    min-height: 280px !important;
    overflow: visible !important;
}
#globeScroll.is-fallback .globe-sticky {
    position: relative !important;
    height: auto !important;
    min-height: 280px !important;
}

/* v30: settled map takes one screen, not a second swipe */
/* The globe flight still has room to play on the first downward scroll.
   After reaching the garage, the wrapper becomes a normal map panel.
   JavaScript preserves the next section's screen coordinate during release. */
#globeScroll.globe-complete {
    height: 100svh !important;
    min-height: 480px !important;
    max-height: none !important;
    overflow: clip !important;
}
#globeScroll.globe-complete .globe-sticky {
    position: relative !important;
    top: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
@media (max-width: 767.98px) {
    #globeScroll.globe-complete {
        height: 100svh !important;
        min-height: 420px !important;
    }
}

/* v34: play-control-free logo animation from the owner's MP4.
   Animated WebP has no browser video UI, and the image cannot be paused
   with a touch, tap, drag, or long press. */
html.sunja-intro-active, html.sunja-intro-active body {
    overflow: hidden !important;
}
#sunjaIntro { display: none; }
html.sunja-intro-active #sunjaIntro:not([hidden]) {
    display: grid !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    width: 100% !important;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    background: #fff !important;
    overflow: hidden !important;
    pointer-events: auto;
    touch-action: none;
    isolation: isolate;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
.sunja-intro-frames {
    display: block;
    width: min(100vw, 910px);
    max-height: 100dvh;
    height: auto;
    aspect-ratio: 910 / 512;
    object-fit: contain;
    image-rendering: auto;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
.sunja-intro-fallback-logo { display: none; }
html.sunja-intro-active #sunjaIntro.sunja-intro-is-static .sunja-intro-frames {
    display: none !important;
}
html.sunja-intro-active #sunjaIntro.sunja-intro-is-static .sunja-intro-fallback-logo {
    display: block !important;
    width: min(74vw, 440px);
    max-height: 45dvh;
    height: auto;
    object-fit: contain;
    animation: none !important;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
#sunjaIntro[hidden], html:not(.sunja-intro-active) #sunjaIntro {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    html.sunja-intro-active #sunjaIntro .sunja-intro-frames {
        display: none !important;
    }
}

/* v31: cross-browser fixed mobile action dock */
/* Android Chrome can theme browser chrome via meta theme-color; iOS Safari
   keeps control of its native toolbar. The website-owned safe area is blue. */
@media (max-width: 991.98px) {
    html { background: #0b5fa5 !important; color-scheme: light; }
    body { background: #fff !important; }
    .mobile-callbar {
        box-sizing: border-box !important;
        background: linear-gradient(90deg, #0b5fa5 50%, #0b2154 50%) !important;
        border: 0 !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    .mobile-callbar a.call { background: #0b5fa5 !important; }
    .mobile-callbar a.dir { background: #0b2154 !important; }
    .mobile-callbar a {
        box-sizing: border-box;
        padding-top: 12px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }
    #siteFooter {
        padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* v31: featured real TikTok photo in footer */
#siteFooter .footer-featured-photo {
    padding-bottom: 24px;
    margin-top: -6px;
}
.footer-featured-photo__content {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 38px);
    padding: clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    max-width: 760px;
    margin: auto;
}
.footer-featured-photo__visual {
    width: clamp(118px, 17vw, 152px);
    aspect-ratio: 1081 / 1920;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    background: #081c3e;
}
.footer-featured-photo__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.footer-featured-photo__copy { min-width: 0; }
.footer-featured-photo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a2d9ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    margin-bottom: 10px;
}
#siteFooter .footer-featured-photo__copy h4 {
    margin-bottom: 9px;
    color: #fff !important;
    font-size: clamp(16px, 2vw, 20px) !important;
    line-height: 1.25;
}
.footer-featured-photo__copy p {
    font-size: 14px;
    line-height: 1.55;
    opacity: .85;
    margin-bottom: 14px;
}
.footer-featured-photo__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-featured-photo__link:hover, .footer-featured-photo__link:focus-visible {
    color: #b2e0ff;
}
@media (max-width: 480px) {
    .footer-featured-photo__content { gap: 16px; padding: 12px; border-radius: 12px; }
    .footer-featured-photo__visual { width: min(37vw, 135px); }
    .footer-featured-photo__copy p { font-size: 12.5px; }
    .footer-featured-photo__eyebrow { font-size: 11px; }
}

/* v31: a longer initial flight makes map progress less abrupt.
   Once completed, v30 still releases the sticky track to one screen. */
#globeScroll:not(.globe-complete):not(.is-fallback) {
    height: 215svh !important;
    min-height: 1250px !important;
    max-height: none !important;
}
@media (max-width: 767.98px) {
    #globeScroll:not(.globe-complete):not(.is-fallback) {
        height: 230svh !important;
        min-height: 1450px !important;
    }
    /* Fade, not layout movement, for offscreen section reveals on phones. */
    .wow.is-revealed {
        animation-name: sunjaRevealOpacity !important;
        animation-duration: .38s !important;
    }
    @keyframes sunjaRevealOpacity {
        from { opacity: .85; }
        to { opacity: 1; }
    }
}

/* v32: real shop photograph as the ENTIRE footer background.
   No isolated photo card; keep the workshop visible and links legible. */
#siteFooter.footer {
    background-color: #131412 !important;
    background-image:
        linear-gradient(180deg, rgba(4, 5, 6, .62), rgba(3, 4, 5, .78)),
        url("../assets/gallery/sunja-tiktok-7627945643490692373.webp") !important;
    background-position: center 42% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}
#siteFooter .footer-photo-credit {
    margin-bottom: 22px;
    text-align: center;
}
#siteFooter .footer-photo-credit a {
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-shadow: 0 1px 5px rgba(0,0,0,.4);
}
#siteFooter .footer-photo-credit a:hover,
#siteFooter .footer-photo-credit a:focus-visible {
    color: #e5f5ff;
}
#siteFooter .footer-featured-photo,
#siteFooter .footer-featured-photo__content { display: none !important; }

/* Keep the user's actual portrait shop photo in About without an
   excessively tall mobile section; preserve the real image and rating. */
#o-nama img[data-about-photo] {
    display: block !important;
    width: 100% !important;
    height: clamp(300px, 36vw, 440px) !important;
    max-height: 440px !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center 35% !important;
    border-radius: 18px;
}
@media (max-width: 767.98px) {
    #o-nama img[data-about-photo] {
        height: clamp(300px, 90vw, 420px) !important;
    }
}

/* v32: matching mobile-safe-area background
   Only page-owned pixels can be painted. Native Safari toolbar remains OS UI. */
@media (max-width: 991.98px) {
    html {
        background-color: #0b5fa5 !important;
        color-scheme: light;
    }
    body { background-color: #fff !important; }
    .mobile-callbar {
        isolation: isolate;
        background: linear-gradient(90deg, #0b5fa5 0 50%, #0b2154 50% 100%) !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }
    .mobile-callbar::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(2px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(90deg, #0b5fa5 0 50%, #0b2154 50% 100%);
        pointer-events: none;
        z-index: 0;
    }
    .mobile-callbar a { position: relative; z-index: 1; }
    .mobile-callbar a.call { background-color: #0b5fa5 !important; }
    .mobile-callbar a.dir { background-color: #0b2154 !important; }
}
