/* SARA TRANS d.o.o. - Brand Red & Industrial Logistics Design System */
:root {
  --brand-red: #dc1e25;
  --brand-red-dark: #b3151b;
  --brand-red-light: #fee2e2;
  --dark-950: #0b0f17;
  --dark-900: #111827;
  --dark-800: #1f2937;
  --slate-700: #374151;
  --slate-600: #4b5563;
  --slate-500: #6b7280;
  --slate-200: #e5e7eb;
  --slate-100: #f3f4f6;
  --surface: #f9fafb;
  --white: #ffffff;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.16);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  color: var(--dark-900);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--slate-700);
}

.nav-links a:hover { color: var(--brand-red); transition: color var(--transition); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-switcher {
  display: flex;
  background: var(--slate-100);
  border-radius: 999px;
  padding: 3px;
}

.lang-switcher a {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-600);
  transition: all var(--transition);
}

.lang-switcher a.active {
  background: var(--brand-red);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(220, 30, 37, 0.28);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  background: rgba(220, 30, 37, 0.14);
}

.btn-dark { background: var(--dark-900); color: var(--white); }
.btn-dark:hover { background: var(--dark-800); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

.mobile-toggle {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--dark-900);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  font-weight: 600;
}

.mobile-drawer.open { display: flex; }

/* Hero with Real Truck Photo */
.hero {
  position: relative;
  background: linear-gradient(95deg, rgba(11, 15, 23, 0.92) 0%, rgba(11, 15, 23, 0.75) 55%, rgba(11, 15, 23, 0.45) 100%),
              url('/pictures/slika_kamion2_saratrans.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(220, 30, 37, 0.22);
  border: 1px solid rgba(220, 30, 37, 0.55);
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  max-width: 720px;
}

.hero p {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin: 0 0 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  backdrop-filter: blur(8px);
}

.stat-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1.15;
}

.stat-lbl {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.25rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.section-header { max-width: 720px; margin-bottom: 2.5rem; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  margin-bottom: 0.45rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-header p { color: var(--slate-600); margin: 0; }

/* Grids & Cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(220, 30, 37, 0.45);
}

.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card-img { width: 100%; height: 240px; object-fit: cover; }
.photo-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.18rem; margin: 0 0 0.6rem; }
.card p { margin: 0; color: var(--slate-600); font-size: 0.94rem; }

.contact-strip {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.45rem;
  color: var(--slate-700);
  font-size: 0.94rem;
}

.check-list li::before {
  content: '✓ ';
  color: var(--brand-red);
  font-weight: 800;
}

/* Price Table (Cjenik trgovine) */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.93rem;
}

.price-table th {
  background: var(--dark-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody tr:hover { background: var(--slate-100); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-current { font-weight: 800; font-size: 1.05rem; color: var(--dark-900); }
.price-anchor { color: var(--slate-500); font-weight: 600; }

.diff-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.diff-same { background: var(--slate-100); color: var(--slate-600); }
.diff-up { background: var(--brand-red-light); color: var(--brand-red-dark); }
.diff-down { background: var(--green-100); color: var(--green-600); }

.price-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Quote Form */
.quote-box {
  background: var(--dark-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-grid { display: grid; gap: 1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.88);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand-red);
  border-color: transparent;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-feedback { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-feedback.success { display: block; background: rgba(22, 163, 74, 0.2); border: 1px solid #4ade80; color: #bbf7d0; }
.form-feedback.error { display: block; background: rgba(220, 30, 37, 0.25); border: 1px solid #f87171; color: #fecaca; }

/* FAQ */
.faq-list { display: grid; gap: 0.85rem; }
.faq-item { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; }
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.25rem; color: var(--slate-600); font-size: 0.94rem; }
.faq-item.open .faq-panel { max-height: 300px; padding-bottom: 1.15rem; }

/* Footer */
.site-footer {
  background: var(--dark-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.84rem; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Facility Photo Carousel */
.facility-carousel {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  background: var(--dark-900);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 360px;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(11, 15, 23, 0.88));
  color: var(--white);
  font-weight: 700;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: background var(--transition);
}
.carousel-btn:hover { background: var(--brand-red); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

/* Modern Partner Logos Marquee Carousel */
.partners-band {
  padding: 2.75rem 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}
.partners-title {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}
.logo-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-width: 100%;
  gap: 3rem;
  padding: 0 1.5rem;
  animation: marqueeScroll 26s linear infinite;
  flex-shrink: 0;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; }
  html { scroll-behavior: auto; }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-full { grid-column: 1 / -1; }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .quote-box { padding: 3rem; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
