/* Rockstar Beginnings Music Academy
   Brand: logo ink #000e12. Accent: teal drawn from the logo's ink hue (#0e7490).
   8px spacing scale: 4 8 16 24 32 48 64 96 */
:root {
  --ink: #000e12;
  --ink-2: #0b2530;
  --accent: #0e7490;
  --accent-hover: #155e75;
  --accent-tint: #e7f3f6;
  --bg: #fafafa;
  --surface: #ffffff;
  --alt: #f2f5f6;
  --text: #111827;
  --muted: #4b5563;
  --border: #e3e7ea;
  --error: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 18, 26, .06), 0 4px 16px rgba(0, 18, 26, .06);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --section: 96px;
}
@media (max-width: 767px) { :root { --section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 800; letter-spacing: -0.025em; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--surface); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1.2 var(--font);
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-alt { margin-top: 16px; font-size: 1rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 132px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: #e5ecef; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn-header { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 10px;
    font: 600 1rem var(--font); cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 24px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .btn-header { min-height: 48px; }
  .brand img { width: 112px; }
}

/* ---------- hero ---------- */
.hero { padding: 80px 0 64px; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero:not(:has(.center)) .lede { margin-left: 0; }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero-split { padding: 48px 0 80px; }
.split { display: grid; gap: 48px; align-items: center; }
.split .lede { margin-left: 0; }
.split-media img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; max-width: 520px; margin-left: auto; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; } }
@media (max-width: 767px) {
  .hero { padding: 48px 0 48px; }
  .hero .lede { font-size: 1.125rem; }
  .hero .btn-lg { width: 100%; }
  .split-media img { max-width: 100%; aspect-ratio: 4 / 3; }
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .9375rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #9aa4ad; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-tight-top { padding-top: 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 32px; }
@media (max-width: 767px) { .card-pad { padding: 24px; } }

/* instruments */
.inst-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.inst-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.inst-card { overflow: hidden; transition: box-shadow .2s ease-out, border-color .2s ease-out; }
.inst-card:hover { box-shadow: var(--shadow); border-color: #cfd6db; }
.inst-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.inst-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink); }
.inst-body { display: block; padding: 24px; }
.inst-card h2, .inst-card h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.inst-text { display: block; color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.inst-more { font-weight: 600; font-size: 1rem; color: var(--accent); }
.inst-card a:hover .inst-more { text-decoration: underline; }
.inst-grid-sm .inst-body { padding: 16px; }
.inst-grid-sm .inst-text { display: none; }
.inst-grid-sm h2, .inst-grid-sm h3 { font-size: 1.0625rem; }

/* why */
.feature-grid { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { border-top: 3px solid var(--ink); padding-top: 24px; }
.feature p { color: var(--muted); font-size: 1.0625rem; }
.programs { margin-top: 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.programs-title { margin-bottom: 24px; }
.program-list { margin: 0; display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.program-list dt { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.program-list dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 767px) { .programs { padding: 24px; margin-top: 48px; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 16px; }
.step p { color: var(--muted); }

/* video */
.video { max-width: 800px; margin: 0 auto; }
.video-facade, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); border: 0; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; margin: auto; width: 80px; height: 56px; border-radius: 14px; background: var(--accent); transition: background-color .15s ease-out; }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { background: var(--accent-hover); }

/* faq */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* cta band */
.cta-band { background: var(--ink); color: #dfe8eb; padding: var(--section) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 32px; }
.cta-band .cta-alt { color: #b7c6cc; margin: 16px 0 0; }
.cta-band .cta-alt a { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-tint); color: var(--ink); }

/* content */
.two-col { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.check-list, .plain-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--border); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.plain-list li { padding: 8px 0; font-size: 1.0625rem; color: var(--muted); }
.plain-list strong { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.mt { margin-top: 48px; }

/* form */
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: 400 1rem/1.4 var(--font); color: var(--text);
  background: #fff; border: 1px solid #c4ccd2; border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14, 116, 144, .35); border-color: var(--accent); }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field-error { color: var(--error); font-size: .9375rem; margin: 8px 0 0; }
.form-note { font-size: .9375rem; color: var(--muted); margin-top: 16px; }
.form-status { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--accent-tint); color: var(--ink); font-size: 1rem; }

/* footer */
.site-footer { background: var(--ink); color: #b7c6cc; padding: 64px 0 32px; font-size: 1rem; }
.site-footer a { color: #e5ecef; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid > :first-child { grid-column: span 1; }
.footer-name, .footer-head { color: #fff; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: .875rem; }

/* sticky mobile call/text bar */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98); border-top: 1px solid var(--border);
  }
  .callbar .btn-secondary { background: #fff; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* keep phone numbers on one line */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* compact horizontal instrument cards on small screens */
@media (max-width: 599px) {
  .inst-grid { gap: 16px; }
  .inst-card a { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
  .inst-card img { aspect-ratio: 1 / 1; height: 100%; min-height: 112px; }
  .inst-body, .inst-grid-sm .inst-body { padding: 16px; }
  .inst-card h2, .inst-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
  .inst-text { font-size: .9375rem; margin-bottom: 8px; line-height: 1.45; }
  .inst-more { font-size: .9375rem; }
  .inst-grid-sm .inst-card a { grid-template-columns: 80px 1fr; }
  .inst-grid-sm .inst-card img { min-height: 80px; }
}
