/* =========================================================================
   SZR SPRINTER — DESIGN SYSTEM
   Paleta:    navy   #0A2659  (primarna, industrijska pouzdanost)
              navy-2 #123A82  (gradijent / hover)
              red    #D81E32  (akcenat — "sprint" traka iz loga)
              paper  #F6F6F3  (pozadina)
              ink    #14171C  (tekst)
              steel  #6B7480  (sekundarni tekst)
              line   #E3E3DD  (linije/border)
   Tipografija: Oswald (display, condensed/atletski) + Inter (telo teksta)
   Signature element: dijagonalna "sprint traka" — eho crvene trake sa loga,
   korišćena kao razdelnik, akcenat na karticama i podvlaka na hover-u.
   ========================================================================= */

:root {
  --navy: #0a2659;
  --navy-2: #123a82;
  --navy-deep: #071a40;
  --red: #d81e32;
  --red-dark: #ad1626;
  --paper: #f6f6f3;
  --paper-2: #ececE6;
  --ink: #14171c;
  --steel: #6b7480;
  --line: #e3e3dd;
  --white: #ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 10px 30px rgba(10, 38, 89, 0.08);
  --shadow-strong: 0 20px 45px rgba(10, 38, 89, 0.18);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.12;
}

p { margin: 0 0 1em; }

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

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Skip link za pristupačnost */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Eyebrow + sprint stripe (signature element) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 10px;
  background: var(--red);
  clip-path: polygon(0 100%, 25% 0, 100% 0, 75% 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--steel); font-size: 17px; }

/* divider traka koja se koristi kao razdelnik sekcija */
.stripe-divider {
  height: 14px;
  width: 100%;
  background: repeating-linear-gradient(
    -32deg,
    var(--navy) 0 46px,
    var(--red) 46px 64px,
    var(--navy) 64px 96px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: inherit;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-outline.on-light {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline.on-light:hover { border-color: var(--red); color: var(--red); }

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 38, 89, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text span {
  font-size: 11px;
  color: #c7d1ea;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  color: #e7ebf6;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: #fff; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--red);
  clip-path: polygon(0 100%, 30% 0, 100% 0, 70% 100%);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  display: none;
}

.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: #fff;
}

@media (min-width: 860px) {
  .header-phone { display: inline; }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 80% -10%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 0;
}

.hero-speedlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -28deg,
    rgba(255,255,255,0.045) 0 2px,
    transparent 2px 46px
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.4vw, 68px);
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-lede {
  font-size: 19px;
  color: #cfd8ee;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 34px;
  box-shadow: var(--shadow-strong);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.hero-panel .runner-badge {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  color: var(--ink);
}
.hero-panel-caption strong { font-family: var(--font-display); text-transform: uppercase; color: var(--navy); }
.hero-panel-caption span { color: var(--steel); font-size: 14px; }

.stat-bar {
  position: relative;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 28px 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stat-item:first-child { border-left: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
  letter-spacing: 0.02em;
}
.stat-value .accent { color: var(--red); }
.stat-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aeb9d6;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .stat-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
}

/* ---------- Intro / values ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}
.intro-text p { font-size: 17px; color: var(--steel); }

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.value-item {
  border-left: 3px solid var(--red);
  padding-left: 18px;
}
.value-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.value-item p {
  color: var(--steel);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .value-list { grid-template-columns: 1fr; }
}

/* ---------- Product cards ---------- */
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 64px; height: 64px;
  background: var(--navy);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: background var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--red);
}
.product-card:hover::before { background: var(--red); }

.product-card h3 { font-size: 21px; margin-bottom: 10px; }
.product-card p { color: var(--steel); font-size: 15px; margin-bottom: 18px; }

.card-link {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.product-card:hover .card-link { color: var(--red); }
.product-card:hover .card-link::after { transform: translateX(4px); }

@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.center-cta { text-align: center; margin-top: 48px; }

/* ---------- Process steps ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-item {
  position: relative;
  padding: 0 18px;
  border-left: 1px dashed var(--line);
}
.process-item:first-child { border-left: none; }
.process-step {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--line);
  -webkit-text-stroke: 1px var(--navy);
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.process-item h4 { font-size: 16px; margin-bottom: 8px; }
.process-item p { font-size: 14px; color: var(--steel); margin: 0; }

@media (max-width: 980px) {
  .process-list { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .process-item { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: var(--red);
  opacity: 0.18;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfd8ee; margin: 0; }

/* ---------- About page extras ---------- */
.timeline {
  display: grid;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--red);
}
.timeline-item h4 { margin-bottom: 6px; font-size: 17px; }
.timeline-item p { margin: 0; color: var(--steel); font-size: 15px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.media-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  background:
    repeating-linear-gradient(-32deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.media-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

/* ---------- Product detail page ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
.detail-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 8px;
  background: var(--red);
  clip-path: polygon(0 100%, 35% 0, 100% 0, 65% 100%);
}
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.breadcrumb {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { margin: 0; color: var(--steel); font-size: 15px; }

.map-frame {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--red);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 130px; }

.alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 22px;
  font-size: 15px;
}
.alert-success { background: #e6f4ea; color: #1e6b34; border: 1px solid #b9e2c5; }
.alert-error { background: #fbe9eb; color: var(--red-dark); border: 1px solid #f3c4cb; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #cfd8ee;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col li {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-about { max-width: none; }
}
.footer-brand .brand-text strong { color: #fff; }
.footer-about { margin-top: 14px; font-size: 14.5px; max-width: 320px; color: #aeb9d6; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aeb9d6; font-size: 14.5px; transition: color var(--transition); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8b97b8;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--steel); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}
.error-page .eyebrow::before { display: none; }
.error-code {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--navy);
  line-height: 1;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
