/* Premium Home Styles */

:root {
    --hero-overlay-dark: linear-gradient(135deg, rgba(114, 47, 55, 0.9) 0%, rgba(44, 26, 29, 0.95) 100%);
    --premium-gold: #f59e0b;
    --premium-wine: #722f37;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    padding-top: 80px;
    background-color: white;
}

/* --- Hero Section --- */
.premium-hero {
    position: relative;
    height: 95vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Fallback/static background in case video fails or whilst loading */
.hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/slide3.jpg') center/cover no-repeat;
    /* Dark gradient overlay */
    background: var(--hero-overlay-dark), url('../images/slide3.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text-block {
    max-width: 800px;
}

.premium-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.premium-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 650px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-premium {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium-gold {
    background: var(--premium-gold);
    color: white;
    border: 2px solid var(--premium-gold);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-premium-gold:hover {
    background: transparent;
    color: var(--premium-gold);
    transform: translateY(-3px);
}

.btn-premium-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-premium-outline:hover {
    background: white;
    color: var(--premium-wine);
    transform: translateY(-3px);
}

/* --- Floating Cards Section --- */
.floating-cards-section {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    border-bottom: 5px solid transparent;
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(114, 47, 55, 0.15);
    border-bottom-color: var(--premium-wine);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--premium-wine);
    font-weight: 700;
}

.glass-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.text-link {
    color: var(--premium-wine);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.text-link:hover {
    gap: 0.8rem;
    color: var(--premium-gold);
}

/* --- Featured Visual Section --- */
.visual-section {
    padding: 6rem 0;
    background: #fdfdfd;
    position: relative;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visual-image {
    position: relative;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.image-slider {
    position: relative;
    height: 500px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.image-slider img.active {
    opacity: 1;
}

.visual-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border-radius: 30px;
    box-shadow: -20px 20px 0 var(--premium-gold);
    z-index: -1;
}

.visual-content {
    padding: 0 5%;
}

.visual-content h2 {
    font-size: 3rem;
    font-family: var(--font-display);
    color: var(--premium-wine);
    margin-bottom: 2rem;
}

.visual-content p {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--premium-gold);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}

/* --- Newsletter Premium --- */
.premium-newsletter {
    background: var(--primary-wine);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.premium-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/slide3.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.newsletter-box {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.newsletter-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: var(--premium-gold);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #e69000;
}


/* Animations */
.igniting-text {
    animation: colorCycle 12s infinite step-end;
    /* step-end makes it jump colors exactly every 2s, or linear for smooth fade */
    /* User said "changing colors", usually implies a switch. But smooth is often nicer.
       Let's try linear/ease for smooth or just standard keyframes.
       If they want it to "hold" for 2 seconds then switch, I should construct keyframes accordingly.
       "changing colors every 2s" -> 0-2s Red, 2-4s Blue...
    */
    animation: colorCycle 12s infinite;
}

@keyframes colorCycle {
    0% {
        color: #ffb6c1;
    }

    /* Light Pink */
    17% {
        color: #f59e0b;
    }

    /* Premium Gold */
    34% {
        color: #50fa7b;
    }

    /* Bright Green */
    51% {
        color: #8be9fd;
    }

    /* Cyan */
    68% {
        color: #ff79c6;
    }

    /* Pink/Purple */
    85% {
        color: #bd93f9;
    }

    /* Purple */
    100% {
        color: #ffb6c1;
    }

    /* Back to Start */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .premium-title {
        font-size: 3.5rem;
    }

    .floating-cards-section {
        margin-top: 0;
        padding-top: 4rem;
    }

    .visual-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .visual-image {
        order: -1;
    }
}

/* Enhancements for Tablet/Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .premium-hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0 60px;
    }

    .premium-title {
        font-size: 2.5rem;
    }

    .premium-subtitle {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-premium {
        width: 100%;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .visual-content h2 {
        font-size: 2.2rem;
    }

    .stat-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
    }

    .newsletter-input-group input {
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem 1.5rem;
        border-radius: 50px;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Small screen (iPhone SE) */
@media (max-width: 480px) {
    body {
        padding-top: 56px !important;
    }

    .premium-title {
        font-size: 2rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-box h2 {
        font-size: 1.8rem;
    }

    /* iPhone SE and small mobile specifically */
    @media (max-width: 400px) {
        body {
            padding-top: 45px !important;
        }

        .premium-hero {
            padding-top: 20px !important;
            margin-top: 0 !important;
            min-height: auto !important;
        }

        .brand-text {
            font-size: 0.9rem;
        }

        .premium-title {
            font-size: 1.75rem;
        }

        .cards-grid {
            grid-template-columns: 1fr;
        }

        .visual-image {
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .visual-image::after {
            top: 10px;
            left: -10px;
            right: 10px;
            bottom: -10px;
            border-radius: 20px;
            box-shadow: -10px 10px 0 var(--premium-gold);
        }

        .image-slider {
            height: 300px;
            border-radius: 20px;
        }

        .visual-section {
            padding: 2.5rem 0;
        }

        .visual-content {
            padding: 0 1.5rem;
            text-align: justify;
        }

        .visual-content h2 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .image-slider {
            height: 300px;
        }

        .premium-newsletter {
            padding: 2.5rem 0;
        }
    }
}