/* AutoKodiranje.rs — crveno/crno/belo, tema prati podesavanje uredjaja */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6;
  --color-surface: #ffffff;
  --color-text: #121212;
  --color-text-muted: #545454;
  --color-border: #e6e6e6;
  --color-red: #cc0e2b;
  --color-red-dark: #9c0a20;
  --color-red-ink: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --max-width: 1140px;
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #141414;
    --color-surface: #161616;
    --color-text: #f2f2f2;
    --color-text-muted: #a8a8a8;
    --color-border: #2a2a2a;
    --color-red: #ff2d47;
    --color-red-dark: #ff5468;
    --color-red-ink: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover {
  text-decoration: none;
}
.logo .logo-dot {
  color: var(--color-red);
}
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--color-red);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--color-red);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-red);
}
.btn-outline:hover {
  background: var(--color-red);
  color: #fff;
  text-decoration: none;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-link {
  font-weight: 700;
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before {
  content: "";
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  content: "";
  position: absolute;
  top: 6px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 55ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero-trust strong {
  color: var(--color-text);
  display: block;
  font-size: 1.4rem;
}
.hero-visual {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-visual h2 {
  margin-top: 0;
  font-size: 1.05rem;
}
.hero-visual ul {
  margin: 0;
  padding-left: 18px;
}
.hero-visual li {
  margin-bottom: 10px;
}

/* Sections */
section {
  padding: 56px 0;
}
.section-head {
  max-width: 66ch;
  margin: 0 0 32px;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}
.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Grid / cards */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card {
  color: inherit;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-red);
  text-decoration: none;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-red) 12%, transparent);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  min-height: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong {
  display: block;
  margin-bottom: 2px;
}
.steps span {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* Vehicle brand chips */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--color-surface);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
details.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  color: var(--color-red);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
}
details.faq-item[open] summary::after {
  content: "\2212";
}
details.faq-item p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 18px 0 0;
}
.breadcrumbs a {
  color: var(--color-text-muted);
}
.breadcrumbs a:hover {
  color: var(--color-red);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 44px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  color: var(--color-text-muted);
  max-width: 70ch;
  font-size: 1.05rem;
  margin: 0;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}
.prose ul {
  color: var(--color-text-muted);
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
}

/* CTA band */
.cta-band {
  background: var(--color-red);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.cta-band p {
  margin: 0;
  opacity: 0.92;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-red);
  border-color: #fff;
}
.cta-band .btn-primary:hover {
  background: #f2f2f2;
}
.cta-band .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-band .btn-outline:hover {
  background: #fff;
  color: var(--color-red);
}

/* Related services */
.related-list {
  display: grid;
  gap: 10px;
}
.related-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-weight: 600;
  background: var(--color-surface);
}
.related-list a:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  text-decoration: none;
}

/* Testimonials */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial p {
  margin: 0 0 14px;
  font-style: italic;
}
.testimonial .stars {
  color: var(--color-red);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Blog */
.blog-card time {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.blog-post .prose {
  max-width: 72ch;
}
.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-grid a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-grid a:hover {
  color: var(--color-red);
}
.footer-about p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 34ch;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

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

/* Two-column split layouts (service page, cenovnik, kontakt) */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
  min-width: 0;
}
.split > * {
  min-width: 0;
}
.split-service {
  grid-template-columns: 2fr 1fr;
}
.split-pricing {
  grid-template-columns: 1.1fr 0.9fr;
}
.split-contact {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.table-wrap {
  overflow-x: auto;
}
.table-wrap table {
  min-width: 420px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split-service,
  .split-pricing,
  .split-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    display: none;
    gap: 16px;
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  nav.main-nav ul a {
    display: block;
    padding: 10px 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta .btn-outline-text {
    display: none;
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
