/* ===========================================================
   Midnight Cove — v3 Ghost Ship Harbor
   Production stylesheet
   =========================================================== */

/* ───────── Design tokens ───────── */
:root {
    /* Palette */
    --abyssal:        #0A0F1C;
    --ocean-black:    #0E1A24;
    --star-bone:      #F0E8D3;
    --spectral-teal:  #3E8B9E;
    --ghost-mist:     #9FB4BD;
    --lantern-amber:  #E8A24A;
    --pale-moon:      #D9D2B8;
    --dusk-violet:    #3A2A4A;

    /* Type */
    --font-display: 'IM Fell English SC', 'Cormorant Garamond', serif;
    --font-serif:   'Cormorant Garamond', serif;
    --font-mono:    'Special Elite', monospace;
    --font-body:    'Inter', sans-serif;

    /* Spacing scale (8-point grid) */
    --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
    --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
    --s-9: 96px;  --s-10:128px;

    /* Layout */
    --header-h: 64px;
    --content-max: 1100px;
    --reading-max: 720px;

    /* Hero image paths (used by --hero-img on body classes) */
    --img-hero-primary:   url('/assets/img/ghost-ship/hero_ghost_ship_no_text.jpg');
    --img-hero-classic:   url('/assets/img/ghost-ship/alt_hero_centered_classic.jpg');
    --img-hero-painterly: url('/assets/img/ghost-ship/alt_hero_painterly.jpg');
    --img-hero-mist:      url('/assets/img/ghost-ship/alt_hero_ghostly_mist.jpg');
}

/* ───────── Reset + base ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    background: var(--abyssal);
    color: var(--star-bone);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern-amber); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--star-bone); }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; color: var(--star-bone); }

/* ───────── Header / nav ───────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: var(--s-4) var(--s-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled,
body:not(.page-home) .site-header {
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(159, 180, 189, 0.12);
}
.header-mark {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--star-bone);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.92;
}
.header-mark:hover { color: var(--lantern-amber); }

.site-nav { display: flex; gap: var(--s-5); align-items: center; }
.site-nav a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ghost-mist);
    position: relative;
    padding: 4px 0;
}
.site-nav a:hover { color: var(--lantern-amber); }
.site-nav a.is-active { color: var(--star-bone); }
.site-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: var(--lantern-amber);
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--star-bone);
    transition: transform 200ms ease, opacity 200ms ease;
}

@media (max-width: 720px) {
    .site-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 280px;
        background: rgba(10, 15, 28, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        padding: var(--s-8);
        gap: var(--s-5);
        transform: translateX(100%);
        transition: transform 300ms ease;
        z-index: 60;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav a { font-size: 14px; padding: 8px 0; }
    .nav-toggle { display: flex; z-index: 70; position: relative; }
}

/* ───────── Hero (home page) ───────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--abyssal);
}
.hero-backdrop {
    position: absolute;
    inset: -40px;
    background: var(--img-hero-primary) center / cover no-repeat;
    filter: blur(60px) brightness(0.35) saturate(1.1);
    z-index: 0;
    transform: scale(1.1);
    will-change: transform;
}
.hero-image {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    z-index: 1;
    will-change: transform;
    animation: hero-load 8s ease-out 1;
}
@keyframes hero-load {
    from { transform: translateX(-50%) scale(1.05); }
    to   { transform: translateX(-50%) scale(1.0);  }
}

/* Landscape / desktop: portrait Grok painting fills the screen via cover,
   so the image extends edge-to-edge instead of floating in the middle. */
