/* CANXANSA design language v2 — overlay for inner pages.
   Loaded AFTER each page's inline styles; re-themes the shared
   component vocabulary to match the redesigned homepage. */

:root {
  --black: #0b0a09;
  --white: #f5f0eb;
  --orange: #e8521a;
  --orange-dim: #b53c0e;
  --gray: #121110;
  --gray-mid: rgba(245,240,235,0.09);
  --gray-light: #8d8780;
  --text-muted: #595550;
  --ink-3: #1b1917;
  --hair: rgba(245,240,235,0.09);
  --hair-soft: rgba(245,240,235,0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: 'DM Mono', monospace;
}

body { -webkit-font-smoothing: antialiased; }

::selection { background: var(--orange); color: var(--black); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2c2925; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dim); }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

/* grain + page rails (no markup needed) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ''; position: fixed; top: 0; bottom: 0; left: 28px; right: 28px;
  border-left: 1px solid var(--hair-soft);
  border-right: 1px solid var(--hair-soft);
  pointer-events: none; z-index: 1;
}

/* ─── NAV ─── */
nav {
  background: rgba(11,10,9,0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.nav-logo { font-size: 26px; }
.nav-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; }
.nav-link, .nav-routes {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
}
.nav-cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  background: var(--orange); color: var(--black);
  border: 1px solid var(--orange); border-radius: 1px;
}
.nav-cta:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.nav-track {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--white); border: 1px solid var(--hair); border-radius: 1px;
}
.nav-track:hover { background: none; border-color: var(--orange); color: var(--orange); }

.mobile-nav-link { border-bottom-color: var(--hair); }

/* ─── HERO / LABELS ─── */
.breadcrumb { font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; font-size: 10px; }
.hero-tag, .section-label {
  font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 2.5px;
}
.hero-right::before {
  background-image:
    linear-gradient(rgba(232,82,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,82,26,0.05) 1px, transparent 1px);
}
.mode-tag {
  font-family: var(--mono); font-weight: 400; font-size: 11px;
  background: none; border: 1px solid var(--hair); border-radius: 999px;
  padding: 8px 18px;
}

/* ─── BUTTONS ─── */
.btn-primary, .form-submit {
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  background: var(--orange); color: var(--black);
  border-radius: 1px; border: 1px solid var(--orange);
  transition: all 0.25s var(--ease);
}
.btn-primary:hover, .form-submit:hover {
  background: var(--white); border-color: var(--white); color: var(--black);
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,82,26,0.25);
}
.btn-ghost {
  font-family: var(--mono); font-size: 12px; border-radius: 1px;
  border: 1px solid var(--hair); transition: all 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

/* ─── TICKER → technical strip ─── */
.ticker {
  background: var(--black);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 16px 0;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-item {
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  color: var(--gray-light);
}
.ticker-item::after { content: '✦'; color: var(--orange); font-size: 11px; }

/* ─── STATS ─── */
.stats { background: var(--black); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); gap: 0; padding-top: 0; padding-bottom: 0; }
.stat-box { background: var(--black); border-right: 1px solid var(--hair); padding: 40px 32px; text-align: left; }
.stat-box:last-child { border-right: none; }
.stat-label { font-family: var(--mono); font-size: 10px; }

/* ─── CARD HOVERS (replace hardcoded grays) ─── */
.dest-card:hover, .service-card:hover, .related-card:hover,
.faq-item:hover, .transit-card:hover, .hub-card:hover, .cargo-card:hover {
  background: var(--ink-3) !important;
}

/* card label details → mono */
.dest-region, .dest-time-mode, .hub-codes,
.departure-hub-label, .departure-port-code, .departure-mode-time,
.related-route, .transit-label, .spec-key, .stat-label {
  font-family: var(--mono); font-weight: 400; letter-spacing: 2px; text-transform: uppercase;
}
.spec-val, .dest-time-val { font-family: var(--mono); font-weight: 500; }

.departure-port, .departure-mode { background: rgba(18,17,16,0.9); border-color: var(--hair); }

.corridor-callout { border-left: 2px solid var(--orange); }

/* ─── FORMS ─── */
label { font-family: var(--mono); font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: rgba(245,240,235,0.2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,82,26,0.12);
}

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--hair); }
.footer-logo { font-size: 28px; }
.footer-copy { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.footer-links a, .footer-col-links a { font-size: 13px; }
.footer-col-title { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 2px; }

/* ─── MOBILE FIXES ─── */
@media (max-width: 640px) {
  .nav-track { display: none; }
  body::after { left: 14px; right: 14px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-inner { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover, .form-submit:hover, .btn-ghost:hover { transform: none; }
}
