/* ============================================
   011 LIFT — stil sajta
   ============================================ */
:root {
  --navy: #0e2745;
  --navy-deep: #081827;
  --blue: #1f6feb;
  --blue-light: #4f93ff;
  --accent: #f5a623;
  --accent-dark: #d98c0c;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1b2733;
  --muted: #5c6b7a;
  --border: #e5ebf2;
  --shadow-sm: 0 2px 10px rgba(14, 39, 69, 0.06);
  --shadow: 0 12px 34px rgba(14, 39, 69, 0.10);
  --shadow-lg: 0 22px 50px rgba(14, 39, 69, 0.16);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-deep);
  color: #c5d4e6;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar-tag { color: #9fb4cc; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { color: #c5d4e6; font-weight: 500; transition: color .2s; }
.topbar-contact a:hover { color: #fff; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 39, 69, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand .logo {
  width: 52px; height: 80px; border-radius: 13px;
  background: #fff;
  display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.22); overflow: hidden;
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: #d6e2f1; padding: 10px 17px; border-radius: 9px; font-weight: 500; font-size: .98rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.10); color: #fff; }
.nav-links a.active { background: rgba(31,111,235,.9); color: #fff; }
.nav-cta { background: var(--accent) !important; color: var(--navy-deep) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,111,235,.55), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(245,166,35,.18), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #143a63 100%);
  color: #fff; padding: 104px 0 96px;
}
.hero::after {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M0 43h44M43 0v44' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); line-height: 1.12; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.2rem; max-width: 660px; color: #dce8f7; margin-bottom: 32px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,.16); color: #ffce7a; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; font-size: .9rem;
  border: 1px solid rgba(245,166,35,.3);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-badge { display: flex; align-items: center; gap: 11px; color: #cfe0f3; font-weight: 500; font-size: .96rem; }
.hero-badge .bi {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.10);
  display: grid; place-items: center; font-size: 1.15rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 11px; font-weight: 700; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .2s, background .2s; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(245,166,35,.32); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dark); color: #fff; box-shadow: 0 14px 30px rgba(245,166,35,.42); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); margin-left: 12px; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ===== Sections ===== */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 1.06rem; }

/* ===== Cards grid ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe0f7; }
.card .ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff;
  font-size: 1.6rem; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(31,111,235,.3);
}
.card h3 { color: var(--navy); margin-bottom: 11px; font-size: 1.24rem; }
.card p { color: var(--muted); }

/* ===== Gallery tiles ===== */
.gallery-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s;
}
.gallery-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-tile svg { display: block; width: 100%; height: auto; }
.gallery-tile span { display: block; text-align: center; padding: 18px; font-weight: 700; color: var(--navy); }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; text-align: center; padding: 12px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ===== Feature / split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.check-list { list-style: none; }
.check-list li { padding: 9px 0 9px 36px; position: relative; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 23px; height: 23px; background: var(--blue); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 800;
}
.media-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 22px; min-height: 330px; display: grid; place-items: center;
  color: #fff; text-align: center; padding: 34px; box-shadow: var(--shadow);
}
.media-box .big { font-size: 3.4rem; font-weight: 800; }
.media-box p { color: #fff; font-weight: 500; }

/* ===== Stats band ===== */
.stats-band { background: var(--navy); border-radius: 22px; padding: 46px 30px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: #ffce7a; line-height: 1; }
.stat .lbl { color: #c5d4e6; font-size: .98rem; margin-top: 8px; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy); font-size: 1.06rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(31,111,235,.5), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; text-align: center; border-radius: 22px; padding: 60px 32px;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { color: #cfe0f3; margin-bottom: 28px; font-size: 1.08rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-item .ico {
  width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; box-shadow: 0 6px 16px rgba(31,111,235,.28);
}
.info-item h4 { color: var(--navy); margin-bottom: 3px; }
.info-item a, .info-item span { color: var(--muted); }
.form-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-box label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.form-box input, .form-box textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px;
  margin-bottom: 18px; font-family: inherit; font-size: 1rem; background: #fbfcfe;
}
.form-box input:focus, .form-box textarea:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }

/* ===== Page hero (subpages) ===== */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -40%, rgba(31,111,235,.5), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 76px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; font-weight: 800; }
.page-hero p { color: #d6e6fa; font-size: 1.1rem; }
.hero-logo {
  width: 104px; height: 158px; margin: 0 auto 22px; border-radius: 20px;
  background: #fff; display: grid; place-items: center; overflow: hidden;
  color: var(--navy); font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #b3c4d6; padding: 56px 0 26px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 14px; }
.footer-brand .logo { width: 46px; height: 70px; border-radius: 12px; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: .9rem; overflow: hidden; }
.footer-brand .logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.site-footer a { color: #b3c4d6; display: block; padding: 4px 0; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .9rem; color: #8197ad; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 88px; left: 0; right: 0; flex-direction: column;
    background: var(--navy); padding: 14px 24px; gap: 4px; display: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; }
  .grid-3, .grid-2, .split, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .topbar-contact { gap: 14px; font-size: .8rem; }
  .hero { padding: 70px 0 60px; }
}

/* ============================================
   Animacije — scroll reveal + tranzicija stranica
   ============================================ */

/* ulazak stranice (fade-in) */
.js body { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* izlazak stranice (fade-out pri prelasku) */
body.page-leaving { opacity: 0; transition: opacity .26s ease; }

/* scroll-reveal: elementi su sakriveni dok JS ne potvrdi da su u vidnom polju */
.js .section-head,
.js .card,
.js .gallery-tile,
.js .step,
.js .faq-item,
.js .stats-band,
.js .cta-band,
.js .info-item,
.js .form-box,
.js .media-box,
.js .check-list {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.js .in-view { opacity: 1 !important; transform: none !important; }

/* ============================================
   Plutajuća dugmad + na vrh + utisci
   ============================================ */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.30); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.fab svg { width: 27px; height: 27px; }
.fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 32px rgba(0,0,0,.38); }
.fab-call { background: var(--accent); color: var(--navy-deep); animation: fabPulse 2.4s ease-out infinite; }
.fab-viber { background: #7360f2; }
@keyframes fabPulse {
  0% { box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 0 0 rgba(245,166,35,.55); }
  70% { box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 0 16px rgba(245,166,35,0); }
  100% { box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 0 0 rgba(245,166,35,0); }
}
.to-top {
  position: fixed; left: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(14,39,69,.92); color: #fff; border: 0; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; z-index: 70; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* Utisci klijenata */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.review .quote { color: var(--text); font-style: italic; margin-bottom: 18px; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.review .who b { color: var(--navy); display: block; font-size: .98rem; }
.review .who span { color: var(--muted); font-size: .85rem; }

.footer-hours { color: #9fb4cc; font-size: .9rem; padding: 6px 0; display: block; }

@media (max-width: 880px) {
  .reviews { grid-template-columns: 1fr; }
  .fab { width: 54px; height: 54px; }
}

/* poštuj korisničko podešavanje za smanjene animacije */
@media (prefers-reduced-motion: reduce) {
  .fab-call { animation: none; }
  .js body { animation: none; }
  body.page-leaving { opacity: 1; }
  .js .section-head,
  .js .card,
  .js .gallery-tile,
  .js .step,
  .js .faq-item,
  .js .stats-band,
  .js .cta-band,
  .js .info-item,
  .js .form-box,
  .js .media-box,
  .js .check-list {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
