/* SICES Aviation — temporary one-page site
   Palette: hangar charcoal from the logo tile, white, apron grey,
   and the yellow of a parts tag / taxiway sign. */
:root {
  --hangar: #2e2a2b;
  --hangar-2: #3a3536;
  --paper: #ffffff;
  --apron: #eeedec;
  --tag: #f2c12e;
  --tag-deep: #d9a915;
  --steel: #635d5b;
  --mist: #c9c2bf;
  --rule: #dcd8d6;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--hangar);
  font: 400 1.0625rem/1.55 var(--text);
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 2px; }
abbr[title] { text-decoration: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.005em; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--tag); color: var(--hangar); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  font: 600 1rem/1 var(--text); text-decoration: none;
  border: 2px solid var(--hangar); border-radius: 4px; cursor: pointer;
}
.btn--dark { background: var(--hangar); color: var(--paper); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--line { background: transparent; color: var(--hangar); }
.btn--line:hover { background: rgba(46, 42, 43, 0.08); }
.btn--tag { background: var(--tag); color: var(--hangar); border-color: var(--tag); }
.btn--tag:hover { background: var(--paper); border-color: var(--paper); }
.hero__back { margin: 32px 0 0; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__emblem { width: 43px; height: 40px; border-radius: 3px; }
.brand__word { width: 196px; height: auto; }
.masthead__nav { display: flex; align-items: center; gap: 20px; }
.masthead__phone { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.masthead__phone:hover { text-decoration: underline; }
.masthead .btn { min-height: 40px; padding: 0 16px; }

/* Hero */
.hero { background: var(--hangar); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem);
  line-height: 0.98;
  max-width: 15ch;
}
.hero__lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: #ebe6e3; max-width: 34em; margin: 28px 0 0; }
.hero__who { color: var(--mist); margin: 18px 0 0; }

/* The parts tag */
.hero__tag { position: relative; }
@media (min-width: 960px) { .hero__tag { padding-top: 72px; } }
.tag__string { display: none; position: absolute; top: -303px; left: 50%; width: 120px; height: 400px; margin-left: -60px; color: #8d8582; }
.tag {
  position: relative;
  background: var(--tag);
  color: var(--hangar);
  padding: 58px clamp(20px, 3vw, 32px) 26px;
  clip-path: polygon(0 34px, 34px 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  border-radius: 0 0 6px 6px;
  transform-origin: 50% 0;
  animation: swing 1.6s cubic-bezier(.2, .7, .3, 1) both;
}
.tag__hole {
  position: absolute; top: 14px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: var(--hangar);
  box-shadow: 0 0 0 5px var(--tag-deep);
}
.tag__title { font-size: 1.75rem; line-height: 1.1; margin-bottom: 18px; }
.tag__row { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; min-width: 0; }
.field label, .cond legend { font-weight: 600; font-size: 0.9375rem; }
.tag input[type="text"], .tag input[type="number"], .tag input[type="date"], .tag textarea {
  width: 100%;
  font: 500 1.0625rem/1.3 var(--text);
  color: var(--hangar);
  background: rgba(255, 255, 255, 0.55);
  border: 0; border-bottom: 2px solid var(--hangar); border-radius: 3px 3px 0 0;
  padding: 10px 10px 8px;
}
.tag textarea { resize: vertical; min-height: 64px; }
.tag ::placeholder { color: rgba(46, 42, 43, 0.62); }
.tag input:focus-visible, .tag textarea:focus-visible { outline: 3px solid var(--hangar); outline-offset: 1px; background: rgba(255, 255, 255, 0.85); }
#pn { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
#pn::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
#pn[aria-invalid="true"] { border-bottom-color: #a1170f; background: rgba(255, 255, 255, 0.85); }

.cond { border: 0; padding: 0; }
.cond legend { padding: 0; margin-bottom: 6px; }
.cond__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cond__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cond__chips label {
  min-width: 44px; padding: 8px 9px; text-align: center; cursor: pointer;
  font: 600 0.9375rem/1 var(--text); letter-spacing: 0.03em;
  border: 2px solid var(--hangar); border-radius: 3px;
}
.cond__chips input:checked + label { background: var(--hangar); color: var(--tag); }
.cond__chips input:focus-visible + label { outline: 3px solid var(--hangar); outline-offset: 2px; }
.cond__key { margin: 8px 0 0; font-size: 0.875rem; color: #4a4443; }

.aog { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; font-weight: 600; cursor: pointer; }
.aog input { width: 20px; height: 20px; accent-color: var(--hangar); margin: 0; }

.tag__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag__status { margin: 14px 0 0; font-size: 0.875rem; line-height: 1.45; color: #3d3837; }
.tag__status.is-error { color: #8c130c; font-weight: 600; }

@keyframes swing {
  0% { transform: rotate(-4deg); }
  45% { transform: rotate(1.6deg); }
  75% { transform: rotate(-0.6deg); }
  100% { transform: rotate(0); }
}

/* Content bands */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band--rule { border-top: 1px solid var(--rule); }
.band--grey { background: var(--apron); }
.split { display: grid; gap: 28px; }
.split h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.05; }

.svc { display: grid; gap: 0 40px; margin: 0; }
.svc > div { border-top: 1px solid var(--rule); padding: 18px 0 20px; }
.svc dt { font-weight: 600; font-size: 1.1875rem; }
.svc dd { margin: 6px 0 0; color: var(--steel); max-width: 36em; }

.scope { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.scope li { break-inside: avoid; padding: 7px 0 7px 22px; position: relative; font-size: 1.125rem; }
.scope li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 10px; background: var(--tag); box-shadow: inset 0 0 0 1.5px var(--tag-deep); }

.facts { margin: 0; display: grid; gap: 22px 40px; }
.facts dt { font-size: 0.9375rem; color: var(--steel); font-weight: 500; }
.facts dd { margin: 4px 0 0; font-size: 1.1875rem; font-weight: 500; }

/* Footer / contact */
.foot { background: var(--hangar); color: var(--paper); padding: clamp(56px, 7vw, 88px) 0 32px; }
.foot h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.05; margin-bottom: 28px; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; font-size: 1.1875rem; font-weight: 500; }
.foot__list li { display: flex; flex-direction: column; gap: 4px; }
.foot__list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); align-self: flex-start; }
.foot__list a:hover { border-bottom-color: var(--tag); }
.foot__label { font-size: 0.9375rem; font-weight: 500; color: var(--mist); }
.foot__legal { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; color: var(--mist); }

/* Layout breakpoints */
@media (min-width: 560px) {
  .tag__row { grid-template-columns: 1fr 112px; }
  .tag__row:has(.field--date) { grid-template-columns: 1fr 168px; }
  .scope { columns: 3; }
}
@media (min-width: 720px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .tag__string { display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; }
  .foot__list { grid-template-columns: repeat(4, auto); justify-content: start; }
}
@media (max-width: 559px) {
  .masthead__phone { display: none; }
  .brand__word { width: 160px; }
  .brand__emblem { width: 38px; height: 35px; }
  .tag__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tag { animation: none; }
}
