/* DMM Auto Transport — public site
   Mobile first. Light je default, dark preko sistema ili toggle-a (data-theme). */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eeece7;
  --text: #16191d;
  --muted: #5a616b;
  --border: #e0ddd6;
  --accent: #0a6f8f;          /* brand cyan, prigušen za čitljivost */
  --accent-hover: #085b75;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0f4;
  --dark-band: #14191f;       /* sekcije koje su uvijek tamne (hero, CTA) */
  --dark-band-text: #f2f3f4;
  --wa: #1fa855;
  --shadow: 0 1px 2px rgba(20, 25, 31, .06), 0 8px 24px rgba(20, 25, 31, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hdr-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418;
    --surface: #181c21;
    --surface-2: #1f242a;
    --text: #eceef0;
    --muted: #a0a7b0;
    --border: #2b3138;
    --accent: #4cb8d4;
    --accent-hover: #6cc7de;
    --accent-ink: #07222b;
    --accent-soft: #16303a;
    --dark-band: #0b0e11;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418;
  --surface: #181c21;
  --surface-2: #1f242a;
  --text: #eceef0;
  --muted: #a0a7b0;
  --border: #2b3138;
  --accent: #4cb8d4;
  --accent-hover: #6cc7de;
  --accent-ink: #07222b;
  --accent-soft: #16303a;
  --dark-band: #0b0e11;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.section--flush { padding-bottom: 0; }
.section--flush + .section { border-top: 0; }
.section__head { max-width: 680px; margin-bottom: 28px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #fff; color: #14191f; }
.btn--light:hover { background: #e9ecef; color: #14191f; }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
/* blur na pseudo-elementu: backdrop-filter na samom headeru bi "zarobio" fixed mobilni meni */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
body.nav-open .hdr::before { background: var(--bg); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hdr-h); max-width: 1320px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { height: 46px; width: auto; border-radius: 4px; }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr__phone, .hdr__quote { display: none; }
/* telefon: pill ispod header-a, desno (ispod teme i quote dugmeta), ide sa sticky header-om */
.hdr__sub { position: absolute; left: 0; right: 0; top: 100%; display: none; justify-content: flex-end; pointer-events: none; max-width: 1320px; }
.hdr__phone {
  pointer-events: auto; align-items: center; gap: 8px; margin-top: -1px;
  padding: 8px 16px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 14px 14px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 25, 31, .06);
}
.hdr__phone .ic { color: var(--accent); }
.hdr__phone:hover { color: var(--accent); }

.theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic--moon { display: none; }
}

.nav-toggle .ic--close { display: none; }
.nav-toggle[aria-expanded="true"] .ic--close { display: block; }
.nav-toggle[aria-expanded="true"] .ic--menu { display: none; }

/* mobilni meni */
.nav {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 16px 16px 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; font: 700 1.25rem/1.2 var(--font-head);
}
.nav__list a[aria-current="page"] { color: var(--accent); }
.nav__mobile-cta { display: grid; gap: 10px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  :root { --hdr-h: 76px; }
  .hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .brand { justify-self: start; }
  .brand__logo { height: 60px; }
  .hdr__actions { justify-self: end; }
  .nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; transform: none; opacity: 1; visibility: visible;
  }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__list a { border: 0; padding: 10px 14px; border-radius: 999px; font: 500 .95rem/1 var(--font-body); color: var(--muted); white-space: nowrap; }
  .nav__list a:hover { color: var(--text); }
  .nav__list a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
  .nav__portal .ic { width: 1em; height: 1em; }
  .nav__mobile-cta, .nav-toggle { display: none; }
  .hdr__quote { display: inline-flex; }
}
@media (min-width: 1024px) { .hdr__sub { display: flex; } .hdr__phone { display: inline-flex; } }

