/* ═══════════════════════════════════════════════════════
   Hanzek Logistika — kompletni Tailwind CSS replacement
   Tocne vrijednosti iz Tailwind v3 specifikacije
═══════════════════════════════════════════════════════ */

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;line-height:1.5;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'DM Sans',sans-serif;background:#f0f4fb;color:#1a1f36;overflow-x:hidden}
img,svg,video{display:block;vertical-align:middle}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:inherit;background:none;border:none;padding:0}
p,h1,h2,h3,h4{margin:0}
ul,ol{margin:0;padding:0;list-style:none}

/* ── Display ── */
.block{display:block}
.inline-flex{display:inline-flex;align-items:center}
.flex{display:flex}
.grid{display:grid}
.hidden{display:none}

/* ── Position ── */
.fixed{position:fixed}
.relative{position:relative}
.top-0{top:0}
.left-0{left:0}
.right-0{right:0}

/* ── Z-index ── */
.z-10{z-index:10}
.z-50{z-index:50}

/* ── Flexbox ── */
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.flex-shrink-0{flex-shrink:0}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}

/* ── Grid ── */
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ── Gap ── */
.gap-2{gap:0.5rem}
.gap-3{gap:0.75rem}
.gap-4{gap:1rem}
.gap-5{gap:1.25rem}
.gap-6{gap:1.5rem}
.gap-7{gap:1.75rem}
.gap-8{gap:2rem}
.gap-10{gap:2.5rem}
.gap-12{gap:3rem}

