/* SkyHi Crew Services Limited — crew dispatch loft stylesheet
   Palette: loft-mist #F1F2F0, roster-ink #23262A, fly-teal #176A73,
   bay-navy #232C36, tile-cream #FAF7EE, sky-steel #4A5B6E,
   badge-gold #B78B3C, flip-sand #E4D9BC (tile half-faces only). */

:root {
  --loft-mist: #F1F2F0;
  --roster-ink: #23262A;
  --fly-teal: #176A73;
  --bay-navy: #232C36;
  --tile-cream: #FAF7EE;
  --sky-steel: #4A5B6E;
  --badge-gold: #B78B3C;
  --flip-sand: #E4D9BC;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--loft-mist);
  color: var(--roster-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--fly-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--bay-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

/* ============================ FLIP BOARD HEAD ============================ */

.fliphead {
  background: var(--bay-navy);
  padding: 14px 22px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px 18px;
  border-bottom: 4px solid var(--fly-teal);
}

.fliphead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fly-teal);
  border: 2px solid var(--tile-cream);
  border-radius: 4px;
  padding: 10px 16px;
  box-shadow: inset 0 0 0 2px #0F4F56;
}

.fliphead-wing {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--tile-cream);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-8deg);
  position: relative;
}

.fliphead-wing::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  width: 16px;
  height: 3px;
  background: var(--fly-teal);
  box-shadow: 0 -6px 0 var(--fly-teal), 0 6px 0 var(--fly-teal);
}

.fliphead-name {
  color: var(--tile-cream);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  display: block;
}

.fliphead-name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D7E6E5;
}

.fliphead-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  align-items: stretch;
}

.flip-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 108px;
  background: var(--tile-cream);
  border: 2px solid #D9D2BE;
  border-radius: 3px;
  padding: 10px 12px 8px;
  position: relative;
  color: var(--roster-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.flip-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.flip-tile-seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #C9C1AA;
}

.flip-tile-face {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--flip-sand);
  border-top-left-radius: 3px;
  border-top: 2px solid #C9BEA0;
  border-left: 2px solid #C9BEA0;
}

.flip-tile-label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.flip-tile-code {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fly-teal);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.flip-tile:nth-child(2) { margin-top: 6px; }
.flip-tile:nth-child(3) { margin-top: 12px; }
.flip-tile:nth-child(4) { margin-top: 6px; }
.flip-tile:nth-child(5) { margin-top: 0; }

.flip-tile.is-current {
  border-color: var(--badge-gold);
  box-shadow: inset 0 0 0 2px var(--badge-gold);
}

/* ============================ OPERATIONS BAY HERO ============================ */

.opsbay {
  position: relative;
  padding: 54px 22px 46px;
  background: var(--loft-mist);
  border-bottom: 3px solid #D8D4C8;
  overflow: hidden;
}

.opsbay-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  min-height: 420px;
}

.opsbay-band {
  background: var(--bay-navy);
  border: 3px solid var(--sky-steel);
  border-radius: 5px;
  padding: 22px 24px 26px;
  max-width: 760px;
  margin: 0 auto;
  transform: rotate(-1.6deg);
  box-shadow: 0 14px 0 #1B232C;
  position: relative;
  z-index: 2;
}

.opsbay-bandhead { margin: 0 0 16px; }

.opsbay-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tile-cream);
  background: var(--fly-teal);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.opsbay-headline {
  color: var(--tile-cream);
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

.opsbay-headline span { display: block; }

.opsbay-headline .line-accent { color: #6FC3CB; }

.opsrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tile-cream);
  border-radius: 2px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-left: 6px solid var(--sky-steel);
}

.opsrow:last-child { margin-bottom: 0; }

.opsrow.is-top {
  border-left-color: var(--badge-gold);
  position: relative;
}

