/* ═══════════════════════════════════════════
   Elvis Social Club — Homepage
   ═══════════════════════════════════════════ */

/* ── Page overrides ── */
.page-home {
    background: var(--midnight);
    color: var(--cream);
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
    color: var(--cream);
}

.page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.page-home .site-header.scrolled,
.page-home .site-header.menu-open {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.page-home .main-nav a:not(.btn) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    background: none;
}

.page-home .site-header.scrolled .main-nav a:not(.btn),
.page-home .site-header.menu-open .main-nav a:not(.btn) {
    text-shadow: none;
}

.page-home .main-nav a:not(.btn):hover,
.page-home .main-nav a:not(.btn).active {
    background: none;
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(201, 162, 39, 0.5);
}

.page-home .nav-auth .btn-primary {
    border-radius: 50px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.page-home .logo-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-home .site-header.scrolled .logo-text,
.page-home .site-header.menu-open .logo-text {
    text-shadow: none;
}

.page-home .site-footer {
    margin-top: 0;
}

.page-home main {
    padding: 0;
    flex: 1;
}

/* ── Shared utilities ── */
.gold-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.statement-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-head-center {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head-center h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-sub {
    color: rgba(245, 240, 225, 0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Buttons ── */
.btn-home-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--midnight);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(201, 162, 39, 0.4);
}

.btn-home-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-home-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.55);
    color: var(--midnight);
}

.btn-home-primary:hover svg {
    transform: translateX(4px);
}

.btn-home-primary-lg {
    padding: 1.15rem 2.5rem;
    font-size: 1.1rem;
}

.btn-home-ghost {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--cream);
    font-weight: 600;
    border: 1px solid rgba(245, 240, 225, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-home-ghost:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-light);
}

.btn-home-outline {
    display: inline-flex;
    padding: 0.85rem 2rem;
    color: var(--gold);
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-home-outline:hover {
    background: var(--gold);
    color: var(--midnight);
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══ HERO ═══ */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.05);
    animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.home-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 27, 42, 0.5) 0%, rgba(13, 27, 42, 0.2) 40%, rgba(13, 27, 42, 0.85) 100%),
        linear-gradient(90deg, rgba(13, 27, 42, 0.7) 0%, transparent 50%, rgba(13, 27, 42, 0.4) 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 1.5rem 6rem;
    text-align: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.home-hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.home-hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(245, 240, 225, 0.75);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.home-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 0.15rem;
}

.hero-stat span {
    font-size: 0.8rem;
    color: rgba(245, 240, 225, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(201, 162, 39, 0.3);
}

.home-hero-scroll {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 240, 225, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1; transform: scaleY(1); }
}

/* Marquee */
.home-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(201, 162, 39, 0.95);
    padding: 0.65rem 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: marqueeScroll 35s linear infinite;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--midnight);
    letter-spacing: 0.05em;
}

.marquee-dot {
    opacity: 0.5;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══ STATEMENT ═══ */
.home-statement {
    padding: 7rem 0;
    background: var(--cream);
    position: relative;
}

.home-statement h2 {
    color: var(--midnight);
}

.statement-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.statement-inner h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.statement-body {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ═══ BENTO FEATURES ═══ */
.home-features {
    padding: 6rem 0;
    background: var(--midnight);
}

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

.bento-card {
    background: rgba(27, 45, 69, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    border-color: rgba(201, 162, 39, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.bento-wide {
    grid-column: span 2;
}

.bento-accent {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.3), rgba(74, 20, 140, 0.2));
    border-color: rgba(139, 26, 26, 0.3);
}

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.12);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.bento-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.bento-card p {
    color: rgba(245, 240, 225, 0.65);
    line-height: 1.7;
    font-size: 0.95rem;
}

.bento-visual-stories {
    margin-top: auto;
    height: 120px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(139, 26, 26, 0.08)),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(201, 162, 39, 0.03) 8px,
            rgba(201, 162, 39, 0.03) 9px
        );
}

.bento-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.era-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.era-tags span {
    padding: 0.4rem 0.9rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-light);
}

/* ═══ IMMERSIVE SPLIT ═══ */
.home-immersive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--cream);
}

.immersive-visual {
    position: relative;
    overflow: hidden;
}

.immersive-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.immersive-frame {
    position: absolute;
    inset: 2rem;
    border: 2px solid rgba(201, 162, 39, 0.4);
    pointer-events: none;
}

.immersive-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--midnight);
}

.immersive-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.immersive-content > p {
    color: rgba(245, 240, 225, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.immersive-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.immersive-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: rgba(245, 240, 225, 0.85);
    font-size: 0.95rem;
}

.immersive-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
}

/* ═══ STEPS ═══ */
.home-steps {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-light) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: rgba(245, 240, 225, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-top: 3.5rem;
    opacity: 0.4;
}

/* ═══ COMMUNITY PREVIEW ═══ */
.home-community {
    padding: 6rem 0;
    background: var(--cream);
}

.home-community h2 {
    color: var(--midnight);
}

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

.community-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 162, 39, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.community-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.community-card-top strong {
    display: block;
    color: var(--midnight);
    font-size: 0.9rem;
}

.community-card-top time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.community-card h4 {
    color: var(--midnight);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.community-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.community-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--velvet);
}

.community-card-link:hover {
    color: var(--gold-dark);
}

/* ═══ QUOTES ═══ */
.home-quotes {
    padding: 5rem 0;
    background: var(--midnight-light);
}

.quotes-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}

.quote-card {
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin: 0;
}

.quote-featured {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(139, 26, 26, 0.08));
    border-color: rgba(201, 162, 39, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-card p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--cream);
    margin-bottom: 1rem;
}

.quote-featured p {
    font-size: 1.5rem;
}

.quote-card cite {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ═══ FINAL CTA ═══ */
.home-cta {
    position: relative;
    padding: 7rem 0;
    background: var(--midnight);
    overflow: hidden;
    text-align: center;
}

.home-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-inner > p {
    color: rgba(245, 240, 225, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-fine {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(245, 240, 225, 0.4);
}

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

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: auto;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .home-immersive {
        grid-template-columns: 1fr;
    }

    .immersive-visual {
        min-height: 350px;
    }

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

    .community-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .page-home .main-nav a:not(.btn) {
        text-shadow: none;
        padding: 0.85rem 1rem;
    }

    .page-home .nav-auth .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .page-home .nav-auth .btn-primary {
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 768px) {
    .home-hero-inner {
        padding: 7rem 1.25rem 5rem;
    }

    .home-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-home-primary,
    .btn-home-ghost {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .home-hero-stats {
        gap: 1.5rem;
    }

    .home-hero-scroll {
        display: none;
    }

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

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-connector {
        display: none;
    }

    .immersive-content {
        padding: 2.5rem 1.5rem;
    }

    .community-cards {
        grid-template-columns: 1fr;
    }

    .home-statement,
    .home-features,
    .home-steps,
    .home-community,
    .home-cta {
        padding: 4rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-bg,
    .marquee-track,
    .scroll-line,
    .pulse-dot {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
