:root{ --topbar-h:48px; --accent:#ff6a00; --panel:#0b0f18; --muted:#6d7ba0 }
*{ box-sizing:border-box }
html,body{ height:100% }
body{ margin:0; font-family:"Inter",sans-serif; background:#000; color:#fff; overflow-x:hidden }
a{ color:inherit; text-decoration:none }
figure{ margin:0; padding:0 }
img{ display:block; border:0 }

/* Top traka */
.topbar{
  height:var(--topbar-h);
  display:flex; align-items:center; justify-content:center;
  width:100%;
  background:linear-gradient(90deg,#ff6a00,#ff7f22);
  color:#fff; font-weight:600; font-size:18px; letter-spacing:.6px;
  padding:0 2rem; position:fixed; top:0; left:0; right:0; z-index:100;
}
.topbar strong{ margin:0 4px }

/* Header preko slike */
header{ position:fixed; left:0; right:0; top:var(--topbar-h); z-index:90; background:transparent }
header .overlay{
  position:absolute; inset:0; height:100%; pointer-events:none; z-index:-1;
  background:linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.12) 60%, rgba(0,0,0,0) 100%);
}

/* DESKTOP red (logo + nav + actions) */
.row{
  max-width:1200px; margin:0 auto; padding:0 16px;
  height:64px; display:flex; align-items:center; gap:28px;
  color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.55);
}
.logo{ display:flex; align-items:center; gap:.5rem; font-weight:800; font-family:"DejaVu Sans Condensed",sans-serif }
.logo img{ height:36px; position:relative; top:-5px; }
nav{ display:flex; gap:28px }
nav a{ position:relative }
nav a:focus-visible{ outline:2px solid #fff; outline-offset:6px; border-radius:8px; }
.actions{ display:flex; gap:10px; margin-left:auto }
.btn{
  display:inline-flex; align-items:center; gap:.5rem; background:transparent;
  border-radius:10px; padding:.5rem .8rem; font-weight:600;
  border:1px solid rgba(255,255,255,.38); cursor:pointer; color:#fff;
  transition:background .2s ease,border-color .2s ease,transform .06s ease;
}
.btn:hover{ background:rgba(255,255,255,.08); border-color:#fff }
.btn:active{ transform:scale(.98) }

/* MOBILNA ikon traka */
.mobile-bar{ display:none; height:64px; padding:0 12px; align-items:center; gap:12px }
.mi-left, .mi-right{ display:flex; gap:12px; align-items:center }
.mi-center{ margin-left:auto; margin-right:auto; display:flex; align-items:center; gap:.5rem; font-weight:800; font-family:"DejaVu Sans Condensed",sans-serif }
.mi-center img{ height:40px; position:relative; top:-5px; }

.iconbtn{
  width:40px; height:40px; display:grid; place-items:center;
  background:transparent; border:none; color:#fff;
  font-size:20px; transition:color .2s ease, transform .1s ease;
}
.iconbtn:hover{ color:var(--accent) }
.iconbtn:active{ transform:scale(.92) }

/* Slider */
.hero{ position:relative; width:100vw; height:100vh; overflow:hidden; background:#000 }
.slides{ display:flex; width:100%; height:100%; transition:transform .5s ease; will-change:transform }
.slide{ min-width:100vw; height:100vh; position:relative; background:#000; overflow:hidden; }
.slide img{
  position:absolute; inset:0; width:100vw; height:100vh;
  object-fit:cover; object-position:center;
  transition:object-position .2s ease, transform .2s ease; transform-origin:center center;
}

/* Swipe UX na celom hero (baneru) */
.banner-slider{
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

/* Banner 1 i Banner 2 i Banner 3: mobilni */
@media (max-width:768px){
  .hero, .slide{ height:75vh }

  /* Banner 1 */
  .slide img.zoom-50{
    object-fit:contain; background:#000;
    transform-origin:center center;
    transform:translateX(22%) translateY(-10%) scale(2.7);
  }

  /* Banner 2 */
  .slide img.zoom-50b{
    object-fit:contain; background:#000;
    transform-origin:center center;
    transform:translateX(60%) translateY(-10%) scale(2.4);
  }

  /* Banner 3 */
  .slide img.zoom-50c{
    object-fit:contain; background:#000;
    transform-origin:center center;
    transform:translateX(-25%) translateY(-10%) scale(2.4);
  }

  /* Banner 4 */
  .slide img.zoom-50d{
    object-fit:contain; background:#000;
    transform-origin:center center;
    transform:translateX(30%) translateY(-10%) scale(2.65);
  }
}

/* Banner 2, 3 i 4 desktop */
@media (min-width:769px){
  .slide img.zoom-50b{
    object-fit:cover;
    object-position:40% center;
  }
  .slide img.zoom-50c{
    object-fit:cover;
    object-position:center center;
    transform:translateX(0%) translateY(3.5%) scale(1.0);
  }
  .slide img.zoom-50d{
    object-fit:cover;
    object-position:center center;
    transform:translateX(0%) translateY(0%) scale(1.0);
  }
}

/* === Centralni naslov/animacije === */
.headline-wrap{
  position:absolute; inset:0;
  display:grid; place-items:center;
  pointer-events:none; z-index:2;
  text-align:center; padding:0 24px;
}
.headline{
  max-width:900px;
  display:flex; flex-direction:column; gap:14px;
  text-shadow:0 2px 14px rgba(0,0,0,.35);
}
.headline-title,
.headline-sub,
.headline-cta{
  opacity:0; transform:translateY(-60px);
}
.headline-title{
  margin:0;
  font-family:"DejaVu Sans Condensed",sans-serif;
  font-weight:800; letter-spacing:.3px;
  font-size:clamp(26px,5.4vw,52px);
  line-height:1.1;
}
.headline-sub{
  margin:0 auto; color:#ffffff;
  font-size:clamp(14px,2.4vw,20px);
  line-height:1.35;
  max-width:780px;
}

/* CTA dugmad */
.headline-cta{
  display:flex; gap:12px; justify-content:center; margin-top:6px;
}
.cta{
  pointer-events:auto;
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.8rem 1.1rem; border-radius:12px; font-weight:700;
  border:1px solid rgba(255,255,255,.22); background:rgba(0,0,0,.45);
  transition:background .2s ease, border-color .2s ease, transform .06s ease;
  color:#fff;
}
.cta.primary{ background:linear-gradient(90deg,#ff6a00,#ff7f22); border-color:transparent }
.cta:hover{ background:rgba(255,255,255,.08); border-color:#fff }
.cta.primary:hover{ filter:brightness(1.05) }
.cta:active{ transform:scale(.98) }

/* CTA specifično za baner 3 */
#headline3 .cta{
  padding:0.55rem 0.9rem;
  font-size:0.9rem;
  border-radius:10px;
}
#headline3 .cta i{ font-size:0.9em; }

/* CTA specifično za baner 4 */
#headline4 .cta{
  padding:0.55rem 0.9rem;
  font-size:0.9rem;
  border-radius:10px;
}
#headline4 .cta i{ font-size:0.9em; }

/* Baner 1 animacija */
#headline.is-visible .headline-title{ animation: dropInHigh 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
#headline.is-visible .headline-sub{ animation: dropInHigh 2.8s cubic-bezier(.2,.9,.2,1.03) .28s forwards; }
#headline.is-visible .headline-cta{ animation: dropInHigh 2.8s cubic-bezier(.2,.9,.2,1.03) .44s forwards; }
@keyframes dropInHigh{
  0%   { opacity:0; transform:translateY(-80vh) }
  60%  { opacity:1; transform:translateY(calc(-5vh + 8px)) }
  100% { opacity:1; transform:translateY(-5vh) }
}

/* Baner 2 animacija */
#headline2.is-visible .headline-title{ animation: slideInLowLeft 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
@keyframes slideInLowLeft {
  0%   { opacity:0; transform:translateX(-80vw) translateY(20vh); }
  60%  { opacity:1; transform:translateX(8px) translateY(20vh); }
  100% { opacity:1; transform:translateX(0) translateY(20vh); }
}
@media (min-width:769px){
  #headline2.is-visible .headline-title{
    animation: slideInLowLeftDesk 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards;
  }
  @keyframes slideInLowLeftDesk {
    0%   { opacity:0; transform:translateX(-80vw) translateY(33vh); }
    60%  { opacity:1; transform:translateX(8px) translateY(33vh); }
    100% { opacity:1; transform:translateX(0) translateY(33vh); }
  }
}

/* Baner 3 animacija */
#headline3.is-visible .headline-title{ animation: dropInHigh3 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
#headline3.is-visible .headline-sub{ animation: dropInHigh3 2.8s cubic-bezier(.2,.9,.2,1.03) .28s forwards; }
#headline3.is-visible .headline-cta{ animation: dropInHigh3 2.8s cubic-bezier(.2,.9,.2,1.03) .44s forwards; }
@keyframes dropInHigh3 {
  0%   { opacity:0; transform:translateY(-80vh) }
  60%  { opacity:1; transform:translateY(calc(-7vh + 8px)) }
  100% { opacity:1; transform:translateY(-7vh) }
}
@media (min-width:769px){
  #headline3.is-visible .headline-title{ animation: dropInHigh3Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
  #headline3.is-visible .headline-sub{ animation: dropInHigh3Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .28s forwards; }
  #headline3.is-visible .headline-cta{ animation: dropInHigh3Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .44s forwards; }
  @keyframes dropInHigh3Desk {
    0%   { opacity:0; transform:translateY(-80vh) }
    60%  { opacity:1; transform:translateY(calc(-17vh + 8px)) }
    100% { opacity:1; transform:translateY(-17vh) }
  }
}

/* Baner 4 animacija */
#headline4.is-visible .headline-title{ animation: dropInHigh4 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
#headline4.is-visible .headline-sub{ animation: dropInHigh4 2.8s cubic-bezier(.2,.9,.2,1.03) .28s forwards; }
#headline4.is-visible .headline-cta{ animation: dropInHigh4 2.8s cubic-bezier(.2,.9,.2,1.03) .44s forwards; }
@keyframes dropInHigh4 {
  0%   { opacity:0; transform:translateY(-80vh) }
  60%  { opacity:1; transform:translateY(calc(-7vh + 8px)) }
  100% { opacity:1; transform:translateY(-7vh) }
}
@media (min-width:769px){
  #headline4.is-visible .headline-title{ animation: dropInHigh4Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .12s forwards; }
  #headline4.is-visible .headline-sub{ animation: dropInHigh4Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .28s forwards; }
  #headline4.is-visible .headline-cta{ animation: dropInHigh4Desk 2.8s cubic-bezier(.2,.9,.2,1.03) .44s forwards; }
  @keyframes dropInHigh4Desk {
    0%   { opacity:0; transform:translateY(-80vh) }
    60%  { opacity:1; transform:translateY(calc(-17vh + 8px)) }
    100% { opacity:1; transform:translateY(-17vh) }
  }
}

@media (prefers-reduced-motion: reduce){
  #headline .headline-title, #headline .headline-sub, #headline .headline-cta{ opacity:1; transform:translateY(-11vh); animation:none !important; }
  #headline2 .headline-title{ opacity:1; transform:translateX(0) translateY(20vh); animation:none !important; }
  #headline3 .headline-title, #headline3 .headline-sub, #headline3 .headline-cta{ opacity:1; transform:translateY(-11vh); animation:none !important; }
  #headline4 .headline-title, #headline4 .headline-sub, #headline4 .headline-cta{ opacity:1; transform:translateY(-11vh); animation:none !important; }
  .slides{ transition:none }
}

/* Strelice */
.ctrl{ position:absolute; inset:0; pointer-events:none }
.arrow{
  position:absolute; top:65%; transform:translateY(-50%); pointer-events:auto;
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  border:0; outline:0; background:#111; color:#fff; font-size:18px; font-weight:800;
  opacity:0; transition:opacity .3s ease, background .2s ease
}
#prev{ left:40px } #next{ right:40px }
.hero:hover .arrow{ opacity:1 }
.arrow:hover{ background:var(--accent) }

.dots{ position:absolute; left:0; right:0; bottom:16px; display:flex; gap:8px; justify-content:center; z-index:2 }
.dot{ width:8px; height:8px; border-radius:999px; background:var(--muted); opacity:.7 }
.dot.active{ background:#fff; opacity:1 }

/* Sekcije ispod hero-a */
.section{ padding:64px 20px; background:linear-gradient(180deg,#000 0%, #01030a 100%) }
.container{ max-width:1200px; margin:0 auto }
.sec-title{ font-size:clamp(22px,3.2vw,36px); margin:0 0 18px 0; font-weight:800; font-family:"DejaVu Sans Condensed",sans-serif }
.sec-sub{ color:#cbd5e1; margin:0 0 28px 0 }

.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.card{ background:var(--panel); border:1px solid rgba(255,255,255,.06); padding:18px; border-radius:16px; }
.card h3{ margin:8px 0 6px; font-size:18px }
.card p{ margin:0; color:#cbd5e1; font-size:15px }
.card .ico{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:#0f1624; color:#fff }

.products{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.product{ background:var(--panel); border:1px solid rgba(255,255,255,.06); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; }
.product img{ width:100%; height:220px; object-fit:cover; background:#0a0f18 }
.product .p-body{ padding:14px 14px 16px }
.product h4{ margin:0 0 6px; font-size:18px }
.badge{ display:inline-block; font-size:12px; padding:4px 8px; border:1px solid rgba(255,255,255,.18); border-radius:999px; margin-right:8px; color:#dbeafe }
.price{ margin-top:8px; font-weight:800; font-size:20px }
.p-actions{ margin-top:12px; display:flex; gap:10px }
.mini-btn{ flex:1; text-align:center; padding:.6rem .8rem; border-radius:12px; border:1px solid rgba(255,255,255,.18) }
.mini-btn.primary{ background:linear-gradient(90deg,#ff6a00,#ff7f22); border-color:transparent; font-weight:800 }

.uses{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.use{ position:relative; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.06) }
.use img{ width:100%; height:240px; object-fit:cover; filter:saturate(1.05) }
.use .tag{ position:absolute; left:12px; bottom:12px; background:rgba(0,0,0,.55); padding:8px 12px; border-radius:10px; font-weight:700 }

footer{ padding:32px 20px; background:#05070d; border-top:1px solid rgba(255,255,255,.06); color:#cbd5e1 }
.foot{ max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between }
.foot small{ color:#94a3b8 }

@media (max-width:1024px){ .grid,.products,.uses{ grid-template-columns:repeat(2,1fr) } }
@media (max-width:768px){
  .row{ display:none }
  .mobile-bar{ display:flex }
  .arrow{ width:36px; height:36px; font-size:16px }
  .caption{ left:20px; bottom:20px; padding:10px 12px }
  .grid,.products,.uses{ grid-template-columns:1fr }
  .section{ padding:52px 16px }
}
/* Anchor offset zbog fixed headera */
#shop {
  scroll-margin-top: 130px;
}

/* === SHOP CTA (Prodavnica) === */
#shop{
  background: linear-gradient(135deg, var(--accent), #ff7f22);
  padding: 70px 16px;
}

#shop .shop-redirect{
  text-align: center;
  padding: 44px 28px;
  border-radius: 18px;
  background: rgba(0,0,0,0.89);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

#shop .sec-title{
  color: #fff;
  font-size: 34px;
  margin-bottom: 10px;
}

#shop .sec-sub{
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto 22px;
}

#shop .btn.primary.large{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 16px 28px;
  border-radius: 14px;
  background: #fff;
  color: #911;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}

#shop .btn.primary.large:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.22);
}

@media (max-width: 768px){
  #shop{
    padding: 56px 16px;
  }
  #shop .sec-title{
    font-size: 28px;
  }
  #shop .sec-sub{
    font-size: 16px;
  }
  #shop .shop-redirect{
    padding: 34px 18px;
  }
}

/* === Mobile menu drawer === */
.mm-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:199;
}

.mobile-menu{
  position:fixed;
  top:0; left:0;
  height:100dvh;
  width:min(86vw, 340px);
  background:#0b0f18;
  border-right:1px solid rgba(255,255,255,.10);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:200;
  padding:14px;
}

.mobile-menu.open{ transform:translateX(0); }

.mm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 4px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
}
.mm-title{ font-weight:800; letter-spacing:.2px; }

.mm-nav{ display:flex; flex-direction:column; gap:6px; padding:6px 2px; }
.mm-nav a{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  font-weight:700;
}
.mm-nav a:active{ transform:scale(.99); }

@media (min-width:769px){
  .mobile-menu, .mm-backdrop{ display:none !important; }
}

/* Lifepo4 hero slika: full-bleed (od ivice do ivice) */
.slide img.hero-full{
  width:100vw;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:none !important;
  background:#000;
}



/* === LiFePO4 vodič: tabela === */
.lp-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:680px;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  overflow:hidden;
}
.lp-table th, .lp-table td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:#e5e7eb;
  font-size:14px;
}
.lp-table th{
  font-weight:800;
  background:rgba(255,255,255,.03);
}
.lp-table tr:last-child td{ border-bottom:none; }


/* =========================
   Kontakt – offset ispod fixed headera
   ========================= */
.contact-page{
  padding: 140px 16px 40px;
}

@media (max-width: 768px){
  .contact-page{
    padding: 170px 16px 40px;
  }
}
