/* ═══════════════════════════════════════════════════════════
   RRRH Theme — main.css
   Palette: Warm Black / Saddle Brown / Aged Gold / Forest Green
   Typeface: system serif display + system sans body
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --black:      #0d0d0a;
    --black-2:    #1a1208;
    --black-3:    #231808;
    --brown-dark: #2a1f0e;
    --brown:      #3d2b10;
    --brown-mid:  #5a3e1b;
    --brown-lt:   #9a7850;
    --gold-dark:  #6a5030;
    --gold:       #8B6914;
    --gold-lt:    #a07820;
    --gold-cream: #c8a870;
    --cream:      #e8d5a0;
    --white:      #fff;
    --green-dark: #1a2a14;
    --green:      #3a6a28;
    --green-lt:   #4a8a35;
    --saddle:     #8B4513;
    --saddle-lt:  #a05520;

    --rasta-gradient: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--saddle) 100%);

    --font-display: Georgia, 'Times New Roman', serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'Courier New', monospace;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-pill: 50px;

    --transition: .2s ease;
    --max-width:  1200px;
    --content-width: 900px;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 90px; /* room for fixed player bar */
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-lt); }

/* ── Site wrap ─────────────────────────────────────────────── */
.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--brown);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
}

/* Logo */
.site-header__logo img,
.site-header__logo .custom-logo {
    height: 48px;
    width: auto;
    display: block;
}
.site-header__logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.site-header__logo a { display: block; }

/* Nav */
.site-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav__menu li { position: relative; }
/* Nav links need inline-block for border-bottom to render correctly */
.site-nav__menu a {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--cream);
    opacity: .75;
    display: inline-block;
    transition: opacity var(--transition), color var(--transition);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.site-nav__menu a:hover {
    opacity: 1;
    color: var(--gold-lt);
    border-bottom-color: rgba(139, 105, 20, 0.4);
}

/* Active nav — all WordPress active classes + current page */
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current-menu-parent > a,
.site-nav__menu .current_page_ancestor > a {
    opacity: 1 !important;
    color: var(--gold) !important;
    border-bottom-color: var(--gold) !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding-bottom: 2px !important;
}

/* Mobile burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.site-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.site-header__mobile-nav {
    display: none;
    background: var(--black-2);
    border-top: 1px solid var(--brown);
    padding: 16px 32px 24px;
}
.site-header__mobile-nav.is-open { display: block; }
.site-nav__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-nav__mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--cream);
    border-bottom: 1px solid var(--brown);
    letter-spacing: .3px;
}
.site-nav__mobile-menu .current-menu-item > a { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT OFFSET (for fixed header)
   ═══════════════════════════════════════════════════════════ */
.site-main { padding-top: 72px; flex: 1; }
.site-main--page { padding-top: 72px; }

/* ═══════════════════════════════════════════════════════════
   HOME SECTIONS
   ═══════════════════════════════════════════════════════════ */
.home-section {
    width: 100%;
}

.home-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.home-section__inner--narrow {
    max-width: var(--content-width);
}

/* History section */
.home-section--history {
    padding: 0;
    background: var(--black);
}
.home-section--history .rrrh-history-wrap {
    border-radius: 0;
    padding: 32px;
}
.home-section--history .rrrh-history__header {
    max-width: var(--max-width);
    margin: 0 auto;
}
.home-section--history .rrrh-history__grid {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Content section (Gutenberg blocks) */
.home-section--content {
    background: var(--black-2);
    padding: 64px 32px;
    border-top: 3px solid transparent;
    border-image: var(--rasta-gradient) 1;
}

/* Schedule section */
.home-section--schedule {
    padding: 48px 32px;
    background: var(--black);
}
.home-section__heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid transparent;
    border-image: var(--rasta-gradient) 1;
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGE
   ═══════════════════════════════════════════════════════════ */
.page-article {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.page-article__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--brown);
}

.page-breadcrumb {
    font-size: .8rem;
    color: var(--gold-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-breadcrumb a { color: var(--gold); }
.page-breadcrumb a:hover { color: var(--gold-lt); }
.page-breadcrumb__sep { color: var(--brown-mid); }

.page-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--cream);
    margin: 0;
    line-height: 1.2;
    letter-spacing: .5px;
}

/* Gutenberg block content styles */
.page-article__content h1,
.page-article__content h2,
.page-article__content h3,
.page-article__content h4 {
    font-family: var(--font-display);
    color: var(--cream);
    margin-top: 2rem;
    margin-bottom: .75rem;
    line-height: 1.3;
}
.page-article__content h2 { font-size: 1.6rem; color: var(--gold-cream); }
.page-article__content h3 { font-size: 1.3rem; color: var(--cream); }

.page-article__content p { color: var(--cream); opacity: .9; margin: 0 0 1.2rem; }
.page-article__content a { color: var(--gold); border-bottom: 1px solid var(--brown-mid); }
.page-article__content a:hover { color: var(--gold-lt); border-color: var(--gold); }

