/* ============================================================
   The Flight School Project
   Global stylesheet — edit colors in :root below
   ============================================================ */

:root {
  --ink: #0d0d0d;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e3e5ea;
  --gold: #f2b705;
  --gold-dark: #c99503;
  --sky: #1d6fd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.18);
  --wrap: 1140px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sky); }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { border-color: currentColor; color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px 0;
}
.topbar a { color: var(--gold); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand span { font-weight: 800; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; line-height: 1.1; }
.brand small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.12em; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38)),
    url("../img/team-01.jpg") center 43% / cover;
  color: var(--paper);
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 110px 0;
}
.hero .wrap { margin-inline: auto; }
.hero-content { max-width: 720px; }
.hero img.mark { height: 92px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); max-width: 700px; }
.hero p.lead { font-size: 1.18rem; max-width: 660px; color: #f1f1f1; }
.hero .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.8rem; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  color: var(--paper);
  padding: 96px 0;
  background-position: center;
  background-size: cover;
}
.page-hero .section-head { text-align: start; margin: 0; max-width: 720px; }
.page-hero .section-head .kicker { color: var(--gold); }
.page-hero .section-head p:last-child { font-size: 1.1rem; max-width: 640px; }
.about-hero { background-image: linear-gradient(100deg, rgba(0,0,0,.86), rgba(0,0,0,.34)), url("../img/team-04.jpg"); }
.programs-hero { background-image: linear-gradient(100deg, rgba(0,0,0,.86), rgba(0,0,0,.34)), url("../img/team-05.jpg"); }
.donate-hero { background-image: linear-gradient(100deg, rgba(0,0,0,.86), rgba(0,0,0,.34)), url("../img/team-06.jpg"); }
.contact-hero { background-image: linear-gradient(100deg, rgba(0,0,0,.86), rgba(0,0,0,.34)), url("../img/team-07.jpg"); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section.alt { background: var(--mist); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.photo-story {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}
.photo-story .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 14px;
}
.photo-story img,
.gallery img,
.feature-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-story img { height: 280px; box-shadow: var(--shadow-strong); }
.photo-story img:first-child { height: 330px; margin-top: -25px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-media {
  margin: -28px -28px 24px;
  width: calc(100% + 56px);
  height: 225px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card ul { padding-inline-start: 18px; margin: 0 0 18px; }
.card li { margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--paper); padding: 54px 0; }
.stats .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats .num { font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stats .lbl { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: #cfcfcf; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--paper);
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  font-style: italic;
}
.quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 0.9rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.split .panel { background: var(--mist); border-radius: var(--radius); padding: 34px; }
.feature-photo { min-height: 420px; max-height: 560px; box-shadow: var(--shadow-strong); }
.media-panel { display: grid; gap: 18px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { height: 100%; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.gallery figure:nth-child(3) { grid-column: span 3; }
.gallery figure:nth-child(4) { grid-column: span 3; }
.gallery figure:nth-child(5) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 5; grid-row: span 2; }

/* ---------- Donate band ---------- */
.band {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 66px 0;
}
.band h2 { margin-bottom: 10px; }
.band p { max-width: 700px; margin-inline: auto; font-weight: 500; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; }
tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }

/* ---------- FAQ ---------- */
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { font-weight: 700; cursor: pointer; }
details[open] summary { color: var(--gold-dark); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding: 58px 0 26px; font-size: 0.92rem; }
.site-footer h4 { color: var(--paper); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.site-footer a { color: #c9c9c9; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer img { height: 64px; margin-bottom: 14px; }
.legal { border-top: 1px solid #2a2a2a; margin-top: 34px; padding-top: 18px; text-align: center; font-size: 0.8rem; color: #8b8b8b; }

.note {
  background: #fff8e1;
  border: 1px dashed var(--gold-dark);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .stats .grid, .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 22px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-header { position: relative; }
  .hero { min-height: 600px; padding: 84px 0; background-position: 58% center; }
  .hero-content { max-width: 580px; }
  .photo-story { margin-top: 0; padding-top: 18px; }
  .photo-story .wrap { grid-template-columns: repeat(2, 1fr); }
  .photo-story img, .photo-story img:first-child { height: 240px; margin-top: 0; }
  .photo-story img:first-child { grid-column: 1 / -1; height: 340px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .hero { min-height: 560px; background-position: 62% center; }
  .hero h1 { font-size: 3rem; }
  .photo-story .wrap, .gallery { grid-template-columns: 1fr; }
  .photo-story img, .photo-story img:first-child { grid-column: auto; height: 240px; }
  .page-hero { padding: 72px 0; }
}
