/* ===== ŠTEF vučna služba — base ===== */
:root {
  --red: #d11f1f;
  --red-light: #ff4d4d;
  --black: #111315;
  --hero-black: #16181b;
  --ink: #1a1c1f;
  --muted: #5a6b7b;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --border: #e6e8ea;
  --maxw: 1100px;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(0,0,0,.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { font-size: 12px; letter-spacing: 3px; font-weight: 800; color: var(--red); text-transform: uppercase; }
.section h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 10px 0 8px; }
.section .lead { color: var(--muted); max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 2px solid transparent;
  padding: 14px 22px; font-size: 16px; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--call { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(209,31,31,.45); }
.btn--call:hover { background: #e02525; }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand__name { font-weight: 900; font-size: 20px; letter-spacing: 1px; }
.brand__bar { width: 6px; height: 20px; background: var(--red); border-radius: 2px; }
.brand__sub { font-size: 13px; color: #cfcfcf; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: #e8e8e8; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .nav__call { color: #fff; padding: 9px 14px; font-size: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s ease; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px 20px 18px;
    transform: translateY(-130%); transition: transform .25s ease; z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #2a2d31; }
  .nav .nav__call { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; min-height: 540px; color: #fff; display: flex; align-items: center; }
.hero__frame { position: absolute; inset: 0; background-size: cover; background-position: center 42%; }
.hero__frame--night {
  background-image: url('images/truck-night-src.jpg');
  filter: brightness(.28) saturate(.5) hue-rotate(200deg);
  will-change: opacity;
  animation: heroNight 9s ease-in-out 1 forwards;
}
.hero__frame--day { background-image: url('images/truck-rescue.jpg'); opacity: 0; will-change: opacity; animation: heroDay 9s ease-in-out 1 forwards; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,12,.88) 0%, rgba(8,9,12,.55) 42%, rgba(8,9,12,.10) 78%, rgba(8,9,12,.32) 100%); }
.hero__hazard { position: absolute; left: 50%; top: 28%; width: 14px; height: 14px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 22px 8px rgba(255,59,59,.7); animation: heroHazBlink 1.1s steps(1,end) 4, heroHazFade 9s ease-in-out 1 forwards; }
.hero__copy { position: relative; z-index: 2; padding: 56px 20px; }
.hero__eyebrow { color: var(--red-light); }
.hero__title { margin: 14px 0 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.04; font-weight: 900; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero__title span { display: block; }
.hero__l2 { color: var(--red-light); opacity: 0; animation: heroL2 9s ease-in-out 1 forwards; }
.hero__mood { font-style: italic; color: #cfd3d8; max-width: 430px; margin: 16px 0 0; animation: heroMood 9s ease-in-out 1 forwards; }
.hero__reassure { color: #e9e9e9; max-width: 470px; margin: 10px 0 0; opacity: 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); animation: heroReassure 9s ease-in-out 1 forwards; }
.hero__cta { margin-top: 22px; opacity: 0; animation: heroCta 9s ease-in-out 1 forwards; }

@keyframes heroNight   { 0%{opacity:1} 38%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
@keyframes heroDay     { 0%{opacity:0} 38%{opacity:0} 50%{opacity:1} 100%{opacity:1} }
@keyframes heroHazFade { 0%{opacity:1} 38%{opacity:1} 48%{opacity:0} 100%{opacity:0} }
@keyframes heroHazBlink{ 0%{transform:scale(1)} 50%{transform:scale(.35)} }
@keyframes heroL2       { 0%{opacity:0} 46%{opacity:0} 56%{opacity:1} 100%{opacity:1} }
@keyframes heroMood     { 0%{opacity:0} 14%{opacity:1} 40%{opacity:1} 48%{opacity:0} 100%{opacity:0} }
@keyframes heroReassure { 0%{opacity:0} 54%{opacity:0} 62%{opacity:1} 100%{opacity:1} }
@keyframes heroCta      { 0%{opacity:0} 58%{opacity:0} 66%{opacity:1} 100%{opacity:1} }

/* Reduced motion: static rescue frame, full slogan, no animation */
@media (prefers-reduced-motion: reduce) {
  .hero__frame--night, .hero__hazard, .hero__mood { display: none; }
  .hero__frame--day { opacity: 1; animation: none; }
  .hero__l2, .hero__reassure, .hero__cta { opacity: 1; animation: none; }
}

/* ===== Hero: STATIC mode (cinematic intro temporarily disabled) =====
   Shows only the main rescue photo + full slogan + CTA.
   To re-enable the dark→bright transition later (once real night photos
   are ready), delete this whole block — the animation rules above take over. */
.hero__frame--night,
.hero__hazard,
.hero__mood { display: none; }
.hero__frame--day { opacity: 1; animation: none; }
.hero__l2,
.hero__reassure,
.hero__cta { opacity: 1; animation: none; }

/* ===== Trust strip ===== */
.trust { background: var(--red); color: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-around; padding: 14px 20px; font-weight: 800; text-align: center; }

/* ===== Cards / services ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card__icon { font-size: 34px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.about__text h2 { margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .ticks { grid-template-columns: 1fr; } }

/* ===== Area ===== */
.area { display: flex; align-items: center; gap: 24px; }
.area__badge { font-size: 64px; line-height: 1; }
@media (max-width: 760px) { .area { flex-direction: column; text-align: center; gap: 12px; } }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.contact__phone { display: block; font-size: clamp(34px, 7vw, 52px); font-weight: 900; color: var(--red); text-decoration: none; letter-spacing: 1px; }
.contact__call .btn { margin-top: 16px; }
.contact__addr { margin-top: 18px; color: var(--ink); font-weight: 600; }
.contact__map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: #cfcfcf; margin-top: 0; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; padding: 36px 20px; flex-wrap: wrap; }
.site-footer .brand__name { color: #fff; }
.site-footer__legal { margin: 8px 0 0; font-size: 14px; line-height: 1.7; }
.site-footer__contact { display: flex; flex-direction: column; gap: 6px; }
.site-footer__contact a { color: #fff; font-weight: 800; text-decoration: none; font-size: 18px; }
.site-footer__bar { border-top: 1px solid #2a2d31; text-align: center; padding: 14px; font-size: 13px; }

/* ===== Fixed mobile call bar ===== */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 900; text-decoration: none;
  padding: 15px; font-size: 17px; box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 60px; }
}