/* ---------- Hero (tekst + slika u okviru, bez overlay-a) ---------- */
.hero { padding: 32px 0 48px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 50ch; }
.hero__media { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--page { padding-bottom: 56px; }
.hero--page h1 { max-width: 18ch; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero__in { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .hero__media { aspect-ratio: 5 / 4; }
}

/* Quote bar ispod hero-a */
.qbar {
  margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.qbar__title { font: 700 1.1rem/1.2 var(--font-head); margin: 0; }
.qbar__title small { display: block; margin-top: 4px; font: 400 .9rem/1.4 var(--font-body); color: var(--muted); }
.qbar__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qbar__fields .field:nth-child(3) { grid-column: 1 / -1; }
.qbar .btn { min-height: 52px; }
.qbar__alt { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 960px) {
  .qbar { grid-template-columns: 250px 1fr auto; align-items: end; gap: 20px; padding: 24px 28px; margin-top: 48px; }
  .qbar__fields { grid-template-columns: 1fr 1fr 1fr; }
  .qbar__fields .field:nth-child(3) { grid-column: auto; }
  .qbar__alt { grid-column: 1 / -1; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: 400 1rem/1.3 var(--font-body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-weight: 400; color: var(--muted); }
.field input:user-invalid, .field select:user-invalid { border-color: #c2410c; }
/* Segmentirani izbor (Open / Enclosed) */
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.seg__opts label { position: relative; display: grid; cursor: pointer; }
.seg__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opts span { display: grid; place-items: center; border-radius: 7px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background-color .15s, color .15s; }
.seg__opts label:hover span { color: var(--text); }
.seg__opts input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--border); }
.seg__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #c2410c; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card__icon .ic { width: 22px; height: 22px; }
.card--service { display: flex; flex-direction: column; }
.card--service p { color: var(--muted); }
.card--service .link-arrow { margin-top: auto; padding-top: 8px; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev > :first-child { order: 2; } }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Our story: zatvoren pravougaonik, minimalno zaobljen, oštar rub */
.story-box {
  --story-line: color-mix(in srgb, var(--text) 30%, transparent);
  background: var(--surface-2); border: 1px solid var(--story-line);
  border-radius: 0 40px 0 40px; /* gore-lijevo i dole-desno oštro, druga dva jako zaobljena */
  padding: 24px; gap: 28px;
}
.story-box { position: relative; overflow: hidden; }
/* mobilno: slika gore preko cijele širine okvira, blijedi prema tekstu */
.story-box .split__media {
  order: -1; margin: -24px -24px 0; aspect-ratio: 16 / 10; border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
@media (min-width: 900px) {
  .story-box { padding: 56px; gap: 48px; border-radius: 0 72px 0 72px; min-height: 480px; align-items: center; }
  /* desktop: slika zauzima cijelu desnu polovinu, prelaz s lijeva na desno */
  .story-box .split__media {
    position: absolute; top: 0; right: 0; bottom: 0; left: 46%;
    margin: 0; aspect-ratio: auto; order: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  }
  .story-box > div:first-child { position: relative; z-index: 1; }
}

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--accent); margin-top: .2em; }

/* ---------- What we move: puna širina, bez kartica ---------- */
.moves { display: grid; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.move { display: flex; flex-direction: column; padding: 0 0 36px; border-bottom: 1px solid var(--border); }
.move:last-child { border-bottom: 0; }
.move__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.move__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.move:hover .move__img img { transform: scale(1.03); }
.move__body { padding: 28px 16px 0; display: flex; flex-direction: column; flex: 1; max-width: 46ch; }
.move__kicker { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.move h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 10px; }
.move p { color: var(--muted); }
.move .link-arrow { margin-top: auto; }
@media (min-width: 900px) {
  .moves { grid-template-columns: repeat(3, 1fr); }
  .move { border-bottom: 0; border-left: 1px solid var(--border); padding-bottom: 44px; }
  .move:first-child { border-left: 0; }
  .move__img { aspect-ratio: 4 / 3; }
  .move__body { padding: 32px 36px 0; }
}

/* ---------- Lined grid (linije blijede od sredine ka krajevima, bez kartica) ---------- */
.lined { --line: color-mix(in srgb, var(--text) 26%, transparent); position: relative; }
.lined::before, .lined__row::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 50%, transparent 100%);
}
.lined::before { top: 0; }
.lined__row { position: relative; }
.lined__row::after { bottom: 0; }
.section--flush .lined__row:last-child::after { display: none; }
.lined__grid { display: grid; }
.lined__item {
  position: relative; text-align: center; padding: 32px 20px; margin: 8px 0;
  border-radius: 16px; cursor: pointer; outline: none;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.lined__item + .lined__item::before { /* razdjelnik između stavki na mobilnom */
  content: ""; position: absolute; top: -8px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.lined__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.lined__item p { color: var(--muted); margin: 0 auto; max-width: 32ch; }
.lined__item:hover, .lined__item:focus-visible, .lined__item.is-active {
  background: var(--surface); z-index: 2;
  transform: translateY(-6px) scale(1.03);
  /* mekan, "blurry" rub umjesto oštrog bordera */
  box-shadow: 0 0 22px 3px color-mix(in srgb, var(--text) 9%, transparent), 0 18px 40px rgba(20, 25, 31, .12);
}
.lined__item:hover::before, .lined__item:focus-visible::before, .lined__item.is-active::before,
.lined__item:hover + .lined__item::before, .lined__item:focus-visible + .lined__item::before, .lined__item.is-active + .lined__item::before { opacity: 0; }
.lined__item:focus-visible { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 40px rgba(20, 25, 31, .12); }
@media (prefers-reduced-motion: reduce) { .lined__item:hover, .lined__item.is-active { transform: none; } }
@media (min-width: 760px) {
  .lined__grid { grid-template-columns: repeat(3, 1fr); }
  .lined--4 .lined__grid { grid-template-columns: repeat(2, 1fr); }
  .lined--4 .lined__item:nth-child(2n+1)::before { display: none; }
  .lined__item { margin: 10px 0; padding: 44px 28px; }
  .lined__item + .lined__item::before { /* vertikalna linija, blijedi prema gore i dole */
    top: 8%; bottom: 8%; left: 0; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--line), transparent);
  }
}
@media (min-width: 960px) {
  .lined--4 .lined__grid { grid-template-columns: repeat(4, 1fr); }
  .lined--4 .lined__item:nth-child(2n+1)::before { display: block; }
  .lined--4 .lined__item:first-child::before { display: none; }
  .lined__item { padding: 52px 36px; }
}

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 0 0 36px; padding: 0; position: relative; display: grid; gap: 0; }
.roadmap li { position: relative; padding: 0 0 32px 44px; }
.roadmap li::before { /* linija */
  content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--border);
}
.roadmap li:last-child::before { display: none; }
.roadmap__dot {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center;
}
.roadmap__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.roadmap li:last-child .roadmap__dot { background: var(--accent); }
.roadmap li:last-child .roadmap__dot::after { background: var(--accent-ink); }
.roadmap__when { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 1px 0 6px; }
.roadmap h3 { margin-bottom: 6px; }
.roadmap p { color: var(--muted); margin: 0; max-width: 34ch; }
@media (min-width: 900px) {
  .roadmap { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 24px; }
  .roadmap li { padding: 44px 0 0; }
  .roadmap li::before { left: 26px; right: -22px; top: 11px; bottom: auto; width: auto; height: 2px; }
  .roadmap__dot { left: 0; }
}

