/* =========================================================
   ALFA — Australian Leisure Facilities Association
   Design language: civic-modernist water institute
   Ink-navy + pool-cyan, condensed display, lane-grid motif
   ========================================================= */

:root {
  --ink: #0a2540;
  --ink-2: #0e3050;
  --paper: #f6f8f9;
  --paper-2: #eef3f5;
  --cyan: #19c3d6;
  --cyan-deep: #0e8ea0;
  --sand: #f0ad4e;
  --line: #d3dde2;
  --muted: #5c6f7a;
  --white: #ffffff;
  --shadow: 0 18px 50px -24px rgba(10, 37, 64, 0.45);
  --maxw: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cond: "Archivo Expanded", "Archivo", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); display: inline-block; }

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ===================== HEADER / NAV ===================== */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 248, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; color: var(--ink); font-weight: 600; font-size: .92rem;
  border-radius: 8px; letter-spacing: .01em;
}
.nav-links a:hover { background: var(--paper-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--cyan-deep); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--cyan); margin-top: 4px; border-radius: 2px; }
.nav-cta {
  background: var(--ink) !important; color: #fff !important; padding: 10px 18px !important; border-radius: 999px !important;
}
.nav-cta:hover { background: var(--cyan-deep) !important; }

.nav-toggle, .nav-check { display: none; }
.burger { display: none; }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, #0c3a55 100%);
  color: #eaf6f8;
  padding: clamp(72px, 12vw, 140px) 0 clamp(60px, 8vw, 110px);
}
.hero::after { /* lane lines motif */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(25,195,214,.10) 118px 120px);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; color: #c3d8e0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font-weight: 700; font-size: .95rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #2ad6e8; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--cyan-deep); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ===================== STAT STRIP ===================== */
.stats {
  background: var(--white); border-bottom: 1px solid var(--line);
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 38px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ===================== SECTIONS ===================== */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head h2 { margin-top: .3em; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: 1.25rem; color: var(--ink-2); }

.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #d9e7ec; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .section-head p { color: #9fc0cc; }

/* ---- Pillar cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 20px; color: var(--cyan-deep); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .num { position: absolute; top: 22px; right: 26px; font-family: var(--cond); font-weight: 700; color: var(--paper-2); font-size: 2.4rem; line-height: 1; }

/* ---- Split feature ---- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.split-visual {
  border-radius: 20px; min-height: 360px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--ink), #0c3a55);
  box-shadow: var(--shadow);
}
.split-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.checklist li:first-child { border-top: none; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--ink); display: grid; place-items: center; margin-top: 2px; font-size: .8rem; font-weight: 800; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .95rem; }

/* ---- Membership tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px 30px; display: flex; flex-direction: column;
}
.tier.featured { background: var(--ink); color: #d9e7ec; border-color: var(--ink); }
.tier.featured h3, .tier.featured .price { color: #fff; }
.tier .badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--cyan-deep); margin-bottom: 14px; }
.tier.featured .badge { color: var(--cyan); }
.tier h3 { margin-bottom: .2em; }
.tier .price { font-family: var(--cond); font-weight: 700; font-size: 2.2rem; margin: 8px 0 6px; }
.tier .price small { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); }
.tier.featured .price small { color: #9fc0cc; }
.tier ul { list-style: none; margin: 18px 0 26px; padding: 0; flex: 1; }
.tier li { padding: 8px 0 8px 26px; position: relative; font-size: .96rem; }
.tier li::before { content: "›"; position: absolute; left: 4px; color: var(--cyan-deep); font-weight: 800; }
.tier.featured li::before { color: var(--cyan); }

/* ---- Events list ---- */
.event-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-date {
  text-align: center; background: var(--paper-2); border-radius: 12px; padding: 14px 8px; font-family: var(--cond);
}
.bg-ink .event-date { background: rgba(255,255,255,.06); }
.event-date .d { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--ink); }
.bg-ink .event-date .d { color: #fff; }
.event-date .m { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cyan-deep); }
.event-row h3 { font-size: 1.3rem; margin: 0 0 .2em; }
.event-row .meta { color: var(--muted); font-size: .9rem; margin: 0; }
.bg-ink .event-row .meta { color: #9fc0cc; }
.event-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: var(--cyan); color: var(--ink); white-space: nowrap; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--cyan-deep), var(--ink)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin: 0 auto .4em; }
.cta-band p { color: #cfe9ef; max-width: 50ch; margin: 0 auto 28px; }

/* ---- Resource cards ---- */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.res {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px;
  display: flex; gap: 18px; transition: border-color .2s, transform .2s;
}
.res:hover { border-color: var(--cyan); transform: translateY(-3px); text-decoration: none; }
.res .ico { flex: none; color: var(--cyan-deep); }
.res h3 { font-size: 1.2rem; margin: 0 0 .3em; color: var(--ink); }
.res p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---- Prose ---- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.pull {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: var(--ink);
  border-left: 4px solid var(--cyan); padding: 6px 0 6px 28px; margin: 36px 0; font-weight: 500;
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,195,214,.2); }
.info-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-line .ico { color: var(--cyan-deep); flex: none; margin-top: 2px; }
.info-line b { display: block; }
.info-line span { color: var(--muted); font-size: .95rem; }

/* ===================== FOOTER ===================== */
.site-foot { background: var(--ink); color: #aec6d0; padding: 70px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-foot h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 18px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 10px; }
.site-foot a { color: #aec6d0; font-size: .94rem; }
.site-foot a:hover { color: var(--cyan); }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.foot-brand svg { width: 40px; height: 40px; }
.foot-about { font-size: .95rem; max-width: 38ch; }
.foot-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #7e9aa6;
}

/* ===================== PAGE HEADER (inner) ===================== */
.page-head {
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #eaf6f8; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(25,195,214,.10) 118px 120px);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head p { color: #c3d8e0; max-width: 56ch; font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .82rem; letter-spacing: .04em; color: #8fb6c4; margin-bottom: 18px; }
.crumbs a { color: #c3d8e0; }

/* ===================== ANIM ===================== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .grid-3, .tiers, .res-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .burger {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none;
  }
  .burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 24px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-check:checked ~ .nav-links { transform: translateY(0); }
  .nav-check:checked ~ .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-check:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-check:checked ~ .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .event-row { grid-template-columns: 84px 1fr; }
  .event-tag { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
