/* ==========================================================================
   PEDA MOTOR — Banja Luka
   style.css  ·  svijetla tema
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:          #ffffff;
  --bg-soft:     #f5f5f7;
  --bg-hero:     #f2f2f4;
  --surface:     #ffffff;
  --line:        #e4e4ea;
  --line-soft:   #eeeef2;

  --ink:         #15151a;
  --ink-2:       #2c2c35;
  --text:        #5c5c68;
  --muted:       #8e8e9a;

  --red:         #c02025;
  --red-hi:      #a31b1f;
  --red-soft:    #f8eaea;

  --dark:        #131318;
  --dark-2:      #1c1c22;

  --ff:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap:        1280px;
  --gut:         clamp(1.15rem, 4vw, 2.5rem);
  --r:           3px;
  --r-lg:        8px;

  --top-h:       40px;
  --nav-h:       86px;

  --ease:        cubic-bezier(.22, .61, .36, 1);
  --shadow:      0 18px 50px rgba(20, 20, 35, .10);
  --shadow-sm:   0 6px 20px rgba(20, 20, 35, .07);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Spriječava „gumeno" povlačenje na telefonu, kod kojeg se iznad crvene
     trake nakratko vidi bijela pozadina stranice. */
  overscroll-behavior-y: none;
}
body.nav-open { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .55em;
}
/* <em> u naslovima = crveni akcenat, nikad kurziv */
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--red); }

h1 { font-size: clamp(2.35rem, 5.4vw, 4.05rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.05rem, 1.9vw, 1.28rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: clamp(3.6rem, 7vw, 6.5rem) 0; }
.section--soft  { background: var(--bg-soft); }
.section--tight { padding: clamp(2.6rem, 5vw, 4rem) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .7rem 1.2rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Naslovi sekcija ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.section-head h2 { margin: 0; }
.section-head h2 em { font-style: normal; color: var(--red); }
.section-head p { color: var(--text); max-width: 56ch; margin-top: .7rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .92rem; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .04em;
  transition: color .2s var(--ease);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- 5. Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 1.9rem;
  background: var(--red); color: #fff;
  border: 1px solid var(--red); border-radius: var(--r);
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover {
  background: var(--red-hi); border-color: var(--red-hi);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 32, 37, .28);
}
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }

.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; box-shadow: none; }

.btn--sm { padding: .72rem 1.3rem; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 6. Topbar ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  min-height: var(--top-h);
  display: flex;
  align-items: center;
  /* Kod telefona sa „zarezom" crvena traka ide i preko sigurnosne zone,
     da iznad nje ne ostane bijela pruga. */
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
}
.topbar__tag { font-weight: 600; letter-spacing: .01em; }
.topbar__tel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.topbar__tel:hover { text-decoration: underline; }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(20, 20, 35, .08); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gut);
  height: var(--nav-h);
}

.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative; display: block; padding: .6rem 1.05rem;
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 1.05rem; right: 1.05rem; bottom: .1rem;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f5f4f4;
  background-repeat: no-repeat;
}

/* Desktop: široka fotografija, vozilo desno.
   Slika je namjerno u media upitu — na telefonu se uopšte ne preuzima. */
@media (min-width: 901px) {
  .hero {
    background-image: url("../images/hero.jpg");
    background-position: right center;
    background-size: cover;
    min-height: clamp(600px, 52vw, 820px);
    display: flex;
    align-items: center;
    /* prostor da feature traka ne prekrije sadržaj heroja */
    padding-bottom: clamp(4.5rem, 7vw, 7rem);
  }
}

/* Osigurava čitljivost naslova i kad se pozadina drugačije izreže */
@media (min-width: 901px) {
  .hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(255, 255, 255, .70) 24%,
      rgba(255, 255, 255, .15) 40%,
      rgba(255, 255, 255, 0) 52%);
  }
}

.hero__copy {
  position: relative; z-index: 2;
  max-width: 30rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.hero__copy h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  margin-bottom: .5em;
}
.hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  color: var(--text);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero__socials { display: flex; gap: .55rem; margin-top: 2.2rem; }
.hero__socials a {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .75); color: var(--ink);
  transition: all .25s var(--ease);
}
.hero__socials a:hover {
  background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px);
}

