/* Sirius Aviation Solutions
   Concept: airport departures board + wayfinding signage.
   One family (Archivo) in two widths; brand ultramarine, cool paper, ink,
   and taxiway-sign yellow kept for the board and primary actions. */

:root {
  --paper: #F2F4F8;
  --white: #FFFFFF;
  --ink: #0A1033;
  --ink-soft: #4A5272;
  --blue: #1B33D6;
  --blue-deep: #1428A8;
  --signal: #FFC629;
  --rule: #D5DAE6;

  --board: #16181E;
  --flap-top: #2A2D35;
  --flap-bottom: #1F2128;
  --flap-ink: #F4F2EA;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --surface: var(--white);
  --line: var(--rule);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --narrow: 75%;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080C26;
    --text: #EEF0F7;
    --muted: #A6AECA;
    --surface: #10163A;
    --line: #232B55;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-stretch: var(--wide); font-weight: 750; letter-spacing: -.025em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.4vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.intro { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: .7rem 1rem; background: var(--signal); color: var(--ink); font-weight: 650; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.crew :focus-visible, .contact :focus-visible, .board :focus-visible { outline-color: var(--signal); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.6rem;
  border: 0; border-radius: 6px; font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 160ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FFD45C; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }

/* header */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-stretch: var(--wide); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .6rem .9rem; text-decoration: none; font-weight: 550; border-radius: 6px; }
.nav a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .nav-contact { margin-left: .5rem; background: var(--ink); color: #fff; }
.nav .nav-contact:hover { background: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .nav-contact { background: var(--signal); color: var(--ink); } }
.menu { display: none; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; font: 600 .95rem var(--font); cursor: pointer; }

@media (max-width: 760px) {
  .brand span { font-size: .95rem; }
  .menu { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-contact { margin: 1rem 0 0; text-align: center; border: 0; border-radius: 6px; }
}

/* hero: photo is fixed to the viewport and clipped to the section,
   so the next section slides over it on scroll (works on iOS too) */
.hero {
  position: relative; isolation: isolate; clip-path: inset(0);
  min-height: calc(100svh - var(--header-h)); display: flex; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  /* the photo is light: keep hero text dark in both colour schemes */
  color: var(--ink);
}
.hero-photo {
  position: fixed; inset: 0; z-index: -1;
  background: #EEF1F5 url("assets/hero-hand-plane-1600.webp") 100% 45% / cover no-repeat;
}
@media (min-width: 1200px) { .hero-photo { background-image: url("assets/hero-hand-plane.webp"); } }
.hero-copy { position: relative; }
.hero h1 { max-width: 11ch; font-size: clamp(2.6rem, 6.4vw, 5.75rem); }
.hero-lead { margin-top: 1.75rem; font-size: 1.1875rem; color: #3A4262; max-width: 40ch; }
.approval { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(10, 16, 51, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .85); }
.hero :focus-visible { outline-color: var(--blue); }
@media (max-width: 760px) {
  /* portrait: the plane sits at the top of the screen, the text scrolls over it */
  .hero { align-items: flex-start; padding-top: calc(86vw - var(--header-h) + 1.5rem); }
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(238, 241, 244, 0) 45%, #EEF1F4 96%) right var(--header-h) / 100% calc(86vw + 2px) no-repeat,
      #EEF1F4 url("assets/hero-hand-plane-1600.webp") right var(--header-h) / 200% auto no-repeat;
  }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* fixed cloud background behind every section after the hero */
.sky { position: relative; isolation: isolate; clip-path: inset(0); }
.sky-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #F1F4F8 url("assets/clouds-1600.webp") center / cover no-repeat;
}
@media (min-width: 1200px) { .sky-bg { background-image: url("assets/clouds.webp"); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sky-bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 38, .86); }
}
.departures { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); }

