/* ═══════════════════════════════════════════════════════
   WRC Mobility — Site-wide styles
   Palette: navy #0B3B6E | gold #F0A500 | sand #FAF8F3
            teal #2AB4A6 | warm-grey #6B6056
   ═══════════════════════════════════════════════════════ */

:root {
  --navy:      #0B3B6E;
  --navy-mid:  #1a5c9e;
  --gold:      #F0A500;
  --gold-pale: #FFF9E6;
  --sand:      #FAF8F3;
  --teal:      #2AB4A6;
  --grey:      #6B6056;
  --grey-lt:   #E8E3DC;
  --white:     #FFFFFF;
  --text-dark: #1a1008;
  --radius:    14px;
  --shadow-sm: 0 4px 18px rgba(11,59,110,.10);
  --shadow-lg: 0 16px 48px rgba(11,59,110,.18);
  --tr:        .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--sand); color: var(--text-dark); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; letter-spacing: -.01em; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 4vw;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 68px;
  background: transparent;
  transition: background var(--tr), box-shadow var(--tr);
}
.site-nav.scrolled { background: rgba(11,59,110,.97); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.22); }

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { font-size: 1.45rem; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-top { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.nav-logo-sub { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-top: 2px; }

/* Nav links */
.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; justify-content: center; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 500; padding: 7px 11px;
  border-radius: 30px; transition: background var(--tr), color var(--tr); white-space: nowrap;
}
.nav-links a:hover  { background: rgba(255,255,255,.13); color: #fff; }
.nav-links a.active { background: var(--gold); color: var(--navy); font-weight: 700; }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Language Picker — prominent globe dropdown ── */
.lang-picker {
  position: relative; flex-shrink: 0;
}
.lang-trigger {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 30px; cursor: pointer;
  color: #fff; font-size: .85rem; font-weight: 600; font-family: inherit;
  transition: background var(--tr), border-color var(--tr);
  white-space: nowrap;
}
.lang-trigger:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.lang-trigger.open  { background: rgba(255,255,255,.25); border-color: var(--gold); }
.lang-globe { font-size: 1.05rem; }
.lang-current { font-weight: 700; }
.lang-caret { font-size: .65rem; opacity: .75; transition: transform var(--tr); }
.lang-trigger.open .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(11,59,110,.22), 0 4px 14px rgba(0,0,0,.1);
  overflow: hidden; min-width: 170px; z-index: 300;
  border: 1px solid rgba(11,59,110,.08);
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: .9rem; font-weight: 500;
  color: var(--text-dark); cursor: pointer;
  transition: background var(--tr); border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.lang-option:hover { background: var(--sand); }
.lang-option.active { background: var(--gold-pale); font-weight: 700; color: var(--navy); }
.lang-option .lang-flag { font-size: 1.2rem; flex: none; }
.lang-option .lang-name { flex: 1; }
.lang-option .lang-check { color: var(--navy); font-size: .85rem; opacity: 0; }
.lang-option.active .lang-check { opacity: 1; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 5vw 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-dots {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-glow {
  position: absolute; bottom: -60px; right: -60px; z-index: 1; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,.22) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 16px;
  background: rgba(240,165,0,.16); border: 1px solid rgba(240,165,0,.45);
  color: var(--gold); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 16px; border-radius: 30px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }
.hero-mode-icon { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 12px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }

/* ── Search engine ── */
.search-engine { position: relative; z-index: 3; width: 100%; max-width: 660px; margin: 0 auto; }

.search-box {
  background: #fff; border-radius: 22px;
  box-shadow: 0 20px 60px rgba(11,59,110,.28), 0 4px 16px rgba(0,0,0,.1);
  padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 10px;
}
.search-input-wrap { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-icon { font-size: 1.1rem; flex: none; }
.search-box input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  background: transparent; color: var(--text-dark); font-family: inherit;
  padding: 8px 0; min-width: 0;
}
.search-box input::placeholder { color: #b0a090; }
.search-btn {
  padding: 13px 26px; border-radius: 16px; border: none;
  background: var(--navy); color: #fff;
  font-size: .95rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background var(--tr), transform .1s;
  display: flex; align-items: center; gap: 8px; font-family: inherit;
}
.search-btn:hover  { background: var(--navy-mid); }
.search-btn:active { transform: scale(.98); }
.search-btn:disabled { opacity: .5; cursor: wait; }

.results-panel { margin-top: 16px; text-align: left; }
.results-wrap { background: #fff; border-radius: 20px; box-shadow: 0 8px 40px rgba(11,59,110,.18); overflow: hidden; }

.results-head {
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--grey-lt);
  display: flex; align-items: flex-start; flex-direction: column; gap: 6px;
}
.results-head-row { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.results-title   { font-size: .98rem; font-weight: 800; color: var(--navy); }
.results-sub     { font-size: .8rem; color: var(--grey); }
.conn-pill {
  background: #EBF8F7; color: #0d7a70; border: 1px solid #9de3dd;
  font-size: .77rem; font-weight: 700; padding: 4px 12px; border-radius: 30px; white-space: nowrap;
}

/* route accordion */
.route-list { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; }

.route-card { border: 2px solid var(--grey-lt); border-radius: var(--radius); background: var(--sand); overflow: hidden; transition: border-color var(--tr); }
.route-card.open { border-color: var(--navy); background: #fff; }

.route-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 14px 48px 13px 16px; position: relative; font-family: inherit;
}
.route-headline { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.route-name { font-weight: 700; font-size: .93rem; color: var(--text-dark); flex: 1; line-height: 1.3; }
.best-pill {
  background: var(--gold); color: var(--navy);
  font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex: none; margin-top: 1px;
}
.route-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.chip {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: .74rem; color: #555; padding: 3px 9px; white-space: nowrap;
}
.route-card.open .chip { border-color: #c0d8f0; color: var(--navy); background: #f0f7ff; }
.chip-sep { color: #c0b8b0; font-size: .8rem; }
.caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: .85rem; color: #b0a090; transition: transform var(--tr), color var(--tr);
}
.route-card.open .caret { transform: translateY(-50%) rotate(180deg); color: var(--navy); }

.route-body { display: none; padding: 0 16px 16px; }
.route-card.open .route-body { display: block; }

.hub-note {
  background: #fffbf0; border: 1px dashed #e8cc6a;
  border-radius: 10px; padding: 10px 13px; font-size: .82rem; color: #7a5c00; margin-bottom: 14px;
}

/* steps timeline */
.steps { display: flex; flex-direction: column; }
.step  { display: flex; align-items: stretch; gap: 13px; }
.step-rail { display: flex; flex-direction: column; align-items: center; width: 42px; flex: none; }
.step-icon {
  width: 42px; height: 42px; flex: none;
  background: #fff; border: 2px solid #e0e0e0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px;
  transition: border-color var(--tr);
}
.route-card.open .step-icon { border-color: var(--navy-mid); }
.rail-line { flex: 1; width: 2px; background: #e5e5e5; margin: 3px 0; min-height: 14px; }
.step-content { flex: 1; padding-bottom: 16px; }
.step:last-child .step-content { padding-bottom: 4px; }
.step-num { font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--navy); margin: 5px 0 2px; font-family: inherit; }
.step-label { font-weight: 600; color: var(--text-dark); line-height: 1.35; margin-bottom: 8px; font-size: .92rem; }
.cta-title { font-size: .73rem; color: #999; margin-bottom: 6px; }
.cta-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; background: var(--navy); color: #fff;
  border-radius: 20px; font-size: .78rem; font-weight: 700;
  transition: opacity var(--tr);
}
.cta-btn:hover { opacity: .86; }

/* messages */
.loader-wrap { padding: 28px; text-align: center; }
.loader { width: 36px; height: 36px; border: 3px solid var(--grey-lt); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-results { padding: 24px; text-align: center; color: var(--grey); font-size: .9rem; }
.err-msg { color: #b0342a; }

/* ── Page sections ── */
.section { padding: 80px 5vw; }
.section-alt { background: #fff; }
.container { max-width: 1120px; margin: 0 auto; }
.section-eyebrow { display: inline-block; color: var(--gold); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.section h2 { color: var(--navy); margin-bottom: 12px; }
.section p.lead { color: var(--grey); font-size: 1rem; max-width: 580px; margin-bottom: 36px; line-height: 1.75; }

/* ── Info cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.info-card {
  background: var(--sand); border: 1px solid var(--grey-lt);
  border-radius: var(--radius); padding: 26px;
  transition: box-shadow var(--tr), transform var(--tr);
}
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-icon { font-size: 1.9rem; margin-bottom: 12px; }
.info-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; }
.info-card p { color: var(--grey); font-size: .9rem; line-height: 1.65; margin-bottom: 12px; }
.card-link { color: var(--navy); font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.card-link::after { content: '↗'; }

/* ── Route explainer strips ── */
.route-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.route-box { background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.route-box h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.route-box p  { color: var(--grey); font-size: .88rem; line-height: 1.65; }
.route-steps-visual { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.rv-chip { background: var(--navy); color: #fff; padding: 4px 11px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.rv-chip.gold { background: var(--gold); color: var(--navy); }
.rv-chip.teal { background: var(--teal); color: #fff; }
.rv-arrow { color: var(--gold); font-weight: 900; }

/* ── Companies ── */
.company-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.co-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; background: #fff; border: 2px solid var(--grey-lt);
  border-radius: 40px; font-size: .88rem; font-weight: 600; color: var(--navy);
  transition: border-color var(--tr), background var(--tr);
}
.co-tag:hover { border-color: var(--gold); background: var(--gold-pale); }
.co-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ── Mode nav pills ── */
.mode-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.mode-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border: 2px solid var(--grey-lt);
  border-radius: 40px; font-size: .88rem; font-weight: 600; color: var(--navy);
  background: #fff; transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.mode-link:hover  { border-color: var(--navy); background: #eef3f8; }
.mode-link.active { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ── Airport hub explainer table ── */
.hub-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.hub-table th { background: var(--navy); color: #fff; font-weight: 700; padding: 12px 16px; text-align: left; }
.hub-table td { padding: 11px 16px; border-bottom: 1px solid var(--grey-lt); color: var(--text-dark); vertical-align: top; }
.hub-table tr:last-child td { border-bottom: none; }
.hub-table tr:nth-child(even) td { background: var(--sand); }
.airport-code { font-family: 'JetBrains Mono', monospace; font-size: .85rem; background: var(--gold-pale); color: var(--navy); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.68); padding: 56px 5vw 32px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { font-size: .87rem; line-height: 1.75; margin-top: 8px; }
.footer-brand h3 { color: #fff; font-family: 'Playfair Display', serif; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .87rem; color: rgba(255,255,255,.58); margin-bottom: 8px; transition: color var(--tr); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1120px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(11,59,110,.98); padding: 14px 16px 18px; gap: 3px; }
  .route-explain { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .search-box { flex-direction: column; padding: 14px; gap: 10px; border-radius: 18px; }
  .search-input-wrap { width: 100%; }
  .search-btn { width: 100%; justify-content: center; border-radius: 12px; }
  .nav-logo-sub { display: none; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 5vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* mobile lang picker */
@media (max-width: 860px) {
  .lang-dropdown { right: auto; left: 0; }
  .lang-picker { order: -1; }
}
