/* premium-hero.css */

/* Imports - Fonts are added in HTML head for performance */

:root {
    --ph-bg-navy: #05014A;
    /* Deep Navy */
    --ph-bg-navy-dark: #050533;
    /* Darker Navy for gradient start */
    --ph-accent-gold: #4A90E2;
    /* Gold */
    --ph-text-white: #ffffff;
    --ph-glass-bg: rgba(255, 255, 255, 0.1);
    --ph-glass-border: rgba(255, 255, 255, 0.2);
    --ph-font-serif: 'Playfair Display', serif;
    --ph-font-sans: 'DM Sans', sans-serif;
    --ph-font-script: 'Pinyon Script', cursive;
    /* New Script Font */
}

.premium-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full viewport height for cinematic feel */
    min-height: 700px;
    background-color: var(--ph-bg-navy);
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* --- Layout Grid --- */
.premium-hero__grid {
    display: grid;
    grid-template-columns: 100%;
    /* Full width stack, managed by z-index */
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- Visual Layer (Background Slider) --- */
.premium-hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    overflow: hidden;
}

.premium-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Initial state for Ken Burns */
    transform: scale(1);
}

/* Active Slide - Ken Burns Effect (Breathing) */
.swiper-slide-active .premium-hero__img {
    animation: breathe 10s ease-out forwards;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* --- Texture Overlays --- */
/* 1. Unifying Grain */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Dual-Layer Gradient Mask */
.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg,
            var(--ph-bg-navy-dark) 0%,
            var(--ph-bg-navy-dark) 35%,
            rgba(5, 5, 51, 0.85) 50%,
            rgba(5, 5, 51, 0) 100%);
    pointer-events: none;
}

/* --- Content Layer (Foreground) --- */
.premium-hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8vw;
    max-width: 50%;
    /* Constrain to left side */
}

.premium-hero__eyebrow {
    font-family: var(--ph-font-sans);
    color: var(--ph-accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.premium-hero__title {
    font-family: var(--ph-font-serif);
    color: var(--ph-text-white);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* Script Accent */
.premium-hero__title .script-accent {
    font-family: var(--ph-font-script);
    color: var(--ph-accent-gold);
    font-style: normal;
    font-weight: 400;
    font-size: 1.0em;
    /* Slightly larger than serif */
    display: block;
    margin-top: 10px;
    transform: rotate(-2deg);
    /* Organic tilt */
    transform-origin: left;
}

.premium-hero__desc {
    font-family: var(--ph-font-sans);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Improve readability */
}

.premium-hero__cta-group {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Buttons */
.btn-premium {
    position: relative;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--ph-font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-premium--primary {
    background: var(--ph-accent-gold);
    color: var(--ph-bg-navy);
    border: 1px solid var(--ph-accent-gold);
}

.btn-premium--primary:hover {
    background: transparent;
    color: var(--ph-accent-gold);
    box-shadow: 0 0 15px rgba(255, 200, 87, 0.3);
}

.btn-premium--glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ph-text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-premium--glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ph-text-white);
    color: var(--ph-text-white);
    backdrop-filter: blur(10px);
    /* Enhance blur on hover */
}

/* --- Progress Bar --- */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.hero-progress-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--ph-accent-gold);
    box-shadow: 0 -2px 10px var(--ph-accent-gold);
}


/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .premium-hero {
        height: auto;
        min-height: 100dvh;
        /* Use dynamic viewport height */
        flex-direction: column;
    }

    .premium-hero__grid {
        grid-template-columns: 1fr;
        flex: 1;
        /* Force grid to expand to fill flex container */
        height: auto;
        /* let it grow */
        min-height: 100%;
    }

    /* Mask changes for mobile: Dark overlay over whole image */
    .hero-mask {
        background: linear-gradient(180deg,
                var(--ph-bg-navy-dark) 0%,
                rgba(5, 5, 51, 0.8) 50%,
                rgba(5, 5, 51, 0.6) 100%);
    }

    .premium-hero__content {
        padding: 140px 20px 80px;
        text-align: center;
        align-items: center;
        max-width: 100%;
        background: transparent;
    }

    .premium-hero__title {
        font-size: 3rem;
    }

    .premium-hero__title .script-accent {
        transform: rotate(0deg);
        display: inline-block;
    }

    .premium-hero__desc {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .premium-hero__cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-premium {
        justify-content: center;
        width: 100%;
    }
}