:root {
  --navy: #1f3a5f;
  --navy-dark: #162a45;
  --accent: #e8a317;
  --accent-dark: #c98a0a;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5a6575;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 35, 60, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img, iframe { max-width: 100%; }
a { color: var(--navy); }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.top-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Izbor jezika (gornji desni ugao) */
.lang { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.lang a { color: #fff; text-decoration: none; padding: 6px 12px; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.lang a:hover { background: rgba(255,255,255,.18); }
.lang a.on { background: #fff; color: var(--navy-dark); }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .3px; }
.header-call { color: var(--navy-dark); background: var(--accent); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.header-call:hover { background: var(--accent-dark); }

.nav { padding-bottom: 10px; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.btn-nav {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; text-decoration: none; color: #fff; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 10px 6px; border-radius: 10px; min-height: 64px; line-height: 1.2;
  transition: background .15s, transform .15s;
}
.btn-nav .ico { font-size: 1.4rem; }
.btn-nav:hover, .btn-nav.active { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); }
.btn-nav:active { transform: scale(.97); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 48px 0; }
.hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; }
.hero .lead { font-size: 1.1rem; max-width: 780px; opacity: .95; margin: 0 0 22px; }

/* Typography */
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 32px 0 14px; color: var(--navy); }
.lead { font-size: 1.1rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--navy-dark); font-weight: 700;
  text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--accent);
  text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(0,0,0,.06); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.15); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-ico { font-size: 2.2rem; }
.card h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card h3 a { text-decoration: none; }
.card p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { background: var(--card); padding: 12px 14px 12px 44px; border-radius: 10px; position: relative; box-shadow: var(--shadow); }
.ticks li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: #fff; background: var(--navy); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

/* Service page */
.crumbs { padding-top: 16px; font-size: .92rem; color: var(--muted); }
.service-page { padding-bottom: 12px; }
.service-page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 14px 0; color: var(--navy); }
.faq details { background: var(--card); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); text-decoration: none; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; }
.chip:hover { background: var(--accent); }

[hidden] { display: none !important; }

/* Slajder na početnoj */
.slider { position: relative; background: var(--navy-dark); color: #fff; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(440px, 44vw, 540px); display: flex; align-items: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.6) 50%, rgba(10,22,40,.2) 100%); }
.slide-text { position: relative; padding-top: 40px; padding-bottom: 64px; }
.slide-text > * { max-width: 720px; }
.slide-text h1, .slide-title { font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; font-weight: 800; }
.slide-text .lead { font-size: 1.08rem; margin: 0 0 20px; }
.slider .actions { margin-top: 0; }
.slider .btn-ghost { color: #fff; }
.slider .btn-ghost:hover { background: rgba(255,255,255,.15); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; padding: 0 0 5px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy-dark); font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.dot { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: transform .2s, background .2s; }
.dot.on::before { background: #fff; transform: scale(1.25); }
.slider-btn:focus-visible, .dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Primeri proizvoda */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.product { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e5e8ec; }
.product figcaption { padding: 12px 14px; font-weight: 700; }

@media (max-width: 1180px) {
  .slide-text { padding-left: 68px; padding-right: 68px; }
}
@media (max-width: 640px) {
  .slide-text { padding-left: 16px; padding-right: 16px; padding-top: 28px; }
  .slide-text .lead { font-size: 1rem; }
  .slide-shade { background: rgba(10,22,40,.68); }
  .slider-btn { display: none; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product figcaption { padding: 10px 12px; font-size: .95rem; }
}

/* Contact */
.contact { background: #fff; margin-top: 40px; padding: 8px 0 40px; border-top: 4px solid var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e5e8ec; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }
.info { font-style: normal; }
.info p { margin: 0 0 14px; }
.big-phone a { font-size: 1.8rem; font-weight: 800; text-decoration: none; color: var(--navy); }
.hours { border-collapse: collapse; width: 100%; margin-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 5px 0; border-bottom: 1px solid #e6e9ee; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cdd6e3; padding: 24px 0 90px; font-size: .95rem; }
.site-footer p { margin: 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* Floating call button (mobile) */
.call-fab { display: none; }

/* Tablet */
@media (max-width: 900px) {
  .nav-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .map iframe { height: 340px; }
}

/* Mobile */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-grid .btn-nav:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brand { font-size: 1rem; line-height: 1.2; min-width: 0; }
  .lang a { padding: 6px 10px; }
  .header-call { display: none; }
  .hero { padding: 32px 0; }
  .map iframe { height: 280px; }
  .actions .btn { width: 100%; }
  .call-fab {
    display: block; position: fixed; right: 14px; bottom: 14px; z-index: 60;
    background: var(--accent); color: var(--navy-dark); font-weight: 800; text-decoration: none;
    padding: 14px 22px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
