/* SkyAlps Virtual — site styles */

:root {
  --forest-950: #04140e;
  --forest-900: #072a1d;
  --forest-800: #0b3a28;
  --forest-700: #0b4d35;
  --forest-600: #13603f;
  --mint: #6ef0c6;
  --mint-dark: #2fbf93;
  --snow: #f4f6f2;
  --light: #e9eee9;
  --line: #d5ddd7;
  --ink: #0e1a15;
  --muted: #56665e;
  --muted-light: #a8bbb1;

  --summer: #ee6a1f;
  --winter: #1f5fae;
  --year: #12844b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(4, 20, 14, .10);
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--mint); color: var(--forest-950); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 3rem); }

.eyebrow {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  text-transform: lowercase; letter-spacing: .02em;
  color: var(--mint); font-size: 1.05rem; margin-bottom: .75rem;
}
.eyebrow--dark { color: var(--forest-600); }
.accent-text { color: var(--forest-600); font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--mint { background: var(--mint); color: var(--forest-950); }
.btn--mint:hover { background: #8ff5d4; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav.is-solid { background: rgba(4, 20, 14, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { height: 100%; width: min(1280px, 100% - 3rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__brand img { height: 60px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; opacity: .88;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--mint); transform: scaleX(0); transition: transform .2s ease;
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: max(640px, 100svh); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: var(--forest-950);
}
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 30%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,20,14,.55) 0%, rgba(4,20,14,0) 22%),
    linear-gradient(0deg, rgba(4,20,14,.96) 0%, rgba(4,20,14,.7) 28%, rgba(4,20,14,0) 62%),
    linear-gradient(90deg, rgba(4,20,14,.55) 0%, rgba(4,20,14,0) 55%);
}
.hero__content { position: relative; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; max-width: 14ch; }
.hero h1 span { color: var(--mint); font-style: italic; }
.hero__lead { max-width: 46ch; margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__strip { position: relative; border-top: 1px solid rgba(255,255,255,.12); background: rgba(4,20,14,.55); backdrop-filter: blur(6px); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 1.25rem 0; display: flex; flex-direction: column; }
.strip__item + .strip__item { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.strip__item strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.strip__item span { color: var(--muted-light); font-size: .92rem; margin-top: .35rem; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--snow { background: var(--snow); }
.section--light { background: #fff; }
.section--forest { background: radial-gradient(1200px 600px at 85% -10%, #0f5a3d 0%, transparent 60%), var(--forest-950); color: #fff; }
.section__head { margin-bottom: 3rem; max-width: 760px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section__head--row > div { max-width: 640px; }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.section--forest .section__lead { color: var(--muted-light); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--forest-700);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.feature h3 { margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* Network */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 600 .92rem var(--font-body); padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.chip:hover { border-color: var(--forest-600); }
.chip.is-active { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }

.network { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; }
.network__map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--light); }
#map { height: 600px; }
.legend {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 500; list-style: none; margin: 0;
  display: flex; gap: 1rem; padding: .55rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
}
.legend li { display: flex; align-items: center; gap: .4rem; }
.legend li[hidden] { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dash { width: 18px; height: 2px; display: inline-block; background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 9px); }
.dot--year { background: var(--year); }
.dot--winter { background: var(--winter); }
.dot--summer { background: var(--summer); }

.network__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--snow); min-height: 0; max-height: 602px; }
.network__count { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.network__count strong { color: var(--ink); }
.routes { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; }
.route {
  width: 100%; display: grid; grid-template-columns: 4px 1fr auto; gap: .8rem; align-items: center;
  padding: .7rem .75rem; border: 0; border-radius: var(--radius-sm); background: transparent;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.route:hover, .route.is-hover { background: #fff; }
.route.is-selected { background: #fff; box-shadow: inset 0 0 0 1.5px var(--forest-600); }
.route__bar { width: 4px; height: 34px; border-radius: 2px; background: var(--c); }
.route__bar--later { background: repeating-linear-gradient(180deg, var(--c) 0 5px, transparent 5px 9px); opacity: .7; }
.route__name { font-weight: 700; line-height: 1.25; display: block; }
.route__meta { font-size: .82rem; color: var(--muted); }
.route__when--soon { color: var(--forest-600); font-weight: 700; }
.route__side { text-align: right; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.badge {
  display: inline-block; font: 800 .68rem var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  padding: .15rem .45rem; border-radius: 4px; vertical-align: middle; margin-left: .35rem;
}
.badge--new { background: var(--mint); color: var(--forest-950); }
.badge--pso { background: var(--light); color: var(--muted); }
.badge--now { background: #dcf3e6; color: var(--year); }
.badge--soon { background: #e2ebf7; color: var(--winter); }
.badge--off { background: var(--light); color: var(--muted); }
.timetable .badge { margin-left: 0; }

.route-detail {
  margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--snow);
}
.route-detail__head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.25rem; }
.route-detail__codes { font-family: var(--font-display); font-weight: 800; color: var(--forest-600); letter-spacing: .04em; }
.route-detail h3 { font-size: 1.8rem; font-weight: 800; }
.route-detail__facts { display: flex; gap: 2rem; margin: 0; }
.route-detail__facts dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.route-detail__facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tab {
  font: 600 .9rem var(--font-body); padding: .45rem .95rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line); background: #fff;
}
.tab[aria-selected="true"] { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .6rem .75rem; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.timetable td.flt { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }
.fine { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.fine--light { color: var(--muted-light); }

/* Leaflet tweaks */
.leaflet-container { font-family: var(--font-body); background: var(--light); }
.leaflet-tooltip.apt-tip {
  background: var(--forest-950); color: #fff; border: 0; border-radius: 6px; padding: .3rem .55rem;
  font-weight: 600; box-shadow: var(--shadow);
}
.leaflet-tooltip.apt-tip::before { display: none; }
.apt-tip small { color: var(--mint); font-weight: 700; margin-left: .3rem; }

/* Fleet */
.fleet { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.fleet__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.fleet__media img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.fleet__body h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.fleet__body > p { color: rgba(255,255,255,.82); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1.75rem 0 0; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { background: var(--forest-900); padding: .9rem 1rem; }
.specs dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-light); }
.specs dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.sims { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; }

/* Live */
.live { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; }
.live__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--forest-900); position: relative; }
.live__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .4rem; padding: 2rem;
  color: var(--muted-light);
  background: radial-gradient(circle at 50% 50%, rgba(110,240,198,.10), transparent 60%), var(--forest-900);
}
.placeholder strong { color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: #fff; padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.tile__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tile__value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--forest-700); }
.live__stats { display: flex; flex-direction: column; }
.live__stats .fine { margin: .75rem 0 1rem; min-height: 1.2em; }
.live__cta {
  margin-top: auto; border-radius: var(--radius); padding: 1.5rem; color: rgba(255,255,255,.8);
  background: radial-gradient(400px 200px at 100% 0%, #13603f 0%, transparent 70%), var(--forest-900);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.live__cta strong { color: #fff; font-family: var(--font-display); display: block; font-size: 1.15rem; margin-bottom: .25rem; }

.boards { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.board h3 { margin-bottom: 1rem; }
.board h3 small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: .3rem; }
.empty { color: var(--muted); font-size: .95rem; padding: 1rem 0 .25rem; }
.empty--list { padding: 1rem .75rem; }
.leaders { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.leaders li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); counter-increment: rank; }
.leaders li:last-child { border-bottom: 0; }
.leaders li::before { content: counter(rank); font-family: var(--font-display); font-weight: 800; color: var(--forest-600); }
.leaders span { color: var(--muted); font-size: .9rem; }
.rating { font-weight: 700; }
.rating--good { color: var(--year); }
.rating--mid { color: #b7791f; }
.rating--low { color: #c0392b; }

/* Join */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.6rem; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: .6rem; }
.step__n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .4rem;
  font: 800 1.15rem var(--font-display); background: var(--mint); color: var(--forest-950);
}
.step p { color: rgba(255,255,255,.75); font-size: .97rem; flex: 1; }
.link { color: var(--mint); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.join__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--forest-600); border-bottom: 2.5px solid var(--forest-600);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); }

/* Footer */
.footer { background: var(--forest-950); color: var(--muted-light); padding: 3.5rem 0 3rem; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; }
.footer__brand > img { height: 68px; width: auto; margin-bottom: .8rem; }
.footer__brand a { color: #fff; }
.footer__badge { display: inline-block; margin-top: 1.1rem; border-radius: 6px; line-height: 0; transition: transform .15s ease, box-shadow .15s ease; }
.footer__badge:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--mint); }
.footer__badge img { width: 150px; height: 50px; border-radius: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--mint); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .82rem; max-width: 900px; }

/* Responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .network { grid-template-columns: minmax(0, 1fr); }
  .network__list { max-height: 380px; }
  #map { height: 480px; }
  .fleet { grid-template-columns: minmax(0, 1fr); }
  .live, .boards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  :root { --nav-h: 72px; }
  .nav__toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 2px; background: #fff; transition: transform .2s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest-950); padding: .5rem 1.5rem 1.5rem; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 1rem; }
  .nav__brand img { height: 50px; }
  /* Hero: photo as a top band so the aircraft stays visible above the text. */
  .hero { min-height: max(620px, 100svh); }
  .hero__bg img { height: 62%; object-position: 50% 0%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(4,20,14,.55) 0%, rgba(4,20,14,0) 16%, rgba(4,20,14,0) 30%,
      rgba(4,20,14,.85) 50%, var(--forest-950) 62%);
  }
  .hero__content { padding-bottom: 2rem; }
  .hero__lead { font-size: 1rem; margin-top: 1rem; }
  .hero__cta { margin-top: 1.5rem; gap: .6rem; }
  .hero__cta .btn { padding: .75rem 1.15rem; font-size: .95rem; }
  .strip__item { padding: .9rem 0; }
  .strip__item + .strip__item { padding-left: .7rem; }
  .strip__item strong { font-size: 1.25rem; }
  .strip__item span { font-size: .72rem; }
  .features, .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .route-detail__facts { gap: 1.25rem; }
  .footer__inner { grid-template-columns: 1fr; }
  #map { height: 400px; }
  .legend {
    top: .75rem; right: .75rem; bottom: auto; left: auto; gap: .3rem .6rem; font-size: .74rem; padding: .4rem .7rem;
    flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 4.5rem); border-radius: 14px;
  }
  .legend li { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
