/* BTC Brand Colours */
:root {
  --btc-navy:   #030c31;
  --btc-gold:   #a1762c;
  --btc-mustard:#caa45d;
  --btc-blue:   #1c4e8e;
  --btc-grey:   #ebebeb;
  --white:      #ffffff;
}

/* Fonts */
@font-face {
  font-family: 'Audiowide';
  src: url('/fonts/Audiowide-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Open Sans + Mulish via Google Fonts — loaded in baseof.html */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--btc-navy);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', Helvetica, Arial, sans-serif;
  color: var(--btc-navy);
  margin-top: 0;
}

a { color: var(--btc-blue); }
a:hover { color: var(--btc-gold); }

img { max-width: 100%; height: auto; display: block; }

/* ─── Logo ─────────────────────────────────────────── */
.btc-logo { display: block; height: 56px; width: auto; }

/* ─── Site header ───────────────────────────────────── */
.site-header {
  background: var(--btc-navy);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header a.logo-link { text-decoration: none; }

/* ─── Hamburger toggle ──────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ─── Nav ───────────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--white);
  text-decoration: none;
  font-family: 'Mulish', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--btc-gold); }

/* Chevron on dropdown parents */
.site-nav__item--has-dropdown > .site-nav__link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.2s;
}

/* ─── Dropdown menus ────────────────────────────────── */
.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #061050;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 3px solid var(--btc-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 200;
}
.site-nav__dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Mulish', Helvetica, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__dropdown li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Show dropdown on hover (desktop) */
.site-nav__item--has-dropdown:hover > .site-nav__dropdown { display: block; }

/* ─── Main (inner pages) ────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
main.home { max-width: none; padding: 0; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 3px;
  font-family: 'Mulish', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--gold {
  background: var(--btc-gold);
  color: var(--white);
  border-color: var(--btc-gold);
}
.btn--gold:hover {
  background: var(--btc-mustard);
  border-color: var(--btc-mustard);
  color: var(--white);
}
.btn--navy {
  background: var(--btc-navy);
  color: var(--white);
  border-color: var(--btc-navy);
}
.btn--navy:hover { background: #0a1a5c; border-color: #0a1a5c; color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--btc-navy);
}
.btn--white {
  background: var(--white);
  color: var(--btc-navy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--btc-grey); border-color: var(--btc-grey); color: var(--btc-navy); }
.btn--sm { font-size: 0.85rem; padding: 0.5rem 1.25rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* ─── Section utilities ─────────────────────────────── */
.section { padding: 4rem 2rem; }
.section--white { background: var(--white); }
.section--grey  { background: var(--btc-grey); }
.section--navy  { background: var(--btc-navy); }

.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 780px; margin: 0 auto; }

.section__heading { font-size: 1.75rem; margin-bottom: 2rem; }
.section__heading--light { color: var(--white); }
.section__footer { margin-top: 2.5rem; text-align: center; }