.page-article__content ul,
.page-article__content ol {
    color: var(--cream);
    padding-left: 1.5rem;
    margin: 0 0 1.2rem;
}
.page-article__content li { margin-bottom: .4rem; }

.page-article__content blockquote {
    border-left: 3px solid var(--gold);
    margin: 1.5rem 0;
    padding: .5rem 0 .5rem 1.5rem;
    font-style: italic;
    color: var(--gold-cream);
    background: var(--brown-dark);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-article__content strong { color: var(--cream); font-weight: 700; }
.page-article__content em     { color: var(--gold-cream); }
.page-article__content code {
    background: var(--brown-dark);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: .875em;
    color: var(--gold-cream);
}

/* Home content section typography */
.home-section--content p,
.home-section--content li { color: var(--cream); opacity: .85; }
.home-section--content strong { color: var(--cream); opacity: 1; }
.home-section--content h2 {
    font-family: var(--font-display);
    color: var(--gold-cream);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--black-2);
    border-top: 1px solid var(--brown);
    margin-top: auto;
}

.site-footer__rasta-bar {
    height: 3px;
    background: var(--rasta-gradient);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px 48px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px 32px;
}

/* When only brand is present (no nav menu, no social) */
.site-footer__brand {
    min-width: 0;
}

.site-footer__logo {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
    opacity: .8;
    border-radius: 50%;
}
.site-footer__name  { font-size: 1.1rem; font-weight: 700; color: var(--cream); letter-spacing: 1px; }
.site-footer__tagline { font-size: .8rem; color: var(--gold); margin: 4px 0 0; font-style: italic; }

.site-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__nav a {
    font-size: .85rem;
    color: var(--brown-lt);
    transition: color var(--transition);
}
.site-footer__nav a:hover { color: var(--gold-lt); }

.site-footer__social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.site-footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brown-dark);
    border: 1px solid var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-lt);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.site-footer__social-link:hover {
    background: var(--brown);
    color: var(--cream);
    border-color: var(--gold);
}

.site-footer__bottom {
    border-top: 1px solid var(--brown-dark);
    padding: 16px 32px;
    background: var(--black);
}
.site-footer__bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    justify-content: space-between;
}
.site-footer__copy,
.site-footer__contact { font-size: .78rem; color: var(--gold-dark); }
.site-footer__contact a { color: var(--gold); }
.site-footer__contact a:hover { color: var(--gold-lt); }

/* ═══════════════════════════════════════════════════════════
   GUTENBERG BLOCK OVERRIDES (dark theme)
   ═══════════════════════════════════════════════════════════ */
.wp-block-paragraph { color: var(--cream); }
.wp-block-heading   { color: var(--cream); font-family: var(--font-display); }
.wp-block-separator { border-color: var(--brown); }
.wp-block-quote {
    border-left: 3px solid var(--gold);
    color: var(--gold-cream);
}
.wp-block-code {
    background: var(--brown-dark);
    color: var(--gold-cream);
    border: 1px solid var(--brown);
    border-radius: var(--radius-md);
}
.wp-block-button__link {
    background: var(--green) !important;
    border-radius: var(--radius-pill) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
}
.wp-block-button__link:hover {
    background: var(--green-lt) !important;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN BAR OFFSET
   ═══════════════════════════════════════════════════════════ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .site-header__inner  { padding: 0 20px; }
    .site-nav            { display: none; }
    .site-header__burger { display: flex; }

    .home-section__inner { padding: 0 20px; }
    .home-section--content { padding: 48px 20px; }
    .home-section--schedule { padding: 36px 20px; }

    .page-article { padding: 32px 20px 48px; }

    .site-footer__inner  { padding: 32px 20px 24px; grid-template-columns: 1fr; }
    .site-footer__bottom { padding: 14px 20px; }
    .site-footer__bottom-inner { flex-direction: column; gap: 6px; }

    .home-section--history .rrrh-history-wrap { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .site-header__inner { height: 60px; }
    .site-main { padding-top: 60px; }
}

/* ═══════════════════════════════════════════════════════════
   REGGAE ACCENT SYSTEM
   All treatments use the lightest possible touch —
   the palette suggests itself rather than announces itself.
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Hero background — radial colour whispers ────────────
   Three very faint radial pools of green, gold, and saddle
   bleed from the corners/center. No stripes, no pattern —
   just warmth in the darkness. -------------------------------- */
.rrrh-hero {
    background:
        radial-gradient(ellipse 60% 40% at 5% 100%,  rgba(58,106,40,.07)  0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 95% 0%,   rgba(139,105,20,.06) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 50% 110%,  rgba(139,69,19,.05)  0%, transparent 60%),
        var(--black);
}

/* ── 2. Rasta left-border on history rows ───────────────────
   Each row gets a 2px left accent bar cycling the three
   colours. nth-child cycling is the sound system aesthetic — */
.rrrh-history__row:nth-child(3n+1) { border-left: 2px solid var(--green);  padding-left: 10px; }
.rrrh-history__row:nth-child(3n+2) { border-left: 2px solid var(--gold);   padding-left: 10px; }
.rrrh-history__row:nth-child(3n+0) { border-left: 2px solid var(--saddle); padding-left: 10px; }

/* ── 3. Corner bracket accents on DJ card + Now Playing ─────
   Thin L-shaped bracket marks in each corner.
   Each corner is a different colour from the palette. -------- */
.rrrh-hero__dj-card,
.rrrh-hero__now-playing-card {
    position: relative;
}
.rrrh-hero__dj-card::before,
.rrrh-hero__dj-card::after,
.rrrh-hero__now-playing-card::before,
.rrrh-hero__now-playing-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}
.rrrh-hero__dj-card::before,
.rrrh-hero__now-playing-card::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--green);
    border-left: 2px solid var(--green);
    border-radius: 2px 0 0 0;
}
.rrrh-hero__dj-card::after,
.rrrh-hero__now-playing-card::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--saddle);
    border-right: 2px solid var(--saddle);
    border-radius: 0 0 2px 0;
}
/* Two more corners via wrapper pseudo-elements on inner divs */
.rrrh-hero__dj-info::before {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    border-radius: 0 2px 0 0;
    pointer-events: none;
}
.rrrh-hero__np-track::after {
    content: '';
    position: absolute;
    bottom: -1px; left: -1px;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--green);
    border-left: 2px solid var(--green);
    border-radius: 0 0 0 2px;
    pointer-events: none;
}
.rrrh-hero__dj-info,
.rrrh-hero__np-track { position: relative; }

