/*
Theme Name: Eclectic Power Company
Text Domain: epc
Version: 1.7.8
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Description: A dark, neon-glow theme for the classic rock cover band Eclectic Power Company.
*/

/* ==========================================================================
   :root variables
   ========================================================================== */

:root {
    --bg: #0b0c12;
    --surface: #161822;
    --text: #ecebe6;
    --muted: #9a9ba6;
    --neon-red: #ff3b1f;
    --neon-lime: #a8f03a;
    --neon-cyan: #4fe0ff;
    --tube: #f2ff9a;
}

/* ==========================================================================
   Modern reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: text-shadow 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
    text-shadow: 0 0 4px var(--neon-cyan), 0 0 12px var(--neon-cyan);
}

.neon-title {
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    color: var(--neon-lime);
    text-shadow: 0 0 4px #fff, 0 0 12px var(--neon-lime), 0 0 32px var(--neon-lime);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid var(--surface);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    font-family: "Monoton", sans-serif;
    font-size: 1.1rem;
    color: var(--neon-lime);
    text-shadow: 0 0 4px #fff, 0 0 12px var(--neon-lime);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 4px var(--neon-cyan), 0 0 12px var(--neon-cyan);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--surface);
        border-bottom: 1px solid var(--neon-lime);
        padding: 1rem 0;
    }

    .site-nav a {
        display: block;
        padding: 12px 20px;
        text-align: center;
    }

    body.nav-open .site-nav {
        display: flex;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 20px;
}

.hero-logo {
    max-width: 640px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--neon-lime)) drop-shadow(0 0 60px var(--neon-lime));
    animation: flicker 3s infinite;
}

.hero-tagline {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--muted);
    margin-top: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }
    5% {
        opacity: 0.8;
    }
    10% {
        opacity: 1;
    }
    35% {
        opacity: 1;
    }
    40% {
        opacity: 0.7;
    }
    42% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    75% {
        opacity: 0.6;
    }
    78% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-red {
    border-color: var(--neon-red);
    color: var(--neon-red);
    background: transparent;
}

.btn-red:hover,
.btn-red:focus {
    box-shadow: 0 0 8px var(--neon-red), 0 0 24px var(--neon-red), inset 0 0 8px rgba(255, 59, 31, 0.2);
    color: #fff;
    text-shadow: 0 0 4px var(--neon-red);
}

.btn-ghost {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus {
    box-shadow: 0 0 8px var(--neon-cyan), 0 0 24px var(--neon-cyan), inset 0 0 8px rgba(79, 224, 255, 0.2);
    color: #fff;
    text-shadow: 0 0 4px var(--neon-cyan);
}

/* ==========================================================================
   Show rows
   ========================================================================== */

.show-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--surface);
}

.show-date {
    text-align: center;
}

.show-date .month {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.show-date .day {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--neon-lime);
    line-height: 1;
}

