/* css/components/hero.css */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    isolation: isolate;
    width: 100%;
}

.hero.error-fallback {
    background: linear-gradient(135deg, #5e4b3c, #8b7a6b) !important;
}

@media (max-width: 480px) {
    .hero {
        background-size: cover;
        background-position: 50% 30%;
        min-height: 85vh;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        background-size: cover;
        background-position: 50% 35%;
        min-height: 90vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(70, 55, 45, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--white-soft);
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: fadeUp 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-names {
    font-family: var(--script-main);
    font-size: clamp(3.5rem, 12vw, 8rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    font-weight: 400;
    word-break: break-word;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
    text-align: center;
    width: 100%;
}

.hero-sub {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--champagne);
    text-align: center;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .hero::before {
        background: rgba(70, 55, 45, 0.4);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-names {
        font-size: clamp(2.8rem, 10vw, 5rem);
    }
    
    .hero-sub {
        letter-spacing: 0.3rem;
        font-size: 0.9rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}