/* ============================================================
   Big Bamboo Hub — style.css
   Primary: #6514ff  Secondary: #bf00ff  Ink: #1c1726
   ============================================================ */


/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6514ff;
  --secondary: #bf00ff;
  --ink: #1c1726;
  --ink-light: #3a2f52;
  --surface: #f5f2ff;
  --surface-mid: #ede8ff;
  --white: #ffffff;
  --neon-green: #39ff87;
  --neon-cyan: #00e5ff;
  --card-radius: 10px;
  --header-height: 72px;
  --gap: 48px;
  --transition: 220ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--secondary); }
p { margin-bottom: 1.1em; }
h1, h2, h3, h4 {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.4em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.35em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.35em; }

hr {
  border: none;
  border-top: 3px solid var(--primary);
  margin: 0.6em 0 1.2em;
  width: 56px;
}

/* page-content hr reset — body copy hrs should be full-width subtle */
.page-content hr {
  border-top: 1px solid var(--surface-mid);
  width: 100%;
  margin: 1.6em 0;
}

/* === Site Wrapper === */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--primary);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}

/* Brand */
.brand-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* Primary Nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
}
.primary-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav dt { display: none; }
.primary-nav dd { margin: 0; }
.primary-nav dd a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.primary-nav dd a:hover,
.primary-nav dd a[aria-current="page"] {
  color: var(--white);
  background: rgba(101,20,255,0.35);
}

/* Search */
.header-search { flex-shrink: 0; }
.search-form { display: flex; align-items: center; gap: 4px; }
.search-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  padding: 7px 10px;
  width: 140px;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.45); }
.search-input:focus {
  border-color: var(--primary);
  width: 180px;
}
.search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { color: var(--white); }

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--primary); }
.burger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
}
.burger::before, .burger::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform var(--transition);
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.cta-signup {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(101,20,255,0.35);
}
.cta-signup:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(191,0,255,0.45);
}
.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.cta-login:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}
.hero-cta {
  font-size: 16px;
  padding: 14px 32px;
  margin-top: 1.2em;
}

/* ============================================================
   HERO (home page)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(101,20,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: textureDrift 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes textureDrift {
  0% { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}

.hero-media {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.2) brightness(0.75);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 80px 60px 80px 48px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  max-width: 560px;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 460px;
  margin-top: 0.8em;
  margin-bottom: 0;
}

.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ============================================================
   PAGE EYEBROW (breadcrumb)
   ============================================================ */
.page-eyebrow {
  background: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(101,20,255,0.25);
}
.eyebrow-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.eyebrow-inner a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.eyebrow-inner a:hover { color: var(--secondary); }
.eyebrow-inner span:last-child { color: rgba(255,255,255,0.4); }

/* ============================================================
   MAIN LAYOUT — main > section.wrap > article > div
   ============================================================ */
main {
  flex: 1;
  padding: var(--gap) 0;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main > .wrap > article {
  display: block;
}

main > .wrap > article > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap);
  align-items: start;
}

/* ============================================================
   SIDEBAR (left)
   ============================================================ */
.sidebar-left {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.2em;
}

.sidebar-toc {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 20px;
  border-left: 4px solid var(--primary);
}
.sidebar-toc ul { list-style: none; padding: 0; margin: 0; }
.sidebar-toc li { border-bottom: 1px solid var(--surface-mid); }
.sidebar-toc li:last-child { border-bottom: none; }
.sidebar-toc a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-toc a:hover { color: var(--primary); }

.sidebar-cta-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
}
.sidebar-cta-label {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sidebar-cta-box .cta-signup {
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
}

.sidebar-rg {
  background: var(--surface-mid);
  border-radius: var(--card-radius);
  padding: 14px 16px;
}

/* ============================================================
   CONTENT MAIN
   ============================================================ */
.content-main {
  min-width: 0;
}

.article-hero-wrap {
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.article-hero-img, .feature-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.feature-hero-banner {
  max-height: 380px;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}
.feature-hero-banner .feature-hero-img {
  width: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

/* Article header */
.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary);
}
.article-header h1 {
  margin-bottom: 0.35em;
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-light);
  font-weight: 500;
}
.byline time { font-weight: 600; }
.byline-sep { color: var(--primary); }

