/* Motion layer: image hovers, page transitions, heading reveals, parallax, link lines, mobile action bar. */

/* ---------- Image hover: slow zoom inside its own frame + inset gold passe-partout ---------- */
@media(hover:hover) and (pointer:fine){
 html body :is(.home-intro-inner>img,.home-fleet-inner>img,.about-image>img,.fleet-hero-img>img,.ref-card-link>img,.svc-image>img,.fleet-card-media>img,.vito-product>img,.svc-collab img){
  clip-path:inset(0 round 4px);
  outline:1px solid rgba(231,199,133,0)!important;outline-offset:0;
  box-shadow:none!important;filter:none!important;
  transition:opacity .9s var(--lux-ease),transform 1.4s var(--lux-ease),clip-path 1.4s var(--lux-ease),outline-offset .9s var(--lux-ease),outline-color .6s ease,filter .9s ease!important;
 }
 /* scale 1.04 with a 1.923% inset keeps the visible box exactly the same size */
 html body :is(.home-intro-inner>img,.home-fleet-inner>img,.about-image>img,.fleet-hero-img>img,.svc-collab img):hover,
 html body :is(.ref-card,.fleet-card,.svc-image,.vito-product):hover img{
  transform:scale(1.04)!important;clip-path:inset(1.923% round 4px);
  outline-color:rgba(231,199,133,.9)!important;outline-offset:-18px;
  filter:saturate(1.08) contrast(1.03)!important;
 }
 /* Clickable card images: a small gold "Saznajte više" disc follows the pointer (lux-motion.js) */
 html.has-lux-cursor .ref-card-link>img{cursor:none}
 .lux-cursor{position:fixed;left:0;top:0;z-index:60;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;display:grid;place-items:center;text-align:center;background:rgba(231,199,133,.94);color:#0a2116;font:600 10px/1.25 var(--site-text);letter-spacing:.12em;text-transform:uppercase;pointer-events:none;opacity:0;scale:.4;transition:opacity .35s ease,scale .5s var(--lux-ease);box-shadow:0 12px 30px -10px rgba(0,0,0,.45)}
 .lux-cursor.is-on{opacity:1;scale:1}
}

/* ---------- A1: page transitions — a dark veil closes on an internal click and lifts on arrival; the header stays above it ---------- */
body:after{content:'';position:fixed;inset:0;z-index:48;background:#08150e;pointer-events:none;opacity:0;animation:lux-veil-out .6s cubic-bezier(.4,0,.2,1) both}
html.lux-leaving body:after{animation:lux-veil-in .22s ease both}
@keyframes lux-veil-out{from{opacity:1}to{opacity:0}}
@keyframes lux-veil-in{from{opacity:0}to{opacity:1}}

/* ---------- A2 + A3: headings rise word by word from behind a mask, gold words catch a sheen ---------- */
.lux-split .lux-w{display:inline-block;overflow:hidden;vertical-align:top;padding:.16em .03em .12em;margin:-.16em -.03em -.12em}
.lux-split .lux-w>span{display:inline-block;transform:translateY(112%);transition:transform 1.05s var(--lux-ease);transition-delay:var(--d,0ms)}
.lux-split.is-in .lux-w>span{transform:none}
.lux-split .lux-sheen{background:linear-gradient(105deg,var(--em-c) 0 40%,#fff3d1 50%,var(--em-c) 60% 100%) 100% 0/260% 100% no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.lux-split.is-in .lux-sheen{animation:lux-sheen 1.7s var(--lux-ease-io) both;animation-delay:calc(var(--d,0ms) + 650ms)}
@keyframes lux-sheen{from{background-position:100% 0}to{background-position:0 0}}

/* ---------- A4: parallax inside the frame for large editorial photos ---------- */
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  body .about-image>img{animation:lux-parallax linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
 }
}
@keyframes lux-parallax{from{object-position:50% 22%}to{object-position:50% 78%}}

/* ---------- A5: kicker hairlines draw in when their section arrives ---------- */
html.js-motion main section:not(.home-hero):not(.about-hero):not(.svc-hero):not(.fleet-hero):not(.refs-hero):not(.contact-hero):not(.legal-hero) :is(.kicker,.journey-eyebrow,.dest-eyebrow):before{transform:scaleX(0);transform-origin:left;transition:transform 1.1s var(--lux-ease-io) .2s}
html.js-motion main section.motion-in :is(.kicker,.journey-eyebrow,.dest-eyebrow):before{transform:scaleX(1)}

/* ---------- A6: the hero recedes as you scroll ---------- */
@supports (animation-timeline:scroll()){
 @media(prefers-reduced-motion:no-preference){
  body.page-ready .home-hero-content{animation:site-arrive .65s var(--site-motion) both,lux-hero-out linear both;animation-timeline:auto,scroll(root);animation-range:normal,0 85vh}
  body .home-hero:after{animation:hero-drift 18s ease-out both,lux-hero-dim linear both;animation-timeline:auto,scroll(root);animation-range:normal,0 100vh}
 }
}
@keyframes lux-hero-out{to{translate:0 -70px;filter:opacity(.1)}}
@keyframes lux-hero-dim{to{filter:brightness(.55)}}

/* ---------- A8: text links draw their line in, then leave the other way ---------- */
body :is(.text-link,.svc-inquiry,.journey-link,.vehicle-link,.fleet-scroll,.journey-cta,.dest-cta){position:relative;letter-spacing:normal!important;border-bottom-color:rgba(176,146,90,.35)!important}
body :is(.text-link,.svc-inquiry,.journey-link,.vehicle-link,.fleet-scroll,.journey-cta,.dest-cta):after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .65s var(--lux-ease)}
@media(hover:hover){body :is(.text-link,.svc-inquiry,.journey-link,.vehicle-link,.fleet-scroll,.journey-cta,.dest-cta):hover:after{transform:scaleX(1);transform-origin:left}}
body :is(.text-link,.svc-inquiry,.journey-link,.vehicle-link,.fleet-scroll,.journey-cta,.dest-cta):focus-visible:after{transform:scaleX(1)}

/* ---------- A7: mobile action bar after the first screen ---------- */
.lux-mbar{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:44;display:flex;gap:8px;padding:8px;background:rgba(7,24,15,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(231,199,133,.24);border-radius:4px;box-shadow:0 18px 40px -18px rgba(0,0,0,.6);transform:translateY(calc(100% + 30px));transition:transform .6s var(--lux-ease)}
.lux-mbar.is-on{transform:none}
body .lux-mbar .button{flex:1;min-height:48px;justify-content:center;gap:18px}
.lux-mbar-wa{flex:0 0 48px;height:48px;display:grid;place-items:center;border:1px solid rgba(231,199,133,.5);border-radius:2px;color:#fff;transition:background-color .3s ease}
.lux-mbar-wa:hover,.lux-mbar-wa:focus-visible{background:#25d366;text-decoration:none}
.lux-mbar-wa svg{width:24px;height:24px;fill:currentColor}
@media(min-width:821px){.lux-mbar{display:none}}
@media(max-width:820px){
 html.has-mbar body .whatsapp.whatsapp{opacity:0;pointer-events:none;transition:opacity .3s ease}
 html.has-mbar body{padding-bottom:80px}
 html.menu-locked .lux-mbar{transform:translateY(calc(100% + 30px))}
}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
 body:after,html.lux-leaving body:after{animation:none;opacity:0}
 .lux-split .lux-w>span{transform:none!important;transition:none!important}
 .lux-split .lux-sheen{animation:none!important;background:none;-webkit-text-fill-color:currentColor}
 html.js-motion main section :is(.kicker,.journey-eyebrow,.dest-eyebrow):before{transform:none!important;transition:none!important}
 html body :is(.home-intro-inner>img,.home-fleet-inner>img,.about-image>img,.fleet-hero-img>img,.ref-card-link>img,.svc-image>img,.fleet-card-media>img,.vito-product>img,.svc-collab img){transition:outline-color .2s ease!important;transform:none!important;clip-path:inset(0 round 4px)!important}
 .lux-cursor{display:none}
 .lux-mbar,body :is(.text-link,.svc-inquiry,.journey-link,.vehicle-link,.fleet-scroll,.journey-cta,.dest-cta):after{transition:none}
}

/* ---------- A7 refined: two floating controls on phones — a flat gold pill and a round WhatsApp button ---------- */
.lux-mbar{left:0;right:0;margin:0 auto;width:min(440px,calc(100% - 28px));bottom:max(16px,env(safe-area-inset-bottom));gap:10px;padding:0;border:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;opacity:0;transform:translateY(calc(100% + 36px));transition:transform .7s var(--lux-ease),opacity .45s ease}
.lux-mbar.is-on{opacity:1;transform:none}
html.menu-locked .lux-mbar{opacity:0;transform:translateY(calc(100% + 36px))}
body .lux-mbar .button.button{flex:1;min-height:52px;padding:0 24px;justify-content:center;gap:14px;border:1px solid rgba(255,255,255,.35);border-radius:999px!important;background-color:#e7c785!important;background-image:none!important;color:#0a2116!important;font-size:12px!important;letter-spacing:.14em!important;box-shadow:0 14px 30px -12px rgba(5,18,11,.55)}
body .lux-mbar .button.button:before{border-radius:999px;background:#0a2116}
body .lux-mbar .button span{font-size:16px;letter-spacing:0;transition:transform .5s var(--lux-ease)!important}
body .lux-mbar .button:active span{transform:translateX(4px)!important}
.lux-mbar-wa{flex:0 0 52px;height:52px;border-radius:50%;border:1px solid rgba(231,199,133,.35);background:#0f2a1c;color:#fff;box-shadow:0 14px 30px -12px rgba(5,18,11,.6);transition:background-color .35s ease,border-color .35s ease,transform .35s var(--lux-ease)}
.lux-mbar-wa svg{width:23px;height:23px}
.lux-mbar-wa:is(:hover,:focus-visible,:active){background:#25d366;border-color:#25d366;text-decoration:none}
.lux-mbar-wa:active{transform:scale(.94)}
.lux-mbar :is(.button,.lux-mbar-wa):focus-visible{outline:2px solid #e7c785;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.lux-mbar,.lux-mbar-wa,body .lux-mbar .button span{transition:none!important}}
/* Hover/tap on the gold pill. With a mouse the dark curtain rises (luxury-refine.css), so text turns gold;
   on touch there is no curtain, so the press itself darkens the pill. */
@media(hover:hover) and (pointer:fine){
 body .lux-mbar .button.button:is(:hover,:focus-visible){color:#e7c785!important;border-color:rgba(231,199,133,.7)}
}
body .lux-mbar .button.button:active{background-color:#0a2116!important;color:#e7c785!important;border-color:rgba(231,199,133,.7)}

/* ---------- Cookie consent: compact card (bottom-left on desktop, slim panel on phones) ---------- */
.consent{position:fixed;left:24px;bottom:24px;z-index:70;width:min(410px,calc(100% - 24px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 16px;background:rgba(9,28,18,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#e9ece4;border:1px solid rgba(231,199,133,.28);border-radius:4px;box-shadow:0 24px 50px -20px rgba(0,0,0,.6);opacity:0;transform:translateY(16px);transition:opacity .35s ease,transform .5s var(--lux-ease)}
.consent.is-on{opacity:1;transform:none}
body .consent .consent-title{margin:0 0 6px;padding-right:34px;font:500 22px/1.1 var(--site-display)!important;color:#fff}
body .consent .consent-text{margin:0 0 10px;font-size:13px!important;line-height:1.55!important;color:#c6d0c3}
.consent-close{position:absolute;top:12px;right:12px;width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid rgba(231,199,133,.35);border-radius:50%;background:transparent;color:#f1e6c8;font:400 22px/1 var(--site-text);cursor:pointer;transition:background-color .3s ease,color .3s ease}
.consent-close:hover{background:#e7c785;color:#0a2116}
body .consent .consent-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 14px;font-size:12.5px!important;line-height:1.4!important}
.consent-links a{color:#e7c785;text-decoration:underline;text-underline-offset:3px}
.consent-links a:hover{color:#f3dba6}
.consent-prefs{display:grid;gap:2px;margin:0 0 14px;border-top:1px solid rgba(231,199,133,.18)}
.consent-prefs[hidden]{display:none}
.consent-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgba(231,199,133,.12);cursor:pointer}
body .consent-row strong{display:block;font:600 13px/1.3 var(--site-text)!important;color:#fff}
body .consent-row small{display:block;font-size:12px!important;color:#a9b8a6}
.consent-row input{appearance:none;-webkit-appearance:none;flex:0 0 40px;width:40px;height:22px;margin:0;border-radius:999px;background:rgba(255,255,255,.18);position:relative;cursor:pointer;transition:background-color .3s ease}
.consent-row input:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .3s var(--lux-ease)}
.consent-row input:checked{background:#c99a4c}
.consent-row input:checked:before{transform:translateX(18px)}
.consent-row input:disabled{opacity:.55;cursor:not-allowed}
.consent-row input:focus-visible{outline:2px solid #e7c785;outline-offset:2px}
.consent-actions{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}
.consent-btn{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(231,199,133,.5);background:transparent;color:#f1e6c8;font:600 11px/1 var(--site-text);letter-spacing:.1em;text-transform:uppercase;cursor:pointer;transition:background-color .3s ease,color .3s ease,border-color .3s ease}
/* Accept and reject look the same: neither choice is pushed. */
.consent-accept,.consent-reject{background:#e7c785;border-color:#e7c785;color:#0a2116;padding:0 10px;line-height:1.25}
.consent-btn:hover{background:#f3dba6;border-color:#f3dba6;color:#0a2116}
.consent-link{grid-column:1/-1;justify-self:center;min-height:36px;padding:0 4px;border:0;background:none;color:#e7c785;font:600 11px/1 var(--site-text);letter-spacing:.1em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.consent :is(.consent-btn,.consent-link,.consent-close,.consent-links a):focus-visible{outline:2px solid #e7c785;outline-offset:2px}
@media(max-width:820px){
 .consent{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:14px 14px 12px}
 .consent-close{top:8px;right:8px}
 body .consent .consent-title{font-size:19px!important;margin-bottom:4px}
 body .consent .consent-text{font-size:12.5px!important;margin-bottom:10px}
 .consent-btn{padding:0 13px}
 html.consent-open .lux-mbar{opacity:0!important;pointer-events:none}
 html.consent-open body .whatsapp.whatsapp{opacity:0;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.consent,.consent-row input,.consent-row input:before{transition:none}}

/* ===== Client round 1: livelier hero photo, button below the plate on phones, scroll cue ===== */
/* Lighter overlays: only a soft shade behind the text and under the menu, so the photo keeps its colour. */
body .home-hero:before{background:linear-gradient(90deg,rgba(2,14,8,.6) 0%,rgba(2,14,8,.34) 30%,rgba(2,14,8,0) 56%),linear-gradient(180deg,rgba(2,14,8,.38) 0%,rgba(2,14,8,0) 18%)!important}
body .home-hero:after{filter:saturate(1.1) contrast(1.05) brightness(1.04)}
@keyframes lux-hero-dim{from{filter:saturate(1.1) contrast(1.05) brightness(1.04)}to{filter:saturate(1.1) contrast(1.05) brightness(.55)}}
body .home-hero-content :is(h1,p){text-shadow:0 2px 18px rgba(0,8,4,.55),0 1px 3px rgba(0,8,4,.35)}
@media(max-width:820px){
 body .home-hero:before{background:linear-gradient(180deg,rgba(2,14,8,.62) 0%,rgba(2,14,8,.22) 24%,rgba(2,14,8,0) 40%,rgba(2,14,8,0) 74%,rgba(2,14,8,.5) 100%)!important}
 /* No slow zoom on phones: it shifted the photo under the fixed button. */
 body .home-hero:after{animation:none!important;transform:none!important}
}
@supports (animation-timeline:scroll()){
 @media(max-width:820px) and (prefers-reduced-motion:no-preference){
  body .home-hero:after{animation:lux-hero-dim linear both!important;animation-timeline:scroll(root)!important;animation-range:0 100vh!important}
 }
}
/* Phones and tablets: the button sits just below the licence plate; lux-motion.js works out --hero-action-top for the hero's proportions. */
@media(max-width:820px){
 body .home-hero{position:relative}
 body .home-hero .home-hero-content{position:static}
 body .home-hero .home-hero-action{position:absolute;left:var(--site-edge,22px);right:var(--site-edge,22px);top:var(--hero-action-top,calc(73.8% + 30px));width:auto;margin:0!important}
}
/* Scroll cue (added by lux-motion.js) */
.hero-scroll{position:absolute;left:50%;bottom:clamp(18px,3vh,34px);z-index:3;display:flex;flex-direction:column;align-items:center;gap:10px;padding:6px 10px;border:0;background:none;color:#f4efe2;cursor:pointer;transform:translateX(-50%);transition:opacity .5s ease}
body .hero-scroll span{font:600 10px/1 var(--site-text)!important;letter-spacing:.24em;text-transform:uppercase;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hero-scroll i{position:relative;display:block;width:24px;height:38px;border:1.5px solid rgba(244,239,226,.85);border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.35)}
.hero-scroll i:before{content:'';position:absolute;left:50%;top:7px;width:3px;height:8px;margin-left:-1.5px;border-radius:2px;background:#e7c785;animation:hero-scroll-dot 2s cubic-bezier(.65,0,.35,1) infinite}
@keyframes hero-scroll-dot{0%{transform:translateY(0);opacity:0}25%{opacity:1}70%{transform:translateY(14px);opacity:0}100%{opacity:0}}
.hero-scroll:hover i{border-color:#e7c785}
.hero-scroll:focus-visible{outline:2px solid #e7c785;outline-offset:4px}
html.is-scrolled-hero .hero-scroll{opacity:0;pointer-events:none}
@media(max-width:820px){
 .hero-scroll{bottom:max(10px,env(safe-area-inset-bottom));gap:6px}
 body .hero-scroll span{display:none}
 .hero-scroll i{width:22px;height:34px}
}
@media(prefers-reduced-motion:reduce){.hero-scroll i:before{animation:none;opacity:1;top:12px}}
@media(max-width:820px){.hero-scroll{padding:0}}
.home-hero.hero-cue-off .hero-scroll{display:none}

/* ===== Client round 2 ===== */
/* Text is readable straight away: no fade, blur or slide-in while scrolling, and no blur on the hero title. */
html.js-motion .motion-item{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
html.js-motion body .svc-row .svc-chapter-num{opacity:1;transform:none;transition:none}
html.js-motion body .svc-row .svc-chapter-label{clip-path:none;transition:none}
@keyframes premium-title-in{from{opacity:0}to{opacity:1}}
html body .reveal,html body .reveal.visible{animation:none!important;opacity:1;transform:none}
/* Services on phones: photos are there as soon as they load, so the page never shows an empty gap while scrolling. */
@media(max-width:820px){
 html.js-motion body .svc-row .svc-frame,html.js-motion body .svc-row:nth-of-type(even) .svc-frame{clip-path:none!important;transition:none!important}
 html.js-motion body .svc-row .svc-frame img{transform:none!important}
 html body .svc-row.svc-row{padding:42px 0}
}
/* Scroll cue: the label above a round glass button with a gold ring and a gliding arrow, on a soft dark glow
   so it reads on bright asphalt as well. Replaces the mouse outline. */
.hero-scroll{gap:14px;padding:10px 26px 0;background:none;border:0;isolation:isolate}
.hero-scroll:before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:240px;height:170px;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(3,12,7,.6),rgba(3,12,7,.25) 55%,transparent);pointer-events:none}
body .hero-scroll span{font:600 11px/1 var(--site-text)!important;letter-spacing:.32em;margin-right:-.32em;color:#f4efe2;text-shadow:0 1px 10px rgba(0,0,0,.75)}
.hero-scroll i{position:relative;width:54px;height:54px;border:1px solid rgba(231,199,133,.85);border-radius:50%;background:rgba(7,20,14,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 26px -10px rgba(0,0,0,.6);overflow:hidden;transition:background-color .4s ease,border-color .4s ease}
.hero-scroll i:before,.hero-scroll i:after{content:'';position:absolute;left:50%;margin:0;border-radius:0;animation:hero-scroll-arrow 2s cubic-bezier(.65,0,.35,1) infinite}
.hero-scroll i:before{top:15px;width:1.5px;height:20px;margin-left:-.75px;background:#e7c785}
.hero-scroll i:after{top:27px;width:9px;height:9px;margin-left:-5px;border-right:1.5px solid #e7c785;border-bottom:1.5px solid #e7c785;transform:rotate(45deg);animation-name:hero-scroll-chevron}
@keyframes hero-scroll-arrow{0%{transform:translateY(-34px)}45%,60%{transform:translateY(0)}100%{transform:translateY(40px)}}
@keyframes hero-scroll-chevron{0%{transform:translateY(-34px) rotate(45deg)}45%,60%{transform:translateY(0) rotate(45deg)}100%{transform:translateY(40px) rotate(45deg)}}
.hero-scroll:hover span{color:#e7c785}
.hero-scroll:hover i{background:rgba(7,20,14,.75);border-color:#e7c785}
@media(max-width:820px){.hero-scroll{gap:10px}.hero-scroll i{width:44px;height:44px}.hero-scroll i:before{top:10px;height:18px}.hero-scroll i:after{top:20px}}
@media(prefers-reduced-motion:reduce){.hero-scroll i:before,.hero-scroll i:after{animation:none}}
/* Very short screens (landscape phone, large zoom): the fixed quote bar would cover page controls. */
@media(max-width:820px) and (max-height:430px){.lux-mbar{display:none!important}}