.show-venue {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.show-city {
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .show-row {
        grid-template-columns: 80px 1fr;
    }

    .show-row .btn {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   News grid / cards
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    text-align: center;
    padding: 3rem 2rem;
    box-shadow: 0 0 16px rgba(255, 59, 31, 0.3), inset 0 0 16px rgba(255, 59, 31, 0.1);
}

.cta-band h2 {
    margin-bottom: 1rem;
    color: var(--neon-red);
}

.cta-band p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--surface);
    padding: 2rem 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer a {
    color: var(--neon-cyan);
}

/* ==========================================================================
   WordPress core classes
   ========================================================================== */

.alignwide {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.wp-caption {
    max-width: 100%;
    margin: 1rem auto;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption .wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.5rem 0;
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    word-wrap: normal;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    background-color: var(--surface);
    color: var(--text);
    padding: 8px 16px;
    z-index: 99999;
}

.sticky {
    position: sticky;
    top: 72px;
}

.gallery-caption {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    padding: 0.5rem 0;
}

.bypostauthor {
    border-left: 3px solid var(--neon-lime);
    padding-left: 1rem;
}

/* ==========================================================================
   Fixes
   ========================================================================== */

/* The uploaded logo is 2828px wide; keep it small in the header */
.site-header .custom-logo-link img,
.site-header .custom-logo {
    height: 48px;
    width: auto;
}

/* wp_nav_menu outputs a <ul>; lay that out, not just the <nav> */
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 820px) {
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
}

/* The logo already has its own glow; don't wash it in lime */
.hero-logo {
    filter: none;
}

/* WordPress adds .sticky to sticky posts; it must not pin cards */
.sticky {
    position: static;
}

/* The reset strips spacing and bullets; restore them inside content */
.entry-content > * + * {
    margin-top: 1.25em;
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.5em;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 1.5em;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2em;
}

/* Pieces the templates will use */
.section {
    padding: 5rem 0;
}

.section .neon-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.show-date .month,
.show-date .day {
    display: block;
}

.show-row--past {
    opacity: 0.5;
}

.past-shows {
    margin-top: 2rem;
}

body {
    overflow-x: hidden; /* stops .alignfull from causing sideways scroll */
}

/* Footer logo, social menu, small extras */
.site-footer .custom-logo-link img,
.site-footer .custom-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 1rem;
}

.social-menu ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.site-footer p + p {
    margin-top: 0.5rem;
}

.show-info span {
    display: block;
}

.show-free,
.card-body time {
    font-size: 0.85rem;
    color: var(--muted);
}

.all-shows,
.about-more {
    margin-top: 1.5rem;
}

.about-excerpt {
    max-width: 70ch;
    font-size: 1.1rem;
}

.past-shows h2 {
    margin-bottom: 1rem;
    color: var(--muted);
}

/* Single posts, pagination, post navigation */
.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.post-date {
    display: block;
    color: var(--muted);
    margin: -1rem 0 2rem;
}

.single-post .entry-content,
.page-content .entry-content {
    max-width: 75ch;
}

.pagination,
.post-navigation {
    margin-top: 3rem;
}

.pagination .nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination .page-numbers.current {
    color: var(--neon-lime);
}

/* Keep anchored sections clear of the sticky header */
section[id],
#main {
    scroll-margin-top: 90px;
}

/* Hero: big logo, tagline and buttons below */
.hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero .hero-logo {
    display: block;
    width: min(92vw, calc((100vh - 340px) * 1.31));
    min-width: 280px;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
}

.hero-tagline {
    color: var(--text);
    margin-top: 1rem;
}

/* Header: band name as neon text in the logo's colours */
.site-branding .site-logo {
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: none;
}

.site-branding .site-logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 3px #fff, 0 0 10px var(--neon-cyan);
}

.site-branding .site-logo span:not(:first-child):not(:last-child) {
    color: var(--neon-lime);
    text-shadow: 0 0 3px #fff, 0 0 10px var(--neon-lime);
}

.site-branding .site-logo:hover span,
.site-branding .site-logo:focus span {
    text-shadow: 0 0 4px #fff, 0 0 16px currentColor, 0 0 32px currentColor;
}

@media (max-width: 820px) {
    .site-branding .site-logo {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .site-branding .site-logo {
        font-size: 0.75rem;
    }
}

/* Band lineup pattern (About page) */
.epc-lineup {
    margin: 3rem 0;
}

.epc-lineup .neon-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.epc-lineup-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--surface), 0 0 40px rgba(79, 224, 255, 0.12);
}

.entry-content .epc-lineup-names {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
    text-align: center;
}

.epc-lineup-names .wp-block-column > * + * {
    margin-top: 0.15rem;
}

.epc-lineup-names h3 {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    color: var(--neon-lime);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 12px var(--neon-lime);
}

.epc-lineup-names p {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
}

.entry-content .epc-lineup-names .wp-block-column {
    margin-top: 0;
}