.text--gold { color: var(--btc-gold); }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--btc-navy);
  color: var(--white);
  padding: 5rem 2rem 5.5rem;
  text-align: center;
}
.hero__heading {
  font-family: 'Audiowide', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.hero__subheading {
  font-family: 'Mulish', Helvetica, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--btc-gold);
  font-weight: 600;
  margin-bottom: 2.25rem;
}
.hero__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ─── Community section ─────────────────────────────── */
.community__text {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.community__venues {
  color: var(--btc-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-block__player {
  width: 100%;
  border-radius: 4px;
  background: var(--btc-navy);
}
.video-block__caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
}

/* ─── Video block ───────────────────────────────────── */
.video-block__youtube {
  position: relative;
  aspect-ratio: 16/9;
}
.video-block__youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* ─── Training section ──────────────────────────────── */
.training {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.training__image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 4/3;
  background: var(--btc-grey); /* placeholder colour if image missing */
}
.training__content h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.training__content p  { line-height: 1.75; }

/* ─── Instagram heading link ────────────────────────── */
.instagram-heading-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
}
.instagram-heading-link:hover { color: var(--btc-gold); }
.instagram-icon {
  width: 1.4em;
  height: 1.4em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Instagram grid ────────────────────────────────── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.instagram-grid__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.instagram-grid__item:hover { opacity: 1; }
.instagram-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── News cards ────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.news-card {
  border: 1px solid var(--btc-grey);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 0.8rem; color: #888; margin-bottom: 0.4rem; }
.news-card__title { font-size: 1rem; margin-bottom: 0.5rem; }
.news-card__title a { color: var(--btc-navy); text-decoration: none; }
.news-card__title a:hover { color: var(--btc-gold); }
.news-card__summary { font-size: 0.9rem; line-height: 1.6; flex: 1; margin-bottom: 1rem; }

/* ─── Join banner ───────────────────────────────────── */
.join-banner {
  background: var(--btc-gold);
  padding: 4rem 2rem;
  text-align: center;
}
.join-banner__heading {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.join-banner__text {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ─── Trust badges ──────────────────────────────────── */
.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.badge img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* ─── Page header (inner pages) ─────────────────────── */
.page-header {
  background: var(--btc-navy);
  color: var(--white);
  padding: 2rem 2rem 1.75rem;
}
.page-header h1 {
  color: var(--white);
  margin: 0;
  font-size: 1.75rem;
}

/* ─── Page intro (inner pages) ──────────────────────── */
.page-intro {
  padding: 2rem 2rem 0;
}
.page-intro p  { line-height: 1.75; }
.page-intro ol { line-height: 1.75; padding-left: 1.5rem; }
.page-intro li { margin-bottom: 0.5rem; }

/* ─── MembershipWorks embed ──────────────────────────── */
.membershipworks-embed {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ─── Events ────────────────────────────────────────── */
.event-date {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  color: var(--btc-gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.event-intro {
  font-size: 1.1rem;
  color: var(--white);
  margin-top: 0.5rem;
}
.event-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.events-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.event-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  border: 1px solid var(--btc-grey);
  border-radius: 4px;
  overflow: hidden;
}
.event-card__image { width: 100%; height: 200px; object-fit: cover; display: block; }
.event-card__body { padding: 1.5rem 1.5rem 1.5rem 0; }
.event-card__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.event-card__title a { color: var(--btc-navy); text-decoration: none; }
.event-card__title a:hover { color: var(--btc-gold); }

/* ─── Page body content (markdown) ──────────────────── */
.page-intro h2 { font-size: 1.4rem; margin-top: 2rem; border-bottom: 2px solid var(--btc-grey); padding-bottom: 0.4rem; }
.page-intro h3 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--btc-gold); }
.page-intro img { margin: 1.5rem 0; border-radius: 4px; }
.page-intro table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.page-intro th { background: var(--btc-navy); color: var(--white); padding: 0.6rem 0.75rem; text-align: left; }
.page-intro td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--btc-grey); }
.page-intro tr:nth-child(even) td { background: var(--btc-grey); }

/* ─── Download button ────────────────────────────────── */
.btn--download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn--download svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ─── Blog / Training-blog lists ────────────────────── */
.page-intro h2 {
  margin-top: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--btc-gold);
}
.page-intro ul { list-style: none; padding: 0; }
.page-intro ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e8e8e8;
}
.post-date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
  margin-left: 1rem;
}

/* ─── Footer ────────────────────────────────────────── */
.footer-main {
  background: var(--btc-navy);
  padding: 3rem 2rem;
}
.footer-main__inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.footer-brand { flex-shrink: 0; }
.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.5;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-social-link:hover { color: var(--white); }
.footer-social-icon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  flex-shrink: 0;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 130px; }
.footer-col__heading {
  color: var(--btc-gold);
  font-family: 'Mulish', Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  background: #010819;
  padding: 1rem 2rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop nav */
  .nav-toggle { display: flex; }

  /* Mobile nav: full-width panel below header */
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #061050;
    border-top: 3px solid var(--btc-gold);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }

  .site-nav__link {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 1rem;
  }

  /* Hide chevron on mobile — tap expands instead */
  .site-nav__item--has-dropdown > .site-nav__link::after { display: none; }

  /* Dropdown: static, indented, collapsed by default */
  .site-nav__dropdown {
    position: static;
    border-top: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    padding: 0;
    min-width: 0;
  }
  .site-nav__dropdown li a {
    padding: 0.7rem 1.25rem 0.7rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
  }
  /* Show dropdown when parent is expanded */
  .site-nav__item--has-dropdown:not(.is-expanded) > .site-nav__dropdown { display: none; }
  .site-nav__item--has-dropdown.is-expanded > .site-nav__dropdown { display: block; }
  /* Remove hover behaviour on mobile */
  .site-nav__item--has-dropdown:hover > .site-nav__dropdown { display: none; }
  .site-nav__item--has-dropdown.is-expanded > .site-nav__dropdown { display: block; }

  /* Content */
  .training { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card__body { padding: 1.25rem; }

  /* Footer */
  .footer-main__inner { flex-direction: column; gap: 2rem; }
  .footer-nav { gap: 1.25rem; }
  .footer-col { min-width: calc(50% - 0.75rem); flex: none; }
}

@media (max-width: 480px) {
  .footer-col { min-width: 100%; }
  .section { padding: 3rem 1.25rem; }
}
