/* Sunshine Coast Aerobatics Academy
   All brand colours live here. Change them once and the whole site follows. */
:root {
  --navy: #0d2a4c;      /* headers, footer, headings */
  --blue: #1c5f9e;      /* links, secondary accents */
  --gold: #e8a91a;      /* buttons, horizon line, highlights */
  --gold-dark: #b98100; /* gold on light backgrounds (text-safe) */
  --mist: #eef2fa;      /* light section background */
  --ink: #16212e;       /* body text */
  --line: #d3dbe7;      /* hairlines and borders */
  --white: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); line-height: 1.05; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; line-height: 1.55; }
.muted, .help { color: #536274; }
.help { font-size: .92rem; margin: .35em 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--navy); color: #dfe7f2; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; font: 600 1.05rem/1 var(--body); background: var(--gold); color: var(--navy); border: 2px solid var(--gold);
  padding: .9em 1.4em; border-radius: var(--radius); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f4bd3a; border-color: #f4bd3a; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-small { padding: .6em 1em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand-logo { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; padding: .3em 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { border-bottom-color: var(--gold); }
.nav-toggle { display: none; font: 600 1rem var(--body); background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: var(--radius); padding: .45em .9em; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}

/* Hero: the photo's lower edge is a banked horizon that rolls in once on load. */
@property --bank { syntax: "<length>"; inherits: true; initial-value: 0px; }
.hero { --bank: clamp(40px, 7vw, 110px); position: relative; background: var(--gold); color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bank)), 0 100%); animation: roll 1.4s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-media { position: absolute; inset: 0 0 6px 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bank)), 0 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9,28,52,.92) 0%, rgba(9,28,52,.7) 42%, rgba(9,28,52,.15) 80%); }
.hero-inner { position: relative; padding-top: clamp(5rem, 11vw, 9rem); padding-bottom: calc(var(--bank) + clamp(4rem, 8vw, 7rem)); }
.hero h1 { color: var(--white); max-width: 11ch; font-size: clamp(3rem, 8vw, 6.2rem); line-height: .95; }
.hero .lede { color: #e4ebf5; max-width: 46ch; }
.hero.short .hero-inner { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: calc(var(--bank) + 3rem); }
.hero.short h1 { max-width: 18ch; font-size: clamp(2.6rem, 6vw, 4.4rem); }
@keyframes roll { from { --bank: 0px; } }
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } html { scroll-behavior: auto; } }

/* Two ways in */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.path { padding: 2.2rem; background: var(--white); }
.path + .path { border-left: 1px solid var(--line); }
.path .who { font-weight: 600; color: var(--gold-dark); margin-bottom: .3rem; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path + .path { border-left: 0; border-top: 1px solid var(--line); } }

/* Course list: rows, not cards */
.courses { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--navy); }
.courses li { display: grid; grid-template-columns: 1fr auto; gap: .3rem 2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.courses h3 { margin: 0; font-size: 1.6rem; grid-column: 1; grid-row: 1; }
.courses h3 a { color: var(--navy); text-decoration: none; }
.courses h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.courses p { margin: 0; grid-column: 1; grid-row: 2; }
.courses .price { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); text-align: right; white-space: nowrap; grid-row: 1 / span 2; grid-column: 2; }
.courses .price small { display: block; font: 400 .85rem var(--body); color: #536274; }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.trio h3 { border-top: 3px solid var(--gold); padding-top: .8rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Split image/text */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Notices */
.notices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.notice { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.1rem; }
.notice strong { display: block; color: var(--navy); font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.notice p { margin: .2rem 0 0; font-size: .98rem; }
.section.dark .notice strong { color: var(--white); }
@media (max-width: 860px) { .notices { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 2rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.person img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; }
.person .role { color: var(--gold-dark); font-weight: 600; margin: -.3rem 0 .8rem; }
.person ul { padding-left: 1.1rem; margin: 0 0 1rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs th, .specs td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: #536274; width: 46%; padding-right: 1rem; }

/* Course detail blocks */
.course { display: grid; grid-template-columns: 1fr 400px; gap: clamp(2rem, 5vw, 4rem); padding-block: 3.5rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.course:first-of-type, .course-flush { border-top: 0; }
.course-flush { padding-top: 0; }
.section > .course-flush { padding-bottom: 0; }
.course ul { padding-left: 1.1rem; }
.course li { margin-bottom: .35rem; }
@media (max-width: 960px) { .course { grid-template-columns: 1fr; } }

/* Forms */
.booking { background: var(--mist); border-radius: var(--radius); padding: 1.6rem; align-self: start; position: sticky; top: 96px; }
.booking .field { margin-bottom: 1.05rem; }
.booking label, .booking legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .97rem; }
.booking fieldset { border: 0; margin: 0; padding: 0; }
.booking select, .booking input { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--white); border: 1px solid #b9c5d6;
  border-radius: 4px; padding: .7em .75em; min-height: 46px; }
.booking select:focus, .booking input:focus { border-color: var(--blue); outline: 2px solid rgba(28,95,158,.25); outline-offset: 0; }
.hours { display: flex; align-items: center; gap: .4rem; }
.hours label { margin: 0; }
.hours select { width: 5.2rem; }
.hours .dot { font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.hours .unit { margin-left: .3rem; color: #536274; }
.amount-input { display: flex; align-items: center; gap: .4rem; }
.amount-input span { font-weight: 600; color: var(--navy); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .4rem; flex-wrap: wrap; }
.total { margin: 0; font-size: 1.05rem; }
.total strong { font-family: var(--display); font-size: 1.9rem; color: var(--navy); margin-left: .3rem; }
.field.is-hidden { display: none; }
@media (max-width: 960px) { .booking { position: static; } }

/* Pay page tabs */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--navy); margin-bottom: 2rem; }
.tabs a { padding: .75em 1.1em; text-decoration: none; color: var(--navy); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0; }
.tabs a[aria-selected="true"] { background: var(--navy); color: var(--white); }
.panel[hidden] { display: none; }
.pay-grid { display: grid; grid-template-columns: 1fr 420px; gap: 3rem; }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr; } }

/* Video */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-grid dl { margin: 0; }
.contact-grid dt { font-weight: 600; color: var(--navy); margin-top: 1rem; }
.contact-grid dd { margin: .1rem 0 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.links-list { list-style: none; padding: 0; margin: 1rem 0 0; columns: 2; column-gap: 3rem; }
.links-list li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .links-list { columns: 1; } }

/* Gift certificate (success page, prints cleanly) */
.certificate { border: 3px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -10px; padding: 3rem 2.5rem; text-align: center; background: var(--white); margin: 2rem 0; }
.certificate h2 { font-size: 3rem; margin-bottom: .2em; }
.certificate .for { font-family: var(--display); font-size: 2.2rem; color: var(--navy); margin: .3em 0; }
.certificate .code { font-family: var(--display); letter-spacing: .08em; font-size: 1.3rem; }
.certificate img { margin: 0 auto 1.5rem; height: 70px; width: auto; }
.certificate p { margin-left: auto; margin-right: auto; }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  .certificate { margin: 0; break-inside: avoid; }
}

/* Footer */
.site-footer { background: var(--navy); color: #c8d4e4; padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 2rem; }
.footer-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--white); margin-bottom: .4rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
