/* BUS real – Design system tokens */
:root {
  /* Brand */
  --br-navy:           217 65% 28%;  /* #1A2F6B – logo brand color */
  --br-navy-cta:       217 65% 38%;  /* primary CTA fill */
  --br-navy-cta-hover: 217 65% 50%;  /* CTA hover */
  --br-navy-pale:      217 65% 75%;  /* světlejší akcent v textu */

  /* Surfaces — navy-tinted dark */
  --br-bg:       219 32% 11%;      /* dark navy base */
  --br-bg-deep:  220 40% 7%;       /* hero/deeper navy */
  --br-surface:  219 24% 16%;      /* card background */
  --br-surface-2:219 22% 20%;
  --br-fg:       0 0% 95%;         /* #F2F2F2 */
  --br-fg-dim:   0 0% 78%;
  --br-muted:    219 14% 62%;      /* mírně modrý nádech */
  --br-border:   219 18% 26%;
  --br-border-soft: 219 18% 19%;

  /* Functional */
  --br-success:  145 60% 45%;      /* #2EB872 */
  --br-warn:     35 90% 55%;
  --br-danger:   0 70% 55%;

  /* Spacing scale (8px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-card: 12px;
  --r-btn:  8px;
  --r-pill: 999px;

  /* Type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  /* USE ONLY for: numerals, codes, coordinates, identifiers
     (IČO, plochy v m², letopočty, kódy budov A/G/G1).
     NEVER for prose, labels, navigation, or button text. */

  /* Shadows (only on hover) */
  --sh-hover: 0 8px 24px hsl(0 0% 0% / 0.4);
  --sh-card-hover: 0 12px 32px hsl(0 0% 0% / 0.5);

  /* Container */
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  /* Subtle vertical navy gradient — top deep, dolů decentně přechází */
  background:
    linear-gradient(180deg,
      hsl(220 40% 7%) 0%,
      hsl(219 32% 11%) 38%,
      hsl(217 28% 13%) 100%) fixed,
    hsl(var(--br-bg));
  background-color: hsl(var(--br-bg));
  min-height: 100%;
}
body {
  font-family: var(--f-body);
  background: transparent;
  color: hsl(var(--br-fg));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Type primitives */
.t-eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--br-navy-pale));
}
.t-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(var(--br-navy-cta-hover));
  margin-right: 10px;
  transform: translateY(-2px);
}
.t-display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.t-h1 { font-size: clamp(36px, 6vw, 72px); }
.t-h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.t-h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; font-family: var(--f-display); font-weight: 600; }
.t-body-l { font-size: 18px; line-height: 1.6; color: hsl(var(--br-fg-dim)); }
.t-body { font-size: 16px; line-height: 1.6; color: hsl(var(--br-fg-dim)); }
.t-mono { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.t-accent { color: hsl(var(--br-navy-cta-hover)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--br-navy-cta));
  color: white;
  border-color: hsl(var(--br-navy-cta));
}
.btn-primary:hover {
  background: hsl(var(--br-navy-cta-hover));
  border-color: hsl(var(--br-navy-cta-hover));
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: hsl(var(--br-fg));
  border: 1px solid hsl(var(--br-border));
}
.btn-outline:hover {
  border-color: hsl(var(--br-fg) / 0.5);
  background: hsl(var(--br-fg) / 0.04);
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--br-fg-dim));
  border-color: transparent;
  padding: 10px 14px;
}
.btn-ghost:hover { color: hsl(var(--br-fg)); background: hsl(var(--br-fg) / 0.04); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Card */
.card {
  background: hsl(var(--br-surface));
  border: 1px solid hsl(var(--br-border));
  border-radius: var(--r-card);
  padding: var(--s-6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card-hover);
  border-color: hsl(var(--br-border) / 1.5);
}
.card .img-frame {
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5);
  border-radius: var(--r-card) var(--r-card) 0 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.card .img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .img-frame img { transform: scale(1.05); }

/* Stat tile */
.stat {
  background: hsl(var(--br-surface));
  border: 1px solid hsl(var(--br-border));
  border-radius: var(--r-card);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  color: hsl(var(--br-fg));
  line-height: 1;
}
.stat-label {
  font-family: var(--f-body);
  font-size: 13px;
  color: hsl(var(--br-muted));
  letter-spacing: 0.02em;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: hsl(var(--br-surface));
  border: 1px solid hsl(var(--br-border));
  color: hsl(var(--br-fg-dim));
}
.badge-success {
  background: hsl(var(--br-success) / 0.12);
  border-color: hsl(var(--br-success) / 0.4);
  color: hsl(var(--br-success));
}
.badge-success::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(var(--br-success));
  box-shadow: 0 0 0 4px hsl(var(--br-success) / 0.18);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* Decorative "rail" — subtle horizontal line motif (movement) */
.rail {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(var(--br-border)) 12%,
    hsl(var(--br-border)) 88%,
    transparent 100%
  );
}
.rail::before, .rail::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(var(--br-navy-cta-hover));
  transform: translateY(-50%);
}
.rail::before { left: 12%; }
.rail::after { right: 12%; }

/* Vertical rail — for timeline */
.rail-v {
  position: relative;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    hsl(var(--br-border)) 12%,
    hsl(var(--br-border)) 88%,
    transparent 100%
  );
}
.rail-v .marker {
  position: absolute;
  left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: hsl(var(--br-navy-cta-hover));
  box-shadow: 0 0 0 4px hsl(var(--br-navy-cta-hover) / 0.15);
  transform: translateX(-50%);
}

/* Form controls */
.field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--br-fg-dim));
}
.field label .req { color: hsl(var(--br-navy-cta-hover)); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  background: hsl(var(--br-bg));
  border: 1px solid hsl(var(--br-border));
  color: hsl(var(--br-fg));
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  transition: border-color .15s ease, background .15s ease;
}
.input::placeholder, .textarea::placeholder { color: hsl(var(--br-muted) / 0.7); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: hsl(var(--br-navy-cta-hover));
  background: hsl(var(--br-surface));
}
.textarea { resize: vertical; min-height: 96px; }

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: hsl(var(--br-danger)); }
.field-error {
  font-size: 12px;
  color: hsl(var(--br-danger));
  margin-top: 4px;
  font-family: var(--f-body);
}

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: hsl(var(--br-fg-dim));
  cursor: pointer;
}
.checkbox-row input { accent-color: hsl(var(--br-navy-cta-hover)); margin-top: 2px; }

/* Sticky mobile CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  width: 52px; height: 52px;
  border-radius: 50%;
  background: hsl(var(--br-navy-cta));
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 14px hsl(0 0% 0% / 0.45), 0 0 0 4px hsl(var(--br-bg-deep) / 0.4);
  z-index: 60;
  text-decoration: none;
  border: none;
  cursor: pointer;
  animation: ctaPulse 8s ease-in-out infinite;
}
.sticky-mobile-cta:active { transform: scale(0.95); }
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@media (max-width: 480px) {
  .sticky-mobile-cta {
    width: 48px; height: 48px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
