/* ═══════════════════════════════════════════
   HercNet.ba — Zajednički CSS v3
   Mobile-first, fully responsive
   ═══════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --dark:#0b1221;
  --dark2:#111827;
  --blue2:#2563eb;
  --blue-lt:#3b82f6;
  --cyan:#06b6d4;
  --cyan-lt:#22d3ee;
  --white:#fff;
  --g50:#f8fafc;
  --g100:#f1f5f9;
  --g200:#e2e8f0;
  --g400:#94a3b8;
  --g500:#64748b;
  --g600:#475569;
  --g700:#334155;
  --g800:#1e293b;
  --green:#10b981;
  --nav-h:62px;
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',sans-serif;background:var(--white);color:var(--g800);overflow-x:hidden;line-height:1.6}
img{max-width:100%;height:auto}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:300;
  background:rgba(11,18,33,0.97);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,0.07);
}
.nav-wrap{
  max-width:1240px;margin:0 auto;
  padding:0 1.25rem;
  height:var(--nav-h);
  display:flex;align-items:center;justify-content:space-between;
}
.logo{
  font-family:'Outfit',sans-serif;font-weight:800;font-size:1.35rem;
  color:var(--white);display:flex;align-items:center;gap:8px;text-decoration:none;
  flex-shrink:0;
}
.logo-mark{
  width:30px;height:30px;border-radius:7px;
  background:linear-gradient(135deg,var(--blue2),var(--cyan));
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;font-weight:900;color:white;flex-shrink:0;
}
.nav-links{
  display:flex;gap:2px;list-style:none;
  align-items:center;
}
.nav-links a{
  color:rgba(255,255,255,0.65);text-decoration:none;
  font-size:.82rem;padding:.4rem .8rem;border-radius:7px;
  transition:all .18s;white-space:nowrap;display:block;
}
.nav-links a:hover,.nav-links a.active{color:#fff;background:rgba(255,255,255,.09)}
.nav-cta{background:var(--blue2)!important;color:#fff!important;font-weight:500!important;border-radius:7px!important;}
.nav-cta:hover{background:#1d4ed8!important}

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;gap:5px;cursor:pointer;
  padding:.5rem;background:none;border:none;flex-shrink:0;
}
.hamburger span{
  width:22px;height:2px;background:rgba(255,255,255,.85);
  border-radius:2px;display:block;transition:all .3s;
}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile nav drawer */
@media(max-width:820px){
  .nav-links{
    display:none;flex-direction:column;gap:4px;
    position:fixed;top:var(--nav-h);left:0;right:0;
    background:rgba(10,17,32,.98);
    padding:1rem 1.25rem 1.5rem;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 32px rgba(0,0,0,.4);
    max-height:calc(100vh - var(--nav-h));
    overflow-y:auto;
  }
  .nav-links.open{display:flex}
  .nav-links a{font-size:.9rem;padding:.65rem 1rem;border-radius:9px;}
  .nav-cta{margin-top:.25rem}
  .hamburger{display:flex}
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn-prim{
  background:var(--blue2);color:#fff;
  padding:.8rem 1.75rem;border-radius:10px;
  font-size:.92rem;font-weight:500;border:none;cursor:pointer;
  font-family:inherit;transition:all .2s;
  display:inline-flex;align-items:center;gap:6px;text-decoration:none;
}
.btn-prim:hover{background:#1d4ed8;transform:translateY(-1px)}
.btn-sec{
  background:transparent;color:#fff;
  padding:.8rem 1.75rem;border-radius:10px;
  font-size:.92rem;font-weight:500;
  border:1.5px solid rgba(255,255,255,.25);
  cursor:pointer;font-family:inherit;transition:all .2s;
  text-decoration:none;display:inline-flex;align-items:center;
}
.btn-sec:hover{background:rgba(255,255,255,.08)}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
section{padding:4rem 1.25rem}
.sec-wrap{max-width:1240px;margin:0 auto}
.sec-tag{
  font-size:.72rem;font-weight:600;letter-spacing:.12em;
  color:var(--blue2);text-transform:uppercase;margin-bottom:.55rem;
}
.sec-title{
  font-family:'Outfit',sans-serif;font-size:clamp(1.6rem,4vw,2.1rem);
  font-weight:800;line-height:1.2;margin-bottom:.85rem;color:var(--g800);
}
.sec-sub{color:var(--g600);font-size:.97rem;line-height:1.75;max-width:540px}

/* ══════════════════════════════
   WHY CARDS
══════════════════════════════ */
.why-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1rem;margin-top:2.5rem;
}
.why-card{
  border:1px solid var(--g200);border-radius:14px;
  padding:1.5rem;transition:all .25s;background:var(--white);
}
.why-card:hover{border-color:var(--blue-lt);box-shadow:0 6px 24px rgba(37,99,235,.09);transform:translateY(-2px)}
.why-icon{
  width:44px;height:44px;border-radius:11px;
  background:linear-gradient(135deg,var(--blue2),var(--cyan));
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;margin-bottom:.9rem;
}
.why-card h3{font-family:'Outfit',sans-serif;font-size:.97rem;font-weight:700;margin-bottom:.4rem}
.why-card p{font-size:.85rem;color:var(--g600);line-height:1.6}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer{background:var(--dark2);color:rgba(255,255,255,.55);padding:3rem 1.25rem 1.5rem}
.footer-wrap{max-width:1240px;margin:0 auto}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:2.5rem;margin-bottom:2.5rem;
}
.fl-logo{
  font-family:'Outfit',sans-serif;font-weight:800;font-size:1.25rem;
  color:#fff;display:flex;align-items:center;gap:8px;
  margin-bottom:.8rem;text-decoration:none;
}
.fl-lmark{
  width:26px;height:26px;border-radius:6px;
  background:linear-gradient(135deg,var(--blue2),var(--cyan));
  display:flex;align-items:center;justify-content:center;
  font-size:.75rem;font-weight:900;color:#fff;
}
.fl-desc{font-size:.82rem;line-height:1.75;max-width:250px}
footer h4{color:#fff;font-size:.78rem;font-weight:600;margin-bottom:.85rem;letter-spacing:.04em;text-transform:uppercase}
footer ul{list-style:none;display:flex;flex-direction:column;gap:.4rem}
footer ul li a{
  color:rgba(255,255,255,.45);text-decoration:none;
  font-size:.82rem;transition:color .18s;
}
footer ul li a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.07);padding-top:1.25rem;
  display:flex;justify-content:space-between;align-items:center;
  font-size:.76rem;flex-wrap:wrap;gap:.5rem;
}