/* ---------- 9. Feature traka (preklapa hero) ---------- */
.featurebar { position: relative; z-index: 6; margin-top: clamp(-5rem, -6vw, -3.5rem); }
.featurebar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featurebar__item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.7rem 1.5rem;
  border-right: 1px solid var(--line-soft);
}
.featurebar__item:last-child { border-right: 0; }
.featurebar__item svg { flex-shrink: 0; color: var(--ink); margin-top: .15rem; }
.featurebar__item h3 { font-size: 1rem; margin-bottom: .2rem; letter-spacing: -.01em; }
.featurebar__item p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- 10. Page hero (podstranice) ---------- */
.page-hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 4.6rem) 0;
  background: linear-gradient(140deg, #fafafb, var(--bg-hero));
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero--slim { padding: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.page-hero--slim h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 0; }
.page-hero--slim .crumbs { margin-bottom: .6rem; }

.page-hero h1 { margin-bottom: .3em; }
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero p { max-width: 58ch; font-size: 1.03rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1rem; font-size: .82rem; color: var(--muted);
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }
.crumbs i { color: #c3c3cd; font-style: normal; }

/* ---------- 11. Kartice modela ---------- */
.grid-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: #d5d5de;
  box-shadow: var(--shadow);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fbfbfc, #f0f0f3);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 1.1rem;
  transition: transform .55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  padding: .3rem .75rem; border-radius: 100px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
}
.badge--red { background: var(--red); border-color: var(--red); color: #fff; }

.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4rem; }
.card__desc {
  font-size: .9rem; color: var(--muted); margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card__specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: .85rem 0; margin-bottom: 1.1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.card__specs div { min-width: 0; }
.card__specs dt {
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .15rem;
}
.card__specs dd {
  margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card__link {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--red);
}
.card__link svg { transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(5px); }
.card__stretch { position: absolute; inset: 0; z-index: 3; }

/* ---------- 12. Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.filter {
  padding: .6rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .22s var(--ease);
}
.filter:hover { border-color: #c9c9d4; }
.filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filter small { opacity: .6; margin-left: .3rem; font-size: .8em; }
.card.is-hidden { display: none; }
.no-results { padding: 3rem 1rem; text-align: center; color: var(--muted); }

/* ---------- 12b. Video (Facebook) ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(267px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-items: center;
}
/* Na širokim ekranima tri u redu, pa šest snimaka daje uredna 3 + 3 */
@media (min-width: 900px) {
  .videos { grid-template-columns: repeat(3, 1fr); }
}
.video {
  width: 267px; max-width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video iframe { display: block; width: 100%; height: 476px; border: 0; }

/* ---------- 13. Detalj modela ---------- */
.model-top { padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 5rem); }

.model-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}

.model-info > .badge {
  position: static; display: inline-block; margin-bottom: .8rem;
}
.model-info h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-bottom: .4rem;
}
.model-info__lead { font-size: 1rem; margin-bottom: 1.4rem; }

/* Galerija */
/* Bijela podloga: fotografije sa prozirnom pozadinom i one sa bijelom
   studijskom pozadinom tako izgledaju potpuno isto. */
.gallery__main {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.gallery__main img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: contain;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: .5rem; margin-top: .6rem;
}
.thumb {
  padding: 0; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.thumb:hover { border-color: #c2c2cd; transform: translateY(-2px); }
.thumb[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(192, 32, 37, .18); }

.model-shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fbfbfc, #eeeef2);
  overflow: hidden;
}
.model-shot img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: contain; padding: clamp(1rem, 3vw, 2rem);
}

/* Uže kućice sa ključnim podacima */
.highlights {
  display: flex; flex-wrap: wrap;
  gap: .5rem; margin: 0 0 1.3rem;
}
.highlight {
  flex: 1 1 auto; min-width: 92px;
  padding: .5rem .8rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
}
.highlight dt {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .05rem;
}
.highlight dd { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--ink); line-height: 1.2; }

.colors { display: flex; flex-wrap: wrap; gap: .55rem; margin: .3rem 0 1.9rem; }
.swatch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem .4rem .48rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-size: .86rem; color: var(--ink-2);
}
.swatch i {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .22); flex-shrink: 0;
}

.equip { display: grid; gap: .65rem; margin: 0 0 1.9rem; }
.equip li { position: relative; padding-left: 1.8rem; font-size: .95rem; }
.equip li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--red);
}