/* The About page uses full content width so the photo can breathe */
.page-content .entry-content:has(.epc-lineup),
.page-content .entry-content:has(.epc-album) {
    max-width: none;
}

/* Album cover lineup pattern */
.epc-album {
    width: min(100%, 720px);
    margin: 3rem auto 4rem;
}

.epc-stage {
    position: relative;
}

.epc-sleeve {
    position: relative;
    z-index: 2;
    width: 82%;
    aspect-ratio: 1 / 1;
    background: #010101;   /* matches the photo's black so there's no seam */
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(79, 224, 255, 0.08);
}

/* Cardboard-sleeve sheen */
.epc-sleeve::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
}

.entry-content .epc-sleeve img {
    margin: 0;
}

.epc-sleeve-logo {
    position: absolute;
    top: 2.5%;
    left: 50%;
    width: 44%;
    height: auto;
    transform: translateX(-50%);
    z-index: 2;
}

.epc-sleeve-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}

/* The record */
.epc-vinyl {
    position: absolute;
    z-index: 1;
    top: 1.5%;
    left: 1%;
    width: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 15%, rgba(255, 255, 255, 0.04) 15.5% 16%, transparent 16.5%),
        repeating-radial-gradient(circle, #101014 0 2px, #222229 2px 3px),
        #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateX(13%) rotate(0deg);
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.epc-vinyl::before {          /* light streak on the grooves */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.14) 14%, transparent 20% 60%, rgba(255, 255, 255, 0.10) 64%, transparent 70%);
}

.epc-vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #0b0c12 0 7%, var(--neon-red) 8% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Monoton", sans-serif;
    font-size: clamp(0.6rem, 1.6vw, 1rem);
    color: var(--tube);
    padding-top: 30%;
    box-sizing: border-box;
}

.epc-album:hover .epc-vinyl,
.epc-album:focus-within .epc-vinyl {
    transform: translateX(23%) rotate(200deg);
}

/* Face hotspots */
.epc-face {
    position: absolute;
    z-index: 3;
    left: var(--x);
    top: var(--y);
    width: 17%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.epc-face:hover,
.epc-face:focus-visible,
.epc-face:focus {
    outline: none;
    border-color: var(--neon-lime);
    box-shadow: 0 0 10px var(--neon-lime), inset 0 0 10px rgba(168, 240, 58, 0.4);
}

.epc-face-card {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translate(-50%, -6px);
    min-width: 7.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(11, 12, 18, 0.92);
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(79, 224, 255, 0.35);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.epc-face--up .epc-face-card {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 6px);
}

.epc-face:hover .epc-face-card,
.epc-face:focus .epc-face-card {
    opacity: 1;
    transform: translate(-50%, 0);
}

.epc-face-card strong {
    display: block;
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    color: var(--neon-lime);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 10px var(--neon-lime);
}

.epc-face-card em {
    display: block;
    font-family: "Quicksand", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
}

.epc-album-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    width: 82%;
}

.epc-hint-tap {
    display: none;
}

