/* The Ritchie Group : jet-transactions.com
   Base stylesheet. Element styling is inline in index.html (carried over from the
   approved design); this file holds what an attribute cannot express: resets,
   keyframes, image fitting, state visibility, the header and menu states and the
   responsive rules. */

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: #0D1117;
  color: #F2F5F8;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

a { color: #4DA3FF; text-decoration: none; }
a:hover { color: #8CC4FF; }

::selection { background: #007bff; color: #FFFFFF; }

img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

@keyframes trgRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes trgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trgSlide { from { transform: translateX(-100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- photography -------------------------------------------------------
   Every photo sits in a position:relative container that already carries the
   aspect ratio, so the image fills it and crops rather than stretching. */
.slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* the G800 frame is 4:3; keep the window line and wing in view on wide screens */
.hero-photo .slot { object-position: 50% 58%; }

/* ---- header -------------------------------------------------------------
   Transparent over the hero photo, no bar. Once the page scrolls, trg.js adds
   .scrolled and the header turns white so it stays readable over light sections. */
#trg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
#trg-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(20, 24, 29, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hdr-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 32px);
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.hdr-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: invert(1) drop-shadow(0 1px 10px rgba(0, 0, 0, 0.35));
  transition: filter .35s;
}
#trg-header.scrolled .hdr-logo img { filter: none; }

.hdr-burger {
  width: 46px;
  height: 46px;
  margin-left: -10px;
  padding: 10px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hdr-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #FFFFFF;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  transition: background .35s;
}
#trg-header.scrolled .hdr-burger span { background: #14181D; box-shadow: none; }

/* ---- menu drawer ---------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 300; }
.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 12, 0.6);
  animation: trgFade .25s ease both;
}
.menu-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(380px, 86vw);
  background: #0D1117;
  border-right: 1px solid rgba(242, 245, 248, 0.1);
  padding: 22px 34px 34px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: trgSlide .35s cubic-bezier(.2, .7, .2, 1) both;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.menu-label {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7D8894;
}
.menu-x {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 245, 248, 0.28);
  background: transparent;
  color: #F2F5F8;
  font-size: 16px;
  line-height: 1;
}
.menu-panel > a {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  color: #F2F5F8;
  padding: 11px 0;
  border-bottom: 1px solid rgba(242, 245, 248, 0.08);
  transition: color .25s, padding-left .25s;
}
.menu-panel > a:hover { color: #4DA3FF; padding-left: 6px; }
.menu-foot {
  margin-top: auto;
  padding-top: 34px;
  font-size: 14px;
}
body.menu-open { overflow: hidden; }

/* ---- history: brand photo tiles --------------------------------------------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.brand-tile .slot { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.brand-tile:hover .slot { transform: scale(1.04); }

/* ---- contact: form chooser and fields ----------------------------------------- */
.form-pick {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: transparent;
  color: #F2F5F8;
  border: 1px solid rgba(242, 245, 248, 0.14);
  border-left: 3px solid rgba(242, 245, 248, 0.14);
  transition: border-color .25s, background .25s;
}
.form-pick:hover { border-color: rgba(0, 123, 255, 0.55); }
.form-pick[aria-pressed="true"] {
  background: rgba(0, 123, 255, 0.08);
  border-color: rgba(0, 123, 255, 0.55);
  border-left-color: #007bff;
}
.form-pick-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  line-height: 1.15;
}
.form-pick-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(242, 245, 248, 0.66);
  font-weight: 300;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.fld > span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7D8894;
}
.fld input, .fld textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 245, 248, 0.22);
  padding: 11px 0;
  color: #F2F5F8;
  font-size: 16px;
  outline: none;
  width: 100%;
  min-width: 0;
  transition: border-color .25s;
}
.fld textarea {
  border: 1px solid rgba(242, 245, 248, 0.22);
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}
.fld input:focus { border-bottom-color: #007bff; }
.fld textarea:focus { border-color: #007bff; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(242, 245, 248, 0.38); }
.fld.invalid input { border-bottom-color: #FF6B6B; }

/* ---- listing popup: card-stack photo gallery ---------------------------------
   The same feature as GlobalAir.com's listing pages (DEV-2838, listing-gallery.css),
   set in this site's type and colours. trg.js (Stack) places the cards. Two changes
   from GlobalAir.com: square corners to match this site, and the frames are 7:5, the
   shape of GlobalAir.com's listing photos, so every photo shows whole instead of
   cropped to 3:2 (object-fit: contain covers any photo of another shape). */
.sg { container-type: inline-size; container-name: sg; position: relative; min-width: 0;
      --sg-ink: #14181D; --sg-steel: rgba(20, 24, 29, 0.62); --sg-blue: #007bff; --sg-fill: #0062CC; }
.sg-w { display: grid; grid-template-columns: minmax(0, 1fr); }

.sg-stage { order: 0; position: relative; height: clamp(300px, 56cqi, 460px); overflow: hidden;
            touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; isolation: isolate; }
.sg-stage::after { content: ""; position: absolute; inset: 0; z-index: 1000; border: 2px solid var(--sg-blue);
                   pointer-events: none; opacity: 0; }
.sg-stage:focus-visible::after { opacity: 1; }
.sg-stage.snap .sg-card { transition: none !important; }

.sg-amb { position: absolute; inset: 0; z-index: 0; pointer-events: none;
          -webkit-mask-image: radial-gradient(closest-side at 50% 60%, #000 30%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 60%, #000 30%, transparent 100%); }
.sg-amb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
              filter: blur(60px) saturate(1.4); opacity: 0; transition: opacity 1.1s ease; }
.sg-amb img:not([src]) { display: none; }
.sg-amb img.show { opacity: .3; }

.sg-card { position: absolute; left: 0; top: 0; transform-origin: 50% 50%;
           transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
           will-change: transform, opacity; }
.sg-card.dragging { transition: none; }
.sg-card:not(.front) { cursor: pointer; }
.sg-card.front { cursor: zoom-in; }
.sg-card.sg-off { display: none; }
/* before the script measures the stage, only the first photo shows */
.sg:not(.sg-on) .sg-card { display: none; }
.sg:not(.sg-on) .sg-amb + .sg-card { display: block; width: min(72%, 560px); left: 50%; top: 50%; transform: translate(-50%, -50%); }

.sg-frame { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: #0D1117;
            box-shadow: 0 1px 2px rgba(10, 22, 40, .08), 0 8px 18px rgba(10, 22, 40, .12), 0 22px 48px rgba(10, 22, 40, .16); }
.sg-card.front .sg-frame { box-shadow: 0 2px 4px rgba(10, 22, 40, .10), 0 14px 28px rgba(10, 22, 40, .16), 0 40px 80px rgba(10, 22, 40, .24); }
.sg-frame img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }

.sg-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #FFFFFF;
          background: linear-gradient(to top, rgba(10, 14, 20, .85), rgba(10, 14, 20, 0));
          opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.sg-cap small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 3px; }
.sg-cap b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.15; }
.sg-card.front .sg-cap { opacity: 1; transform: none; transition-delay: .25s; }

.sg-expand { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; background: rgba(10, 14, 20, .6);
             color: #FFFFFF; display: grid; place-items: center; font-size: 17px; line-height: 1;
             opacity: 0; transform: scale(.8); transition: opacity .35s, transform .35s; pointer-events: none; }
.sg-card.front .sg-expand { opacity: 1; transform: none; transition-delay: .25s; }

/* phone arrows and counter, inside the stage */
.sg-ui { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 999; }
.sg-arrow { width: 44px; height: 44px; border: 1px solid rgba(20, 24, 29, .18); background: #FFFFFF; color: var(--sg-ink);
            font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(10, 22, 40, .12);
            display: grid; place-items: center; font-family: inherit; transition: background .25s, color .25s, border-color .25s; }
.sg-arrow:hover { border-color: var(--sg-fill); background: var(--sg-fill); color: #FFFFFF; }
.sg-count { min-width: 70px; text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--sg-ink); font-variant-numeric: tabular-nums; }

/* counter, group chips, progress */
.sg-panel { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 0; }
.sg-num, .sg-nav { display: none; }
.sg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-chip { border: 1px solid rgba(20, 24, 29, .18); background: #FFFFFF; color: var(--sg-ink); font-size: 11px;
           letter-spacing: .16em; text-transform: uppercase; padding: 0 14px; min-height: 40px; cursor: pointer;
           transition: border-color .25s, color .25s, background .25s; }
.sg-chip span { color: var(--sg-steel); margin-left: 8px; letter-spacing: .04em; }
.sg-chip:hover:not(.on) { border-color: var(--sg-fill); color: var(--sg-fill); }
.sg-chip.on { background: var(--sg-ink); border-color: var(--sg-ink); color: #FFFFFF; }
.sg-chip.on span { color: rgba(255, 255, 255, .7); }
.sg-prog { flex: 1 1 100%; height: 2px; background: rgba(20, 24, 29, .1); overflow: hidden; }
.sg-prog i { display: block; height: 100%; width: 0; background: var(--sg-blue); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

/* thumbnail strip */
.sg-strip { order: 2; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 6px; justify-content: safe center; scrollbar-width: thin; }
.sg-thumb { flex: 0 0 auto; width: 64px; aspect-ratio: 7 / 5; overflow: hidden; border: 2px solid transparent; padding: 0;
            background: #0D1117; cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.sg-thumb:hover { opacity: .85; }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sg-thumb.on { border-color: var(--sg-blue); opacity: 1; }

/* video and 3D tour: buttons under the chips, tiles pinned at the strip's left end while
   the photo thumbnails scroll under them, and one player window (built by trg.js) */
.sg-media { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.sg-mbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 9px;
           background: var(--sg-ink); border: 1px solid var(--sg-ink); color: #FFFFFF; font-size: 11px;
           letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .25s, border-color .25s; }
.sg-mbtn:hover { background: var(--sg-fill); border-color: var(--sg-fill); }
.sg-mbtn i, .sg-thumb.media i { width: 22px; height: 22px; border-radius: 50%; background: var(--sg-fill); color: #FFFFFF;
                                display: grid; place-items: center; flex: none; }
.sg-mbtn:hover i { background: #FFFFFF; color: var(--sg-fill); }
.sg-mbtn svg, .sg-thumb.media svg { width: 11px; height: 11px; fill: currentColor; }
.sg-mt { position: sticky; left: 0; z-index: 2; flex: 0 0 auto; display: flex; gap: 8px; padding-right: 8px; margin-right: -8px;
         background: #F7F9FB; box-shadow: 6px 0 6px -6px rgba(10, 22, 40, .25); }
.sg-mt:not(:has(.media)) { display: none; }
.sg-thumb.media { position: relative; display: block; opacity: 1; border-color: rgba(20, 24, 29, .15); }
.sg-thumb.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 20, .8), rgba(10, 14, 20, .15)); }
.sg-thumb.media i { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 1; }
.sg-thumb.media b { position: absolute; left: 0; right: 0; bottom: 3px; z-index: 1; color: #FFFFFF; font-size: 8.5px; font-weight: 600;
                    letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.sg-thumb.media:hover { border-color: var(--sg-blue); }

.sg-mv { position: fixed; inset: 0; z-index: 9100; display: none; background: rgba(5, 8, 12, .94);
         align-items: center; justify-content: center; padding: 64px 24px 24px; }
.sg-mv.open { display: flex; }
.sg-mv-box { position: relative; width: min(1100px, 100%, (100vh - 120px) * 16 / 9); aspect-ratio: 16 / 9; background: #000000;
             overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sg-mv-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-mv-hd { position: absolute; top: 24px; left: 24px; right: 84px; color: #FFFFFF; font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; line-height: 1.2; }
.sg-mv-hd small { font-family: inherit; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-right: 12px; vertical-align: 3px; }
.sg-mv .sg-lb-close { top: 16px; right: 16px; }
@media (max-width: 768px) {
  .sg-mv { padding: 64px 0 0; align-items: flex-start; }
  .sg-mv-box { width: 100%; }
  .sg-mv-box.tour { aspect-ratio: auto; height: calc(100vh - 64px); }
  .sg-mv-hd { left: 16px; right: 76px; font-size: 17px; }
}

/* full-screen photo view: the front photo flies out of the stack and back on close */
.sg-lb { position: fixed; inset: 0; z-index: 9000; display: none; background: rgba(5, 8, 12, 0); transition: background .4s ease;
         touch-action: none; user-select: none; -webkit-user-select: none; }
.sg-lb.open { display: block; }
.sg-lb.show { background: rgba(5, 8, 12, .94); }
.sg-lb-img { position: absolute; left: 0; top: 0; overflow: hidden; background: #0D1117;
             box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform-origin: 0 0; will-change: transform, opacity; }
.sg-lb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.sg-lb-ui { opacity: 0; transition: opacity .3s ease; }
.sg-lb.show .sg-lb-ui { opacity: 1; }
.sg-lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
             color: #FFFFFF; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.sg-lb-btn:hover { background: var(--sg-fill, #0062CC); border-color: #0062CC; }
.sg-lb-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.sg-lb-close { top: 16px; right: 16px; font-size: 18px; }
.sg-lb-prev { left: 24px; top: 50%; margin-top: -24px; }
.sg-lb-next { right: 24px; top: 50%; margin-top: -24px; }
.sg-lb-count { position: absolute; top: 30px; left: 24px; color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: .1em; }
.sg-lb-cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #FFFFFF; pointer-events: none; }
.sg-lb-cap small { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 4px; }
.sg-lb-cap b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 24px; }
.sg-lb.compact .sg-lb-prev, .sg-lb.compact .sg-lb-next { top: auto; bottom: 22px; margin-top: 0; }
.sg-lb.compact .sg-lb-prev { left: 16px; }
.sg-lb.compact .sg-lb-next { right: 16px; }
.sg-lb.compact .sg-lb-cap { bottom: 30px; }
.sg-lb.compact .sg-lb-cap b { font-size: 19px; }
.sg-lb.compact .sg-lb-count { top: 30px; left: 18px; }

/* wide popups: counter, chips and arrows in a column beside the photos */
@container sg (min-width: 760px) {
  .sg-w { grid-template-columns: 220px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .sg-panel { order: 0; display: block; padding: 0 0 0 8px; position: relative; z-index: 3; }
  .sg-num { display: block; margin-bottom: 18px; }
  .sg-num b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 64px; line-height: 1;
              color: var(--sg-ink); font-variant-numeric: tabular-nums; }
  .sg-num span { font-size: 15px; letter-spacing: .08em; color: var(--sg-steel); margin-left: 6px; }
  .sg-chips { flex-direction: column; align-items: flex-start; }
  .sg-prog { margin: 20px 0 18px; }
  .sg-nav { display: flex; align-items: center; gap: 10px; }
  .sg-hint { font-size: 12px; color: var(--sg-steel); line-height: 1.4; margin-left: 4px; }
  .sg-media { flex-direction: column; align-items: flex-start; margin-top: 16px; }
  .sg-stage { order: 1; height: clamp(380px, 44cqi, 520px); }
  .sg-strip { grid-column: 2; }
  .sg-stage .sg-ui { display: none; }
  .sg-card .sg-cap { display: none; }
  .sg-thumb { width: 78px; }
}

/* ---- state -------------------------------------------------------------- */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

.modal-wrap { display: contents; }

/* keyboard focus stays visible everywhere */
:focus-visible { outline: 2px solid #4DA3FF; outline-offset: 3px; }

button { cursor: pointer; }

/* inventory cards are clickable: announce that to assistive tech */
[data-act^="open:"] { cursor: pointer; }

/* ---- responsive ---------------------------------------------------------
   The layout is fluid (auto-fit / minmax / clamp). These rules only handle
   what fluidity cannot. */
@media (max-width: 900px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  #stickybar { font-size: 12px; }
  .hdr-row { min-height: 70px; }
  .hdr-logo img { height: 30px; }
  .hdr-cta { padding: 11px 14px !important; font-size: 10.5px !important; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .inv-tabs { flex: 1 1 100% !important; min-width: 0 !important; gap: 18px !important; }
  .inv-tabs button { font-size: 12px !important; letter-spacing: 0.08em !important; }
  .brand-grid { gap: 8px; }
  .brand-name { padding: 7px 10px !important; font-size: 10px !important; letter-spacing: 0.12em !important; }
}

@media (max-width: 400px) {
  .hdr-logo img { height: 24px; }
}