.opsrow-wing {
  background: var(--badge-gold);
  color: var(--bay-navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 2px;
}

.opsrow-code {
  font-weight: 700;
  font-size: 15px;
  color: var(--bay-navy);
  min-width: 76px;
  letter-spacing: 0.06em;
}

.opsrow-crew {
  flex: 1;
  font-size: 13px;
  color: var(--roster-ink);
}

.opsrow-gate {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--fly-teal);
  color: var(--tile-cream);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.opsbay-wheel {
  position: absolute;
  left: 0;
  top: 40px;
  width: 150px;
  z-index: 1;
}

.opsbay-wheel-post {
  width: 20px;
  height: 150px;
  background: var(--sky-steel);
  margin: 0 auto -6px;
  border-radius: 3px;
}

.opsbay-wheel-face {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 8px solid var(--sky-steel);
  background: var(--tile-cream);
  position: relative;
  overflow: hidden;
}

.opsbay-wedge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  transform-origin: 0 0;
}

.opsbay-wedge.w1 { background: #CDE3E4; transform: rotate(0deg); }
.opsbay-wedge.w2 { background: #E4D9BC; transform: rotate(60deg); }
.opsbay-wedge.w3 { background: #CDE3E4; transform: rotate(120deg); }
.opsbay-wedge.w4 { background: var(--tile-cream); transform: rotate(180deg); }
.opsbay-wedge.w5 { background: #CDE3E4; transform: rotate(240deg); }
.opsbay-wedge.w6 { background: #E4D9BC; transform: rotate(300deg); }

.opsbay-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--bay-navy);
  border: 3px solid var(--badge-gold);
  z-index: 3;
}

.opsbay-pointer {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 0;
  height: 0;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 20px solid var(--fly-teal);
  z-index: 4;
}

.opsbay-cart {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: 200px;
  z-index: 1;
}

.opsbay-case {
  border-radius: 4px;
  border: 3px solid var(--sky-steel);
  background: var(--tile-cream);
  position: relative;
  box-shadow: 0 6px 0 #C9C1AA;
}

.opsbay-case.case-a {
  width: 150px;
  height: 60px;
  margin: 0 auto 8px;
}

.opsbay-case.case-b {
  width: 120px;
  height: 50px;
  margin: 0 auto 8px;
  background: var(--flip-sand);
}

.opsbay-case-strap {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--badge-gold);
}

.opsbay-cart-deck {
  width: 180px;
  height: 12px;
  background: var(--sky-steel);
  border-radius: 3px;
  margin: 0 auto;
}

.opsbay-cart-handle {
  width: 8px;
  height: 58px;
  background: var(--sky-steel);
  margin: 0 6px -4px auto;
  border-radius: 3px;
  position: relative;
}

.opsbay-cart-handle::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -26px;
  width: 34px;
  height: 8px;
  background: var(--sky-steel);
  border-radius: 4px;
}

.opsbay-cart-wheel {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bay-navy);
  display: inline-block;
  margin: 0 10px;
  vertical-align: top;
}

.opsbay-intro {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.opsbay-intro p {
  font-size: 16px;
  color: var(--roster-ink);
}

.opsbay-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.crewbadge {
  display: inline-block;
  background: var(--fly-teal);
  color: var(--tile-cream);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 40px;
  border: 3px solid var(--badge-gold);
  position: relative;
  text-decoration: none;
}

.crewbadge::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--badge-gold);
  border-radius: 50% 50% 50% 0;
  margin-right: 10px;
  vertical-align: -1px;
  transform: rotate(-20deg);
}

.crewbadge:hover {
  background: #0F4F56;
  text-decoration: none;
}

.crewbadge-link {
  color: var(--fly-teal);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
}

/* ============================ ROSTER WALL ============================ */

.rosterwall {
  padding: 56px 22px 60px;
  background: var(--tile-cream);
  border-bottom: 3px solid #D8D4C8;
}

.rosterwall-head {
  max-width: 1180px;
  margin: 0 auto 34px;
  text-align: center;
}

.rosterwall-head h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.rosterwall-head p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--sky-steel);
}

