/* Johannesburg Flying Academy — coming soon page
   Colours and type from the JFA CI guide */
:root {
  --flight-red: #DE3128;
  --red-dark: #C0261E;
  --sunset: #F7931E;
  --sky-deep: #2E6AAE;
  --ink: #18212F;
  --slate: #4A5566;
  --line: #DAE4EF;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #8DB5E0 0%, #B9D3EE 45%, #E7F0F9 100%) fixed;
  background-color: #B9D3EE;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* Animated sky (js/sky.js) */
.sky-bg { position: fixed; inset: 0; z-index: 0; isolation: isolate; }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.flightpath { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.flightpath path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.5; stroke-dasharray: 2 10; stroke-linecap: round; }

/* Layout: one centred block on the sky, footer at the bottom */
.cs {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px, 6vh, 72px) 16px 0;
}
.cs-card {
  width: 100%; max-width: 820px; text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(32px, 4vw, 48px);
  background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.75); border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(15,27,45,.35);
}
.logo { width: 240px; margin: 0 auto 36px; }
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
h1 { font: 500 clamp(48px, 7vw, 96px)/.98 var(--display); text-transform: uppercase; margin: 0 0 22px; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; color: var(--sky-deep); font-size: 1.06em; }
.lead { font-size: 19px; color: #2B3443; margin: 0 auto 36px; max-width: 52ch; }

.cs-contact { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 12px; margin-bottom: 28px; text-align: left; }
.card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; border-radius: 10px; text-decoration: none;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--sunset); box-shadow: 0 12px 30px rgba(15,27,45,.08); transform: translateY(-2px); }
.card.primary { background: var(--flight-red); border-color: var(--flight-red); color: #fff; }
.card.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.card .k { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.card.primary .k { color: rgba(255,255,255,.88); }
.card .v { font: 600 18px/1.25 var(--body); letter-spacing: -.01em; overflow-wrap: anywhere; }
.card.primary .v { font: 500 22px/1.2 var(--display); letter-spacing: .03em; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.social a { font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.social a:hover { color: var(--red-dark); }

.cs-foot {
  width: 100%; max-width: 820px; margin-top: auto; padding: 28px 4px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: 13px; color: var(--slate);
}
.cs-card + .cs-foot { margin-top: 32px; }

@media (min-height: 760px) {
  .cs { justify-content: flex-start; }
  .cs-card { margin-top: auto; }
  .cs-card + .cs-foot { margin-top: auto; }
}

@media (max-width: 720px) {
  .cs-contact { grid-template-columns: 1fr; }
  .logo { width: 190px; margin-bottom: 28px; }
  .lead { font-size: 17px; }
  .cs-foot { justify-content: center; text-align: center; }
}

/* Night sky (set by js/weather.js) */
.sky-night .cs-foot { color: rgba(255,255,255,.85); }

/* ---------- Contact holding page ---------- */
.ct-card { max-width: 900px; }
.ct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; text-align: left; }
.card.static { cursor: default; }
.card.static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card small { font-size: 13px; color: var(--slate); }
.ct-visit {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; margin-bottom: 28px; text-align: left;
  border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.85); border: 1px solid var(--line);
}
.ct-address { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.ct-address .addr { margin: 0; font: 600 18px/1.4 var(--body); color: var(--ink); }
.ct-address .mono { margin: 0; color: var(--slate); line-height: 1.7; }
.btn-dir {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; padding: 12px 18px; border-radius: 8px;
  font: 600 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--ink); transition: background .2s;
}
.btn-dir:hover { background: #2B3443; }
.ct-map { min-height: 240px; background: #DCE6F0; }
.ct-map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; }

@media (max-width: 820px) {
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .ct-visit { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ct-grid { grid-template-columns: 1fr; }
}
.ct-grid { grid-template-columns: 1fr 1fr 1.4fr 1fr; }
.ct-grid .card .v { font-size: 17px; }
.ct-grid .card.primary .v { font-size: 22px; }
.ct-address .k { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
@media (max-width: 820px) { .ct-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ct-grid { grid-template-columns: 1fr; } }

/* Company name headline + aviation tagline */
.ct-card h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .95; margin-bottom: 14px; }
.tagline { margin: 0 0 18px; font: 400 clamp(26px, 3.4vw, 40px)/1.1 var(--serif); color: var(--ink); }
.tagline em { font-style: italic; color: var(--sky-deep); }

/* Photo crossfade (replaces the map) */
.ct-slides { position: relative; min-height: 260px; background: #DCE6F0; overflow: hidden; }
.ct-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 7s ease-out; }
.ct-slides img.is-on { opacity: 1; transform: scale(1); }
@media (max-width: 820px) { .ct-slides { aspect-ratio: 4 / 3; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-slides img { transition: opacity 1.2s ease; transform: none; } }

/* ==========================================================
   Typography v2 — light, airline-style (one family: Inter)
   ========================================================== */
:root {
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Inter", "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--body); font-weight: 400; letter-spacing: -.005em; }
h1, h2 { font-family: var(--display) !important; font-weight: 300 !important; text-transform: none !important; letter-spacing: -.035em !important; line-height: 1.05 !important; }
h3, h4 { font-family: var(--display); font-weight: 500; text-transform: none; letter-spacing: -.015em; }
h1 em, h2 em, .tagline em { font-family: var(--display) !important; font-style: normal !important; font-weight: 300 !important; font-size: 1em !important; letter-spacing: inherit !important; }
.tagline { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; }
.btn, .btn-dir, .more, .main-nav > ul > li > a, .social a { font-family: var(--body) !important; font-weight: 500 !important; letter-spacing: .02em !important; }
.review blockquote { font-family: var(--body) !important; font-weight: 400; font-size: 17px; line-height: 1.6; }
.card .v, .card.primary .v { font-family: var(--body); font-weight: 500; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.card.primary .v { font-size: 19px; }
