/* =========================
   Bach & Boogie – Global Styles
   ========================= */

/* Brand tokens */
:root{
  --bg:#f4f4f4;
  --ink:#333;
  --muted:#555;
  --brand:#4200FF;   /* headline blue */
  --cta:#FF8A00;     /* orange */
  --ctaHover:#CC6E00;
  --panel:#ffffff;
  --footer:#444444;
}

/* Base reset */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

/* Typography system */
body{
  font-family:'Fredoka', sans-serif;   /* body & UI */
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}
p{ color:var(--muted); font-size:20px; margin:0 0 1rem; }
a{ color:inherit; text-decoration:none; }

h1,h2,h3,h4,h5,h6{
  font-family:'Baloo Chettan 2', sans-serif;  /* display */
  font-weight:600;
  line-height:1.25;
  margin:0 0 .5em;
  color:var(--brand);
}
h1{ font-size:2.4rem; }
h2{ font-size:2rem; }
h3{ font-size:1.6rem; }

/* Optional playful accent only when explicitly used */
.accent{ font-family:'Sniglet', cursive; }

/* Layout helpers */
.container{ width:min(1100px, 92vw); margin-inline:auto; }

/* Header / Nav */
header.sticky-header{
  position:relative; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 18px; background:#333; color:#fff;
}
.header-left{ display:flex; align-items:center; gap:16px; }
.toplogo{ width:220px; max-width:40vw; height:auto; display:block; }

nav.navigation ul{
  display:flex; gap:22px; list-style:none; margin:0; padding:0; align-items:center;
}
nav.navigation a{ color:#fff; font-weight:500; font-family:'Fredoka',sans-serif; }

/* Stars (optional) */
.star-container{ position:absolute; inset:0; pointer-events:none; z-index:0; }
.star{ position:absolute; width:60px; height:60px; opacity:.25; animation:rotate 6s ease-in-out infinite; }
.star-1{ top:8%; left:8%; }
.star-2{ top:46%; left:28%; width:42px; height:42px; }
.star-3{ bottom:8%; right:12%; width:50px; height:50px; }
@keyframes rotate{ 0%{transform:rotate(0)} 50%{transform:rotate(180deg)} 100%{transform:rotate(360deg)} }

/* Hero */
section.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  margin: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: url('/img/bbpic5.png') center/cover no-repeat; /* fallback image */
}

section.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.30));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 28px 18px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: .95rem;
  letter-spacing: .02em;
  opacity: .9;
  margin-bottom: .35rem;
  font-family: 'Fredoka', sans-serif;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: .35rem;
}

.hero-content p {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 auto 1.1rem;
  max-width: 780px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 18px;         /* consistent target size */
  border-radius: 10px;        /* unify radius */
  font-size: 1.05rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1;             /* cleaner vertical rhythm */
  border: 2px solid transparent;
  transition: all .2s ease;
}

/* Variants */
.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ctaHover);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ddd;
  color: #333;
}
.btn-outline:hover {
  background: #f6f6f6;
  border-color: #bbb;         /* subtle hover contrast */
}
.btn:active { transform: translateY(1px); }

/* Accessibility */
.btn:focus-visible {
  outline: 3px solid #FFE799;
  outline-offset: 2px;
}

/* Size variants (optional) */
.btn-sm { padding:10px 14px; font-size:.98rem; border-radius:10px; }

.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
  padding: 0;
}
.btn-link:hover { text-decoration: underline; }

