/* ==========================================================================
   Musical Drumming — main stylesheet
   Blend of the Musical Drumming brand (logo blue) and johnmccolgan.com
   (warm near-black, cream type, Quintessential display face).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --ink:        #100806;   /* page ground */
    --ink-2:      #1a0f0b;   /* alternate section ground */
    --cream:      #f3eadf;   /* primary text */
    --cream-85:   rgba(243, 234, 223, 0.86);
    --cream-78:   rgba(243, 234, 223, 0.78);
    --cream-70:   rgba(243, 234, 223, 0.72);
    --line:       rgba(243, 234, 223, 0.13);
    --line-strong:rgba(243, 234, 223, 0.55);

    --accent:     #00aeef;   /* Musical Drumming logo blue */
    --accent-ink: #06222e;   /* text on accent */
    --cta:        #f08a3c;   /* warm orange buttons */
    --cta-hover:  #f6a265;

    --font-display: 'Quintessential', Georgia, 'Times New Roman', serif;
    --font-label:   'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body:    'Barlow', Helvetica, Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 24px);
    --section-y: clamp(72px, 9vw, 112px);
    --radius: 8px;
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: #7fd3f5; }
a:hover { color: #b3e6fa; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--cream); color: var(--ink);
    padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 808px; }

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- 3. Type ---------- */
.display { font-family: var(--font-display); font-weight: 400; }

.eyebrow {
    margin-bottom: 14px;
    font-family: var(--font-label);
    font-weight: 600; font-size: 17px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
}

.h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.h2--xl { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; margin-bottom: 16px; }
.muted { color: var(--cream-85); }
.muted + .muted { margin-top: 18px; }
.lead { font-size: 20px; color: var(--cream-85); margin-bottom: 30px; }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 50px; padding: 14px 26px;
    border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-label); font-weight: 700; font-size: 18px;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; line-height: 1.1;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--cta { background: var(--cta); color: var(--ink); }
.btn--cta:hover { background: var(--cta-hover); color: var(--ink); }
.btn--ghost { color: var(--cream); border-color: var(--line-strong); font-weight: 600; }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 19px; }
.btn--xl { min-height: 58px; padding: 18px 34px; font-size: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 5. Notice bar + header ---------- */
.notice-bar {
    background: var(--accent); color: var(--accent-ink);
    text-align: center; padding: 10px var(--gutter);
    font-family: var(--font-label); font-weight: 600; font-size: 15px;
    letter-spacing: 0.08em; text-transform: uppercase;
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(16, 8, 6, 0.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.site-header__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { height: 52px; width: auto; }
.brand__by {
    font-family: var(--font-label); font-size: 14px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--cream-70);
    border-left: 1px solid rgba(243, 234, 223, 0.25); padding-left: 14px;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-nav__link {
    font-family: var(--font-label); font-weight: 600; font-size: 16px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--cream); text-decoration: none;
}
.site-nav__link:hover { color: var(--accent); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
    opacity: 0.38;
}
.hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(16,8,6,.92) 38%, rgba(16,8,6,.55) 70%, rgba(16,8,6,.75) 100%);
}
.hero__inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
    padding-block: clamp(64px, 9vw, 96px) clamp(72px, 9vw, 104px);
}
.hero__copy { flex: 1 1 480px; min-width: 0; }
.hero__title { font-size: clamp(44px, 6vw, 78px); line-height: 1.04; margin-bottom: 24px; }
.hero__lead { max-width: 560px; font-size: 20px; color: var(--cream-85); margin-bottom: 36px; }
.hero__book { flex: 0 1 380px; min-width: 240px; display: flex; justify-content: center; margin-inline: auto; }

.book-frame { position: relative; width: 100%; max-width: 360px; }
.book-frame::before {
    content: ''; position: absolute; inset: 18px -18px -18px 18px;
    border: 2px solid var(--accent); border-radius: 6px;
}
.book-frame img { position: relative; width: 100%; border-radius: 6px; box-shadow: var(--shadow); }

/* ---------- 7. Credits strip ---------- */
.credits { background: var(--ink-2); border-block: 1px solid rgba(243, 234, 223, 0.08); }
.credits__inner {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px 36px; padding-block: 28px;
    font-family: var(--font-label); font-size: 17px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-70);
}
.credits__label { color: var(--accent); font-weight: 600; }