@media (hover: none) {
    .epc-hint-hover {
        display: none;
    }

    .epc-hint-tap {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epc-vinyl {
        transition: none;
    }
}

/* Song list pattern */
.has-text-align-center {
    text-align: center;
}

.epc-songlist {
    margin: 3rem 0;
}

.epc-songlist .neon-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.epc-songlist-intro {
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.entry-content .epc-songlist-grid {
    column-count: 3;
    column-gap: 2.5rem;
}

.entry-content .epc-songlist-grid > * + * {
    margin-top: 0;
}

.epc-artist {
    break-inside: avoid;
    padding: 0 0 1.4rem;
}

.entry-content .epc-artist h3 {
    margin: 0 0 0.3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(79, 224, 255, 0.45);
}

.entry-content .epc-artist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-content .epc-artist li {
    margin: 0;
    padding: 0.1rem 0;
    font-size: 1.02rem;
}

.entry-content .epc-artist li + li {
    margin-top: 0;
}

@media (max-width: 900px) {
    .entry-content .epc-songlist-grid {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .entry-content .epc-songlist-grid {
        column-count: 1;
    }
}

.page-content .entry-content:has(.epc-songlist) {
    max-width: none;
}

/* About the band pattern */
.epc-about {
    max-width: 68ch;
    margin: 2rem auto 4rem;
}

.entry-content .epc-about > * + * {
    margin-top: 1.1em;
}

.epc-about-lead {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    line-height: 1.4;
    color: var(--text);
}

.epc-about-songs a {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
}

.entry-content .epc-about-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

/* The block button wraps a link; style the link, not the wrapper */
.wp-block-button.btn {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.wp-block-button.btn-red .wp-block-button__link {
    display: inline-block;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border: 2px solid var(--neon-red);
    border-radius: 4px;
    background: transparent;
    color: var(--neon-red);
    text-decoration: none;
    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.wp-block-button.btn-red .wp-block-button__link:hover,
.wp-block-button.btn-red .wp-block-button__link:focus {
    box-shadow: 0 0 8px var(--neon-red), 0 0 24px var(--neon-red);
    color: #fff;
}

/* Every paragraph in the main content gets a blank line after it.
   Bottom margin on each <p> works even when an editor (Elementor) wraps
   every paragraph in its own box, where "p + p" rules can't reach. */
.site-main p {
    margin-bottom: 1em;
}

.site-main p:last-child {
    margin-bottom: 0;
}

.site-main .elementor-widget-text-editor p:last-child,
.site-main .elementor-widget-container > p:last-child {
    margin-bottom: 1em;
}

/* Video wall pattern (Media page) */
.epc-media-intro {
    color: var(--muted);
    margin-bottom: 2rem;
}

.site-main .epc-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.site-main .epc-video-grid > * {
    margin: 0;
}

.epc-video .wp-block-embed__wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--surface), 0 0 24px rgba(79, 224, 255, 0.10);
    background: #000;
}

.epc-video figcaption {
    margin-top: 0.5rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 760px) {
    .site-main .epc-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive 16:9 for embeds (in case core embed styles are missing) */
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-content .entry-content:has(.epc-media) {
    max-width: none;
}

/* Any video pasted on its own line: centred, roomy, with space between */
.site-main .wp-block-embed {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 2.5rem;
}

.site-main .wp-block-embed:last-child {
    margin-bottom: 0;
}

.site-main .wp-block-embed .wp-block-embed__wrapper {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px var(--surface), 0 0 30px rgba(79, 224, 255, 0.10);
}

.site-main .wp-block-embed iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Inside the two-column video wall, let the grid control size and spacing */
.site-main .epc-video-grid .wp-block-embed {
    max-width: none;
    margin: 0;
}

.site-main .wp-block-embed figcaption {
    margin-top: 0.6rem;
    text-align: center;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-main .wp-block-embed + .wp-block-buttons,
.site-main .epc-video-grid + .wp-block-buttons {
    margin-top: 2.5rem;
}

/* Classic themes: WordPress wraps group contents in .wp-block-group__inner-container.
   Put the video grid on that inner box when it exists. */
.site-main .epc-video-grid:has(> .wp-block-group__inner-container) {
    display: block;
}

.site-main .epc-video-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.site-main .epc-video-grid > .wp-block-group__inner-container > * {
    margin: 0;
    max-width: none;
}

@media (max-width: 760px) {
    .site-main .epc-video-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }
}

/* Videos side by side wherever they sit: any box holding two or more
   consecutive embeds becomes a 2-column grid; everything else in that box
   (intro text, buttons) spans the full width. */
.site-main :has(> .wp-block-embed + .wp-block-embed) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.site-main :has(> .wp-block-embed + .wp-block-embed) > :not(.wp-block-embed) {
    grid-column: 1 / -1;
    margin-top: 0;
    margin-bottom: 0;
}

.site-main :has(> .wp-block-embed + .wp-block-embed) > .wp-block-embed {
    max-width: none;
    margin: 0;
}

.site-main .wp-block-embed iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

@media (max-width: 760px) {
    .site-main :has(> .wp-block-embed + .wp-block-embed) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Homepage: empty-shows call to action, The Sound with band photo */
.no-shows-cta {
    max-width: 60ch;
}

.no-shows-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.sound-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sound-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--surface), 0 0 40px rgba(79, 224, 255, 0.12);
    transition: box-shadow 0.3s ease;
}

.sound-photo:hover img,
.sound-photo:focus img {
    box-shadow: 0 0 0 1px var(--neon-lime), 0 0 40px rgba(168, 240, 58, 0.25);
}

.sound-lead {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    line-height: 1.45;
}

.site-main .sound-artists {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin: 1.5rem 0;
}

.sound-artists span {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neon-cyan);
    border: 1px solid rgba(79, 224, 255, 0.35);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.sound-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
}

@media (max-width: 860px) {
    .sound-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* On the homepage the Media page's own booking button is redundant:
   the "Book" band follows right after. */
#media .wp-block-buttons,
#media .epc-media-intro {
    display: none;
}

/* Forms (WPForms, Contact Form 7, comments, search): dark neon styling */
.site-main form {
    max-width: 680px;
}

.site-main label,
.site-main .wpforms-field-label,
.site-main legend {
    display: block;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.site-main .wpforms-field-sublabel,
.site-main .wpforms-field-description {
    color: var(--muted);
    font-size: 0.8rem;
}

.site-main .wpforms-required-label {
    color: var(--neon-red);
}

.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="tel"],
.site-main input[type="url"],
.site-main input[type="number"],
.site-main input[type="date"],
.site-main input[type="search"],
.site-main select,
.site-main textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid #2a2d3a;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color-scheme: dark;   /* dark date pickers and dropdowns */
}

.site-main textarea {
    min-height: 160px;
    resize: vertical;
}

.site-main input:focus,
.site-main select:focus,
.site-main textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 1px var(--neon-cyan), 0 0 14px rgba(79, 224, 255, 0.35);
}

