/* =========================================================================
   Tweed Community Clubs — Stronger Together
   Hand-built static site. Brand: navy + multi-colour "joined hands" palette.
   ========================================================================= */

:root {
  /* Brand palette (sampled from the TCC logo) */
  --navy:        #0e2746;
  --navy-800:    #122e52;
  --navy-700:    #1a3a63;
  --blue:        #1c75bc;
  --teal:        #27a98b;
  --red:         #e85c47;
  --yellow:      #f4c01f;
  --orange:      #f3911e;
  --tan:         #c2a06b;

  /* Surfaces & ink */
  --paper:       #ffffff;
  --sand:        #f6f3ec;   /* warm off-white section bg */
  --mist:        #eef2f6;   /* cool light section bg */
  --ink:         #0e2746;
  --body:        #3f4d5e;
  --muted:       #6b7a8c;
  --line:        #e4e8ee;

  --maxw:        1180px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 18px 40px -20px rgba(14, 39, 70, .35);
  --shadow-sm:   0 8px 24px -16px rgba(14, 39, 70, .45);

  --ff-display:  "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  --ff-body:     "Questrial", "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin: .25em 0; }

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--yellow); }

.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #1668a8; }
.btn--accent  { background: var(--orange); color: #fff; }
.btn--accent:hover { background: #e08210; }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header { overflow: visible; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 76px; position: relative;
}
/* logo sits in a white "tab" that overhangs below the header bar */
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  align-self: flex-start;
  background: #fff;
  padding: 7px 16px 11px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 16px 28px -16px rgba(14, 39, 70, .5);
  position: relative; z-index: 5;
}
.brand img { height: 124px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--ff-display);
  font-weight: 600; font-size: 1rem;
  color: var(--ink); letter-spacing: .01em;
  padding: .4rem 0; position: relative;
}
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--orange); border-radius: 3px;
}
.nav__social { display: flex; gap: .35rem; }
.nav__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: var(--navy); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.nav__social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav__social svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .brand { padding: 6px 12px 9px; border-radius: 0 0 16px 16px; }
  .brand img { height: 84px; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-open .nav { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: .9rem 0; font-size: 1.15rem; }
  .nav .btn { margin-top: 1.1rem; justify-content: center; }
  .nav__social { margin-top: 1.1rem; justify-content: center; }
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 88vh, 860px);
  display: grid; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__video {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
}
/* cover-fill a 16:9 iframe regardless of viewport ratio */
.hero__video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 from width */
  min-height: 100vh; min-width: 177.78vh;   /* 16:9 from height */
  transform: translate(-50%, -50%);
  border: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,39,70,.55) 0%, rgba(14,39,70,.45) 45%, rgba(14,39,70,.82) 100%);
}
.hero__content { padding-block: clamp(4rem, 10vw, 6rem); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  max-width: 16ch; margin-bottom: .15em;
}
.hero h1 .accent { color: var(--yellow); display: block; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 40rem; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-family: var(--ff-display); font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column;
  align-items: center; gap: .4rem;
}
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); }

/* --------------------------------------------------------------- mission */
.mission { background: var(--paper); }
.mission__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mission__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.mission__media img { width: 100%; height: 100%; object-fit: cover; }
.mission__media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 120px;
  border-radius: 22px; background: var(--yellow); z-index: -1;
}
.mission h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.mission .pull { color: var(--ink); font-size: 1.2rem; font-weight: 500; }
@media (max-width: 820px) { .mission__grid { grid-template-columns: 1fr; } .mission__media { order: -1; } }

