/* ═══════════════════════════════════════════════════════════════
   SROKA TRANSPORT – Animation CSS
   GSAP controls JS animations; this file handles:
   - Initial hidden states (set by GSAP's .from())
   - CSS-only micro-interactions
   - Keyframe definitions for CSS animations
   ═══════════════════════════════════════════════════════════════ */

/* ─── Prevent FOUC – elements start hidden, revealed by GSAP ─── */
[data-anim] {
  will-change: transform, opacity;
}

/* ─── Page transition ─── */
.page-transitioning {
  pointer-events: none;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(28,39,68,0.8) 0%, var(--color-primary) 70%);
  z-index: 0;
}

.hero__three {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__headline .word {
  display: inline-block;
  overflow: hidden;
}

.hero__headline .word--accent {
  color: var(--color-accent);
}

.hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-text);
}

.hero__stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 5;
}

.hero__scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── Split Reveal Section ─── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.split-section__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.split-section__image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-secondary);
}

.split-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inline SVG illustration (truck + stats) */
.split-illus {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.split-illus svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Features Grid ─── */
.feature-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature-item:hover {
  border-color: rgba(0,209,255,0.3);
  transform: translateY(-3px);
}

.feature-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0,209,255,0.1);
  border: 1px solid rgba(0,209,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.feature-item__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.feature-item__text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ─── CTA Band ─── */
.cta-band {
  text-align: center;
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;          /* no collapse */
}

/* Visible spacer between CTA (and any last section) and footer */
#app {
  margin-bottom: 0;
}
#app + #site-footer {
  margin-top: 0;
  /* Accent line is already on ::before */
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,209,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.cta-band__subline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.cta-band__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Page Hero ─── */
.page-hero {
  min-height: 50svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  background: linear-gradient(180deg, transparent 0%, var(--color-primary) 100%);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-secondary);
  z-index: -1;
  overflow: hidden;
}

.page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline__line {
  position: absolute;
  left: 0;
  top: 8px;
  width: 2px;
  height: 0%;
  background: var(--color-accent);
  transform-origin: top;
  transition: height 0.05s;
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-12);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10));
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,209,255,0.3);
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,209,255,0.25);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.timeline__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 480px;
}

/* ─── Contact Cards ─── */
a.contact-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.contact-card:hover .contact-card__value {
  color: var(--color-accent);
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: pre-line;
}

/* ─── Job Offer ─── */
.job-offer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.job-offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.job-offer__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.job-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(0,209,255,0.06);
  border: 1px solid rgba(0,209,255,0.12);
  border-radius: var(--radius-md);
}

.job-highlight i { color: var(--color-accent); flex-shrink: 0; }

.job-highlight span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
}

.job-offer__list {
  padding-left: var(--space-5);
  list-style: disc;
}

.job-offer__list li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

/* ─── Map embed ─── */
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Vehicle Specs ─── */
.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.vehicle-spec {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.vehicle-spec__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.vehicle-spec__value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

/* ─── Route Display ─── */
.route-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  transition: border-color var(--transition-base);
}

.route-item:hover { border-color: var(--color-accent); }

.route-item__flags {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 2rem;
  flex-shrink: 0;
}

.route-item__arrow { color: var(--color-accent); }

.route-item__info { flex: 1; }

.route-item__label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-item__stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.route-item__stat {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.route-item__stat strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ─── CSS Keyframe Animations ─── */
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.5); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.8; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-md);
}

/* Button loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: var(--space-2);
}

/* Split text char wrappers (for GSAP SplitText) */
.char-wrap { overflow: hidden; display: inline-block; }

/* ─── Particles canvas ─── */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-8); }

  .hero { align-items: flex-start; }

  .hero__content {
    /* full padding shorthand override – top/right/bottom/left */
    padding: calc(var(--nav-height) + 4rem) var(--space-6) var(--space-10) var(--space-6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__headline {
    font-size: clamp(2rem, 9vw, 3.5rem);
    line-height: 1;
    word-break: break-word;
  }

  .hero__subheadline { text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; gap: var(--space-5); }
  .split-section  { grid-template-columns: 1fr; }
  .route-item     { flex-wrap: wrap; }
  .job-offer      { padding: var(--space-6); }
  .contact-card   { padding: var(--space-6); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }

  .hero__content {
    padding: calc(var(--nav-height) + 3rem) var(--space-4) var(--space-8) var(--space-4);
  }

  .hero__headline {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  .hero__cta { flex-direction: column; align-items: center; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; align-items: center; text-align: center; }
}
