/* =========================================================
   Gympie Aero Club — site styles
   Colour scheme: Gympie Airshow 2027 prospectus orange (#f5771c) + blue (#043362), with Gympie gold highlight.
   To fine-tune the brand colours, edit the tokens in :root only.
   ========================================================= */
:root {
  --blue-900: #021a33;
  --blue-800: #032849;
  --blue-700: #043362;   /* primary brand blue (Airshow prospectus) */
  --blue-500: #1a5a9e;
  --blue-50:  #eef4fb;

  --orange-600: #dc5f0a;
  --orange-500: #f5771c; /* primary brand orange (Airshow prospectus) */
  --orange-50:  #fff3ea;

  --gold-600: #b8891c;
  --gold-500: #d4a62a;   /* Gympie gold highlight */
  --gold-300: #f0cf6b;
  --gold-grad: linear-gradient(135deg, #f6dd8a 0%, #d4a62a 45%, #a8781a 100%);

  --ink: #17202c;
  --muted: #5a6575;
  --line: #dde3eb;
  --paper: #ffffff;
  --bg: #f7f8fb;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,26,51, .12);
  --max: 1160px;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--blue-800); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--white { background: var(--paper); }
.section--blue { background: var(--blue-800); color: #e6edf7; }
.section--blue h2, .section--blue h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-bottom: .6em;
}
.gold-rule { width: 72px; height: 4px; border: 0; border-radius: 4px; background: var(--gold-grad); margin: 0 0 1.4em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header / nav ---------- */
.topbar { background: var(--blue-900); color: #c9d6ea; font-size: .85rem; }
.topbar .container { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--gold-300); text-decoration: none; }
.topbar strong { color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue-700);
  border-bottom: 4px solid var(--orange-500);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.site-header .container { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--gold-grad); display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.brand-mark svg { width: 28px; height: 28px; fill: var(--blue-900); }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: var(--font-head); font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; }
.brand-text small { color: var(--gold-300); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 600; cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 9px; border-radius: 8px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem; white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main-nav a[aria-current="page"] { background: var(--orange-500); color: #fff; }
.main-nav a.nav-highlight { color: var(--gold-300); }
.main-nav a.nav-highlight[aria-current="page"] { color: var(--blue-900); background: var(--gold-grad); }

@media (max-width: 1340px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue-800); border-bottom: 4px solid var(--orange-500); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .main-nav a { font-size: 1rem; padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 560px; display: flex; align-items: center;
  background: var(--blue-900) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2,26,51,.92) 0%, rgba(3,40,73,.7) 45%, rgba(245,119,28,.15) 100%);
}
.hero .container { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero h1 .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; font-size: 1.15rem; color: #dce6f4; }
.hero-tag { display: inline-block; background: var(--orange-500); color: #fff; padding: 4px 12px; border-radius: 4px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.hero-stats div { border-left: 3px solid var(--gold-500); padding-left: 12px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: #b9c8de; }

.page-hero {
  position: relative; color: #fff; padding: 80px 0 60px;
  background: var(--blue-800) center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,26,51,.92), rgba(4,51,98,.65)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #d4e0f0; max-width: 680px; margin: 0; font-size: 1.1rem; }
.page-hero .hr { width: 72px; height: 4px; background: var(--gold-grad); border-radius: 4px; margin: 14px 0 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange-500); color: #fff; box-shadow: 0 6px 18px rgba(245,119,28,.35); }
.btn-orange:hover { background: var(--orange-600); color: #fff; }
.btn-gold { background: var(--gold-grad); color: var(--blue-900); box-shadow: 0 6px 18px rgba(184,137,28,.35); }
.btn-gold:hover { color: var(--blue-900); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-800); }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Promo banners (home) ---------- */
.promos { margin-top: -70px; position: relative; z-index: 5; padding-bottom: 20px; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 340px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
  background: var(--blue-800) center/cover no-repeat; text-decoration: none;
  border-bottom: 6px solid var(--gold-500);
}
.promo::before { content: ""; position: absolute; inset: 0; transition: opacity .2s; }
.promo--fly::before { background: linear-gradient(180deg, rgba(4,51,98,.15) 0%, rgba(2,26,51,.95) 78%); }
.promo--rally::before { background: linear-gradient(180deg, rgba(220,95,10,.15) 0%, rgba(140,45,5,.95) 78%); }
.promo-body { position: relative; padding: 30px; }
.promo h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.promo p { color: rgba(255,255,255,.9); margin-bottom: 1em; max-width: 480px; }
.promo .badge {
  display: inline-block; background: var(--gold-grad); color: var(--blue-900); font-family: var(--font-head);
  font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px;
  border-radius: 4px; margin-bottom: 12px;
}
.promo .cta { font-family: var(--font-head); font-weight: 700; color: var(--gold-300); }
.promo:hover { color: #fff; }
.promo:hover .cta { text-decoration: underline; }
.promo .date-chip {
  position: absolute; top: 22px; right: 22px; background: #fff; color: var(--orange-600); border-radius: 10px;
  text-align: center; padding: 8px 14px; font-family: var(--font-head); line-height: 1.1; box-shadow: var(--shadow);
}
.promo .date-chip b { display: block; font-size: 1.8rem; color: var(--blue-800); }
.promo .date-chip small { font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 800px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promos { margin-top: -40px; }
}

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; gap: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 10px rgba(2,26,51,.06);
  border-top: 4px solid var(--blue-500);
}
.card--orange { border-top-color: var(--orange-500); }
.card--gold { border-top-color: var(--gold-500); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--orange-50); color: var(--orange-600); font-size: 1.4rem;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 24px; }
.fact { background: var(--blue-50); border-radius: 12px; padding: 16px 18px; border-left: 4px solid var(--gold-500); }
.fact strong { display: block; font-family: var(--font-head); color: var(--blue-800); font-size: 1.15rem; }
.fact span { font-size: .88rem; color: var(--muted); }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--blue-700); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.callout {
  background: var(--orange-50); border-left: 5px solid var(--orange-500); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0;
}
.callout--gold { background: #fdf6e3; border-left-color: var(--gold-500); }
.example {
  font-family: Consolas, "Courier New", monospace; background: var(--blue-900); color: var(--gold-300);
  padding: 16px 20px; border-radius: 10px; font-size: .95rem;
}

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 130px 1fr; gap: 0; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px;
}
.event-date {
  background: var(--orange-500); color: #fff; text-align: center; padding: 24px 10px;
  display: flex; flex-direction: column; justify-content: center; font-family: var(--font-head);
  border-right: 5px solid var(--gold-500);
}
.event-date .d { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.event-date .m { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event-date .y { opacity: .85; font-size: .9rem; }
.event-body { padding: 28px 30px; }
.event-body h2 { margin-bottom: .2em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.event-meta b { color: var(--blue-700); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--gold-grad); color: var(--blue-900); margin-bottom: 10px; }
@media (max-width: 620px) {
  .event { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; gap: 10px; align-items: baseline; justify-content: flex-start; padding: 14px 22px; border-right: 0; border-bottom: 5px solid var(--gold-500); }
  .event-date .d { font-size: 1.8rem; }
}

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--orange-500); }
.timeline .when { font-family: var(--font-head); font-weight: 700; color: var(--blue-700); display: block; }
.year-head { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--blue-900); background: var(--gold-grad); padding: 4px 18px; border-radius: 8px; margin: 10px 0 20px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(2,26,51,.1); }
.gallery img { width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; background: rgba(5,15,30,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; border: 3px solid var(--gold-500); }
.lightbox button { position: absolute; top: 16px; right: 20px; background: var(--orange-500); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* ---------- Placeholders (Learn to Fly) ---------- */
.ph-img {
  display: grid; place-items: center; text-align: center; min-height: 260px; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--blue-50), var(--blue-50) 14px, #e3ebf6 14px, #e3ebf6 28px);
  border: 2px dashed var(--blue-500); color: var(--blue-700); font-family: var(--font-head); font-weight: 600; padding: 20px;
}
.ph-img small { display: block; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.ph-note { display: inline-block; background: #fff4cc; color: #7a5a00; border: 1px dashed var(--gold-600); padding: 2px 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 28px 24px 24px; position: relative; box-shadow: 0 2px 10px rgba(2,26,51,.06); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange-500); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  border: 3px solid var(--gold-500);
}
.step h3 { margin-top: 8px; }

.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(2,26,51,.06); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--blue-700); color: #fff; font-family: var(--font-head); font-size: .9rem; }
.compare tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

details.faq { background: var(--paper); border-radius: 12px; margin-bottom: 12px; border-left: 4px solid var(--orange-500); box-shadow: 0 2px 8px rgba(2,26,51,.05); }
details.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; color: var(--blue-800); }
details.faq > div { padding: 0 20px 16px; }

.cta-band { background: linear-gradient(110deg, var(--blue-800), var(--blue-700) 60%, var(--orange-600)); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe5f3; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list b { font-family: var(--font-head); color: var(--blue-700); }
.map { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9c6da; padding: 50px 0 24px; border-top: 5px solid var(--gold-500); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--gold-300); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fb-link { display: inline-flex; align-items: center; gap: 8px; }
.fb-link svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