/* Sections */
section.wire{ padding:56px 0; background:#fff; border-top:1px solid #e9e9e9; }
section.wire.alt{ background:#f9f9ff; }
.wire .section-intro{ text-align:center; margin-bottom:22px; }
.wire .section-intro p{ max-width:820px; margin-inline:auto; }
.placeholder{
  border:2px dashed #cfd3ff; background:#fff; border-radius:12px;
  padding:26px; color:#6970ff; font-size:1rem;
}

/* Grid utilities */
.grid{ display:grid; }
.grid.auto-cards{ grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }

/* Classes page cards */
.card{ background:#fff; border-radius:12px; padding:18px; box-shadow:0 6px 16px rgba(0,0,0,.06); }
.meta{ font-size:.95rem; color:#555; margin:.25rem 0 .5rem; }

/* Footer */
footer{ background:var(--footer); color:#fff; text-align:center; padding:26px 16px; margin:0; }
footer a{ color:#fff; text-decoration:underline; }

/* Method grid responsiveness */
@media (max-width:900px){ .method-grid{ grid-template-columns: repeat(2, minmax(180px,1fr)) !important; } }
@media (max-width:560px){ .method-grid{ grid-template-columns: 1fr !important; } }

/* Responsive tweaks */
@media (max-width:900px){
  .toplogo{ width:180px; }
  nav.navigation ul{ gap:14px; }
  .hero-content h1{ font-size:1.9rem; }
  .hero-content p{ font-size:1.05rem; }
}
@media (max-width:720px){
  header.sticky-header{ flex-direction:column; gap:10px; padding:14px; }
  nav.navigation ul{ flex-wrap:wrap; justify-content:center; }
  .toplogo{ width:200px; }
  .btn{ width:100%; max-width:360px; }
  .star{ display:none; } /* reduce clutter on small screens */
}


/* Full-width card (for empty-state messaging in grids) */
.card--full { grid-column: 1 / -1; }


/* HERO polish */
.hero { min-height: 540px; }
.hero::before{
  /* slightly deeper overlay for readability */
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.38));
}

.hero-content{
  max-width: 920px;
  padding: 36px 18px 32px;
}

.hero-eyebrow{
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  font-size: clamp(.9rem, 1.7vw, 1.05rem);
  color: rgba(255,255,255,.92);
  margin: 0 0 .4rem;
}

.hero-title{
  /* Baloo for display; keep it friendly but strong */
  font-family: 'Baloo Chettan 2', system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: .15rem 0 .45rem;
  text-wrap: balance;
}

.hero-sub{
  font-family: 'Fredoka', system-ui, sans-serif;
  color: rgba(255,255,255,.95);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  margin: 0 auto .9rem;
  max-width: 760px;
}

/* Buttons: tighter group, better spacing */
.btn-group{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin-top: .6rem;
}

/* Micro links: smaller, clearer separators */
.micro-links{
  margin-top: .55rem;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}
.micro-links a{ color: #FFE799; text-decoration: underline; }
.micro-links .dot{ opacity:.7; padding: 0 .35em; }

/* Tone down header stars overlapping hero on desktop */
.star{ opacity: .18; }
@media (max-width: 720px){
  .hero { min-height: 500px; }
  .btn{ width:100%; max-width: 360px; }
  .micro-links{ font-size: .9rem; }
}


.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;                    /* adjust framing if needed */
  z-index: 0;
  background: url('/img/bbpic5.png') center/cover no-repeat; /* fallback image */
}


/* --- Find a Class layout polish --- */
main.container { padding: 24px 0 56px; }

#classesGrid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 24px;
}

#classesGrid .card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
#classesGrid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.card{ transition: transform .18s ease, box-shadow .18s ease; }
.card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

#classesGrid h2 {
  font-family: 'Baloo Chettan 2', system-ui, sans-serif;
  font-size: 1.5rem;
  margin: 0 0 .25rem;
  color: var(--brand);
}

#classesGrid .meta {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: #555;
  font-size: .98rem;
  margin: 0;
}

#classesGrid .actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* --- Home mini finder polish --- */
#homeResultsTitle { 
  font-family: 'Baloo Chettan 2', system-ui, sans-serif;
  color: var(--brand);
}

#homeResults {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 12px;
}

#homeResults .card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
#homeResults .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

#homeResults h2 {
  font-family: 'Baloo Chettan 2', system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 0 0 .25rem;
  color: var(--brand);
}

#homeResults .meta {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: #555;
  font-size: .98rem;
  margin: 0;
}

#homeResults .actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Make the hint card (homeEmpty) style like a full-width card */
.card--full {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  margin-top: 12px;
}




.video-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-width: 780px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}


#see-a-class .section-intro{ margin-bottom: 10px; }
.video-wrapper{ margin: 18px auto 12px; }



/* Mobile-first adjustments */
@media (max-width: 600px) {
  .video-wrapper video {
    max-width: 100%;      /* full width on small screens */
    border-radius: 8px;
  }
}


/* keep anchored sections visible below sticky header */
[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }  /* tasteful smooth scroll */




/* Search form layout */
.class-search-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Search input matches button scale */
.search-input {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd3ff;
  font-size: 1rem;
  font-family: 'Fredoka', sans-serif;
}

/* Compact button variant for forms & grids */
.btn-sm {
  padding: 10px 14px;
  font-size: .95rem;
  border-radius: 10px;
}

/* CTA group spacing; stacks nicely on mobile */
.btn-group { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
@media (max-width:640px){
  .btn-group .btn{ flex:1 1 100%; }
}



html, body {
  height: 100%;              /* full viewport height */
  margin: 0;                 /* remove default spacing */
  display: flex;
  flex-direction: column;    /* stack header, main, footer */
}

main {
  flex: 1;                   /* take up remaining space */
}

footer {
  border-top: 1px solid #e7e7e7;  /* optional styling */
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
