/*
 * TrustESD - Hero Section
 * Main hero banner styles, background, content box, typography
 */

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.88) 50%, rgba(51,65,85,0.85) 100%);
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* Clip fixed-position children to this container */
    clip-path: inset(0);
}

@media (min-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: 6rem 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    will-change: transform;
    /* Blur + desaturate to hide low quality and create ambient texture */
    filter: blur(4px) saturate(0.7) brightness(0.9);
    transform: scale(1.05); /* Prevent blur edge artifacts */
}

/* Parallax effect */
@media (min-width: 768px) {
    .hero-bg {
        position: fixed;
        height: 100vh;
        top: 0;
        filter: blur(8px) saturate(0.6) brightness(0.85);
        transform: scale(1.1);
    }
}

.hero-content-box {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero-content-box {
        padding: 1.5rem 1.25rem;
        margin: 0 0.5rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Dark mode - page overrides */
html[data-dark="true"] .hero {
    background: linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(30,41,59,0.95) 100%);
}