.site-main ::placeholder {
    color: #6b6d78;
}

.site-main .wpforms-field,
.site-main .wpcf7-form p {
    margin-bottom: 1.25rem;
}

.site-main button[type="submit"],
.site-main input[type="submit"],
.site-main .wpforms-submit {
    display: inline-block;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 32px !important;
    color: var(--neon-red) !important;
    background: transparent !important;
    border: 2px solid var(--neon-red) !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.site-main button[type="submit"]:hover,
.site-main input[type="submit"]:hover,
.site-main .wpforms-submit:hover,
.site-main button[type="submit"]:focus,
.site-main .wpforms-submit:focus {
    color: #fff !important;
    box-shadow: 0 0 8px var(--neon-red), 0 0 24px var(--neon-red);
}

.site-main .wpforms-confirmation-container-full,
.site-main .wpcf7-response-output {
    background: var(--surface) !important;
    border: 1px solid var(--neon-lime) !important;
    color: var(--text) !important;
    border-radius: 6px;
    padding: 1rem 1.25rem !important;
}

.site-main .wpforms-error,
.site-main label.wpforms-error,
.site-main .wpcf7-not-valid-tip {
    color: var(--neon-red) !important;
    font-size: 0.85rem;
}

/* Booking contact pattern */
.site-main .epc-contact {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.site-main .epc-contact > .wp-block-column {
    min-width: 0;
}

.epc-contact-main {
    flex: 1 1 60%;
}

.epc-contact-side {
    flex: 1 1 40%;
    background: var(--surface);
    border: 1px solid rgba(79, 224, 255, 0.25);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 0 30px rgba(79, 224, 255, 0.06);
}

.epc-contact-lead {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.45;
    margin-bottom: 1.75rem;
}

.epc-contact-formnote {
    color: var(--muted);
    font-style: italic;
}

.epc-contact-side h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin: 0 0 0.5rem;
}

.epc-contact-side h3:not(:first-child) {
    margin-top: 1.5rem;
}

.site-main .epc-contact-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.epc-contact-side li {
    padding-left: 1.2rem;
    position: relative;
    margin: 0.3rem 0;
}

.epc-contact-side li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-lime);
    box-shadow: 0 0 6px var(--neon-lime);
}