.rosterwall-boards {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.dutyboard {
  flex: 1 1 420px;
  background: #E7E3D8;
  border: 3px solid var(--sky-steel);
  border-radius: 5px;
  padding: 24px 20px 28px;
  position: relative;
}

.dutyboard.board-b {
  margin-top: 70px;
}

.dutyboard-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--bay-navy);
  color: var(--tile-cream);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

.rosterline {
  background: var(--tile-cream);
  border: 2px solid #D9D2BE;
  border-radius: 4px;
  padding: 18px 18px 16px;
  margin-bottom: 22px;
  position: relative;
  box-shadow: 0 5px 0 #CFC8B2;
}

.rosterline:last-child { margin-bottom: 0; }

.rosterline.is-crewed {
  border: 3px dashed var(--fly-teal);
}

.rosterline-clip {
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--badge-gold);
  border: 2px solid var(--tile-cream);
}

.rosterline-clip.clip-a { left: 16px; }
.rosterline-clip.clip-b { right: 16px; }

.rosterline-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rosterline-code {
  background: var(--bay-navy);
  color: var(--tile-cream);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 2px;
}

.rosterline-run {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.rosterline-day {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 2px solid var(--sky-steel);
  background: var(--tile-cream);
}

.rosterline-day.d-on { background: var(--fly-teal); border-color: var(--fly-teal); }
.rosterline-day.d-gold { background: var(--badge-gold); border-color: var(--badge-gold); }
.rosterline-day.d-sand { background: var(--flip-sand); border-color: #C9BEA0; }

.rosterline-stamp {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--fly-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--fly-teal);
  border-radius: 3px;
  padding: 2px 7px;
  transform: rotate(-4deg);
}

.rosterline h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.rosterline h3 a {
  color: var(--bay-navy);
}

.rosterline p {
  font-size: 14px;
  margin: 0;
  color: var(--roster-ink);
}

/* ============================ CHECK-IN COUNTER STRIP ============================ */

.checkinstrip {
  background: var(--bay-navy);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
}

.checkin-counter {
  display: flex;
  gap: 6px;
}

.checkin-digit {
  width: 46px;
  height: 58px;
  background: var(--tile-cream);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--bay-navy);
  position: relative;
  overflow: hidden;
}

.checkin-digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #C9C1AA;
}

.checkin-copy {
  color: var(--tile-cream);
  font-size: 16px;
  max-width: 640px;
}

.checkin-copy strong { color: #6FC3CB; }

/* ============================ CART BAY FOOTER ============================ */

.cartbay {
  background: var(--bay-navy);
  padding: 46px 22px 0;
  border-top: 5px solid var(--fly-teal);
}

.cartbay-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 34px;
}

.cartbay-card {
  flex: 1 1 340px;
  background: var(--tile-cream);
  border-radius: 5px;
  padding: 22px 22px 20px;
  border-left: 6px solid var(--fly-teal);
}

.cartbay-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.cartbay-card p {
  font-size: 14px;
  color: var(--roster-ink);
  margin: 0;
}

.cartbay-links {
  flex: 1 1 300px;
}