@media (min-aspect-ratio: 5/4) {
    .hero-image {
        inset: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
        transform: none;
        animation: hero-load-wide 8s ease-out 1;
    }
    @keyframes hero-load-wide {
        from { transform: scale(1.05); }
        to   { transform: scale(1.0);  }
    }
}
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(10, 15, 28, 0.45) 75%, rgba(10, 15, 28, 0.85) 100%),
        linear-gradient(180deg, rgba(10,15,28,0.4) 0%, transparent 15%, transparent 70%, rgba(10,15,28,0.55) 100%);
}
.hero-stars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.star {
    position: absolute;
    background: var(--star-bone);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(240, 232, 211, 0.6);
    will-change: opacity;
    animation: star-twinkle var(--twinkle-dur, 5s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    opacity: 0.7;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.95; }
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(80px, 12vh, 160px) 24px clamp(48px, 8vh, 96px);
    text-align: center;
    will-change: transform, opacity;
}
.hero-titleblock { margin-top: clamp(40px, 8vh, 100px); }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9.5vw, 92px);
    line-height: 1.05;
    color: var(--star-bone);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow:
        0 0 24px rgba(232, 162, 74, 0.30),
        0 0 60px rgba(232, 162, 74, 0.18),
        0 0 120px rgba(62, 139, 158, 0.35),
        0 4px 18px rgba(0, 0, 0, 0.7);
    animation: title-pulse 6s ease-in-out infinite;
}
@keyframes title-pulse {
    0%, 100% {
        text-shadow:
            0 0 24px rgba(232,162,74,0.30),
            0 0 60px rgba(232,162,74,0.18),
            0 0 120px rgba(62,139,158,0.35),
            0 4px 18px rgba(0,0,0,0.7);
    }
    50% {
        text-shadow:
            0 0 32px rgba(232,162,74,0.45),
            0 0 80px rgba(232,162,74,0.28),
            0 0 140px rgba(62,139,158,0.50),
            0 4px 18px rgba(0,0,0,0.7);
    }
}
.hero-tagline {
    margin-top: var(--s-4);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(15px, 2.2vw, 22px);
    color: var(--ghost-mist);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 250ms ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    border: 1px solid transparent;
}
.btn-primary {
    background: rgba(232, 162, 74, 0.92);
    color: var(--abyssal);
    border-color: rgba(232, 162, 74, 1);
    box-shadow: 0 4px 24px rgba(232, 162, 74, 0.25);
}
.btn-primary:hover {
    background: rgba(232, 162, 74, 1);
    color: var(--abyssal);
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(232, 162, 74, 0.4);
}
.btn-ghost {
    background: rgba(14, 26, 36, 0.55);
    color: var(--star-bone);
    border-color: rgba(240, 232, 211, 0.4);
}
.btn-ghost:hover {
    background: rgba(14, 26, 36, 0.85);
    color: var(--star-bone);
    border-color: var(--star-bone);
    transform: translateY(-2px);
}

.scroll-cue {
    position: absolute;
    bottom: var(--s-5); left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.30em;
    color: var(--ghost-mist);
    text-transform: uppercase;
    opacity: 0.6;
    animation: scroll-bob 3s ease-in-out infinite;
}
@keyframes scroll-bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.45; }
    50%      { transform: translate(-50%, 6px); opacity: 0.85; }
}

/* ───────── Page hero (smaller heroes for non-home pages) ───────── */
.page-hero {
    position: relative;
    min-height: 50vh;
    padding: calc(var(--header-h) + var(--s-9)) var(--s-5) var(--s-9);
    overflow: hidden;
    background: var(--abyssal);
    text-align: center;
}
.page-hero-bg {
    position: absolute;
    inset: -20px;
    background-position: center;
    background-size: cover;
    z-index: 0;
    filter: brightness(0.55) saturate(0.95);
}
.page-hero-bg.shows    { background-image: var(--img-hero-mist); }
.page-hero-bg.music    { background-image: var(--img-hero-painterly); }
.page-hero-bg.merch    { background-image: var(--img-hero-classic); }
.page-hero-bg.about    { background-image: var(--img-hero-painterly); }
.page-hero-bg.contact  { background-image: var(--img-hero-mist); }
.page-hero-bg.support  { background-image: var(--img-hero-classic); }
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,15,28,0.55) 0%, rgba(10,15,28,0.30) 40%, rgba(10,15,28,0.85) 100%),
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10,15,28,0.5) 100%);
    z-index: 1;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--lantern-amber);
    margin-bottom: var(--s-3);
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    color: var(--star-bone);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow:
        0 0 24px rgba(232, 162, 74, 0.25),
        0 4px 18px rgba(0, 0, 0, 0.7);
}
.page-hero-subtitle {
    margin-top: var(--s-3);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(15px, 2vw, 20px);
    color: var(--ghost-mist);
}

/* ───────── Generic sections ───────── */
.section {
    position: relative;
    padding: clamp(72px, 12vh, 128px) var(--s-5);
}
.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--lantern-amber);
    text-align: center;
    margin-bottom: var(--s-3);
}
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(28px, 4.5vw, 48px);
    color: var(--star-bone);
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: var(--s-7);
}
.section-lead {
    max-width: var(--reading-max);
    margin: 0 auto var(--s-7);
    text-align: center;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.6;
    color: var(--ghost-mist);
}

.section-dark {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(62, 139, 158, 0.10), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(58, 42, 74, 0.18), transparent 50%),
        var(--abyssal);
}
.section-ocean {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(232, 162, 74, 0.08), transparent 60%),
        var(--ocean-black);
}

/* ───────── Announcement banner ───────── */
.announcement {
    position: relative;
    z-index: 30;
    margin-top: calc(var(--header-h) + var(--s-4));
    padding: var(--s-3) var(--s-5);
    background: rgba(232, 162, 74, 0.95);
    color: var(--abyssal);
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
}
.announcement a {
    color: var(--abyssal);
    font-weight: 600;
    margin-left: var(--s-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.announcement a:hover { color: var(--ocean-black); }

/* ───────── Show cards ───────── */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-6);
    max-width: 920px;
    margin: 0 auto;
}
.show-card {
    padding: var(--s-6) var(--s-5);
    background: rgba(14, 26, 36, 0.55);
    border: 1px solid rgba(159, 180, 189, 0.14);
    border-left: 3px solid var(--lantern-amber);
    border-radius: 2px;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    text-align: left;
}
.show-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 162, 74, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.show-date {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    color: var(--star-bone);
    margin-bottom: var(--s-1);
}
.show-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ghost-mist);
    margin-bottom: var(--s-5);
}
.show-venue {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--star-bone);
    margin-bottom: var(--s-1);
}
.show-city {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ghost-mist);
}
.show-time {
    margin-top: var(--s-3);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ghost-mist);
}
.show-empty {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ghost-mist);
    font-size: 18px;
    padding: var(--s-7) var(--s-5);
}

