/* ================================================================
   MUSIC BINGO AUSTRALIA — Shared Design System
   All pages link to this file. Page-specific styles go in each
   page's own <style> block.
   ================================================================ */

/* ─── VARIABLES ─── */
:root {
  /* Brand colours */
  --teal:       #2CAEA8;
  --teal-d:     #1D7A76;
  --amber:      #F5A623;
  --navy:       #2E1A47;
  --purple:     #5F45D3;
  --pink:       #E0499E;
  --cream:      #FDF6E9;
  --cream-t:    #5A4A3F;
  --white:      #FFFFFF;
  /* Venue-finder / bingo-card aliases */
  --mba-teal:       #2CAEA8;
  --mba-teal-dark:  #1D7A76;
  --mba-amber:      #F5A623;
  --mba-amber-dark: #5C3F0A;
  --mba-navy:       #2E1A47;
  --mba-purple:     #5F45D3;
  --mba-pink:       #E0499E;
  --mba-cream:      #FDF6E9;
  --mba-cream-text: #5A4A3F;
  --mba-white:      #FFFFFF;
  /* Typography */
  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  /* Radii */
  --radius-pill: 999px;
  --radius-card: 16px;
  /* Borders — standardised */
  --outline:      3px solid var(--navy);
  --outline-thin: 1.5px solid rgba(46,26,71,.18);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--cream-t);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 var(--space-sm); }
a  { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 0;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }

/* ─── WAVE DIVIDERS ─── */
.wave {
  display: block;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  z-index: 4;
  margin-bottom: -1px;
}
.wave-anim .wave-fill     { animation: mbaWaveDrift    8s ease-in-out infinite; }
.wave-anim .wave-line     { animation: mbaWaveDriftLine 8s ease-in-out infinite; }
.wave-anim.wave-rev .wave-fill { animation-name: mbaWaveDriftRev;     }
.wave-anim.wave-rev .wave-line { animation-name: mbaWaveDriftRevLine; }
@media (prefers-reduced-motion: reduce) {
  .wave-anim .wave-fill, .wave-anim .wave-line { animation: none; }
}
@keyframes mbaWaveDrift {
  0%,100% { d: path("M0,40 Q550,85 1100,40 L1100,90 L0,90 Z"); }
  50%     { d: path("M0,40 Q550,20 1100,40 L1100,90 L0,90 Z"); }
}
@keyframes mbaWaveDriftLine {
  0%,100% { d: path("M0,40 Q550,85 1100,40"); }
  50%     { d: path("M0,40 Q550,20 1100,40"); }
}
@keyframes mbaWaveDriftRev {
  0%,100% { d: path("M0,40 Q550,-5 1100,40 L1100,90 L0,90 Z"); }
  50%     { d: path("M0,40 Q550,60 1100,40 L1100,90 L0,90 Z"); }
}
@keyframes mbaWaveDriftRevLine {
  0%,100% { d: path("M0,40 Q550,-5 1100,40"); }
  50%     { d: path("M0,40 Q550,60 1100,40"); }
}

/* ─── NAVIGATION ─── */
nav#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  padding: 0 40px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}
nav#nav.solid {
  background: rgba(253,246,233,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(44,174,168,.1);
}
/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-img { height: 62px; width: auto; display: block; }
.logo-img-white { display: block; }
.logo-img-black { display: none; }
nav#nav.solid .logo-img-white { display: none; }
nav#nav.solid .logo-img-black { display: block; }
/* Nav links — desktop: fixed to top-right of viewport (z-501 so it sits above nav bar z-500).
   On mobile the media query below turns this into a full-screen overlay. */