/* ---------- 8. Sections & layout ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--ink-2); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split--top { align-items: flex-start; }
.split__media { flex: 1 1 440px; min-width: 0; }
.split__body { flex: 1 1 460px; min-width: 0; }
.split__body--narrow { flex-basis: 360px; }

.photo { width: 100%; border-radius: 6px; object-fit: cover; filter: grayscale(1); }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1 / 1; margin-top: 30px; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.stats__item { flex: 1 1 140px; border-top: 2px solid var(--accent); padding-top: 14px; }
.stats__value { font-family: var(--font-label); font-weight: 700; font-size: 44px; line-height: 1; }
.stats__label { font-size: 15px; color: var(--cream-70); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
    flex: 1 1 300px;
    background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px;
}
.card__kicker {
    font-family: var(--font-label); font-weight: 700; font-size: 15px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 10px;
}
.card__title {
    font-family: var(--font-label); font-weight: 700; font-size: 32px;
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; line-height: 1.1;
}
.card__text { font-size: 17px; color: var(--cream-78); }
.card--featured { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card--featured .card__kicker,
.card--featured .card__text { color: var(--accent-ink); }

/* Levels */
.levels { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.level {
    display: flex; gap: 24px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
}
.level__num {
    font-family: var(--font-label); font-weight: 700; font-size: 40px; line-height: 1;
    color: var(--accent); min-width: 48px;
}
.level__title {
    font-family: var(--font-label); font-weight: 700; font-size: 26px;
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; line-height: 1.15;
}
.level__text { font-size: 17px; color: var(--cream-78); }

/* ---------- 9. Pull quote ---------- */
.pullquote { position: relative; overflow: hidden; isolation: isolate; }
.pullquote__bg {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(1);
}
.pullquote__inner { max-width: 900px; padding-block: clamp(80px, 10vw, 120px); text-align: center; }
.pullquote .icon--quote { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.6; margin: 0 auto 18px; }
.pullquote__text { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin-bottom: 24px; }
.pullquote__cite {
    font-family: var(--font-label); font-weight: 600; font-size: 17px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-78);
}

/* ---------- 10. Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 20px; padding: 32px 30px; }
.testimonial__quote { font-size: 17px; color: var(--cream-85); }
.testimonial__name {
    margin-top: auto;
    font-family: var(--font-label); font-weight: 600; font-size: 16px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}

/* ---------- 11. Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-2); }
.final-cta__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: 0.3;
}
.final-cta__shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(16,8,6,.9), rgba(16,8,6,.65));
}
.final-cta__inner {
    max-width: 1100px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px;
    padding-block: var(--section-y);
}
.final-cta__inner > div { flex: 1 1 440px; min-width: 0; }
.final-cta__cover { width: 220px; flex: 0 1 220px; min-width: 180px; border-radius: 4px; box-shadow: var(--shadow); }

/* ---------- 12. Former members page ---------- */
.page-members { display: flex; flex-direction: column; min-height: 100vh; }
.members { position: relative; overflow: hidden; isolation: isolate; flex: 1 0 auto; }
.members__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 65% 35%; opacity: 0.22;
}
.members__shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(16,8,6,.75), rgba(16,8,6,.95));
}
.members__inner { padding-block: clamp(64px, 9vw, 96px) clamp(72px, 9vw, 104px); text-align: center; }
.members__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; margin-bottom: 24px; }
.members .lead { margin-bottom: 18px; }
.members__signoff { margin-top: 44px; font-size: 24px; color: var(--cream-85); }

.choice-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; text-align: left; }
.choice {
    flex: 1 1 280px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    background: rgba(26, 15, 11, 0.92); border: 1px solid var(--line); border-radius: 10px;
    padding: 30px 28px;
}
.choice__title {
    font-family: var(--font-label); font-weight: 700; font-size: 26px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.choice__text { font-size: 17px; color: var(--cream-78); }
.choice .btn { margin-top: auto; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 4px 24px; padding-block: 6px;
    font-size: 14px; color: var(--cream-70);
}
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.site-footer__nav a {
    min-height: 44px; display: inline-flex; align-items: center;
    font-family: var(--font-label); font-weight: 600; font-size: 14px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(243, 234, 223, 0.8); text-decoration: none;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__agency img { width: 32px; height: auto; transition: transform .2s; }
.site-footer__agency:hover img { transform: scale(1.08); }

/* ---------- 13b. Drum-hit buttons (see main.js) ---------- */
.btn--cta { white-space: nowrap; }
[data-drum] { position: relative; isolation: isolate; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[data-drum] > * { pointer-events: none; }
.fx-ring {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
    transform: translate(-50%, -50%) scale(.2);
}
.fx-spark {
    position: absolute; width: 3px; height: 14px; border-radius: 2px;
    background: var(--cream); pointer-events: none; transform-origin: 50% 100%;
}
.fx-stick {
    position: absolute; right: -6px; top: -80px; width: 110px; height: 110px;
    pointer-events: none; transform-origin: 100% 0%; transform: rotate(-38deg);
    opacity: 0; z-index: 2;
}

/* ---------- 14. Reveal-on-scroll (enabled by JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 820px) {
    .site-nav__link { display: none; }       /* keep only the CTA on small screens */
    .brand__logo { height: 42px; }
    .split { gap: 40px; }
    .hero__inner { gap: 48px; }
}

@media (max-width: 520px) {
    body { font-size: 17px; }
    .brand__by { display: none; }
    .notice-bar { font-size: 13px; }
    .level { padding: 22px 20px; gap: 16px; }
    .level__num { font-size: 32px; min-width: 38px; }
    .card, .testimonial { padding: 26px 22px; }
    .btn--lg, .btn--xl { width: 100%; justify-content: center; font-size: 16px; padding-inline: 18px; letter-spacing: .06em; }
    .hero__book { min-width: 0; padding-right: 12px; }
    .book-frame { max-width: 280px; }
    .book-frame::before { inset: 12px -12px -12px 12px; }
    .site-footer__inner { justify-content: center; text-align: center; padding-block: 10px; }
}