/* ───────── Streaming row ───────── */
.streaming-row {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--s-6);
}
.streaming-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: rgba(14, 26, 36, 0.6);
    border: 1px solid rgba(159, 180, 189, 0.20);
    color: var(--star-bone);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 250ms ease;
}
.streaming-pill:hover {
    background: rgba(232, 162, 74, 0.92);
    color: var(--abyssal);
    border-color: rgba(232, 162, 74, 1);
    transform: translateY(-2px);
}

/* ───────── Crew (members) ───────── */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-5);
    max-width: var(--content-max);
    margin: 0 auto;
}
.crew-card {
    text-align: center;
    padding: var(--s-5);
    background: rgba(14, 26, 36, 0.45);
    border: 1px solid rgba(159, 180, 189, 0.10);
    border-radius: 2px;
}
.crew-name {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--star-bone);
    text-transform: uppercase;
    margin-bottom: var(--s-1);
}
.crew-role {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ghost-mist);
}
.crew-anchor {
    display: block;
    font-size: 22px;
    color: var(--lantern-amber);
    margin-bottom: var(--s-3);
    opacity: 0.75;
}

/* ───────── Photo strip / band imagery ───────── */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-3);
    max-width: var(--content-max);
    margin: var(--s-7) auto 0;
}
.photo-frame {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ocean-black);
    border: 1px solid rgba(159, 180, 189, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.photo-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.photo-frame img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: filter 400ms ease;
}
.photo-frame:hover img { filter: brightness(1.0) saturate(1.0); }

/* ───────── Contact card ───────── */
.contact-card {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--s-7);
    background: rgba(14, 26, 36, 0.65);
    border: 1px solid rgba(159, 180, 189, 0.20);
    border-radius: 3px;
    text-align: center;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.contact-item {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--star-bone);
    margin-bottom: var(--s-3);
}
.contact-item a { color: var(--lantern-amber); }
.contact-item a:hover { color: var(--star-bone); }
.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ghost-mist);
    margin-bottom: var(--s-1);
}

/* ───────── Merch teaser ───────── */
.merch-teaser {
    text-align: center;
    max-width: var(--reading-max);
    margin: 0 auto;
}

/* ───────── Footer ───────── */
.site-footer {
    position: relative;
    padding: var(--s-9) var(--s-5) var(--s-5);
    overflow: hidden;
    background: var(--abyssal);
    margin-top: 0;
}
.footer-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--img-hero-mist) center / cover no-repeat;
    filter: blur(60px) brightness(0.20) saturate(1.0);
    opacity: 0.65;
}
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-7);
    max-width: var(--content-max);
    margin: 0 auto;
}
.footer-col h3.footer-mark {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--star-bone);
    margin-bottom: var(--s-3);
}
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ghost-mist);
    margin-bottom: var(--s-4);
}
.footer-contact a {
    color: var(--star-bone);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.8;
}
.footer-contact a:hover { color: var(--lantern-amber); }
.footer-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--lantern-amber);
    margin-bottom: var(--s-4);
}
.footer-social {
    list-style: none;
}
.footer-social li { margin-bottom: var(--s-2); }
.footer-social a {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ghost-mist);
}
.footer-social a:hover { color: var(--star-bone); }
.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: var(--content-max);
    margin: var(--s-7) auto 0;
    padding-top: var(--s-5);
    border-top: 1px solid rgba(159, 180, 189, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ghost-mist);
    opacity: 0.7;
}
.footer-anchor {
    font-size: 18px;
    color: var(--lantern-amber);
    opacity: 0.7;
}

/* ───────── Wave divider (between sections) ───────── */
.wave-divider {
    height: 24px;
    background:
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 8px,
            var(--spectral-teal) 8px, var(--spectral-teal) 9px),
        linear-gradient(180deg, transparent 50%, rgba(62,139,158,0.05) 100%);
    opacity: 0.25;
    margin: 0;
}

/* ───────── 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;
    }
    .hero-image { transform: translateX(-50%) scale(1.0); }
}

/* ───────── Mobile tweaks ───────── */
@media (max-width: 720px) {
    .footer-content { grid-template-columns: 1fr; gap: var(--s-5); }
    .footer-bottom { flex-direction: column; gap: var(--s-2); text-align: center; }
    .show-date { font-size: 48px; }
    .section { padding: var(--s-8) var(--s-4); }
}