/* ── Padding ── */
.p-5{padding:1.25rem}
.p-6{padding:1.5rem}
.p-8{padding:2rem}
.px-3{padding-left:0.75rem;padding-right:0.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-5{padding-left:1.25rem;padding-right:1.25rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.px-8{padding-left:2rem;padding-right:2rem}
.px-9{padding-left:2.25rem;padding-right:2.25rem}
.px-10{padding-left:2.5rem;padding-right:2.5rem}
.py-1{padding-top:0.25rem;padding-bottom:0.25rem}
.py-1\.5{padding-top:0.375rem;padding-bottom:0.375rem}
.py-2{padding-top:0.5rem;padding-bottom:0.5rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-16{padding-top:4rem;padding-bottom:4rem}
.py-20{padding-top:5rem;padding-bottom:5rem}
.py-24{padding-top:6rem;padding-bottom:6rem}
.pt-1{padding-top:0.25rem}
.pt-2{padding-top:0.5rem}
.pt-5{padding-top:1.25rem}
.pt-16{padding-top:4rem}
.pt-28{padding-top:7rem}
.pt-32{padding-top:8rem}
.pb-0{padding-bottom:0}
.pb-3{padding-bottom:0.75rem}
.pb-6{padding-bottom:1.5rem}
.pb-12{padding-bottom:3rem}
.pb-14{padding-bottom:3.5rem}
.pb-20{padding-bottom:5rem}

/* ── Margin ── */
.mx-auto{margin-left:auto;margin-right:auto}
.mx-2{margin-left:0.5rem;margin-right:0.5rem}
.mt-0\.5{margin-top:0.125rem}
.mt-1{margin-top:0.25rem}
.mt-4{margin-top:1rem}
.mt-20{margin-top:5rem}
.mb-1{margin-bottom:0.25rem}
.mb-2{margin-bottom:0.5rem}
.mb-3{margin-bottom:0.75rem}
.mb-4{margin-bottom:1rem}
.mb-5{margin-bottom:1.25rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.mb-10{margin-bottom:2.5rem}
.mb-14{margin-bottom:3.5rem}
.mb-16{margin-bottom:4rem}

/* ── Sizing ── */
.w-4{width:1rem}
.w-8{width:2rem}
.w-11{width:2.75rem}
.w-12{width:3rem}
.w-14{width:3.5rem}
.w-20{width:5rem}
.w-auto{width:auto}
.w-full{width:100%}
.h-4{height:1rem}
.h-8{height:2rem}
.h-11{height:2.75rem}
.h-12{height:3rem}
.h-14{height:3.5rem}
.h-20{height:5rem}
.h-60{height:15rem}
.max-w-lg{max-width:32rem}
.max-w-xl{max-width:36rem}
.max-w-2xl{max-width:42rem}
.max-w-3xl{max-width:48rem}
.max-w-4xl{max-width:56rem}
.max-w-6xl{max-width:72rem}
.max-w-\[220px\]{max-width:220px}

/* ── Typography ── */
.font-heading{font-family:'Barlow Condensed',sans-serif}
.font-light{font-weight:300}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.text-xs{font-size:0.75rem;line-height:1rem}
.text-sm{font-size:0.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.text-4xl{font-size:2.25rem;line-height:2.5rem}
.text-center{text-align:center}
.uppercase{text-transform:uppercase}
.leading-none{line-height:1}
.leading-relaxed{line-height:1.625}
.tracking-wide{letter-spacing:0.025em}
.tracking-widest{letter-spacing:0.1em}

/* ── Colors ── */
.text-white{color:#fff}
.text-white\/40{color:rgba(255,255,255,0.4)}
.text-white\/65{color:rgba(255,255,255,0.65)}
.text-white\/70{color:rgba(255,255,255,0.7)}
.text-white\/75{color:rgba(255,255,255,0.75)}
.text-white\/80{color:rgba(255,255,255,0.8)}
.text-white\/85{color:rgba(255,255,255,0.85)}
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-navy{color:#223F99}
.bg-white{background-color:#fff}
.bg-white\/10{background-color:rgba(255,255,255,0.1)}
.bg-gray-50{background-color:#f9fafb}
.bg-gray-100{background-color:#f3f4f6}

/* ── Border ── */
.border{border-width:1px;border-style:solid;border-color:#e5e7eb}
.border-2{border-width:2px;border-style:solid;border-color:#e5e7eb}
.border-b{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#e5e7eb}
.border-dashed{border-style:dashed}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}
.border-white\/10{border-color:rgba(255,255,255,0.1)}
.border-white\/30{border-color:rgba(255,255,255,0.3)}

/* ── Border radius ── */
.rounded{border-radius:0.25rem}
.rounded-full{border-radius:9999px}
.rounded-lg{border-radius:0.5rem}
.rounded-xl{border-radius:0.75rem}
.rounded-2xl{border-radius:1rem}

/* ── Shadow ── */
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}
.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1)}

/* ── Opacity ── */
.opacity-40{opacity:0.4}
.opacity-90{opacity:0.9}

/* ── Object fit ── */
.object-contain{object-fit:contain}

/* ── Overflow ── */
.overflow-hidden{overflow:hidden}

/* ── Space between (children) ── */
.space-y-1>:not([hidden])~:not([hidden]){margin-top:0.25rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:0.5rem}
.space-y-3>:not([hidden])~:not([hidden]){margin-top:0.75rem}
.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}
.space-y-5>:not([hidden])~:not([hidden]){margin-top:1.25rem}
.space-y-7>:not([hidden])~:not([hidden]){margin-top:1.75rem}

/* ── Cursor ── */
.cursor-pointer{cursor:pointer}

/* ── Fade-up override: sadržaj uvijek vidljiv bez JS observera ── */
.fade-up{opacity:1!important;transform:none!important}
.fade-up.visible{opacity:1!important;transform:none!important}

/* ── Backdrop ── */
.backdrop-blur-sm{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

/* ── Transitions ── */
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-colors{transition-property:color,background-color,border-color;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}

/* ── Hover ── */
.hover\:bg-gray-200:hover{background-color:#e5e7eb}
.hover\:shadow-lg:hover{box-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1)}
.hover\:shadow-xl:hover{box-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 8px 10px -6px rgba(0,0,0,0.1)}
.hover\:-translate-y-0\.5:hover{transform:translateY(-0.125rem)}
.hover\:border-orange-400:hover{border-color:#fb923c}

/* ── Responsive md (768px+) ── */
@media(min-width:768px){
  .md\:flex{display:flex}
  .md\:hidden{display:none!important}
  .md\:block{display:block}
  .md\:flex-row{flex-direction:row}
  .md\:items-center{align-items:center}
  .md\:gap-0{gap:0}
  .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .md\:col-span-2{grid-column:span 2/span 2}
  .md\:col-span-3{grid-column:span 3/span 3}
  .md\:text-right{text-align:right}
  .md\:text-xl{font-size:1.25rem;line-height:1.75rem}
  .md\:text-5xl{font-size:3rem;line-height:1}
}

/* ── Responsive sm (640px+) ── */
@media(min-width:640px){
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ═══════════════════════════════════════════════════════
   TAILWIND PREFLIGHT — browser reset (kritično za layout)
═══════════════════════════════════════════════════════ */
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}
button,[role="button"]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]{display:none}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
code,kbd,samp,pre{font-family:ui-monospace,monospace;font-size:1em}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-0.25em}
sup{top:-0.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none}
:-moz-focusring{outline:auto}
:-moz-ui-invalid{box-shadow:none}
progress{vertical-align:baseline}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
[type='search']{-webkit-appearance:textfield;outline-offset:-2px}
::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
summary{display:list-item}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}