/* --------------------------------------------------------------- stats */
.stats { background: var(--navy); color: #fff; position: relative; }
.stats h2, .stats h3 { color: #fff; }
.stats__banner {
  text-align: center; max-width: 52rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.stats__banner .big {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; color: var(--yellow);
  display: block; margin-bottom: .35rem;
}
.stats__banner p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin: 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.stat-card {
  background: var(--navy-700); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent, var(--blue));
}
.stat-card .num {
  font-family: var(--ff-display); font-weight: 700; font-size: 2.1rem;
  color: var(--accent, var(--blue)); line-height: 1; display: block; margin-bottom: .35rem;
}
.stat-card .label { font-family: var(--ff-display); font-weight: 600; color: #fff; font-size: 1.15rem; display: block; margin-bottom: .35rem; }
.stat-card p { color: rgba(255,255,255,.78); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stats__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- clubs */
.clubs { background: var(--sand); }
.clubs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.club-tile {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-sm); background: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.club-tile img { width: 100%; height: 100%; object-fit: cover; }
.club-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (max-width: 860px) { .clubs__grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- stories */
.stories { background: var(--paper); }
.stories__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap;
}
.stories__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0; max-width: 18ch; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.story-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); text-decoration: none; }
.story-card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--navy); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story-card:hover .story-card__media img { transform: scale(1.05); }
.story-card__cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #fff; padding: 1rem;
}
.story-card__cover .k { font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--ff-display); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; color: #fff;
  background: var(--accent, var(--blue)); padding: .35em .8em; border-radius: 999px;
}
.story-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.story-card__date { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.story-card__body h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: .5rem; }
.story-card__body p { color: var(--body); font-size: .98rem; margin: 0 0 1.1rem; }
.story-card__more { margin-top: auto; font-family: var(--ff-display); font-weight: 600; color: var(--blue); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* gradient covers for image-less posts */
.cover--anzac  { background: linear-gradient(135deg, #122e52, #1c4f86); }
.cover--easter { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.cover--info   { background: linear-gradient(135deg, var(--navy), var(--navy-700)); }

/* --------------------------------------------------------------- CTA band */
.cta {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.cta p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 40rem; margin: 0 auto 1.6rem; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand img { height: 96px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 30ch; font-size: .98rem; }
.footer__col h4 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: .5rem 0; }
.footer__social { display: flex; gap: .6rem; margin-top: .25rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.footer__social svg { width: 19px; height: 19px; }
.footer__ack { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 60rem; margin: 1.75rem 0 0; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; font-size: .88rem; color: rgba(255,255,255,.55);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --------------------------------------------------------------- article (story pages) */
.article-hero {
  background: var(--navy); color: #fff; position: relative; isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.article-hero--anzac  { background: linear-gradient(135deg, #0e2746, #1c4f86); }
.article-hero--easter { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.article-hero__inner { max-width: 800px; }
.article-hero .tag-inline {
  display: inline-block; font-family: var(--ff-display); font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--navy);
  background: var(--yellow); padding: .4em .9em; border-radius: 999px; margin-bottom: 1.1rem;
}
.article-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 20ch; }
.article-hero__meta { color: rgba(255,255,255,.82); font-family: var(--ff-display); letter-spacing: .04em; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1.1rem; font-family: var(--ff-display); letter-spacing: .03em; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

.article { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article__inner { max-width: 800px; margin-inline: auto; }
.article__lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink); font-weight: 500; line-height: 1.55; margin-bottom: 2rem; }
.article__inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4rem; }
.article__inner h3 { font-size: 1.15rem; margin-top: 1.6rem; color: var(--navy); }
.article__inner img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow-sm); }

/* club block within info posts */
.club-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; margin: 1.4rem 0; background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.club-block__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.club-block__logo { width: 180px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); line-height: 0; }
/* natural 16:9 ratio, full image — reset the .article__inner img rule so nothing is clipped */
.club-block__logo img { width: 100%; height: auto; display: block; object-fit: contain; margin: 0; border-radius: 0; box-shadow: none; }
.club-block__head h3 { margin: 0; color: var(--ink); font-size: 1.3rem; }
.club-block h4 { color: var(--blue); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 1.1rem 0 .3rem; }
.club-block p:last-child, .club-block ul:last-child { margin-bottom: 0; }

.note {
  background: var(--mist); border-left: 4px solid var(--blue);
  padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; margin: 1.6rem 0; font-size: .98rem;
}
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--ff-display); font-weight: 600; margin-top: 2.5rem; }

/* stories index page */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 44rem; font-size: 1.15rem; margin: 0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- decorative brand shapes */
/* Background shapes (line + colour) live inside sections, BEHIND the content and
   clipped to the section. Dots live in a full-page overlay ABOVE content. */
.has-decor { position: relative; overflow: hidden; }
.has-decor > .wrap { position: relative; z-index: 1; }

.decor {
  position: absolute;
  z-index: 0;                 /* background, behind section content */
  pointer-events: none;
  width: var(--w, 120px);
  opacity: var(--o, .9);
  will-change: transform;
  user-select: none;
}
/* navy line-art recoloured white, for use on dark/gradient sections */
.decor--invert { filter: brightness(0) invert(1); }

/* full-page overlay for dots — sits ABOVE content, spans the whole document,
   so circles can drift across section boundaries */
body { position: relative; }
.decor-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: hidden; z-index: 5;
}
.decor-overlay .decor { z-index: 5; }

/* in-section dots shown only on mobile — they live at the background layer
   (z-index 0, behind .wrap content) so the text reads on top of them */
.decor--mobile { display: none; }

/* on small screens, shrink and thin them out so they don't crowd the content */
@media (max-width: 640px) {
  .decor { width: calc(var(--w, 120px) * .6); opacity: calc(var(--o, .9) * .85); }
  .decor[data-mobile="hide"] { display: none; }
  /* drop the on-top dots overlay; show the behind-content dots instead */
  .decor-overlay { display: none; }
  .decor--mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .decor { will-change: auto; }
}
