/* ============ DESIGN TOKENS ============ */
:root {
  --red: #c0392b;
  --red-dark: #97271b;
  --ink: #1c1c1e;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e6e8eb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 20, 30, 0.08);
  --shadow-sm: 0 2px 8px rgba(20, 20, 30, 0.06);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
}
.logo-text strong { color: var(--red); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink); }
.nav a:hover { color: var(--red); }
.nav-call { background: var(--red); color: #fff !important; padding: 9px 16px; border-radius: 999px; }
.nav-call:hover { background: var(--red-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============ HERO ============ */
.hero { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; opacity: .85; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 12px 0 16px; }
.hero h1 span { color: #ffd5cf; }
.hero-lead { font-size: 17px; opacity: .92; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; font-size: 14px; opacity: .92; }
.hero-card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card-inner { padding: 28px; text-align: center; }
.hero-card-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.hero-card h3 { font-size: 21px; margin-bottom: 8px; }
.hero-card p { color: var(--muted); margin-bottom: 18px; }

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* ============ CARDS GRID ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 36px; margin-bottom: 12px; }
.service-card h3 { font-size: 20px; margin-bottom: 14px; }
.service-card ul li { padding: 6px 0 6px 24px; position: relative; color: #374151; }
.service-card ul li::before { content: "✔"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ============ KAKO RADIMO (koraci) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px 24px; box-shadow: var(--shadow-sm); text-align: center; }
.step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step-ico { font-size: 40px; margin: 4px 0 10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ============ PRE / POSLE KLIZAČ ============ */
.ba { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.ba-switch { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.ba-opt { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.ba-opt:hover { border-color: var(--red); }
.ba-opt.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ba-frame { position: relative; width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; background: #ddd; }
.ba-after, .ba-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; z-index: 3; }
.ba-tag-pre { left: 12px; background: #6b7280; }
.ba-tag-posle { right: 12px; background: var(--red); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); z-index: 4; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); letter-spacing: -2px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.ba-link { margin-top: 16px; color: var(--red); border-color: var(--red); }
.ba-link:hover { background: var(--red); color: #fff; }

/* ============ GALLERY ============ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item.is-hidden { display: none; }
.gallery-item .ph,
.gallery-item img {
  display: grid; place-items: center; text-align: center; width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e9ecef, #dfe3e8); color: #8a929c; font-weight: 600; font-size: 14px;
  object-fit: cover; padding: 10px;
}

/* ============ AKORDEON KALKULATORI ============ */
.acc { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; color: var(--red); font-size: 24px; font-weight: 800; line-height: 1; }
.acc-item[open] summary::after { content: "–"; }
.acc-item[open] summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 20px 22px 22px; }

.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.acc-body .calc { background: transparent; border: 0; box-shadow: none; padding: 0; }
.calc-form { display: flex; flex-direction: column; gap: 14px; }
.calc-form label, .contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.calc-form input, .contact-form input, .contact-form select, .contact-form textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.calc-form input:focus, .contact-form :focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.calc-note, .calc-hint { color: var(--muted); font-size: 13px; }
.calc-result {
  background: var(--bg-alt); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: center;
}
.calc-result .big { font-size: 38px; font-weight: 800; color: var(--red); line-height: 1.1; }
.calc-result .res-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.calc-result .res-row:last-child { border-bottom: 0; }
.calc-result .res-row span:last-child { font-weight: 700; }
.calc-disclaimer { text-align: center; color: var(--muted); font-size: 13px; max-width: 600px; margin: 22px auto 0; }

/* ============ O NAMA ============ */
.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.person-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; font-size: 30px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }
.person-role { color: var(--red); font-weight: 700; margin-bottom: 10px; }
.person-card p:last-child { color: var(--muted); }

/* ============ KONTAKT ============ */
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card-head { display: flex; align-items: center; gap: 14px; }
.contact-toon { height: 96px; width: auto; flex: 0 0 auto; }
.person-avatar.sm { width: 52px; height: 52px; font-size: 22px; margin: 0; }
.contact-card-head h3 { font-size: 20px; }
.contact-num { display: block; font-size: 26px; font-weight: 800; color: var(--ink); margin: 16px 0 4px; letter-spacing: .5px; }
.contact-num:hover { color: var(--red); }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cbtn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff; transition: transform .12s, filter .12s; }
.cbtn:active { transform: translateY(1px); }
.cbtn:hover { filter: brightness(1.07); }
.cbtn-call { background: #16794c; }
.cbtn-sms { background: #2563eb; }
.cbtn-viber { background: #7360f2; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; max-width: 880px; margin: 26px auto 0; color: var(--muted); font-size: 15px; }
.contact-meta strong { color: var(--ink); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: #fff; padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.site-footer a { color: #ffd5cf; font-weight: 700; }

/* ============ STICKY MOBILE CALL ============ */
.sticky-call { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--red); color: #fff; padding: 14px 28px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); }

/* ============ LIGHTBOX (uvećanje slika) ============ */
.gallery-item img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,16,20,.94); display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox.is-open { display: block; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; box-shadow: 0 12px 44px rgba(0,0,0,.5); border-radius: 6px; }
.lb-img.is-zoomed { cursor: grab; }
.lb-close, .lb-nav { position: absolute; z-index: 3; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close { top: 14px; right: 16px; width: 46px; height: 46px; font-size: 30px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px; }
.lb-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.85); font-size: 13px; background: rgba(0,0,0,.4); padding: 7px 15px; border-radius: 999px; pointer-events: none; transition: opacity .5s; text-align: center; max-width: 90vw; }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; font-size: 28px; }
  .lb-img { max-width: 96vw; max-height: 80vh; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-people { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { position: fixed; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-call { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .sticky-call { display: inline-block; }
  .section { padding: 52px 0; }
}
