/* ============================================================
   Autolimarska radionica V.S. — Rijeka
   Vlastiti dizajn: tamna tehnička paleta + sigurnosno žuta
   (boje preuzete iz stvarnog izgleda radionice i vučnog vozila)
   ============================================================ */

:root {
  --bg: #101318;
  --bg-2: #161b22;
  --bg-3: #1c222b;
  --line: #262e39;
  --text: #e8ecf1;
  --muted: #9aa7b5;
  --accent: #ffc107;
  --accent-2: #ff9f0a;
  --ok: #2ecc71;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --header-h: 74px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 19, 24, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(13, 16, 21, .96); box-shadow: 0 8px 30px rgba(0,0,0,.4); }

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .5px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 193, 7, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; letter-spacing: .2px; }
.brand-text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; }

.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.header-phone:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(78deg, rgba(10, 13, 17, .94) 0%, rgba(10, 13, 17, .72) 42%, rgba(10, 13, 17, .28) 100%),
    linear-gradient(0deg, rgba(10, 13, 17, .82) 0%, transparent 42%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 48px) 0 90px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.5px;
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: #c6cfd9;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  box-shadow: 0 10px 30px rgba(255, 193, 7, .3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 193, 7, .42); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--text); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.1); }
.btn-light { border-color: rgba(255,255,255,.5); }
.btn-block { width: 100%; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: #d4dbe3; }
.hero-points svg { color: var(--accent); }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 28px; height: 46px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 9px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 800;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2, .workshop-text h2, .rights-text h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -.4px;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Why cards ---------- */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(255, 193, 7, .45); background: var(--bg-3); }
.why-num {
  position: absolute; top: 16px; right: 20px;
  font-size: 2.6rem; font-weight: 900;
  color: rgba(255, 255, 255, .05);
  letter-spacing: -1px;
}
.why-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(255, 193, 7, .12);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.2px; }
.why-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(255, 193, 7, .4); box-shadow: var(--shadow); }
.service-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--bg-3);
  color: var(--accent);
  border-radius: 13px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -.2px; }
.service-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Workshop ---------- */
.workshop { background: var(--bg); }
.workshop-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.workshop-media { position: relative; }
.workshop-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.workshop-badge {
  position: absolute; top: -18px; left: -14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(255, 193, 7, .35);
  transform: rotate(-3deg);
}
.workshop-text p { color: var(--muted); margin-bottom: 14px; font-size: .98rem; }
.workshop-list { margin: 20px 0 28px; display: grid; gap: 10px; }
.workshop-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.workshop-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Perks ---------- */
.perks { background: linear-gradient(160deg, #1a1506 0%, var(--bg-2) 55%, var(--bg-2) 100%); border-block: 1px solid var(--line); }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.perk-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.perk-card:hover { transform: translateY(-5px); border-color: rgba(255, 193, 7, .5); }
.perk-value {
  display: block;
  font-size: 2.1rem; font-weight: 900;
  letter-spacing: -1px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.perk-value small { font-size: 1.2rem; }
.perk-card h3 { font-size: .98rem; margin-bottom: 6px; }
.perk-card p { font-size: .82rem; color: var(--muted); }
.perk-note { margin-top: 22px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Rights ---------- */
.rights { background: var(--bg); }
.rights-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.rights-text p { color: var(--muted); margin-bottom: 14px; }
.rights-text .btn { margin-top: 8px; }
.rights-quote {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.rights-quote blockquote p { font-size: 1.02rem; font-style: italic; color: #d7dee6; }
.rights-quote footer { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1.08); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: .84rem; font-weight: 600;
  background: linear-gradient(0deg, rgba(8, 10, 14, .9), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: grid; gap: 16px; }
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 {
  font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-card address { font-style: normal; color: #d7dee6; line-height: 1.7; }
.contact-card p { color: #d7dee6; }
.contact-card p a { font-weight: 700; font-size: 1.12rem; transition: color .2s ease; }
.contact-card p a:hover { color: var(--accent); }
.contact-owner { margin-top: 10px; font-size: .82rem !important; color: var(--muted) !important; }
.muted { color: var(--muted); font-size: .85rem; font-weight: 400; }
.hours { display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: .95rem; }
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours span { color: var(--muted); }
.hours strong.closed { color: var(--accent-2); }
.contact-links a { display: block; padding: 6px 0; color: #d7dee6; font-weight: 600; transition: color .2s ease, padding-left .2s ease; }
.contact-links a:hover { color: var(--accent); padding-left: 6px; }

.contact-right { display: grid; gap: 18px; }
.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form-wrap h3 { font-size: 1.15rem; margin-bottom: 4px; }
.form-hint { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.cta-phones { display: grid; gap: 10px; margin-top: 14px; }
.cta-phones a {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.cta-phones a:hover { border-color: var(--accent); transform: translateX(4px); }
.cta-phones span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: 1.2px; }
.cta-phones strong { font-size: 1.05rem; }
.contact-form { display: grid; gap: 6px; }
.contact-form label { font-size: .84rem; font-weight: 600; color: var(--muted); margin-top: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .15);
}
.contact-form .btn { margin-top: 18px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c0f13;
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.footer-brand p { color: var(--muted); font-size: .9rem; text-align: left; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.footer-links a { color: var(--muted); font-size: .9rem; font-weight: 600; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: #5d6874; font-size: .8rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 14, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(92vw, 1000px); max-height: 84vh; }
.lightbox-figure img {
  max-width: 100%; max-height: 76vh;
  border-radius: var(--radius);
  margin-inline: auto;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox-figure figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.lightbox button {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lightbox button:hover { background: var(--accent); color: #14171c; border-color: var(--accent); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 16, 21, .98);
    border-bottom: 1px solid var(--line);
    padding: 14px 6vw 22px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    margin-inline: 0;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .workshop-inner { grid-template-columns: 1fr; gap: 40px; }
  .rights-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-content { padding-top: calc(var(--header-h) + 30px); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text small { display: none; }
  .hero h1 { font-size: 2rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
