/* =============================================================================
   styles.css — Hockey Brisbane Taskforce FAQ hub
   Calm, trustworthy governance-communication styling. Not a marketing site.
   ============================================================================= */

:root {
  --navy: #1B2E6B;
  --navy-dark: #131f4a;
  --maroon: #7B1C2E;
  --bg: #ffffff;
  --bg-alt: #F7F7F5;
  --text: #1c1c1c;
  --text-muted: #55585f;
  --border: #e2e2e0;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ===================== HEADER / NAV ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

#site-logo {
  display: block;
  border-radius: 6px;
}

.logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy-dark);
  color: var(--maroon);
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 6px;
  border: 2px solid var(--maroon);
}

.logo-text {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 26px;
  background: #fff;
  margin: 0 auto;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  transition: background 0.15s;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.12);
}

.site-nav a.active {
  background: var(--maroon);
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 0.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* ===================== HERO ===================== */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}

.hero-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero-logo {
  display: block;
  height: auto;
  width: 100%;
  max-width: 320px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #c9d0ea;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #e5e8f5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
}

.btn-primary:hover { background: #601622; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 600px) {
  .hero .tagline { font-size: 2rem; }
  .hero { padding: 3rem 0; }
  .hero-logo { max-width: 220px; }
  .hero-logo-wrap { padding: 0.75rem 1.25rem; }
}

/* ===================== WHY CHANGE / PILLARS ===================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 780px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pillar-card.accent {
  border-left: 5px solid var(--maroon);
}

.pillar-card h3 {
  margin-bottom: 0.5rem;
}

.pillar-summary {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pillar-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pillar-card li {
  margin-bottom: 0.5rem;
}

/* ===================== TIMELINE ===================== */

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .timeline-grid { grid-template-columns: 1fr; }
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.timeline-card h3 { margin-bottom: 0; }

.timeline-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.progress-track {
  background: var(--bg-alt);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.status-complete { background: #e3f2e6; color: #1e6b34; }
.status-in-progress { background: #fdf1de; color: #92600b; }
.status-upcoming { background: #ececec; color: #666; }

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.task-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.task-list li.done {
  color: var(--text);
}

.task-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.task-list li.done .task-icon {
  background: var(--navy);
  color: #fff;
}

.task-list li:not(.done) .task-icon {
  border: 1.5px solid #bbb;
}

/* ===================== NEWS ===================== */

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.news-card.spotlight {
  border-left: 5px solid var(--maroon);
  margin-bottom: 2.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.spotlight h3 {
  font-size: 1.6rem;
}

.archive-heading {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.archive-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.archive-item-header {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}

.archive-item-header:hover {
  background: var(--bg-alt);
}

.archive-item-heading {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.archive-item-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.archive-item-body {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.archive-item.open .archive-item-body {
  display: block;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 1rem 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* YouTube Shorts are vertical (9:16) — cap the width and re-ratio the box
   so they don't render as a tiny strip inside a 16:9 frame.
   Note: `aspect-ratio` (not the padding-bottom % hack used above) — padding
   percentages are resolved against the *parent's* width, not this element's
   own max-width, so the hack produced a box 5x too tall once max-width capped
   the wrapper's own width below the parent's. */
.video-wrapper.vertical {
  max-width: 320px;
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 9 / 16;
  margin-left: auto;
  margin-right: auto;
}

.news-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ===================== FAQ ===================== */

.faq-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}

.filter-pill {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--sans);
}

.filter-pill:hover {
  border-color: var(--navy);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.faq-category {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}

.faq-category:first-of-type { margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question .chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--navy);
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===================== MEET THE TASKFORCE ===================== */

.taskforce-intro {
  max-width: 700px;
  margin-bottom: 2rem;
}

.taskforce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .taskforce-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .taskforce-grid { grid-template-columns: 1fr; }
}

.taskforce-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.taskforce-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  border: 2px solid var(--maroon);
}

.taskforce-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
}

.taskforce-role {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.taskforce-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.taskforce-bio.placeholder {
  font-style: italic;
}

/* ===================== KEY DATES ===================== */

.key-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .key-dates-grid { grid-template-columns: 1fr; }
}

.key-date-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.key-date-label {
  font-weight: 600;
}

.key-date-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.key-date-badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.key-date-badge.tbc {
  background: var(--navy);
  color: #fff;
}

.key-date-badge.confirmed {
  background: #e3f2e6;
  color: #1e6b34;
}

/* ===================== CONTACT ===================== */

.contact-inner {
  text-align: center;
  max-width: 640px;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--navy-dark);
  color: #cfd4e6;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p { margin: 0; }