.stage-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage-awareness { background: #e8f4fd; color: #0070c0; }
.stage-consideration { background: #fff3e0; color: #e65100; }
.stage-decision { background: #e8f5e9; color: #2e7d32; }

/* Page content typography */
.page-content { line-height: 1.75; }
.page-content h2 {
  margin-top: 1.8em;
  margin-bottom: 0.25em;
  padding-top: 0.5em;
}
.page-content h2 + hr {
  border-top: 3px solid var(--primary);
  width: 56px;
  margin-bottom: 1em;
}
.page-content h3 { margin-top: 1.4em; margin-bottom: 0.3em; }
.page-content a { color: var(--primary); text-decoration: underline; }
.page-content a:hover { color: var(--secondary); }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.page-content th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.page-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--surface-mid);
}
.page-content tr:nth-child(even) td { background: var(--surface); }
.page-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 12px 20px;
  background: var(--surface-mid);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  margin: 1.4em 0;
  font-style: italic;
}

/* ============================================================
   CHILD PAGE CARDS (home)
   ============================================================ */
.child-pages {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.child-pages > h2 {
  grid-column: 1 / -1;
}
.child-pages > hr {
  grid-column: 1 / -1;
  border-top: 3px solid var(--primary);
  width: 56px;
  margin-bottom: 0.4em;
}

.card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(101,20,255,0.18);
}
.card-body {
  padding: 22px 22px 16px;
  flex: 1;
}
.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}
.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card-body h3 a:hover { color: var(--primary); }
.card-body p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 0;
}
.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* ============================================================
   FAQ LAYOUT EXTRAS
   ============================================================ */
.faq-eyebrow-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.faq-content details {
  border: 1px solid var(--surface-mid);
  border-radius: var(--card-radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-content details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  background: var(--white);
  transition: background var(--transition);
}
.faq-content details summary::-webkit-details-marker { display: none; }
.faq-content details summary:hover { background: var(--surface); }
.faq-content details[open] summary {
  background: linear-gradient(135deg, rgba(101,20,255,0.06), rgba(191,0,255,0.04));
  border-bottom: 1px solid var(--surface-mid);
}
.faq-content details > p,
.faq-content details > section {
  padding: 14px 18px;
  font-size: 15px;
  background: var(--white);
}

/* ============================================================
   AUTHOR SECTION
   ============================================================ */
.author-section {
  margin-top: var(--gap);
  padding-top: 32px;
  border-top: 3px solid var(--primary);
}
.author-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px;
  border-left: 5px solid var(--secondary);
  margin-top: 16px;
}
.author-card h3 {
  color: var(--primary);
  margin-bottom: 4px;
}
.author-credentials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.author-bio {
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  margin-top: auto;
}

/* Footer sections as direct children */
.footer-cta-block {
  padding: 64px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(101,20,255,0.2), rgba(191,0,255,0.15));
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-cta-block h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 0.2em;
}
.footer-cta-block hr {
  border-top: 3px solid var(--secondary);
  margin: 0 auto 1.2em;
}
.footer-cta-block p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 1.4em;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand-icon { margin-bottom: 14px; }
.footer-blurb {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Footer nav with dl structure */
.footer-nav dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.footer-nav dt { display: none; }
.footer-nav dd { margin: 0; }
.footer-nav dd a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
  padding: 7px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.footer-nav dd a:hover { color: var(--secondary); }

/* Responsible gambling in footer */
.rg-notice {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 0;
}
.sidebar-rg .rg-notice {
  color: var(--ink-light);
  font-size: 11px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-links a:hover { color: var(--secondary); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-texture { animation: none; }
}

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  main > .wrap > article > div {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
  .hero { min-height: 80vh; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-search { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {

  :root { --header-height: 64px; --gap: 32px; }

  /* Header collapses nav */
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--primary);
    padding: 16px 20px;
    z-index: 99;
  }
  .primary-nav.open { display: block; }
  .primary-nav dl {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav dd a {
    white-space: normal;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 44px;
  }

  .header-search { display: none; }

  .header-ctas {
    gap: 6px;
    margin-left: auto;
  }
  .cta {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 44px;
  }

  /* Hero stacks */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }
  .hero-media {
    height: 50vw;
    min-height: 240px;
    max-height: 380px;
  }
  .hero-copy {
    text-align: left;
    align-items: flex-start;
    padding: 32px 20px 56px;
  }
  .hero-curve { clip-path: none; height: 40px; }

  /* Main layout stacks */
  main > .wrap > article > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-left {
    position: static;
    order: 2;
  }
  .content-main { order: 1; }

  /* Child cards */
  .child-pages {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
  .footer-cta-block { padding: 44px 20px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}