/* ══════════════════════════════
   PAGE HERO (sub-pages)
══════════════════════════════ */
.page-hero{
  background:var(--dark);
  padding:calc(var(--nav-h) + 2.5rem) 1.25rem 2.5rem;
  text-align:center;
}
.page-hero .sec-tag{justify-content:center;display:flex;color:var(--cyan-lt)}
.page-hero h1{
  font-family:'Outfit',sans-serif;
  font-size:clamp(1.75rem,5vw,2.5rem);
  font-weight:800;color:#fff;margin-bottom:.9rem;line-height:1.15;
}
.page-hero p{
  color:rgba(255,255,255,.62);font-size:.97rem;
  max-width:560px;margin:0 auto;line-height:1.75;
}

/* ══════════════════════════════
   VIBER / WHATSAPP FLOATING WIDGET
══════════════════════════════ */
.chat-widget{
  position:fixed;bottom:24px;right:20px;z-index:400;
  display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;
}
.chat-bubble{
  background:var(--dark);border:1px solid rgba(255,255,255,.12);
  border-radius:16px;padding:1rem 1.25rem;
  color:#fff;font-family:'Outfit',sans-serif;font-size:.85rem;font-weight:500;
  box-shadow:0 8px 32px rgba(0,0,0,.35);
  display:none;flex-direction:column;gap:.5rem;min-width:220px;
  animation:slideUp .2s ease;
}
.chat-bubble.open{display:flex}
@keyframes slideUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.chat-bubble-title{
  font-size:.72rem;color:rgba(255,255,255,.45);
  margin-bottom:.25rem;letter-spacing:.05em;text-transform:uppercase;
}
.chat-link{
  display:flex;align-items:center;gap:.65rem;
  padding:.6rem .85rem;border-radius:10px;
  text-decoration:none;font-size:.87rem;font-weight:500;
  transition:all .2s;color:#fff;
}
.chat-link-vb{background:rgba(124,77,255,.22);border:1px solid rgba(124,77,255,.3)}
.chat-link-vb:hover{background:rgba(124,77,255,.38);color:#fff}
.chat-link-wa{background:rgba(34,197,94,.15);border:1px solid rgba(34,197,94,.25)}
.chat-link-wa:hover{background:rgba(34,197,94,.28);color:#fff}
.chat-link-ph{background:rgba(37,99,235,.2);border:1px solid rgba(37,99,235,.3)}
.chat-link-ph:hover{background:rgba(37,99,235,.35);color:#fff}
.chat-link .ci{font-size:1.1rem;flex-shrink:0}
.chat-toggle{
  width:54px;height:54px;border-radius:50%;
  background:linear-gradient(135deg,var(--blue2),var(--cyan));
  border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(37,99,235,.5);
  transition:all .2s;font-size:1.5rem;
  color:white;
}
.chat-toggle:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(37,99,235,.6)}
.chat-close{display:none}
.chat-widget.active .chat-open{display:none}
.chat-widget.active .chat-close{display:flex}
/* Pulsing dot */
.chat-dot{
  position:absolute;top:2px;right:2px;
  width:12px;height:12px;background:#22c55e;
  border-radius:50%;border:2px solid var(--dark);
  animation:pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}
  50%{box-shadow:0 0 0 5px rgba(34,197,94,0)}
}

/* ══════════════════════════════
   UTILITY
══════════════════════════════ */
.page-top{padding-top:var(--nav-h)}

/* Smooth transitions for all interactive */
a,button{-webkit-tap-highlight-color:transparent}

/* Mobile global */
@media(max-width:480px){
  section{padding:3rem 1rem}
  .btn-prim,.btn-sec{padding:.75rem 1.4rem;font-size:.88rem}
  footer{padding:2.5rem 1rem 1.25rem}
  .footer-grid{gap:1.75rem}
}

/* ══════════════════════════════
   LOGO IMAGE
══════════════════════════════ */
.logo-img-link{
  display:flex;align-items:center;text-decoration:none;flex-shrink:0;
  max-width:180px;
}
.nav-logo-img{
  height:42px;
  width:auto;
  max-width:180px;
  object-fit:contain;
  display:block;
}
.fl-logo-img{
  display:flex;align-items:center;text-decoration:none;margin-bottom:.85rem;
  max-width:200px;
}
.footer-logo-img{
  height:40px;
  width:auto;
  max-width:200px;
  object-fit:contain;
  opacity:.85;
  display:block;
}

/* Responsive logo sizing */
@media(max-width:600px){
  .nav-logo-img{height:34px;max-width:150px}
  .logo-img-link{max-width:150px}
}