/* ---------- Brojke (u story sekciji) ---------- */
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.figure__num { display: block; font: 800 clamp(2.2rem, 6vw, 3.2rem)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure__label { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Dark band (CTA, dealer) ---------- */
.band { background: var(--dark-band); color: var(--dark-band-text); }
.band h2 { color: #fff; }
.band .lead, .band p { color: rgba(255,255,255,.78); }
.band .eyebrow { color: #9fdcec; }
.cta { text-align: center; padding: 56px 0; }
.cta .btn-row { justify-content: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: .88rem; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.88); }
.chips .ic { color: #9fdcec; }

/* ---------- Gallery (About): bento + "show all" ---------- */
.gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.gal-head .lead { margin-bottom: 0; }
.gal-head__count { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 500; }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bento__video { grid-column: 1 / -1; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.bento__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento__item { position: relative; padding: 0; border: 0; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.bento__item:hover img { transform: scale(1.05); }
.bento__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bento[data-collapsed="true"] .is-extra { display: none; }
.gal-more { display: flex; justify-content: center; margin-top: 24px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .bento__video { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bento__item { aspect-ratio: 4 / 3; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); padding: 0; border: 0; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--preview .gallery__item:nth-child(n+4) { display: none; }
@media (max-width: 759px) { .gallery--preview .gallery__item:nth-child(3) { display: none; } }

.video { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin-bottom: 16px; }
.video video { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,8,10,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 999px; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: .92rem; text-align: center; }
.lightbox .lb-count { position: absolute; top: 26px; left: 20px; color: rgba(255,255,255,.75); font-size: .9rem; font-variant-numeric: tabular-nums; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Quote forma: boja stranice, bez okvira, samo linija ispod polja ---------- */
[hidden] { display: none !important; }
.qform { --uline: color-mix(in srgb, var(--text) 22%, transparent); }
.qform__label, .tabs legend { padding: 0; margin-bottom: 10px; font-size: .9rem; font-weight: 600; }
.qform__group { margin-top: 40px; }
.qform__step { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 700 1.15rem/1.2 var(--font-head); }
.qform__step span { font: 600 .78rem/1 var(--font-body); letter-spacing: .1em; color: var(--accent); }
.qform__step::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--uline), transparent); }
.qform .form-grid { gap: 24px 32px; }
.form-grid--3 { grid-template-columns: 1fr 1fr; }
.form-grid--3 > :nth-child(3) { grid-column: 1 / -1; }
@media (min-width: 760px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } .form-grid--3 > :nth-child(3) { grid-column: auto; } }
.qform .field { font-weight: 500; color: var(--muted); font-size: .88rem; }
.qform .field input, .qform .field textarea {
  min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1.5px solid var(--uline); border-radius: 0;
  background: transparent; color: var(--text); font-size: 1.08rem;
  transition: border-color .15s;
}
.qform .field textarea { min-height: 84px; resize: vertical; }
.qform .field input::placeholder, .qform .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.qform .field input:hover, .qform .field textarea:hover { border-bottom-color: color-mix(in srgb, var(--text) 45%, transparent); }
.qform .field input:focus, .qform .field textarea:focus { box-shadow: none; border-bottom-color: var(--accent); }
.qform .field input:user-invalid { border-bottom-color: #c2410c; }
.qform .field input[type="date"] { font-family: var(--font-body); }
.qform__submit { margin-top: 36px; min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
@media (max-width: 639px) { .qform__submit { width: 100%; } }

/* Tabovi (Private / Dealership, Open / Enclosed): bez okvira, podvučena aktivna opcija */
.tabs { border: 0; margin: 0; padding: 0; min-width: 0; }
.tabs__opts { display: flex; gap: 0; border-bottom: 1.5px solid var(--uline, var(--border)); }
.tabs__opts label { position: relative; flex: 1; cursor: pointer; }
.tabs__opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tabs__opts span {
  display: block; text-align: center; padding: 11px 8px; margin-bottom: -1.5px;
  border-bottom: 2.5px solid transparent; color: var(--muted); font-weight: 600; font-size: 1rem;
  transition: color .15s, border-color .15s;
}
.tabs__opts label:hover span { color: var(--text); }
.tabs__opts input:checked + span { color: var(--text); border-bottom-color: var(--accent); }
.tabs__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tabs--lg .tabs__opts span { padding: 16px 8px; font: 700 1.15rem/1.2 var(--font-head); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; }
.contact-list > li > a, .contact-list > li > span { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.contact-list > li > a:hover { background: var(--surface-2); }
.contact-list .card__icon { margin: 0; width: 40px; height: 40px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-aside {
  position: sticky; top: calc(var(--hdr-h) + 24px); padding: 28px;
  background: transparent; border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); border-radius: 0 40px 0 40px;
}
@media (min-width: 960px) { .contact { gap: 64px; } }

/* ---------- Footer ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 0; margin-top: 0; }
.ftr__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr__brand p { color: var(--muted); max-width: 38ch; margin: 14px 0 18px; }
.ftr__h { font: 700 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.ftr__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr__links a, .ftr__links span { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ftr__links a:hover { color: var(--accent); }
.ftr__contact .ic { color: var(--accent); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding: 20px 16px 96px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.ftr__bottom a { color: var(--muted); }
@media (min-width: 760px) { .ftr__bottom { padding-bottom: 24px; } }

/* ---------- Floating contact (FAB) ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__toggle {
  width: 60px; height: 60px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .2s, background-color .2s;
}
.fab__toggle:hover { background: var(--accent-hover); }
.fab__toggle .ic { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .2s, opacity .2s; }
.fab__toggle .ic--close { opacity: 0; transform: rotate(-90deg); }
.fab[data-open="true"] .fab__toggle { background: var(--text); color: var(--bg); }
.fab[data-open="true"] .fab__toggle .ic--chat { opacity: 0; transform: rotate(90deg); }
.fab[data-open="true"] .fab__toggle .ic--close { opacity: 1; transform: none; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__item {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.fab__item:nth-child(1) { transition-delay: .04s; }
.fab[data-open="true"] .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab__label { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); white-space: nowrap; }
.fab__dot { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.fab__dot .ic { width: 24px; height: 24px; }
.fab__item--wa .fab__dot { background: var(--wa); }
.fab__item--call .fab__dot { background: #2563eb; }
.fab__item:hover .fab__label { border-color: var(--text); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- Stranice za greške (404) ---------- */
.errpage { position: relative; overflow: hidden; min-height: calc(100vh - var(--hdr-h) - 200px); display: flex; align-items: center; padding: 64px 0 80px; }
.errpage__media { position: absolute; inset: 0; pointer-events: none; }
.errpage__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
@media (min-width: 900px) {
  .errpage__media { left: 45%; }
  .errpage__media img { opacity: .45; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
}
.errpage__in { position: relative; z-index: 1; }
.errpage__in > * { max-width: 560px; }
.errpage__code { display: block; font: 800 clamp(4.5rem, 18vw, 8rem)/.9 var(--font-head); letter-spacing: -.04em; color: var(--accent); margin-bottom: 16px; }
.errpage h1 { max-width: 16ch; }
.errpage .lead { margin-bottom: 28px; }
.errpage__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .95rem; }
.errpage__links span { width: 100%; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.errpage__links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }

/* ---------- Cookie policy ---------- */
.legal { display: grid; gap: 40px; }
@media (min-width: 900px) { .legal { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.legal__list { display: grid; gap: 14px; }
.legal__item { padding: 20px 22px; background: var(--surface); border-radius: 0 20px 0 20px; }
.legal__item p { margin: 8px 0 10px; color: var(--muted); }
.legal__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legal__name code { font: 600 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.legal__tag { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.legal__life { font-size: .85rem; color: var(--text); font-weight: 500; }
.legal__text h2 { font-size: 1.25rem; margin: 0 0 8px; }
.legal__text h2:not(:first-child) { margin-top: 28px; }
.legal__text p { color: var(--muted); }
.legal__text a { color: var(--accent); }
.legal__updated { font-size: .85rem; margin-top: 28px; }
.ftr__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Track shipment ---------- */
.track-hero { padding-bottom: 0; }
.track { padding-top: 12px; }
.track__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .track__grid { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; } }
.track__form .form-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .track__form .form-grid { grid-template-columns: 1.4fr 1fr; } }
.track__form input { text-transform: uppercase; letter-spacing: .04em; }
.track__form input::placeholder { text-transform: none; letter-spacing: 0; }
.track__form .form-msg { margin: 0 0 24px; }
.track__help { padding: 24px; background: var(--surface); border-radius: 0 22px 0 22px; }
.track__help h2 { font-size: 1.15rem; margin: 0 0 10px; }
.track__help p { color: var(--muted); margin: 0 0 10px; }
.track__help code { font: 600 .92em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.track__help a { color: var(--accent); }
.track__again { margin-top: 24px; }
.track__again a { color: var(--accent); font-weight: 600; }

.trk { background: var(--surface); border-radius: 0 28px 0 28px; padding: 24px 20px; display: grid; gap: 28px; }
@media (min-width: 760px) { .trk { padding: 36px 40px; } }
.trk__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.trk__k { display: block; font: 600 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.trk__code { font: 800 clamp(1.6rem, 6vw, 2.3rem)/1 var(--font-head); letter-spacing: .02em; }
.trk__pill { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.trk__pill--delivered { background: color-mix(in srgb, #15803d 14%, transparent); color: #15803d; }
.trk__pill--picked_up { background: color-mix(in srgb, #b45309 14%, transparent); color: #b45309; }
.trk__pill--cancelled { background: color-mix(in srgb, #c2410c 14%, transparent); color: #c2410c; }
:root[data-theme="dark"] .trk__pill--delivered { color: #4ade80; } :root[data-theme="dark"] .trk__pill--picked_up { color: #fbbf24; } :root[data-theme="dark"] .trk__pill--cancelled { color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trk__pill--delivered { color: #4ade80; } :root:not([data-theme="light"]) .trk__pill--picked_up { color: #fbbf24; } :root:not([data-theme="light"]) .trk__pill--cancelled { color: #fb923c; } }
.trk__notice { margin: 0; padding: 16px 18px; border-radius: 0 16px 0 16px; background: color-mix(in srgb, #c2410c 12%, transparent); }

.trk__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trk__steps li { position: relative; display: grid; gap: 6px; justify-items: start; padding-right: 6px; }
.trk__steps li::before { content: ""; position: absolute; left: 14px; right: -14px; top: 13px; height: 3px; border-radius: 3px; background: var(--surface-2); }
.trk__steps li:last-child::before { display: none; }
.trk__steps li.is-done::before { background: var(--accent); }
.trk__dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); }
.trk__steps .is-done .trk__dot, .trk__steps .is-current .trk__dot { background: var(--accent); }
.trk__steps .is-current .trk__dot { box-shadow: 0 0 0 6px var(--accent-soft); }
.trk__label { font-weight: 600; font-size: .92rem; }
.trk__steps li:not(.is-done):not(.is-current) .trk__label { color: var(--muted); }
.trk__steps small { color: var(--muted); font-size: .8rem; }

.trk__route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: center; padding: 20px; background: var(--surface-2); border-radius: 0 20px 0 20px; }
.trk__route strong { display: block; font: 700 1.1rem/1.3 var(--font-head); overflow-wrap: anywhere; }
.trk__arrow { color: var(--accent); font-size: 1.4rem; }
@media (max-width: 559px) { .trk__route { grid-template-columns: 1fr; } .trk__arrow { transform: rotate(90deg); justify-self: start; } }

.trk__cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .trk__cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
.trk__h { font-size: 1.1rem; margin: 0 0 12px; }
.trk__list, .trk__timeline { list-style: none; margin: 0; padding: 0; }
.trk__list li, .trk__timeline li { display: grid; gap: 2px; padding: 12px 0; position: relative; }
.trk__list li + li::before, .trk__timeline li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--border, rgba(0,0,0,.12)), transparent); }
.trk__list span, .trk__timeline span { color: var(--muted); font-size: .9rem; }
.trk__timeline li:first-child strong { color: var(--accent); }
.trk__updated { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }

.trk__cta { display: grid; gap: 16px; padding: 20px; border-radius: 0 20px 0 20px; background: var(--accent-soft); }
.trk__cta strong { display: block; font: 700 1.1rem/1.3 var(--font-head); }
.trk__cta span { color: var(--muted); }
@media (min-width: 760px) { .trk__cta { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } }

/* ---------- At a glance (About) ---------- */
.facts { display: grid; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { position: relative; padding: 18px 0; }
.facts > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.facts dt { font: 600 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.facts dd { margin: 0; font: 600 1.05rem/1.4 var(--font-head); }
.facts dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
