/* ==========================================================================
   Транскар ООД — custom stylesheet
   (Tailwind utility classes handle layout; this file covers everything
   Tailwind's utilities can't: brand fonts, the hazard-stripe motif,
   the hero height-ruler, and load-in animation.)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

.font-display {
  font-family: 'Oswald', sans-serif;
}

/* Signature motif: branded hazard stripe, built only from the brand's
   own two colors (graphite + signal orange) so it reads as "safety tape"
   without introducing a third accent color. */
.hazard-stripe {
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    #ea580c 0, #ea580c 18px,
    #111827 18px, #111827 36px
  );
}

/* Height-ruler signature element in the hero: a live 0-30m scale that
   makes "up to 30 meters" the visual thesis of the page. */
.ruler-track {
  position: relative;
  width: 4px;
  background: linear-gradient(to top, rgba(234, 88, 12, 0.15), rgba(234, 88, 12, 0.55));
  border-radius: 9999px;
}

.ruler-tick {
  position: absolute;
  right: 100%;
  transform: translateY(50%);
  padding-right: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
}

.ruler-tick::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: #475569;
}

.ruler-indicator {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, 50%);
  border-radius: 9999px;
  background: #ea580c;
  box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.2), 0 0 24px rgba(234, 88, 12, 0.6);
  animation: climb 4s cubic-bezier(.45, 0, .15, 1) infinite;
}

@keyframes climb {
  0%   { bottom: 2%; }
  45%  { bottom: 96%; }
  55%  { bottom: 96%; }
  100% { bottom: 2%; }
}

/* Hero load-in animation */
.fade-up {
  opacity: 0;
  animation: fadeUp .8s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .ruler-indicator { animation: none; bottom: 96%; }
  .fade-up { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 3px solid #ea580c;
  outline-offset: 2px;
}

.service-card:hover .service-icon-wrap {
  background-color: #ea580c;
  color: #ffffff;
}

/* Animation utilities */
.animate-in {
  animation: fadeIn 0.3s ease-out, zoomIn 0.3s ease-out;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.zoom-in {
  animation: zoomIn 0.3s ease-out;
}

.duration-300 {
  animation-duration: 0.3s;
}