.nav-links {
  position: fixed; top: 0; right: 40px; height: 80px; z-index: 501;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  color: rgba(255,255,255,.9);
  padding: 8px 16px; border-radius: 100px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links a:hover                              { background: rgba(255,255,255,.15); color: #fff; }
.nav-links a[aria-current="page"]               { background: rgba(255,255,255,.12); }
nav#nav.solid ~ .nav-links a                      { color: var(--cream-t); }
nav#nav.solid ~ .nav-links a:hover                { background: rgba(44,174,168,.1); color: var(--teal-d); }
nav#nav.solid ~ .nav-links a[aria-current="page"] { background: rgba(44,174,168,.12); color: var(--teal-d); }
/* CTA button in nav */
.nav-cta {
  margin-left: 10px;
  background: var(--amber) !important;
  color: var(--navy) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(245,166,35,.4);
  transition: transform .15s, box-shadow .15s !important;
}
.nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(245,166,35,.55) !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover  { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: scale(.97); }

.btn-teal        { background: var(--teal); color: #fff; box-shadow: 0 6px 24px rgba(44,174,168,.4); }
.btn-teal:hover  { background: var(--teal-d); }

.btn-amber       { background: var(--amber); color: var(--navy); box-shadow: 0 6px 24px rgba(245,166,35,.45); }
.btn-amber:hover { background: #fbb83a; box-shadow: 0 12px 36px rgba(245,166,35,.6); }

.btn-navy        { background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgba(46,26,71,.35); }
.btn-navy:hover  { background: #1a0f30; }

.btn-ghost-white       { background: transparent; color: #fff; border: 3px solid #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--navy); }

.btn-ghost-teal        { background: transparent; color: var(--teal); border: 3px solid var(--teal); }
.btn-ghost-teal:hover  { background: var(--teal); color: #fff; }

.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION UTILITIES ─── */
.section-cream { background: var(--cream); position: relative; z-index: 3; }
.section-navy  { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: #fff; }

.sec-label {
  font-size: .72rem; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.c-teal  { color: var(--teal); }
.c-amber { color: var(--amber); }
.c-pink  { color: var(--pink); }

.sec-h   { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--navy); line-height: 1.1; margin-bottom: 18px; }
.sec-sub { font-size: 1.05rem; line-height: 1.7; color: var(--cream-t); max-width: 560px; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(to bottom, #2CAEA8 0%, #1a4a6e 55%, #1a0f30 100%);
  overflow: hidden; padding: 100px 40px 0;
  text-align: center; position: relative; z-index: 2;
}
.page-hero-inner { padding-bottom: 4.5rem; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.2); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }
/* EQ canvas overlay */
.eq-canvas { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--amber); color: var(--navy); text-align: center; padding: var(--space-xl) 0; }
.cta-band h2   { color: var(--navy); }
.cta-band p    { opacity: .85; max-width: 480px; margin: 0 auto var(--space-md); }
.cta-btns      { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer#site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3.5rem clamp(1rem,4vw,2.5rem) 1.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.foot-logo            { margin-bottom: 14px; }
.foot-logo img        { height: 52px; width: auto; display: block; }
.foot-p               { font-size: .9rem; line-height: 1.75; opacity: .65; max-width: 280px; }
.foot-social          { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a        { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; text-decoration: none; transition: background .2s; }
.foot-social a:hover  { background: var(--teal); }
.foot-col h5          { font-family: var(--font-display); color: var(--amber); font-size: 1rem; margin-bottom: 16px; }
.foot-col a           { display: block; font-size: .88rem; opacity: .6; margin-bottom: 9px; color: #fff; text-decoration: none; transition: opacity .15s, color .15s; }
.foot-col a:hover     { opacity: 1; color: var(--teal); }
.foot-phone-link      { display: flex; flex-direction: column; text-decoration: none; color: #fff; margin-bottom: 12px; opacity: 1 !important; }
.foot-phone-link:hover .phone-vanity { color: var(--amber); }
.phone-vanity         { font-family: var(--font-display); font-size: 1rem; color: var(--teal); line-height: 1.2; display: block; }
.phone-num            { font-size: .8rem; opacity: .55; line-height: 1.5; display: block; }
.foot-location        { font-size: .85rem; opacity: .55; margin: 10px 0 0; display: flex; align-items: center; gap: 7px; }
.foot-acknowledge     { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0 16px; font-size: .8rem; line-height: 1.7; opacity: .4; text-align: center; font-style: italic; }
.foot-bottom          { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; opacity: .45; flex-wrap: wrap; gap: 12px; }
.foot-bottom a        { color: inherit; text-decoration: none; }
.foot-bottom a:hover  { color: var(--teal); text-decoration: underline; opacity: 1; }
.foot-bottom-links    { display: flex; gap: 16px; flex-wrap: wrap; }
.aussie               { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); padding: 4px 14px; border-radius: 100px; }

/* ─── DOC PAGES (privacy, terms, game-rules) ─── */
.doc-wrap { max-width: 780px; margin: 0 auto; padding: var(--space-xl) var(--space-md); }
.doc-intro {
  font-size: 1rem; color: var(--navy); font-weight: 700;
  background: rgba(44,174,168,.07); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg); line-height: 1.7;
}
.doc-wrap h2 {
  font-size: clamp(1.15rem,2vw,1.45rem); color: var(--navy);
  margin-top: var(--space-lg); margin-bottom: .6rem;
  padding-bottom: .5rem; border-bottom: 2px solid rgba(44,174,168,.2);
}
.doc-wrap h2:first-of-type { margin-top: 0; }
.doc-wrap h3   { font-size: 1.05rem; color: var(--teal-d); margin-top: var(--space-md); margin-bottom: .4rem; }
.doc-wrap p    { font-size: .96rem; line-height: 1.8; color: var(--cream-t); margin-bottom: .85rem; }
.doc-wrap ul,
.doc-wrap ol   { padding-left: 1.5rem; margin-bottom: .85rem; }
.doc-wrap li   { font-size: .96rem; line-height: 1.8; color: var(--cream-t); margin-bottom: .35rem; }
.doc-meta      { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid rgba(44,174,168,.2); font-size: .82rem; color: var(--cream-t); opacity: .7; }

/* ─── HAMBURGER / MOBILE NAV ─── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: background .15s;
  z-index: 510;
}
.nav-hamburger:hover  { background: rgba(255,255,255,.12); }
nav#nav.solid .nav-hamburger:hover { background: rgba(44,174,168,.1); }
.hamburger-bar {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
nav#nav.solid .hamburger-bar { background: var(--cream-t); }
/* Animated X when open */
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav#nav                        { padding: 0 20px; }
  .foot-grid                     { grid-template-columns: 1fr 1fr; }
  .page-hero                     { padding: 100px 24px 0; }

  /* Show hamburger, hide desktop nav links */
  .nav-hamburger                 { display: flex; }
  .nav-links                     {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 505;
    flex-direction: column; align-items: flex-start;
    background: rgba(46,26,71,.97);
    backdrop-filter: blur(16px);
    padding: 100px 32px 40px;
    gap: 4px;
    overflow-y: auto;
  }
  .nav-links.nav-open            { display: flex; }
  .nav-links a,
  nav#nav.solid ~ .nav-links a   {
    font-size: 1.4rem; color: rgba(255,255,255,.9);
    padding: 14px 0; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%; text-align: left;
  }
  .nav-links a:hover,
  nav#nav.solid ~ .nav-links a:hover { background: transparent; color: var(--amber); }
  .nav-links .nav-cta            {
    margin-left: 0; margin-top: 24px;
    width: 100%; justify-content: center;
    font-size: 1.1rem; padding: 16px 28px;
  }
}
@media (max-width: 600px) {
  .foot-grid                     { grid-template-columns: 1fr; }
  .cta-btns                      { flex-direction: column; align-items: center; }
  .cta-btns .btn                 { width: 100%; max-width: 320px; justify-content: center; }
}

/* ─── SMALL PHONE (≤480px) ─── */
/* Tightens shared components on iPhone SE, Galaxy A-series, etc. */
@media (max-width: 480px) {
  /* Nav: shrink logo a touch so it doesn't crowd the hamburger */
  .logo-img                      { height: 50px; }
  nav#nav                        { padding: 0 14px; }

  /* Page hero (inner pages) — reduce horizontal padding further */
  .page-hero                     { padding: 80px 16px 0; }

  /* Doc pages — reduce side padding so text has more room */
  .doc-wrap                      { padding: var(--space-lg) var(--space-sm); }
  .doc-intro                     { padding: var(--space-sm); }

  /* Footer — tighten spacing */
  footer#site-footer             { padding: 2.5rem 1rem 1rem; }
  .foot-social a                 { width: 32px; height: 32px; font-size: .9rem; }

  /* Buttons in CTA blocks — always full-width at this size */
  .cta-btns .btn                 { font-size: .9rem; padding: 13px 22px; }

  /* Shared container — tighten to 14px gutter */
  .container                     { padding: 0 .875rem; }
}
