/* Alpha Company Aviation · divisions layer
   Loaded AFTER styles.min.css on the hub (/) and the brokering page (/brokering/).
   Only holds components that do not already exist in the base sheet.
   Tokens, fonts, reset, topbar, footer, buttons, forms, consent, reveal and the
   reduced-motion kill switch all come from styles.min.css. Do not duplicate them here.
   Mobile-first: every block is written for 360px first, then widened. */

/* ============================================================
   1. DIVISION ACCENTS
   Each division carries one colour from the existing palette so a
   visitor can tell the three apart in about a second. Flight school
   olive matches its own live site, maintenance keeps the beacon
   yellow it already uses, brokering takes the steel blue.
   ============================================================ */
.divcard--school    { --acc: var(--olive-2);  --acc-glow: var(--olive-glow); }
.divcard--shop      { --acc: var(--beacon);   --acc-glow: var(--beacon-glow); }
.divcard--brokering { --acc: var(--steel-2);  --acc-glow: var(--steel-glow); }

/* ============================================================
   2. HUB HERO
   ============================================================ */
.hubhero {
  position: relative;
  isolation: isolate;
  padding: calc(96px + env(safe-area-inset-top)) 0 clamp(32px, 7vw, 56px);
  overflow: hidden;
  background: var(--c-void);
}

.hubhero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hubhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hubhero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,10,13,0.86) 0%, rgba(7,10,13,0.62) 38%, rgba(7,10,13,0.94) 100%),
    linear-gradient(90deg, rgba(7,10,13,0.72) 0%, rgba(7,10,13,0.18) 62%);
}

.hubhero__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

.hubhero__kicker {
  margin: 0 0 10px;
  font-family: var(--ff-mono);
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--alloy-2);
}

.hubhero__title {
  margin: 0 0 clamp(12px, 3vw, 18px);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(34px, 9.2vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}

.hubhero__title em {
  display: block;
  font-style: normal;
  color: var(--beacon);
}

.hubhero__lede {
  max-width: 46ch;
  margin: 0 0 clamp(20px, 4.5vw, 30px);
  font-size: clamp(15px, 3.9vw, 19px);
  line-height: 1.6;
  color: var(--titanium);
}

.hubhero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Straight to the point on a phone: the chooser is the page, so the hero
   stays short and the first card is visible with one thumb scroll. */
@media (min-width: 900px) {
  /* Trimmed deliberately: the routing cards must break the fold on a laptop,
     otherwise the page reads as a poster instead of a chooser. */
  .hubhero {
    padding: calc(72px + env(safe-area-inset-top)) 0 clamp(36px, 4vw, 44px);
  }
  .hubhero__lede { margin-bottom: 22px; }
}

/* ============================================================
   3. DIVISION CHOOSER
   ============================================================ */
.divisions {
  position: relative;
  padding: clamp(40px, 5vw, 48px) 0 clamp(56px, 9vw, 96px);
  background:
    linear-gradient(180deg, var(--c-void) 0%, var(--c-1) 22%, var(--c-1) 100%);
}

.divisions__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

.divisions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(22px, 5vw, 36px);
}

@media (min-width: 720px) and (max-width: 1059px) {
  .divisions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Third card takes the full width rather than sitting orphaned. */
  .divisions__grid > .divcard:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1060px) {
  .divisions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* ---- the card ---- */
.divcard {
  position: relative;
  display: flex;
  min-width: 0; /* grid children must be allowed to shrink */
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-2);
  box-shadow: var(--shd-1);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              opacity 0.8s ease,
              filter 0.8s ease;
}

.divcard::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  height: 3px;
  background: var(--acc);
}

.divcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-3);
}

.divcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.divcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,13,0.10) 0%, rgba(7,10,13,0.72) 100%);
}

.divcard__pn {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: rgba(7, 10, 13, 0.92);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}

.divcard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(18px, 4.5vw, 26px);
}

.divcard__name {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(21px, 5.4vw, 27px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}

.divcard__line {
  margin: 0 0 16px;
  font-size: clamp(14px, 3.7vw, 15.5px);
  line-height: 1.6;
  color: var(--alloy-2);
}

.divcard__bullets {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

.divcard__bullets li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
  color: var(--titanium);
}

.divcard__bullets span {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alloy);
}

/* The whole card is the target. The anchor stretches over it, so the
   visible button is decoration and the real hit area is the full card. */
.divcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--acc);
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--acc);
  transition: background-color 0.28s ease, color 0.28s ease;
}

.divcard__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.divcard__cta span { pointer-events: none; }

@media (hover: hover) {
  .divcard:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: var(--shd-2), 0 0 0 1px var(--acc-glow);
  }
  .divcard:hover .divcard__media img { transform: scale(1.045); }
  .divcard:hover .divcard__cta { background: var(--acc); color: var(--c-void); }
}

.divcard:focus-within {
  border-color: var(--acc);
  box-shadow: var(--shd-2), 0 0 0 1px var(--acc-glow);
}

/* ============================================================
   4. HUB SUPPORT BAND
   ============================================================ */
.hubband {
  padding: clamp(44px, 8vw, 80px) 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-void);
}

.hubband__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 44px);
}

@media (min-width: 900px) {
  .hubband__inner { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.hubband__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-line);
}

.hubband__fact {
  min-width: 0;
  padding: 16px 14px;
  background: var(--c-1);
}

.hubband__fact dt {
  margin: 0 0 5px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--alloy);
}

.hubband__fact dd {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--paper);
  overflow-wrap: anywhere;
}