.cartbay-links-title {
  color: var(--tile-cream);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gatechip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gatechip {
  display: inline-block;
  background: var(--fly-teal);
  color: var(--tile-cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
}

.gatechip:hover {
  background: #0F4F56;
  text-decoration: none;
}

.cartbay-cart {
  flex: 0 0 200px;
  align-self: flex-end;
}

.cartbay-cart .opsbay-case { border-color: var(--sky-steel); }

.cartbay-floor {
  background: #1B232C;
  border-top: 2px solid var(--sky-steel);
  padding: 16px 22px;
}

.cartbay-floor-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: #E4E6E4;
  font-size: 13px;
}

.cartbay-floor-inner a { color: #6FC3CB; }

.cartbay-wing {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--badge-gold);
  border-radius: 50% 50% 50% 0;
  margin-right: 8px;
  transform: rotate(-20deg);
  vertical-align: -1px;
}

/* ============================ GENERIC PAGE CONTENT ============================ */

.pageband {
  background: var(--bay-navy);
  padding: 40px 22px;
  border-bottom: 5px solid var(--fly-teal);
}

.pageband-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.pageband h1 {
  color: var(--tile-cream);
  font-size: 36px;
  margin-bottom: 10px;
}

.pageband p {
  color: #D7E0E0;
  max-width: 760px;
  margin: 0;
}

.prose-section {
  padding: 50px 22px;
  background: var(--loft-mist);
}

.prose-section.is-cream { background: var(--tile-cream); }

.prose-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.prose-wrap h2 {
  font-size: 26px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 2px solid #D8D4C8;
}

.prose-wrap h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose-wrap h3 {
  font-size: 20px;
  margin-top: 24px;
}

.serviceblock {
  max-width: 900px;
  margin: 0 auto 30px;
  background: var(--tile-cream);
  border: 2px solid #D9D2BE;
  border-left: 6px solid var(--fly-teal);
  border-radius: 4px;
  padding: 24px 24px 20px;
  box-shadow: 0 5px 0 #D3CCB6;
}

.serviceblock h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.serviceblock .svc-code {
  display: inline-block;
  background: var(--bay-navy);
  color: var(--tile-cream);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.twocol {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.twocol > * { flex: 1 1 340px; }

.infopanel {
  background: var(--tile-cream);
  border: 2px solid #D9D2BE;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 5px 0 #D3CCB6;
}

.infopanel h3 { font-size: 20px; }

.contactform {
  max-width: 640px;
  margin: 0 auto;
  background: var(--tile-cream);
  border: 2px solid #D9D2BE;
  border-radius: 4px;
  padding: 26px;
  box-shadow: 0 5px 0 #D3CCB6;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bay-navy);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--roster-ink);
  background: #FFFFFF;
  border: 2px solid var(--sky-steel);
  border-radius: 3px;
  padding: 10px 12px;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--fly-teal);
  border-color: var(--fly-teal);
}

.field textarea { min-height: 140px; resize: vertical; }

.formnote {
  font-size: 13px;
  color: var(--sky-steel);
  margin-top: 10px;
}

.faq-item {
  border-bottom: 2px solid #D8D4C8;
  padding: 16px 0;
}

.faq-item h3 { font-size: 17px; margin-bottom: 6px; }

/* ============================ SCROLL REVEAL ============================ */

.reveal {
  transform: translateY(18px);
  transition: transform 0.5s ease;
}

.reveal.is-shown {
  transform: none;
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 860px) {
  .opsbay-wheel,
  .opsbay-cart {
    position: static;
    margin: 24px auto 0;
  }
  .opsbay-band { transform: none; }
  .opsbay-inner { min-height: 0; }
  .opsbay-headline { font-size: 30px; }
  .dutyboard.board-b { margin-top: 0; }
}

.fliphead-toggle {
  display: none;
  background: var(--tile-cream);
  color: var(--bay-navy);
  border: 2px solid var(--badge-gold);
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  margin-left: auto;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: var(--tile-cream);
  color: var(--bay-navy);
  border: 2px solid var(--sky-steel);
  border-radius: 3px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-toggle::after {
  content: "+";
  float: right;
  color: var(--fly-teal);
  font-size: 20px;
  line-height: 1;
}

.faq-toggle[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  display: none;
  border: 2px solid var(--sky-steel);
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 14px 16px;
  background: #FFFFFF;
}

.faq-panel.is-open { display: block; }

@media (max-width: 860px) {
  .fliphead-toggle { display: inline-block; }
}

@media (max-width: 620px) {
  .fliphead-rail {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    display: none;
  }
  .fliphead-rail.is-open { display: flex; }
  .flip-tile {
    width: 100%;
  }
  .flip-tile:nth-child(n) { margin-top: 0; }
  .opsbay-headline { font-size: 25px; }
  .opsbay-band { padding: 18px 16px 20px; }
}
