/* ============================================================
   GRANDI VOCI — Hero Section
   Interactive Trio with Individual SVG Singers + Mouth Overlay
   ============================================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 60%, #1a1510 0%, var(--bg-void) 70%);
    clip-path: inset(0);
}

/* ── Visually Hidden (SEO) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Hero Hint (top of hero, below nav) ── */
.hero-hint {
    position: absolute;
    top: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    pointer-events: none;
    animation: heroHintReveal 2.5s var(--ease-out);
}

.hero-hint span {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
}

@keyframes heroHintReveal {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Singers Container ── */
.singers-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    gap: 0;
    padding: 0 12%;
}

.singer {
    position: relative;
    cursor: pointer;
    width: 19%;
    max-width: 300px;
    flex-shrink: 0;
    margin: 0 -8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
    transition: transform var(--t-slow) var(--ease-spring);
    transform-origin: bottom center;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.singer:nth-child(2) {
    z-index: 5;
    width: 21%;
    max-width: 340px;
}

.singer:hover {
    transform: scale(1.06);
    z-index: 10;
}

.singer.singing {
    animation: singShake 0.12s infinite;
    transform-origin: bottom center;
    z-index: 10;
}

/* ── SVG Character ── */
.singer-svg {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.4));
    overflow: visible;
    transition: filter var(--t-normal) var(--ease-out);
}

.singer:hover .singer-svg,
.singer.singing .singer-svg {
    filter: drop-shadow(0 12px 40px rgba(212, 175, 55, 0.7));
}

/* ── Mouth Overlay (HTML5 Canvas Overlay inside SVG) ── */
.mouth-overlay {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.singer.singing .mouth-overlay {
    opacity: 1;
}

.mouth-overlay canvas {
    display: block;
}

/* ── Zone Highlight (glow under feet) ── */
.zone-highlight {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--t-normal), transform var(--t-normal);
    pointer-events: none;
    mix-blend-mode: screen;
}

.singer:hover .zone-highlight {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.2);
}

.singer.singing .zone-highlight {
    opacity: 1;
    transform: translateX(-50%) scale(1.5);
    animation: pulseGlow 1s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.7; transform: translateX(-50%) scale(1.3); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.6); }
}

/* ── Singer Name Label ── */
.singer-info {
    text-align: center;
    padding: var(--sp-1) 0 var(--sp-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--t-normal) var(--ease-out);
}

.singer:hover .singer-info,
.singer.singing .singer-info {
    opacity: 1;
    transform: translateY(0);
}

.singer-info .name {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--gold-light);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

.singer-info .voice-type {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ── Singing Note Particles ── */
@keyframes noteFly {
    0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
    15%  { opacity: 1; text-shadow: 0 0 10px var(--gold-primary); }
    100% { transform: translate(var(--tx), var(--ty)) scale(2.5) rotate(45deg); opacity: 0; }
}

.note-particle {
    position: absolute;
    animation: noteFly 2.5s ease-out forwards;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--gold-primary);
    pointer-events: none;
    z-index: 50;
}

/* ── Singing Shake ── */
@keyframes singShake {
    0%, 100% { transform: translate(0, 0) scale(1.04); }
    25%  { transform: translate(1px, -1px) scale(1.04); }
    50%  { transform: translate(-1px, -2px) scale(1.04); }
    75%  { transform: translate(1px, 0px) scale(1.04); }
}

/* ── Scroll CTA ── */
.hero-scroll-cta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: gentleBounce 2s ease-in-out infinite;
}

.hero-scroll-cta span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-primary);
    opacity: 0.6;
    margin-bottom: 6px;
}

.hero-scroll-cta .arrow-down {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
    transform: rotate(45deg);
    margin: 0 auto;
    opacity: 0.4;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Hero Bottom Fade ── */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%);
    pointer-events: none;
    z-index: 40;
}

/* ── Audio Elements ── */
.hero audio {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .singers-container {
        padding: 0 3%;
    }

    .singer {
        width: 28%;
        margin: 0 -5px;
    }

    .singer:nth-child(2) {
        width: 32%;
    }

    .singer-svg {
        max-height: 60vh;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        height: 100svh;
    }

    .singers-container {
        padding: 0 1%;
    }

    .singer {
        width: auto;
        height: 60vh;
        margin: 0 -5px;
    }

    .singer:nth-child(2) {
        width: auto;
    }

    .singer-svg {
        height: 100%;
        width: auto;
        max-height: 100%;
    }

    .singer-info .name {
        font-size: 0.6rem;
    }

    .singer-info .voice-type {
        font-size: 0.4rem;
    }

    .hero-hint {
        top: 80px; /* Positioned near the logo */
        left: 5%; /* Align with logo's left padding */
        transform: none; /* Remove center transform */
        text-align: left;
        z-index: 9999;
    }
    
    .hero-hint span {
        font-size: 0.45rem;
        padding: 4px 10px;
        letter-spacing: 0.15em;
        /* Make it blend better near the logo */
        background: transparent;
        border: none;
        backdrop-filter: none;
        color: var(--gold-primary);
        padding-left: 0;
    }
}
