/* Auto Servis Šibila — modern rebuild */

:root {
  --charcoal: #1d1d1f;
  --charcoal-soft: #2a2a2d;
  --accent: #59adda;
  --accent-dark: #3f8fb8;
  --bg-section: #f7f7f8;
  --text: #333333;
  --text-muted: #6b6b6f;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.6em;
}

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

.section {
  padding: 64px 0;
}

.section--muted {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: #cfcfd2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.call-button:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide--1 {
  background-image: url("../images/hero-1.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(20, 20, 22, 0.72), rgba(20, 20, 22, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  color: #d8d8da;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Cards (home: O nama / Sto nudimo / Garancija) ---------- */

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

.card {
  background: var(--white);
  border: 1px solid #ececee;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-bar {
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery-grid .gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Video ---------- */

.video-wrap {
  position: relative;
  padding-bottom: 40.8%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Subpage header ---------- */

.page-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 46px 0;
}

.page-header h1 {
  color: var(--white);
  margin: 0;
  font-size: 1.9rem;
}

.breadcrumb {
  color: #a9a9ac;
  font-size: 0.85rem;
  margin-top: 8px;
}

.breadcrumb a {
  color: #a9a9ac;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------- Content layouts ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col--stretch {
  align-items: stretch;
}

.two-col img {
  border-radius: var(--radius);
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.two-col-text p {
  color: var(--text);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
}

.service-list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.contact-card {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-photo {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto 24px;
}

.contact-card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-card li strong {
  color: var(--charcoal);
  margin-right: 6px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #d3d3d5;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #b7b7ba;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: #8f8f92;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col,
  .two-col-text {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-soft);
    display: none;
    padding: 8px 16px 18px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero-inner {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

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

  .section-title {
    font-size: 1.6rem;
  }
}
