/* ============================================
   SBS AVIATION — shared stylesheet
   Dark, cinematic, atmospheric
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@200;300;400;600;800&family=Spectral:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --bg:        #07090c;
  --bg-2:      #0d1117;
  --fg:        #e8eaed;
  --muted:     #8a929c;
  --line:      rgba(232,234,237,0.12);
  --accent:    #c8d6e5;
  --glow:      rgba(120,160,210,0.35);
  --display:   'Sora', system-ui, sans-serif;
  --body:      'Spectral', Georgia, serif;
  --maxw:      1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* atmospheric backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(80,120,180,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(40,70,110,0.15), transparent 60%),
    var(--bg);
}
/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(7,9,12,0.85), rgba(7,9,12,0));
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
}
.brand span { color: var(--muted); font-weight: 300; }
nav.site-nav { display: flex; gap: 34px; }
nav.site-nav a {
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
nav.site-nav a:hover, nav.site-nav a[aria-current="page"] { color: var(--fg); }
nav.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
nav.site-nav a:hover::after, nav.site-nav a[aria-current="page"]::after { width: 100%; }

.menu-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.4rem; cursor: pointer; }

/* ---------- generic page sections ---------- */
main { flex: 1; }

.page-head {
  padding: clamp(80px, 14vw, 180px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 28px;
}

section.block { padding: clamp(56px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
section.block h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
section.block p { max-width: 64ch; color: #c6cbd2; margin-bottom: 20px; font-size: 1.08rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.card {
  border: 1px solid var(--line);
  padding: 34px 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.025), transparent);
  transition: border-color 0.4s, transform 0.4s;
}
.card:hover { border-color: rgba(200,214,229,0.4); transform: translateY(-4px); }
.card .num {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 18px 0 14px;
}
.card p { font-size: 1rem; color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: all 0.35s;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 0 30px var(--glow); }
.btn .arrow { transition: transform 0.35s; }
.btn:hover .arrow { transform: translateX(6px); }

/* ---------- footer ---------- */
footer.site {
  margin-top: auto;
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
footer .f-brand { font-family: var(--display); font-weight: 800; letter-spacing: 0.28em; font-size: 1rem; }
footer .f-tag { color: var(--muted); margin-top: 12px; max-width: 32ch; font-size: 0.95rem; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer nav a { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
footer nav a:hover { color: var(--fg); }
.f-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.socials { display: flex; gap: 22px; }
.socials a { font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  nav.site-nav { display: none; }
  nav.site-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  nav.site-nav.open a { padding: 18px 32px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
