/* ==========================================================================
   CargoWays.io — Global styles (independent of Tailwind utility classes)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "ss01" on, "cv11" on;
}

.tracking-tightest {
  letter-spacing: -0.045em;
}

/* Reveal-on-scroll — scoped under html.js so content stays visible by
   default if JavaScript is blocked or fails (avoids elements stuck at
   opacity:0 forever when nothing is left to add .is-visible). */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar blur state on scroll */
#navbar {
  transition:
    box-shadow 0.4s ease,
    background-color 0.4s ease,
    border-color 0.4s ease;
}

/* Mobile menu panel (burger menu dropdown) */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  max-height: 24rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Card lift */
.card-hover {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
}

/* Button micro-interaction */
.btn-primary {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-underline:hover::after {
  width: 100%;
}

::selection {
  background: #0d00ff;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #0d00ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-menu {
    transition: none !important;
  }
}

/* ==========================================================================
   Article body typography — used by /article/*.html templates.
   Keep these simple: they're the classes you reuse when writing new articles.
   ========================================================================== */

.editor-p {
  margin-top: 1.5rem;
  font-size: 16px;
  line-height: 1.75;
  color: #6b6b74;
}

.editor-h2 {
  margin-top: 2.75rem;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #0a0a0c;
}

.editor-quote {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid #0d00ff;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #0a0a0c;
}

.editor-list {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #6b6b74;
  font-size: 16px;
  line-height: 1.75;
}

.editor-list li {
  margin-top: 0.5rem;
}

.editor-list li::marker {
  color: #0d00ff;
}

/* ==========================================================================
   Route Wizard — multi-step contact form (get-in-touch.html / de/kontakt.html)
   ========================================================================== */

.wizard-step {
  animation: wizard-step-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizard-step-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step {
    animation: none !important;
  }
}

.wizard-progress-bar {
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-field-error {
  display: none;
}

/* The invalid marker may land on the field itself (plain inputs) or on its
   .relative positioning wrapper (selects / unit-suffixed inputs), since the
   error text needs a direct sibling to react to via CSS. Style both. */
.wizard-field-invalid,
.wizard-field-invalid > select,
.wizard-field-invalid > input {
  border-color: #e11d48 !important;
  background-color: #fff1f2 !important;
}

.wizard-field-invalid ~ .wizard-field-error,
.wizard-field-invalid + .wizard-field-error {
  display: block;
}

.wizard-group-invalid ~ .wizard-field-error {
  display: block;
}

.wizard-radio-card {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.wizard-radio-card:hover {
  border-color: #0a0a0c;
}

.wizard-radio-input:checked + .wizard-radio-card {
  border-color: #0d00ff;
  background-color: rgba(13, 0, 255, 0.04);
}

.wizard-radio-dot {
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.wizard-radio-input:checked + .wizard-radio-card .wizard-radio-dot {
  border-color: #0d00ff;
  background-color: #0d00ff;
}

.wizard-radio-input:focus-visible + .wizard-radio-card {
  outline: 2px solid #0d00ff;
  outline-offset: 2px;
}

