/* =========================
   FRONT PAGE – VIDEO HERO
   Nordic / Cinematic
========================= */

/* ===== Video Header ===== */
.video-header {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-bg-main);
}

/* Hero poster fallback */
.video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 1;
    transition: opacity 450ms ease;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.74) contrast(1.05);
}

/* Video iframe as background */
.video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 120vw;
    height: 120vh;

    min-width: 177.77vh; /* 16:9 cover */
    min-height: 56.25vw;

    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.72) contrast(1.05);
    opacity: 0;
    transition: opacity 450ms ease, transform 250ms linear;
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 120vw;
    height: 120vh;

    min-width: 177.77vh;
    min-height: 56.25vw;

    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.72) contrast(1.05);
    opacity: 0;
    transition: opacity 450ms ease, transform 250ms linear;
    object-fit: cover;
}

.video-header.video-is-ready .video-poster {
    opacity: 0;
}

.video-header.video-is-ready .video-wrapper iframe,
.video-header.video-is-ready .video-wrapper video {
    opacity: 1;
}

/* ===== Overlay gradient ===== */
.video-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(5, 7, 10, 0.72) 0%,
            rgba(5, 7, 10, 0.42) 35%,
            rgba(5, 7, 10, 0.52) 60%,
            rgba(5, 7, 10, 0.86) 100%
        );
}

/* ===== Hero Content ===== */
.video-overlay {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg) var(--container-padding);
    color: var(--color-text-main);
    gap: 0.8rem;
}

/* Logo in hero */
.video-overlay .custom-logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin-bottom: 0rem;
    opacity: 0.95;
}

.video-logo-img {
    max-width: 170px;
    height: auto;
    margin-bottom: 0;
}

.site-description {
    padding-left: 0;
    font-style: italic;
    margin: 0 auto;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(0, 0, 0, 0.28);
}

.video-logo,
.site-description {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 650ms ease, transform 650ms ease;
}

/* Front-page hero: keep copy, hide logo over moving video */
.video-overlay .video-logo {
    display: none;
}

body.is-loaded .video-logo,
body.is-loaded .site-description {
    opacity: 1;
    transform: translateY(0);
}

body.is-loaded .site-description {
    transition-delay: 120ms;
}

/* Hero title (optional) */
.video-overlay h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

/* Hero subtitle */
.video-overlay p {
    max-width: 640px;
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
}

/* CTA button placeholder */
.video-overlay .hero-cta {
    margin-top: var(--space-md);
}

/* ===== Sections base ===== */
.site-content {
    background: var(--color-bg-main);
}

/* Generic front page sections */
.site-content section {
    padding: var(--space-xl) 0;
}

/* Section inner */
.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section headings */
.site-content h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-xxl);
    margin-bottom: var(--space-md);
    letter-spacing: 0.03em;
}

/* ===== About ===== */
.section-about {
           background: var(--color-bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.section-about .hero-cta {
    display: flex;
    justify-content:left;
}

/* Home intro content image (desktop) */
.home .section-about .about-image img,
.home .section-about .about-grid img {
    max-width: 520px;
    margin-left: auto;
    border-radius: 6px;
}

/* ===== Gigs ===== */
.section-gigs {
    background: var(--color-bg-secondary);
}

.section-gigs h2 {
    text-align: left;
}

/* =========================
   PAST GIGS
========================= */

.gig-item.gig-past {
    opacity: 0.45;
}

/* ===== Workshops teaser (front page) ===== */
.section-workshops {
    padding: var(--space-xl) 0;
    text-align: center;
    color: #fff;
    background-image:
        url("../assets/images/bg-hero-workshops.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-workshops::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 0;
}

.section-workshops > * {
    position: relative;
    z-index: 1;
}

.section-workshops p {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--color-text-muted);
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(0, 0, 0, 0.35);
}

.section-workshops h2 {
    color: #fff;
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.35);
}

.section-workshops .button-primary {
    color: rgba(230, 231, 233, 0.9);
    border-color: rgba(230, 231, 233, 0.62);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.section-workshops .button-primary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-text-main);
    border-color: rgba(230, 231, 233, 0.95);
}

/* ===== Contact ===== */
.section-contact {
    background: var(--color-bg-secondary);
    text-align: center;
}

.section-contact p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .home .section-about .about-grid img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    .video-overlay .custom-logo {
        max-width: 220px;
    }

    .video-overlay p {
        font-size: var(--fs-base);
    }

    .video-logo-img {
        max-width: 140px;
    }

    .home .section-about .about-grid {
        text-align: center;
    }

    .home .section-about .hero-cta {
        justify-content: center;
    }

    .home .section-about .about-image,
    .home .section-about .about-grid > .reveal.reveal-delay-1 {
        display: none;
    }
}

/* =========================
   HERO – SUBTLE MOTION
========================= */

/* Initial slow zoom */
.video-wrapper iframe {
    transform: translate(-50%, -50%) scale(1.05);
    transition: transform 6s ease;
}

/* When page is loaded */
body.is-loaded .video-wrapper iframe {
    transform: translate(-50%, -50%) scale(1.1);
}