/* ── 4. Soundwave section divider ───────────────────────────
   Between hero and history. Static bars with staggered
   animation — subtler than a full waveform visualizer. ------ */
.rrrh-soundwave-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 32px;
    background: var(--black);
    padding: 4px 0;
    overflow: hidden;
}
.rrrh-soundwave-divider span {
    display: block;
    width: 3px;
    border-radius: 2px;
    animation: rrrh-sw .9s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes rrrh-sw {
    0%, 100% { height: 4px;  opacity: .5; }
    50%       { height: 22px; opacity: 1;  }
}
/* Colour cycling across bars */
.rrrh-soundwave-divider span:nth-child(3n+1) { background: var(--green);  animation-delay: calc(var(--i, 0) * .05s); }
.rrrh-soundwave-divider span:nth-child(3n+2) { background: var(--gold);   animation-delay: calc(var(--i, 0) * .05s + .15s); }
.rrrh-soundwave-divider span:nth-child(3n+0) { background: var(--saddle); animation-delay: calc(var(--i, 0) * .05s + .3s); }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rrrh-soundwave-divider span { animation: none; height: 8px; opacity: .4; }
}

/* ── 5. Three-dot rasta indicator on Now Playing card ───────
   Three small circles — green, gold, red — below the album
   info. Reads like a playing status, echoes record sleeve
   design. Only visible when track data is populated. --------- */
.rrrh-hero__np-track::before {
    content: '';
    display: none; /* shown via JS class on parent */
}
.rrrh-hero__now-playing-card.has-track .rrrh-hero__np-track::before {
    content: '';
    display: flex;
}
/* Implemented as actual DOM elements added by hero.js —
   see .rrrh-np-dots below for the CSS. */
.rrrh-np-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
    justify-content: center;
}
.rrrh-np-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.rrrh-np-dots span:nth-child(1) { background: var(--green);  box-shadow: 0 0 4px rgba(58,106,40,.6); }
.rrrh-np-dots span:nth-child(2) { background: var(--gold);   box-shadow: 0 0 4px rgba(139,105,20,.6); }
.rrrh-np-dots span:nth-child(3) { background: var(--saddle); box-shadow: 0 0 4px rgba(139,69,19,.6); }

/* ── Footer: hide the redundant brand block that appears
   between page content and the actual footer. This is the
   Sounder theme widget area — we suppress it in our theme. -- */
.home-section--content + .site-footer,
.site-footer .site-footer__brand ~ .site-footer__brand {
    display: none;
}
/* The Sounder theme injects a widget area with the logo+slogan
   just above our footer. Target it directly: */
.footer_copyright_wrap,
.front_page_section .sc_layouts_logo,
[class*="front_page_section_logo"],
.widget_custom_html:has(.site-footer__brand) { display: none !important; }

/* ── Suppress orphaned brand block between content and footer ─
   This appears when WordPress page content contains the site
   logo/name from a previous theme's template. Hide it cleanly. */
.home-section--content .site-footer__brand,
.home-section--content .custom-logo-link,
.home-section--content img[class*="custom-logo"],
.home-section--content .wp-block-site-logo,
.home-section--content .wp-block-site-tagline,
.home-section--content .wp-block-site-title { display: none !important; }