.spec-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.1rem, 2.5vw, 1.8rem);
  overflow-x: auto;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: .9rem 1rem; text-align: left;
  border-bottom: 1px solid var(--line-soft); font-size: .95rem;
}
.spec-table caption {
  text-align: left; padding: 0 0 .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.spec-table th { width: 46%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 700; color: var(--ink); }
.spec-table tbody tr { transition: background .2s; }
.spec-table tbody tr:hover { background: var(--bg-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.note {
  margin-top: 1.3rem; padding: .9rem 1.1rem;
  border-left: 3px solid var(--line);
  font-size: .87rem; color: var(--muted);
}
.note a { color: var(--red); font-weight: 600; }

/* ---------- 14. CTA traka ---------- */
.cta {
  position: relative;
  padding: clamp(3rem, 6vw, 4.8rem) 0;
  background:
    radial-gradient(700px 340px at 85% 10%, rgba(192, 32, 37, .16), transparent 68%),
    var(--dark);
  color: #fff;
}
.cta h2, .cta h3 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .68); max-width: 48ch; }
.cta .eyebrow { color: #ff6b74; }
.cta .eyebrow::before { background: var(--red); }
.cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- 15. Kontakt ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.contact-card {
  padding: 1.6rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { border-color: #d5d5de; transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.contact-card__ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: var(--r); background: var(--red-soft); color: var(--red);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-card p, .contact-card a { font-size: .94rem; }
.contact-card a:hover { color: var(--red); }
.contact-card strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 700; }

/* Cijeli red je link: ikonica + tekst + strelica */
.crow {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; margin: 0 -.6rem;
  border-radius: var(--r);
  font-size: .95rem; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.crow + .crow { margin-top: .15rem; }
.crow > svg:first-child { flex-shrink: 0; color: var(--red); }
.crow > span { flex: 1; min-width: 0; line-height: 1.45; }
.crow .out { flex-shrink: 0; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.crow:hover { background: var(--red-soft); color: var(--red); }
.crow:hover .out { color: var(--red); transform: translate(2px, -2px); }

/* Radno vreme kao tabela — bez preloma u prvoj koloni */
.hours-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours-table th, .hours-table td { padding: .18rem 0; text-align: left; vertical-align: top; }
.hours-table th { font-weight: 500; color: var(--muted); white-space: nowrap; padding-right: .8rem; }
.hours-table td { color: var(--ink-2); white-space: nowrap; }

/* Status radnog vremena (uživo) */
.hours-line { margin-bottom: .6rem; line-height: 1.5; }
.hours-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .2rem .68rem .2rem .55rem;
  border-radius: 100px; font-size: .8rem; font-weight: 700;
  white-space: nowrap;
}
.hours-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hours-note { display: block; margin-top: .3rem; font-size: .84rem; color: var(--muted); }

/* Ista informacija u headeru, pored dugmeta „Kontakt" */
.hours-badge {
  margin: 0; text-align: right; line-height: 1.25;
  padding-right: .2rem;
}
.hours-badge .hours-note { margin-top: .15rem; font-size: .74rem; white-space: nowrap; }

.is-open .hours-pill      { background: #e8f6ec; color: #1c6b32; }
.is-open .hours-pill .dot { background: #1fa04a; box-shadow: 0 0 0 0 rgba(31,160,74,.5); animation: pulseDot 2.2s infinite; }
.is-closed .hours-pill      { background: var(--red-soft); color: #8e181c; }
.is-closed .hours-pill .dot { background: var(--red); }
@keyframes pulseDot {
  70%  { box-shadow: 0 0 0 8px rgba(31,160,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,160,74,0); }
}

/* Adresa proizvođača na stranici O nama */
.brand-address {
  margin-top: 1.6rem; padding-left: 1rem;
  border-left: 3px solid var(--red);
  font-style: normal; line-height: 1.8; color: var(--text);
}
.brand-address strong { display: block; color: var(--ink); font-weight: 800; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}

.map-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--bg-soft); min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- 16. Forma ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  font-size: .96rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #adadb9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192, 32, 37, .1);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__err { display: none; font-size: .8rem; color: var(--red); }
.field.has-error .field__err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__ok {
  display: none; padding: .95rem 1.1rem;
  border: 1px solid rgba(192, 32, 37, .3); border-left: 3px solid var(--red);
  border-radius: var(--r); background: var(--red-soft); font-size: .92rem;
}
.form__ok.is-on { display: block; }
.form__ok a { color: var(--red); font-weight: 700; }

/* ---------- 17. O nama ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.stat {
  padding: 1.6rem 1.3rem; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stat b {
  display: block; font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 900;
  color: var(--red); line-height: 1; margin-bottom: .35rem; letter-spacing: -.03em;
}
.stat span { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.feature {
  padding: 1.7rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  border-top: 3px solid var(--red);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature__ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: var(--r); background: var(--red-soft); color: var(--red);
}
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { font-size: .92rem; color: var(--muted); }

.timeline { display: grid; gap: 1.5rem; position: relative; padding-left: 1.8rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem;
  width: 1px; background: linear-gradient(var(--red), var(--line));
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -1.8rem; top: .45em;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red);
}
.timeline h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.timeline p { font-size: .94rem; color: var(--muted); }

.prose p { font-size: 1.02rem; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .62); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3rem); padding-bottom: 2.6rem;
}
.footer-grid h4 {
  color: #fff; font-size: .85rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-grid p, .footer-grid li { font-size: .92rem; line-height: 1.9; }
.footer-grid a { transition: color .2s var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand img { height: 44px; width: auto; }

.socials { display: flex; gap: .55rem; margin-top: 1.2rem; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r);
  color: rgba(255, 255, 255, .8); transition: all .25s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .83rem; color: rgba(255, 255, 255, .45);
}
.credit a {
  color: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.credit a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- 19. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .featurebar__inner { grid-template-columns: repeat(2, 1fr); }
  .featurebar__item:nth-child(2) { border-right: 0; }
  .featurebar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }

  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }

  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed; inset: calc(var(--top-h) + var(--nav-h)) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem var(--gut) 1.4rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 20, 35, .12);
    /* Zatvoreni meni mora u cijelosti izaći iznad ekrana. Pomjeramo ga za
       njegovu visinu PLUS razmak od vrha stranice (crvena traka + header).
       Sa običnih -125% bijeli panel je virio preko crvene trake i hvatao
       dodire na njoj, pa se broj telefona nije mogao kliknuti. */
    transform: translateY(calc(-100% - var(--top-h) - var(--nav-h) - 1rem));
    transition: transform .38s var(--ease);
    max-height: calc(100svh - var(--top-h) - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; }
  .nav__link { padding: .9rem .2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { left: .2rem; right: auto; width: 30px; bottom: .5rem; }

  .nav__actions .btn { display: none; }

  /* Status radnog vremena ostaje vidljiv i na telefonu, pored hamburgera,
     sa istim tekstom kao na desktopu — samo manjim slovima i u dva reda. */
  .hours-badge { text-align: right; max-width: 8.5rem; }
  .hours-badge .hours-pill { padding: .15rem .55rem .15rem .45rem; font-size: .72rem; }
  .hours-badge .hours-pill .dot { width: 6px; height: 6px; }
  .hours-badge .hours-note {
    display: block; margin-top: .1rem;
    font-size: .66rem; line-height: 1.3;
    white-space: normal;
  }
  .nav__actions { gap: .55rem; }

  /* Telefon: uspravna fotografija (9:16). Vozilo je u donjem dijelu slike,
     gornji dio je prazan i tu ide tekst. Slika je poravnata uz dno, pa se
     višak sa vrha (prazna bijela površina) neprimjetno odsijeca. */
  .hero {
    display: block;
    min-height: 0;
    background-image: url("../images/hero-mobile.jpg");
    background-position: center bottom;
    background-size: 100% auto;
    /* rezerviše prostor za motocikl u donjem dijelu slike;
       s rezervom, da tekst ne naliježe na vozilo pri većem fontu */
    padding-bottom: 74vw;
  }
  .hero__copy { max-width: none; padding: clamp(1.8rem, 5vw, 3rem) 0 clamp(1.2rem, 3vw, 1.8rem); }

  .featurebar { margin-top: 0; padding-top: clamp(2rem, 5vw, 3rem); }

  .model-detail, .split { grid-template-columns: 1fr; }
  .model-shot { max-width: 620px; }
  .brand img { height: 38px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .featurebar__inner { grid-template-columns: 1fr; }
  .featurebar__item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .featurebar__item:last-child { border-bottom: 0; }
  .featurebar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Tri podatka ostaju u jednom redu i na najužim ekranima */
  .card__specs { grid-template-columns: repeat(3, 1fr); gap: .35rem; }
  .card__specs dt { font-size: .6rem; letter-spacing: .08em; }
  .card__specs dd { font-size: .88rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .btn, .btn-row { width: 100%; }
  .hero__socials { width: auto; }
  .section-head { align-items: flex-start; }
  .spec-table th, .spec-table td { padding: .78rem .5rem; font-size: .89rem; }
  .spec-table th { width: 50%; }
}

@media (max-width: 400px) {
  .brand img { height: 28px; }
}

/* ---------- 21. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta, .filters { display: none; }
  body { color: #000; }
}