.epc-contact-side p {
    margin: 0;
}

.epc-contact-side a {
    word-break: break-word;
}

@media (max-width: 860px) {
    .site-main .epc-contact {
        flex-direction: column;
    }
}

.page-content .entry-content:has(.epc-contact) {
    max-width: none;
}

/* WPForms "modern" styling uses CSS variables and very specific selectors.
   Set its variables to the theme palette, and back it up with !important. */
.site-main .wpforms-container,
.site-main .wpforms-container-full {
    --wpforms-field-background-color: #161822;
    --wpforms-field-border-color: #2a2d3a;
    --wpforms-field-border-color-spare: #2a2d3a;
    --wpforms-field-text-color: #ecebe6;
    --wpforms-field-menu-color: #161822;
    --wpforms-field-border-radius: 6px;
    --wpforms-field-border-size: 1px;
    --wpforms-label-color: #ecebe6;
    --wpforms-label-sublabel-color: #9a9ba6;
    --wpforms-label-error-color: #ff3b1f;
    --wpforms-button-background-color: transparent;
    --wpforms-button-border-color: #ff3b1f;
    --wpforms-button-text-color: #ff3b1f;
    --wpforms-button-border-radius: 4px;
    --wpforms-button-border-size: 2px;
    --wpforms-page-break-color: #a8f03a;
    margin-top: 0 !important;
}

.site-main .wpforms-container .wpforms-field-label,
.site-main .wpforms-container legend.wpforms-field-label,
.site-main .wpforms-container .wpforms-field-label-inline {
    color: var(--text) !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700 !important;
}

.site-main .wpforms-container .wpforms-field-sublabel,
.site-main .wpforms-container .wpforms-field-description {
    color: var(--muted) !important;
}

.site-main .wpforms-container input[type="text"],
.site-main .wpforms-container input[type="email"],
.site-main .wpforms-container input[type="tel"],
.site-main .wpforms-container input[type="url"],
.site-main .wpforms-container input[type="number"],
.site-main .wpforms-container select,
.site-main .wpforms-container textarea {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid #2a2d3a !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.site-main .wpforms-container input:focus,
.site-main .wpforms-container select:focus,
.site-main .wpforms-container textarea:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 1px var(--neon-cyan), 0 0 14px rgba(79, 224, 255, 0.35) !important;
}

.site-main .wpforms-container select option {
    background: var(--surface);
    color: var(--text);
}

/* Shortcode block wrapper adds no extra gap */
.site-main .wp-block-shortcode:empty {
    display: none;
}

/* WPForms: stronger overrides that beat its own "full" styles */
html body div.wpforms-container-full .wpforms-form .wpforms-field-label,
html body div.wpforms-container-full .wpforms-form legend.wpforms-field-label {
    color: #ecebe6 !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700 !important;
}

html body div.wpforms-container-full .wpforms-form .wpforms-field-sublabel,
html body div.wpforms-container-full .wpforms-form .wpforms-field-description {
    color: #9a9ba6 !important;
}

html body div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: #ff3b1f !important;
}