/* departures board */
.board {
  --cells: 40;
  container-type: inline-size;
  background: var(--board); color: var(--flap-ink); border-radius: 10px;
  padding: clamp(.9rem, 2.4vw, 1.75rem) clamp(.75rem, 2.4vw, 1.75rem) clamp(.6rem, 1.6vw, 1.25rem);
  box-shadow: 0 30px 60px -30px rgba(10, 16, 51, .55);
}
.board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; padding-inline: .35rem; }
.board-title { font-stretch: var(--wide); font-weight: 750; font-size: clamp(1.25rem, 2.6vw, 1.9rem); color: var(--signal); letter-spacing: -.01em; }
.board-clock { font-size: .95rem; color: #B9BCC6; font-variant-numeric: tabular-nums; }
.board-clock time { color: var(--flap-ink); font-weight: 650; margin-left: .35rem; }

.board-head, .board-rows a {
  display: grid; align-items: center; column-gap: 1em;
  grid-template-columns: 4.4em 16.4em 7em 7em;
  font-size: 14px; font-size: min(30px, calc((100cqi - 1.5rem) / (var(--cells) * .86 + 3.4)));
}
.board-head { padding: 0 .35rem .5rem; color: #8D919C; }
.board-head span { font-size: max(.75rem, .62em); font-weight: 550; }
.board-rows li + li { margin-top: .35em; }
.board-rows a { padding: .3em .35rem; border-radius: 6px; text-decoration: none; transition: background-color 160ms ease; }
.board-rows a:hover { background: #22252D; }
.board-rows a:hover .f-svc .c, .board-rows a:focus-visible .f-svc .c { color: #fff; }

.f { display: flex; gap: .06em; font-weight: 650; font-stretch: var(--narrow); text-transform: uppercase; white-space: pre; }
.no-js .f { letter-spacing: .1em; }
.f-sts { color: var(--signal); }
.c {
  display: inline-grid; place-items: center; width: .8em; height: 1.45em; border-radius: 2px;
  background: linear-gradient(180deg, var(--flap-top) 0 calc(50% - .5px), #0C0D11 calc(50% - .5px) calc(50% + .5px), var(--flap-bottom) calc(50% + .5px));
  line-height: 1;
}

@media (max-width: 640px) {
  .board { --cells: 27; }
  .board-head, .board-rows a { grid-template-columns: 16.4em 7em; }
  .f-ref, .f-for { display: none !important; }
}

.clients { margin-top: 1.75rem; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); }
.clients strong { color: var(--text); font-weight: 650; }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.ref { display: block; font-size: .875rem; font-weight: 650; font-stretch: var(--narrow); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* crew (ultramarine field) */
.crew { background: var(--blue); color: #fff; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.crew .intro { color: #D6DCFF; margin-bottom: 2rem; }
.crew .ref { color: var(--signal); margin-bottom: .3rem; }
.list > div { padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.list dt { font-size: 1.375rem; font-weight: 650; font-stretch: 110%; margin-bottom: .35rem; }
.list dd { color: #D6DCFF; max-width: 52ch; }

/* airlines */
.airlines { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.airlines-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.service {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr); gap: .75rem 2.5rem; align-items: baseline;
  padding: 2rem 0; border-top: 2px solid var(--text);
}
.service:last-of-type { margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.service .ref { color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service .ref { color: var(--signal); } }
.service h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-stretch: var(--wide); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.service p:last-child { color: var(--muted); max-width: 56ch; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } }

/* process */
.process { padding: clamp(4rem, 9vw, 7rem) 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: none; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding-top: 1rem; border-top: 1px solid var(--line); }
.step-n { display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 750; font-stretch: var(--wide); line-height: 1; color: var(--blue); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-n { color: var(--signal); } }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* about */
.about { padding: clamp(4rem, 9vw, 7rem) 0; }
.about p { color: var(--muted); max-width: 54ch; }
.about p + p { margin-top: 1rem; }
.quotes { display: grid; gap: 2.5rem; }
.quotes blockquote { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; margin-bottom: .75rem; }
.quotes figcaption { color: var(--muted); }

/* contact */
.contact { background: var(--ink); color: #fff; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.contact p { color: #C3C8DD; }
.contact p + p { margin-top: .75rem; }
.contact a { text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.contact a:hover { color: var(--signal); }
.big-phone {
  display: inline-block; margin: .5rem 0 1.5rem; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 750; font-stretch: var(--wide);
  letter-spacing: -.02em; line-height: 1; text-decoration: none; color: var(--signal); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.big-phone:hover { text-decoration: underline; }

.form { background: var(--white); color: var(--ink); border-radius: 10px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: .6rem; font-weight: 650; }
@media (max-width: 420px) { .choice { grid-template-columns: 1fr; } }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem .75rem; text-align: center; border: 1.5px solid var(--rule); border-radius: 6px; font-weight: 550; transition: border-color 140ms, background-color 140ms; }
.choice input:checked + span { border-color: var(--blue); background: #EEF1FF; color: var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 6px; transition: border-color 140ms, background-color 140ms;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field [aria-invalid="true"] { border-color: #C62828; background: #FFF5F5; }
.error { font-size: .9rem; color: #B3261E; }
.error:empty, .status:empty { display: none; }
.form .btn { width: 100%; margin-top: .5rem; }
.status { margin-top: 1rem; font-weight: 550; }
.status.is-error { color: #B3261E; }
.status.is-success { color: #1B6E3A; }

/* footer */
.footer { background: var(--ink); color: #9AA2C2; padding: 1.75rem 0 2.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer nav { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; }
.footer a { display: inline-block; padding: .25rem 0; text-decoration: none; }
.footer a:hover { color: #fff; }

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