/* =========================
   MEDIA EMBEDS
   Spotify / YouTube
========================= */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Shared embed card */
.media-card {
    position: relative;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Ratio wrapper */
.media-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.media-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spotify specific override */
.media-card.spotify .media-embed {
    padding-top: 80%; /* Spotify looks better taller */
}

/* Media caption */
.media-caption {
    padding: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================
   FRONT PANELS OVERRIDE
========================= */

.section-panel {
    position: relative;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.home .section-panel,
.home .section-workshops {
    min-height: clamp(320px, 34vw, 430px);
    display: flex;
    align-items: center;
}

.section-panel .section-inner {
    position: relative;
    z-index: 1;
}

.section-panel h2 {
    text-align: center;
    color: #fff;
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.58),
        0 0 24px rgba(0, 0, 0, 0.35);
}

.section-panel .panel-intro {
    max-width: 62ch;
    margin: 0 auto var(--space-md);
    color: var(--color-text-muted);
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.52),
        0 0 20px rgba(0, 0, 0, 0.35);
}

.section-panel .button-primary {
    color: rgba(230, 231, 233, 0.9);
    border-color: rgba(230, 231, 233, 0.62);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.section-panel .button-primary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-text-main);
    border-color: rgba(230, 231, 233, 0.95);
}

.section-gigs-cta {
    background:
        radial-gradient(1100px 500px at 12% 15%, rgba(128, 187, 196, 0.2), rgba(128, 187, 196, 0) 60%),
        radial-gradient(900px 400px at 88% 85%, rgba(169, 132, 221, 0.18), rgba(169, 132, 221, 0) 62%),
        linear-gradient(145deg, #0b1117 0%, #111a23 45%, #0f1218 100%);
}

.section-releases-cta {
    background:
        radial-gradient(1000px 460px at 78% 18%, rgba(222, 168, 120, 0.22), rgba(222, 168, 120, 0) 58%),
        radial-gradient(760px 360px at 18% 82%, rgba(116, 172, 152, 0.2), rgba(116, 172, 152, 0) 60%),
        linear-gradient(145deg, #121017 0%, #181320 46%, #0f1119 100%);
}

.section-gigs-cta .gigs-list {
    margin: var(--space-md) auto 0;
    max-width: 980px;
    border-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-gigs-cta .gig-item {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
    overflow-x: hidden;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.48;
    width: 100%;
    max-width: 980px;
    border-bottom: 0;
}

.section-gigs-cta .gig-item .gig-date,
.section-gigs-cta .gig-item .gig-title-link,
.section-gigs-cta .gig-item .gig-title-text,
.section-gigs-cta .gig-item .gig-venue,
.section-gigs-cta .gig-item .gig-city {
    color: var(--color-text-muted);
    font-weight: 500;
        font-size: 1rem;
}

.section-gigs-cta .gig-item .gig-date {
    font-family: var(--font-body);

    letter-spacing: 0.03em;
}

.section-gigs-cta .gig-item .gig-title-link,
.section-gigs-cta .gig-item .gig-title-text,
.section-gigs-cta .gig-item .gig-venue,
.section-gigs-cta .gig-item .gig-city {
    letter-spacing: 0.018em;
    font-weight: 500;
}

.section-gigs-cta .gig-item .gig-title-link {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(143, 149, 155, 0.52);
    text-underline-offset: 0.2em;
}

.section-gigs-cta .gig-item .gig-title-link:hover {
    color: var(--color-text-main);
    text-decoration-color: rgba(230, 231, 233, 0.86);
}

@media (max-width: 768px) {
    .section-gigs-cta .gig-item {
        justify-content: center;
        font-size: 0.98rem;
        line-height: 1.35;
        letter-spacing: 0.01em;
    }

    .section-gigs-cta .gig-item .gig-title-link,
    .section-gigs-cta .gig-item .gig-title-text,
    .section-gigs-cta .gig-item .gig-venue,
    .section-gigs-cta .gig-item .gig-city {
        letter-spacing: 0.02em;
    }
}

/* Final safety override: keep gig rows on one line on front page */
.home .section-gigs .gigs-list .gig-item {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .home .section-gigs .gigs-list .gig-item {
        display: block;
        text-align: left;
        white-space: normal;
        overflow: visible;
        padding: 0.95rem 0.35rem;
        line-height: 1.45;
        padding-inline: var(--space-xs);
    }

    .home .section-gigs .gigs-list .gig-item .gig-date,
    .home .section-gigs .gigs-list .gig-item .gig-title-link,
    .home .section-gigs .gigs-list .gig-item .gig-title-text {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .home .section-gigs .gigs-list .gig-item .gig-date {
        margin-bottom: 0.18rem;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0.78;
    }

    .home .section-gigs .gigs-list .gig-item .gig-title-link,
    .home .section-gigs .gigs-list .gig-item .gig-title-text {
        font-size: 0.98rem;
        line-height: 1.35;
        letter-spacing: 0.012em;
        margin-bottom: 0.18rem;
    }

    .home .section-gigs .gigs-list .gig-item .gig-venue,
    .home .section-gigs .gigs-list .gig-item .gig-city {
        display: inline;
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0.01em;
        color: var(--color-text-muted);
    }

    .home .section-gigs .gigs-list .gig-item .gig-sep {
        display: none;
        margin-inline: 0;
        min-width: 0;
    }

    .home .section-gigs .gigs-list .gig-item .gig-sep:last-of-type {
        display: inline-flex;
        margin-inline: 0.35rem;
        min-width: 0;
    }
}
/* =========================
   HERO BOTTOM FADE
========================= */

.video-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    z-index: 3;

    background: linear-gradient(
        to bottom,
        rgba(11,13,16,0) 0%,
        rgba(11,13,16,0.7) 70%,
        rgba(11,13,16,1) 100%
    );
    pointer-events: none;
}
