/* ==========================================================================
   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; align-items: center; justify-content: space-between;
    gap: 16px; padding-block: 10px;
}

/* Logo with "by John McColgan" stacked underneath, lined up with the wordmark */
.brand {
    --logo-h: 44px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    text-decoration: none; flex: none;
}
.brand__logo { height: var(--logo-h); width: auto; }
.brand__by {
    padding-left: calc(var(--logo-h) * 0.66);   /* start under "Musical", past the drum icon */
    font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 1;
    letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
    color: var(--cream-70);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Slim section bar under the header */
.subnav {
    border-top: 1px solid var(--line);
    background: rgba(26, 15, 11, 0.6);
}
.subnav__scroller {
    overflow-x: auto; scrollbar-width: none;            /* swipe sideways if it ever overflows */
    -webkit-overflow-scrolling: touch;
}
.subnav__scroller::-webkit-scrollbar { display: none; }
.subnav__list {
    display: flex; gap: clamp(18px, 4vw, 44px);
    width: max-content; margin: 0 auto; padding: 0 var(--gutter);
    list-style: none;
}
.subnav__link {
    position: relative; display: inline-flex; align-items: center;
    min-height: 40px;
    font-family: var(--font-label); font-weight: 600; font-size: 14px;
    letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
    color: var(--cream-70); text-decoration: none;
    transition: color .2s;
}
.subnav__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--accent); border-radius: 2px;
    transform: scaleX(0); transition: transform .25s ease;
}
.subnav__link:hover { color: var(--cream); }
.subnav__link.is-active { color: var(--accent); }
.subnav__link.is-active::after { transform: scaleX(1); }

/* Anchor jumps land below the sticky header (height set by main.js) */
[id] { scroll-margin-top: var(--header-h, 120px); }

/* ---------- 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; justify-content: center; align-items: baseline;
    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; flex: none; white-space: nowrap; }
.credits__names {
    margin: 0; padding: 0; list-style: none; min-width: 0;
    display: flex; flex-wrap: wrap; gap: 12px 36px;   /* 2nd row starts under the 1st name */
}
.credits__names li { white-space: nowrap; }

/* ---------- 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); }

/* ---------- 13a. In-person lessons bubble ---------- */
.lessons-pill-row { margin-top: 22px; }
.label-short { display: none; }   /* short button wording, phones only */
.lessons-pill {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px 8px 12px;
    border: 1.5px solid rgba(0, 174, 239, 0.6); border-radius: 999px;
    background: rgba(0, 174, 239, 0.1);
    color: var(--cream); text-decoration: none;
    font-family: var(--font-label); font-size: 15px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.lessons-pill strong { font-weight: 700; }
.lessons-pill .icon { width: 16px; height: 16px; color: var(--accent); }
.lessons-pill .icon--arrow { width: 14px; height: 14px; transition: transform .2s; }
.lessons-pill__dot { margin: 0 6px; color: var(--accent); }
.lessons-pill:hover { background: rgba(0, 174, 239, 0.2); border-color: var(--accent); color: var(--cream); }
.lessons-pill:hover .icon--arrow { transform: translateX(3px); }
/* Size variants: same height / padding / type size as the button beside them */
.lessons-pill--sm { min-height: 44px; padding: 10px 22px 10px 18px; font-size: 16px; letter-spacing: 0.1em; }
.lessons-pill--xl { min-height: 58px; padding: 18px 34px 18px 28px; font-size: 20px; gap: 10px; }
.lessons-pill--xl .icon { width: 18px; height: 18px; }
.lessons-pill--xl .icon--arrow { width: 18px; height: 18px; }
@media (max-width: 520px) { .lessons-pill { font-size: 14px; letter-spacing: 0.06em; } }

/* ---------- 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 ---------- */
/* Phones: header keeps only "Get the book"; the lessons bubble moves into the hero.
   Credits label sits above the names. Final CTA buttons stack. */
@media (max-width: 680px) {
    /* Phone header: both buttons stay, compact, with short wording */
    .site-header .label-full { display: none; }
    .site-header .label-short { display: inline; }
    .header-actions { gap: 6px; }
    .header-actions .btn--sm,
    .lessons-pill--header {
        min-height: 36px; padding: 8px 12px;
        font-size: 13px; letter-spacing: 0.05em;
    }
    .lessons-pill--header { gap: 5px; padding-left: 10px; }
    .lessons-pill--header .icon--arrow { display: none; }
    .lessons-pill--header .icon { width: 14px; height: 14px; }
    .credits__inner { flex-direction: column; align-items: center; text-align: center; }
    .credits__names { justify-content: center; }
}

/* Final CTA: the two buttons share one row and one height */
.final-cta .btn-row { align-items: stretch; }
@media (max-width: 1180px) {
    .final-cta__inner { gap: 40px; }
    .lessons-pill--xl { padding-inline: 24px 28px; }
}

@media (max-width: 820px) {
    .brand { --logo-h: 40px; }
    .split { gap: 40px; }
    .hero__inner { gap: 48px; }
}

@media (max-width: 520px) {
    body { font-size: 17px; }
    .brand__by { font-size: 11px; letter-spacing: 0.12em; }
    .subnav__link { font-size: 13px; letter-spacing: 0.1em; min-height: 38px; }
    .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; }
    .lessons-pill--xl { font-size: 16px; padding-inline: 18px; letter-spacing: .06em; min-height: 58px; width: 100%; justify-content: center; }
    .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; }
}

@media (max-width: 420px) {
    .subnav__list { gap: 14px; padding-inline: 12px; }
    .subnav__link { letter-spacing: 0.07em; }
}

/* Small phones: slightly smaller logo so both header buttons fit */
@media (max-width: 400px) {
    .brand { --logo-h: 34px; }
    .brand__by { font-size: 10px; letter-spacing: 0.08em; }
    .header-actions .btn--sm,
    .lessons-pill--header { padding-inline: 10px; font-size: 12.5px; letter-spacing: 0.04em; }
    .lessons-pill--header { padding-left: 8px; }
}

/* Very narrow phones: stack the two header buttons */
@media (max-width: 350px) {
    .header-actions { flex-direction: column; align-items: stretch; gap: 4px; }
    .header-actions .btn--sm,
    .lessons-pill--header { min-height: 30px; padding-block: 5px; justify-content: center; }
}