/* ============================================================
   5. BROKERING PAGE
   ============================================================ */
.brkhero {
  position: relative;
  isolation: isolate;
  padding: calc(104px + env(safe-area-inset-top)) 0 clamp(36px, 7vw, 64px);
  overflow: hidden;
  background: var(--c-void);
}

.brkhero__bg { position: absolute; inset: 0; z-index: -2; }

.brkhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.brkhero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,10,13,0.90) 0%, rgba(7,10,13,0.70) 45%, rgba(7,10,13,0.96) 100%);
}

.brkhero__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

.brkhero__title {
  margin: 0 0 clamp(12px, 3vw, 18px);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(31px, 8.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}

.brkhero__title em {
  display: block;
  font-style: normal;
  color: var(--steel-2);
}

.brkhero__lede {
  max-width: 52ch;
  margin: 0 0 clamp(20px, 4.5vw, 28px);
  font-size: clamp(15px, 3.9vw, 18px);
  line-height: 1.62;
  color: var(--titanium);
}

.brkhero__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- two paths: buying / selling ---- */
.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(24px, 5vw, 38px);
}

@media (min-width: 860px) {
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

.path {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4.6vw, 30px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-2);
}

.path--buy  { border-top: 3px solid var(--steel-2); }
.path--sell { border-top: 3px solid var(--beacon); }

.path__pn {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--alloy);
}

.path__name {
  margin: 8px 0 10px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--paper);
}

.path__body { margin: 0 0 18px; }

.path__body p {
  margin: 0 0 12px;
  font-size: clamp(14.5px, 3.8vw, 16px);
  line-height: 1.65;
  color: var(--alloy-2);
}

.path__body p:last-child { margin-bottom: 0; }

.path__steps {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.path__steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--titanium);
}

.path__steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--alloy);
  padding-top: 2px;
}

.path .btn { margin-top: auto; }

/* ---- disclosure line ---- */
.disclose {
  margin: clamp(26px, 5vw, 40px) 0 0;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--alloy);
  border-radius: var(--r-sm);
  background: var(--c-1);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--alloy-2);
}

.disclose strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
}

/* ============================================================
   6. AOG STRIP (hub)
   An emergency must never require picking a division first.
   ============================================================ */
.aogstrip {
  border-block: 1px solid var(--c-line);
  border-left: 4px solid var(--signal);
  background: var(--c-1);
}

.aogstrip__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 4.5vw, 26px) 0;
}

.aogstrip__lbl {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.aogstrip__line {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(14.5px, 3.8vw, 16px);
  line-height: 1.6;
  color: var(--titanium);
}

@media (min-width: 880px) {
  .aogstrip__inner {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
  .aogstrip__line { flex: 1 1 auto; }
  .aogstrip__lbl { flex: 0 0 auto; }
}

/* ============================================================
   7. LISTINGS HANDOFF (brokering)
   ============================================================ */
.listings-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 5vw, 34px);
  padding: clamp(22px, 5vw, 34px) clamp(18px, 4vw, 30px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-2);
  text-align: center;
}

.listings-cta__fallback {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--alloy-2);
}

.listings-cta__fallback a { color: var(--beacon); border-bottom: 1px solid var(--beacon); }

/* ============================================================
   8. OPTIONAL AIRCRAFT FIELDSET (brokering form)
   ============================================================ */
.wo__set {
  min-width: 0; /* fieldset defaults to min-content, which breaks grid rows */
  margin: clamp(18px, 4vw, 26px) 0;
  padding: clamp(16px, 3.6vw, 22px) 0 0;
  border: 0;
  border-top: 1px solid var(--c-line);
}

.wo__legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alloy);
}

/* ============================================================
   9. BROKERING DISCLAIMER
   ============================================================ */
.brk-disclaimer {
  margin: clamp(26px, 5vw, 38px) 0 0;
  max-width: 82ch;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--alloy);
}

/* ============================================================
   10. COMPACT CHOOSER HEAD
   The chooser is the reason this page exists, so the chrome above
   it is deliberately small. Card one has to be on screen at 375px.
   ============================================================ */
.divisions__head { margin: 0 0 clamp(16px, 3.5vw, 24px); }

.divisions__h {
  margin: 0 0 6px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(22px, 5.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}

.divisions__sub {
  margin: 0;
  font-size: clamp(13.5px, 3.5vw, 15px);
  line-height: 1.55;
  color: var(--alloy-2);
}

/* ---- phone: strip everything that pushes the cards down ---- */
@media (max-width: 719px) {
  .hubhero { padding-top: calc(34px + env(safe-area-inset-top)); }
  .hubhero__acts .btn { flex: 1 1 145px; justify-content: center; }
  .divisions { padding-top: 28px; }
  .divisions .formline { display: none; }
}


/* ============================================================
   11. VERIFICATION FIXES
   ============================================================ */
/* .btn is white-space:nowrap in the base sheet, so long CTA labels could not
   wrap at 320px. These four are the only long ones. */
.brkhero__acts .btn,
.listings-cta .btn,
.path .btn {
  white-space: normal;
  text-align: center;
}

/* grid children must be allowed to shrink below their content width */
.hubband__inner > * { min-width: 0; }

/* The optional aircraft fieldset restarts nth-of-type, so the base sheet's
   ".wo__row:nth-of-type(2) { 1fr 1fr }" was hitting a three-field row. */
@media (min-width: 720px) {
  .wo__set .wo__row:nth-of-type(2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