html body div.wpforms-container-full .wpforms-form input[type="text"],
html body div.wpforms-container-full .wpforms-form input[type="email"],
html body div.wpforms-container-full .wpforms-form input[type="tel"],
html body div.wpforms-container-full .wpforms-form input[type="url"],
html body div.wpforms-container-full .wpforms-form input[type="number"],
html body div.wpforms-container-full .wpforms-form select,
html body div.wpforms-container-full .wpforms-form textarea {
    background-color: #161822 !important;
    color: #ecebe6 !important;
    border: 1px solid #2a2d3a !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color-scheme: dark;
}

html body div.wpforms-container-full .wpforms-form input:focus,
html body div.wpforms-container-full .wpforms-form select:focus,
html body div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: #4fe0ff !important;
    box-shadow: 0 0 0 1px #4fe0ff, 0 0 14px rgba(79, 224, 255, 0.35) !important;
}

html body div.wpforms-container-full .wpforms-form select option {
    background: #161822;
    color: #ecebe6;
}

/* Contact info box: only as tall as its content (WordPress forces equal-height columns) */
html body .epc-contact .epc-contact-side {
    align-self: flex-start !important;
}

/* Album cover hover, refined: spotlight the person instead of drawing a ring.
   A huge soft box-shadow around the hotspot dims the rest of the photo;
   the sleeve's overflow:hidden keeps it inside the cover. */
.epc-sleeve .epc-face {
    border: 0 !important;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.35s ease;
}

.epc-sleeve .epc-face:hover,
.epc-sleeve .epc-face:focus,
.epc-sleeve .epc-face:focus-visible {
    border: 0 !important;
    box-shadow: 0 0 60px 200vmax rgba(0, 0, 0, 0.62) !important;
    z-index: 4;
}

/* Bigger, softer spotlight: a radial gradient on a pseudo-element eleven
   times the hotspot's size gives a gentle falloff instead of a hard edge.
   The hotspot is nudged up a little so hair and caps are lit too. */
.epc-sleeve .epc-face {
    width: 21%;
    transform: translate(-50%, -56%);
}

.epc-sleeve .epc-face:hover,
.epc-sleeve .epc-face:focus,
.epc-sleeve .epc-face:focus-visible {
    box-shadow: none !important;
}

.epc-sleeve .epc-face::before {
    content: "";
    position: absolute;
    inset: -500%;
    background: radial-gradient(circle at center, transparent 0 7.6%, rgba(0, 0, 0, 0.35) 9.6%, rgba(0, 0, 0, 0.66) 12.6%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.epc-sleeve .epc-face:hover::before,
.epc-sleeve .epc-face:focus::before {
    opacity: 1;
}

/* Name tag always sits just under the chin, never over a face */
.epc-sleeve .epc-face .epc-face-card,
.epc-sleeve .epc-face--up .epc-face-card {
    top: calc(100% + 18%);
    bottom: auto;
    transform: translate(-50%, -6px);
}

.epc-sleeve .epc-face:hover .epc-face-card,
.epc-sleeve .epc-face:focus .epc-face-card {
    transform: translate(-50%, 0);
}

.epc-sleeve .epc-face-card {
    min-width: 0;
    padding: 0.35rem 0.9rem 0.45rem;
    background: rgba(5, 6, 8, 0.72);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.epc-sleeve .epc-face-card strong {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.9vw, 1.1rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.epc-sleeve .epc-face-card em {
    font-size: clamp(0.6rem, 1.3vw, 0.72rem);
    letter-spacing: 0.14em;
    line-height: 1.3;
}

/* Album cover on phones: George sits low on the cover, so his two-line tag
   ran off the bottom. On small screens his tag goes on one line, closer in. */
@media (max-width: 600px) {
    .epc-sleeve .epc-face--up .epc-face-card {
        top: calc(100% + 3%);
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
    }

    .epc-sleeve .epc-face--up .epc-face-card strong,
    .epc-sleeve .epc-face--up .epc-face-card em {
        display: inline;
    }

    .epc-sleeve .epc-face--up .epc-face-card em::before {
        content: " \00B7  ";
        color: var(--muted);
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}