:root {
  --bg: #f3ede2;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: #fff8ee;
  --text: #171512;
  --muted: #61574c;
  --accent: #c64d1c;
  --accent-dark: #8f3514;
  --gold: #d9a61f;
  --line: rgba(23, 21, 18, 0.1);
  --shadow: 0 25px 70px rgba(58, 32, 10, 0.16);
  --instagram: #e1306c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 166, 31, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(198, 77, 28, 0.14), transparent 24%),
    linear-gradient(180deg, #faf5ed 0%, #efe2cf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.hero,
.services,
.coverage,
.gallery,
.contact,
.instagram-section,
.about-section {
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(115deg, rgba(255, 248, 235, 0.96) 0%, rgba(255, 248, 235, 0.84) 46%, rgba(23, 21, 18, 0.58) 100%),
    url("slike/slep-smart-fortwo-bocni.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 166, 31, 0.28), transparent 70%);
}

.topbar,
.hero-content,
.info-strip,
.service-grid,
.dual-service,
.coverage,
.gallery-grid,
.contact-panel,
.contact-cta {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.brand p,
.brand span,
.eyebrow,
.lead,
.hero-points,
.service-card p,
.coverage-copy p,
.contact-label,
.status-row span,
.hero-card p,
.service-tag {
  margin: 0;
}

.brand p {
  font-weight: 700;
}

.brand span,
.lead,
.hero-points,
.service-card p,
.coverage-copy p,
.contact-label,
.status-row span {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.phone-link,
.btn,
.contact-value {
  text-decoration: none;
}

.nav-links a {
  color: rgba(23, 21, 18, 0.82);
  font-weight: 600;
}

.phone-link {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.topbar-call {
  box-shadow: 0 16px 30px rgba(198, 77, 28, 0.28);
}

.hero-content {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  font-family: "DM Serif Display", serif;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 10ch;
}

.lead {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover,
.phone-link:hover,
.nav-links a:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px rgba(198, 77, 28, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* Instagram dugme */
.btn-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 16px 30px rgba(225, 48, 108, 0.3);
}

.hero-points {
  margin-top: 28px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.hero-card,
.service-card,
.info-strip article,
.contact-panel,
.gallery-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 28px;
  border-radius: 28px;
}

.card-label,
.service-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-card h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-card p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.status-row strong {
  text-align: right;
}

section {
  margin-top: 28px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-strip article,
.service-card,
.contact-panel,
.gallery-card {
  border-radius: 24px;
}

.info-strip article {
  padding: 24px;
}

.info-strip strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.services,
.coverage,
.gallery,
.contact,
.instagram-section,
.about-section {
  padding: 34px 24px;
  background: rgba(255, 250, 243, 0.82);
}

.section-heading h2,
.coverage-copy h2,
.dual-content h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.service-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin: 12px 0 14px;
}

.service-card p,
.coverage-copy p,
.contact-label,
.dual-content p {
  line-height: 1.6;
}

.dual-service {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dual-card {
  min-height: 360px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dual-card-tow {
  background: url("slike/slep-smart-fortwo-bocni.jpg") center/cover no-repeat;
}

.dual-card-van {
  background: url("slike/kombi-fiat-ducato-bocni.jpg") center/cover no-repeat;
}

.dual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 18, 0.08), rgba(23, 21, 18, 0.74));
}

.dual-content {
  position: absolute;
  inset: auto 24px 24px 24px;
  color: #fff;
}

.dual-content .eyebrow,
.dual-content p {
  color: rgba(255, 255, 255, 0.86);
}

.coverage {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coverage-list span {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-weight: 700;
}

/* ===================== GALERIJA ===================== */
.gallery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.gallery-intro {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(247, 237, 222, 0.9));
}

.gallery-kicker {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.gallery-note h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.gallery-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-card {
  overflow: hidden;
  min-height: 240px;
  position: relative;
  background: #e9dfd1;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 18, 0.04), rgba(23, 21, 18, 0.78));
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(198, 77, 28, 0.55);
  outline-offset: 4px;
}

.gallery-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
}

.gallery-card figcaption strong {
  display: block;
  font-size: 1.08rem;
}

.gallery-card figcaption p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(217, 166, 31, 0.9);
  color: #171512;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.gallery-card-featured figcaption strong {
  font-size: 1.35rem;
}

/* ===================== INSTAGRAM SEKCIJA ===================== */
.instagram-section {
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.95), rgba(255, 237, 220, 0.9));
}

.instagram-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.instagram-copy h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.instagram-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* QR kartica */
.instagram-qr-card {
  width: 220px;
  flex-shrink: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-label-top {
  margin-bottom: 14px;
}

.qr-image-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--instagram);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.qr-handle strong {
  font-weight: 800;
}

.qr-handle svg {
  flex-shrink: 0;
}

.qr-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ===================== O NAMA / APR ===================== */
.about-section {
  background: rgba(255, 250, 243, 0.82);
}

.about-inner {}

.apr-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  overflow: hidden;
}

.apr-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.apr-row:last-child {
  border-bottom: none;
}

.apr-row-full {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.apr-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.apr-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* Placeholder stil — žuti highlight za polja koja treba popuniti */
.apr-placeholder {
  color: #8f6800;
  background: rgba(217, 166, 31, 0.14);
  border: 1px dashed rgba(217, 166, 31, 0.6);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.apr-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(198, 77, 28, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apr-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(198, 77, 28, 0.35);
}

.apr-download svg {
  flex-shrink: 0;
}


  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(217, 166, 31, 0.1);
  border: 1px dashed rgba(217, 166, 31, 0.5);
  color: #8f6800;
  font-weight: 600;
  font-size: 0.9rem;
}

.apr-doc-placeholder svg {
  flex-shrink: 0;
  color: var(--gold);
}

.apr-disclaimer {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.apr-disclaimer a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ===================== KONTAKT ===================== */
.contact-panel {
  margin-top: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

.contact-value {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
}

.contact-cta {
  margin-top: 22px;
}

.contact-cta-inline {
  margin-top: 18px;
}

.contact-cta-inline .btn {
  width: auto;
}

.map-card {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 18px;
  align-items: stretch;
}

.map-copy,
.map-frame {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}

.map-copy {
  padding: 24px;
}

.map-copy h3 {
  margin: 10px 0 12px;
  font-size: 1.7rem;
}

.map-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.map-frame {
  min-height: 320px;
}

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

/* ===================== LIGHTBOX ===================== */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  width: min(960px, 100%);
  max-height: calc(100vh - 64px);
  display: grid;
  gap: 14px;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #fff;
}

.lightbox-caption strong {
  font-size: 1.05rem;
}

.lightbox-caption span {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-content,
  .coverage,
  .service-grid,
  .info-strip,
  .contact-panel,
  .map-card,
  .gallery-intro,
  .gallery-grid,
  .dual-service,
  .instagram-inner,
  .apr-row {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-row: auto;
  }

  .nav-links {
    display: none;
  }

  .topbar {
    align-items: flex-start;
  }

  .instagram-qr-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 10px;
    padding-bottom: 28px;
  }

  .hero,
  .services,
  .coverage,
  .gallery,
  .contact,
  .instagram-section,
  .about-section {
    padding: 20px 18px;
  }

  .hero-content {
    margin-top: 34px;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
  }

  h1 {
    max-width: 11ch;
  }

  .btn,
  .phone-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-stage {
    gap: 10px;
  }

  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 20px;
    z-index: 1;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

/* ===================== HAMBURGER ===================== */
.topbar-right { display: flex; align-items: center; gap: 12px; }

.hb-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hb-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.hb-btn.hb-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb-btn.hb-open span:nth-child(2) { opacity: 0; }
.hb-btn.hb-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilni meni dropdown */
.mob-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(23, 21, 18, 0.55);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
}
.mob-menu.mob-open {
  display: flex;
}
.mob-menu-inner {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(58,32,10,.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(300px, calc(100vw - 32px));
  margin-top: 80px;
}
.mob-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}
.mob-menu a:hover,
.mob-menu a:active { background: rgba(198,77,28,.09); }
.mob-call {
  margin-top: 8px !important;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 999px !important;
}
.mob-call:hover { background: var(--accent-dark) !important; }

/* Logo bez crne pozadine */
.brand-mark {
  width: 90px !important;
  height: 90px !important;
  background: transparent !important;
}
.brand-mark img { background: transparent !important; }

/* BACK TO TOP */
.btt-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(198,77,28,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 200;
}
.btt-btn.btt-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btt-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

@media (max-width: 980px) {
  .hb-btn      { display: flex; }
  .topbar-call { display: none; }
  .nav-links   { display: none !important; }
}

@media (min-width: 981px) {
  .btt-btn { display: none; }
}

@media (max-width: 480px) {
  .brand-mark { width: 64px !important; height: 64px !important; }
  .brand p { font-size: .85rem; white-space: nowrap; }
  .brand span { font-size: .72rem; }
}
