/*
 * Redstone Cargo: site styles.
 * Built on the "Modernist" design system (Archivo, square corners, 2px rules)
 * with the Redstone red and slate palette.
 */

:root {
  --ink: #2b3036;
  --ink-deep: #1f2327;
  --paper: #f3f2f2;
  --paper-2: #e6e7e8;
  --red: #c8243c;
  --red-bright: #e8435a;
  --red-dark: #a51d32;
  --mist: #c5c9cd;
  --mist-2: #d7dadd;
  --slate: #4a5058;
  --rule-dark: #4a5058;

  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--red) 30%, transparent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section__pad { padding-block: var(--section-pad); }
.section--ruled { border-bottom: 2px solid var(--ink); }
.section--dark { background: var(--ink); color: var(--paper); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px 64px;
}
.split--end { align-items: end; gap: 24px 64px; }

.eyebrow {
  display: block; margin-bottom: 16px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark);
}
.eyebrow--light { color: var(--red-bright); }
.eyebrow--inline { display: inline; margin: 0; }

.section-title {
  font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.015em;
}
.section-title--spaced { margin-bottom: 48px; }
.subsection-title { font-size: 28px; line-height: 1.1; margin: 64px 0 8px; }
.body-lg { font-size: 19px; line-height: 1.65; max-width: 58ch; }
.body-md { font-size: 17px; line-height: 1.6; max-width: 58ch; margin-bottom: 24px; }

/* — wordmark — */
.wordmark {
  font-weight: 800; font-size: 20px; letter-spacing: 0.02em; line-height: 1; color: var(--paper);
}
.wordmark:hover { color: var(--paper); }
.wordmark .hl { color: var(--red-bright); }
.wordmark--small { font-size: 14px; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 220px; padding: 10px 14px;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--mist); color: var(--paper); }
.btn-outline:hover { border-color: var(--red-bright); color: var(--paper); }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: var(--paper); border-bottom: 2px solid var(--red);
}
.site-header__inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.site-nav {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav a { color: var(--paper); }
.site-nav a:hover { color: var(--red-bright); }

/* — hero (photo with a frosted panel over its foot) — */
.hero {
  position: relative;
  min-height: calc(41.8vw + 140px);
  display: flex; align-items: flex-end;
  background: var(--ink) url("/assets/hero-777f-dcb85b47.jpg") center top / 100% auto no-repeat;
}
@media (max-width: 900px) {
  .hero { background-image: url("/assets/hero-777f-small-079786f8.jpg"); }
}
.hero__panel {
  width: 100%; color: var(--paper);
  background: rgba(43, 48, 54, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__inner {
  padding-top: 48px; padding-bottom: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px 64px; align-items: end;
}
.hero__title {
  font-size: clamp(48px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.02em; margin-left: -0.058em;
}
.hero__title .hl { color: var(--red-bright); }
.hero__aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__lede { font-size: 19px; line-height: 1.55; max-width: 44ch; }

.atc { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; }
.atc__item { border-left: 2px solid var(--red); padding-left: 14px; }
.atc dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.atc dd { margin: 0; font-weight: 800; font-size: 24px; letter-spacing: 0.06em; }

.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mobile-only { display: none; }

/* Small screens: drop the header and put the section links in the hero. */
@media (max-width: 760px) {
  .site-header { display: none; }
  /* The panel is taller than the photo here, so sit it below the photo instead of over it. */
  .hero { min-height: 0; padding-top: 41.9vw; }
  .mobile-only { display: inline-flex; }
  .hero-cta { align-self: stretch; }
  .hero-cta .btn { width: 100%; min-width: 0; }
}

/* — who we are — */
.flyhub-note {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline;
  padding-top: 24px; border-top: 2px solid var(--red);
  font-size: 17px; line-height: 1.6;
}

/* — fleet — */
.fleet {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; background: var(--red); border: 2px solid var(--red);
}
@media (max-width: 1100px) { .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fleet { grid-template-columns: 1fr; } }
.fleet-card {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0;
  background: var(--ink); color: var(--paper); padding: 24px 24px 32px;
}
.fleet-card:hover { background: var(--ink-deep); }
.fleet-card__num {
  font-weight: 800; font-size: 88px; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--red-bright); font-variant-numeric: tabular-nums; margin-left: -0.05em; padding-bottom: 56px;
}
.fleet-card__role { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); padding-bottom: 10px; }
.fleet-card__type {
  font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.02em; padding-bottom: 24px; align-self: end;
}
.fleet-card__blurb { font-size: 16px; line-height: 1.55; padding-top: 16px; border-top: 2px solid var(--red); color: var(--mist-2); }

/* — network — */
.section-intro { margin-bottom: 48px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 2px solid var(--ink); margin-bottom: 48px;
}
.stat { padding: 24px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 2px solid var(--ink); }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding-left: 0; }
  .stat + .stat { border-left: 0; border-top: 2px solid var(--ink); }
}
.stat__value {
  display: block; font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

.hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .hubs { grid-template-columns: 1fr; } }
.hub { background: var(--ink); color: var(--paper); padding: 28px 28px 20px; border-top: 4px solid var(--red); }
.hub__kicker { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.hub__code { font-size: clamp(44px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.02em; color: var(--red-bright); }
.hub__place { display: block; font-size: 18px; margin: 8px 0 24px; }
.hub__list { list-style: none; margin: 0; padding: 0; }

.dest {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px 72px;
  gap: 0 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule-dark);
}
.dest__code { font-weight: 800; font-size: 19px; letter-spacing: 0.04em; }
.dest__place { min-width: 0; }
.dest__country { font-size: 13px; color: var(--mist); }
.dest__dir { font-size: 18px; color: var(--red-bright); text-align: center; }
.dest__time { font-size: 15px; text-align: right; color: var(--mist-2); font-variant-numeric: tabular-nums; }

.p2p {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px;
}
.p2p__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 0 16px; border-top: 2px solid var(--ink);
}
.p2p__codes { font-weight: 800; font-size: 19px; letter-spacing: 0.04em; white-space: nowrap; }
.p2p__codes .leg-arrow { color: var(--red); }
.p2p__time { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p2p__cities { grid-column: 1 / -1; font-size: 14px; color: var(--slate); }

.network-key { font-size: 14px; color: var(--slate); margin-top: 40px; }
.network-unavailable {
  font-size: 17px; padding: 24px 0; border-block: 2px solid var(--ink); max-width: 58ch;
}

/* — what we ask — */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 1000px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.rule { border-top: 2px solid var(--red); padding: 24px 0 40px; display: flex; flex-direction: column; gap: 12px; }
.rule__title { font-size: 24px; line-height: 1.15; display: flex; gap: 12px; align-items: baseline; }
.rule__mark { color: var(--red-bright); font-size: 16px; }
.rule__blurb { font-size: 17px; line-height: 1.6; padding-left: 28px; color: var(--mist-2); }

/* — footer — */
.site-footer { background: var(--ink-deep); color: var(--mist); border-top: 2px solid var(--red); }
.site-footer__inner {
  padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; font-size: 14px;
}
.site-footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--red-bright); }
