/* ============================================
   UNITRANS — Universal Transit & Services
   Design System
   ============================================ */

:root {
  /* Brand colors */
  --navy-900: #050d1f;
  --navy-800: #0a1428;
  --navy-700: #0f1d3a;
  --navy-600: #15264a;
  --navy-500: #1e3461;
  --navy-400: #2c4880;

  --red-600: #c41e25;
  --red-500: #e1252c;
  --red-400: #ef3a40;
  --red-300: #f56b70;

  --ink-900: #0a1428;
  --ink-700: #2a3855;
  --ink-500: #5b6985;
  --ink-300: #97a2b8;
  --ink-200: #c8cfdc;
  --ink-100: #e8ebf2;
  --ink-50:  #f5f7fb;

  --white: #ffffff;
  --bg: #ffffff;

  /* Type */
  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing & radii */
  --container: 1280px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 20, 40, 0.06), 0 1px 3px rgba(10, 20, 40, 0.08);
  --shadow:    0 6px 14px -4px rgba(10, 20, 40, 0.10), 0 12px 28px -8px rgba(10, 20, 40, 0.12);
  --shadow-lg: 0 20px 50px -12px rgba(10, 20, 40, 0.25);

  /* Transitions */
  --t-fast: 180ms cubic-bezier(.2,.8,.2,1);
  --t: 320ms cubic-bezier(.2,.8,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.8,.2,1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--red-500); color: white; }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

.section { padding: 96px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* ============================================
   Typography
   ============================================ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-500);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red-500);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.h3 {
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 62ch;
}
.body { color: var(--ink-700); line-height: 1.65; }

/* Accent word */
.accent { color: var(--red-500); }
.accent-block {
  display: inline-block;
  background: var(--red-500);
  color: white;
  padding: 0 0.18em;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red-500);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(225, 37, 44, 0.6);
}
.btn-primary:hover {
  background: var(--red-600);
  box-shadow: 0 12px 28px -8px rgba(225, 37, 44, 0.7);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: white;
  color: var(--navy-900);
  border-color: white;
}

.btn-dark {
  background: var(--navy-900);
  color: white;
}
.btn-dark:hover { background: var(--navy-700); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-900);
  transition: gap var(--t-fast), color var(--t-fast);
}
.btn-arrow svg { transition: transform var(--t-fast); }
.btn-arrow:hover { gap: 14px; color: var(--red-500); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ============================================
   Navbar
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t), padding var(--t);
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(10, 20, 40, 0.08);
  padding: 12px 0;
}
.nav.is-light .nav-link,
.nav.is-scrolled .nav-link,
.nav.is-light .nav-lang button,
.nav.is-scrolled .nav-lang button,
.nav.is-light .nav-toggle,
.nav.is-scrolled .nav-toggle {
  color: var(--navy-900);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: white;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--red-500); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-lang {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  overflow: hidden;
}
.nav.is-scrolled .nav-lang,
.nav.is-light .nav-lang {
  border-color: rgba(10, 20, 40, 0.15);
  color: var(--navy-900);
}
.nav-lang button {
  padding: 6px 12px;
  color: inherit;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-lang button.is-active {
  background: var(--red-500);
  color: white;
}

.nav-cta { padding: 10px 22px; font-size: 13px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: white;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 99;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
}
.nav-mobile.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 961px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 36px;
  color: white;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
}
.nav-mobile a:hover { color: var(--red-400); }
.nav-mobile .btn { margin-top: 24px; align-self: flex-start; }

/* ============================================
   Logo
   ============================================ */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark img { height: 64px; width: auto; }
.logo-word { display: none !important; }
.logo-word strong,
.logo-word span { display: none; }
.nav.is-scrolled .logo-word,
.nav.is-light .logo-word { display: none !important; }

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  color: var(--ink-200);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(225, 37, 44, 0.15), transparent 50%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: var(--ink-300);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--red-400); }
.footer-tag {
  margin-top: 20px;
  color: var(--ink-300);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-300);
}
.footer-bottom a { color: var(--red-400); font-weight: 600; }
.footer-bottom a:hover { color: white; }

.footer-df {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-300) !important;
  font-weight: 400 !important;
  transition: opacity var(--t-fast);
}
.footer-df:hover { opacity: 0.75; color: var(--ink-300) !important; }
.footer-df img {
  height: 22px;
  width: auto;
  display: block;
}

/* ============================================
   Utility
   ============================================ */
.muted { color: var(--ink-500); }
.center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Badge / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(225, 37, 44, 0.1);
  color: var(--red-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-dark {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Decorative arrow stripe (matches brochure) */
.arrows-stripe {
  position: absolute;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.arrows-stripe span {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 26px;
  border-color: transparent transparent transparent white;
  opacity: 0;
  animation: arrowSlide 1.6s cubic-bezier(.2,.8,.2,1) infinite;
}
.arrows-stripe span:nth-child(2) { animation-delay: 0.15s; }
.arrows-stripe span:nth-child(3) { animation-delay: 0.3s; }
.arrows-stripe span:nth-child(4) { animation-delay: 0.45s; }
@keyframes arrowSlide {
  0% { opacity: 0; transform: translateX(-12px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateX(12px); }
}

/* Smooth focus */
:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
}

/* Disable smooth scroll for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
