/* =========================================================================
   Home Hero Section Styles
   Optimized for Fluidity, Core Web Vitals, and Responsive Layouts
   ========================================================================= */

.mz-hero {
    position: relative;
    overflow: hidden;
    background: #0e1118;
    --hero-accent: #cc272a;
    --hero-accent-rgb: 204, 39, 42;
    background: radial-gradient(circle at 82% 18%, rgba(var(--hero-accent-rgb), .22) 0%, transparent 28%), #0e1118;
    display: flex;
    flex-direction: column;
}

.mz-hero::before,
.mz-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mz-hero::before {
    z-index: 1;
    background:
        radial-gradient(circle at 75% 56%, rgba(var(--hero-accent-rgb), .14) 0%, transparent 30%),
        linear-gradient(100deg, rgba(7, 10, 16, .92) 0%, rgba(10, 13, 19, .68) 42%, rgba(10, 13, 19, .26) 100%);
}

.mz-hero::after {
    z-index: 1;
    opacity: .1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 120px 120px;
    -webkit-mask-image: linear-gradient(120deg, transparent 0%, rgba(0, 0, 0, .9) 25%, transparent 100%);
    mask-image: linear-gradient(120deg, transparent 0%, rgba(0, 0, 0, .9) 25%, transparent 100%);
}

.mz-page-h1 {
    /* Integrated H1 styling, visually hidden or sleek */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mz-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mz-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 17, 24, .45) 0%, rgba(14, 17, 24, .15) 100%);
    z-index: 1;
}

.mz-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .45;
    display: block;
}

/* ── SLIDER ──────────────────────────────────────────── */
.mz-hero-slider {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.mz-slide {
    /* Use fluid min-height to prevent rigid overflow on smaller screens */
    min-height: clamp(500px, 80vh, 700px);
    display: flex !important;
    align-items: center;
    padding: clamp(30px, 5vw, 60px) 0;
    position: relative;
}

.mz-slide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 56px);
    width: 100%;
}

/* ── CONTENT (left) ──────────────────────────────────── */
.mz-slide-content {
    flex: 0 1 55%;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.mz-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--slide-accent-rgb), .24);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .95);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(var(--slide-accent-rgb), .16);
}

.mz-slide-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: clamp(14px, 2.5vw, 20px);
    letter-spacing: -.02em;
    text-wrap: balance;
}

.mz-slide-title em {
    font-style: normal;
    color: var(--slide-accent);
    text-shadow: 0 8px 24px rgba(var(--slide-accent-rgb), .22);
}

.mz-slide-desc {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin-bottom: clamp(20px, 3.5vw, 30px);
    max-width: 500px;
}

/* Feature chips */
.mz-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.mz-feature-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--slide-accent-rgb), .18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    transition: transform .2s, background .2s, border-color .2s;
}

.mz-feature-chips span:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(var(--slide-accent-rgb), .34);
}

.mz-feature-chips span i {
    color: var(--slide-accent);
}

/* CTA buttons */
.mz-slide-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.mz-btn-primary,
.mz-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.5vw, 15px);
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
}

.mz-btn-primary {
    background: linear-gradient(135deg, rgba(var(--slide-accent-rgb), .92) 0%, var(--slide-accent) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(var(--slide-accent-rgb), .3);
}

.mz-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--slide-accent-rgb), .4);
    color: #fff;
}

.mz-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .9);
}

.mz-btn-ghost:hover {
    border-color: rgba(var(--slide-accent-rgb), .5);
    background: rgba(var(--slide-accent-rgb), .1);
    color: #fff;
    transform: translateY(-2px);
}

/* Spec Grid */
.mz-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    max-width: 560px;
}

.mz-spec-card {
    position: relative;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.mz-spec-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--slide-accent) 0%, rgba(var(--slide-accent-rgb), .12) 100%);
}

.mz-spec-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.mz-spec-value {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 800;
}

.mz-spec-sub {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .7);
}

/* ── VISUAL (right) ──────────────────────────────────── */
.mz-slide-visual {
    flex: 0 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mz-glow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 40vw, 450px);
    height: clamp(250px, 40vw, 450px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
    opacity: .3;
    filter: blur(40px);
    pointer-events: none;
}

.mz-bottle-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mz-bottle-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 35vw, 360px);
    height: clamp(200px, 35vw, 360px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .05) 50%, transparent 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 15px 35px rgba(0, 0, 0, .2);
    z-index: -1;
}

.mz-bottle {
    height: clamp(250px, 45vh, 440px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
    display: block;
}

.slick-active .mz-bottle {
    animation: bottleFloat 5s ease-in-out infinite;
}

@keyframes bottleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mz-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    pointer-events: none;
}

.mz-visual-ring-lg {
    width: clamp(280px, 45vw, 400px);
    height: clamp(280px, 45vw, 400px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mz-visual-ring-sm {
    width: clamp(180px, 30vw, 260px);
    height: clamp(180px, 30vw, 260px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(var(--slide-accent-rgb), .2);
}

/* Notes */
.mz-visual-note {
    position: absolute;
    z-index: 3;
    width: max-content;
    max-width: 200px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(10, 14, 21, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mz-visual-note-top {
    top: 10%;
    left: 0;
}

.mz-visual-note-bottom {
    bottom: 10%;
    right: 0;
}

.mz-visual-note-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(var(--slide-accent-rgb), .9);
}

.mz-visual-note strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

/* ── CONTROLS ────────────────────────────────────────── */
.mz-hero-controls {
    position: absolute;
    right: clamp(15px, 3vw, 40px);
    bottom: clamp(60px, 8vh, 90px);
    z-index: 12;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: rgba(10, 14, 21, .8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mz-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.mz-arrow:hover {
    background: var(--hero-accent);
    border-color: var(--hero-accent);
    transform: scale(1.05);
}

.mz-slide-counter {
    min-width: 60px;
    text-align: center;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
}

.mz-current {
    font-size: 18px;
    color: #fff;
}

/* ── PROGRESS BAR ────────────────────────────────────── */
.mz-progress {
    position: absolute;
    bottom: clamp(35px, 5vh, 50px);
    left: clamp(15px, 3vw, 40px);
    right: clamp(15px, 3vw, 40px);
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    z-index: 10;
    overflow: hidden;
}

.mz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--hero-accent) 0%, rgba(var(--hero-accent-rgb), .6) 100%);
    width: 0%;
    transition: width .1s linear;
}

/* ── TRUST STRIP ─────────────────────────────────────── */
.mz-trust-strip {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 12px 0;
}

.mz-trust-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.mz-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    white-space: nowrap;
}

.mz-trust-item i {
    color: var(--hero-accent);
}

.mz-trust-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .15);
}

/* ── RESPONSIVE OVERRIDES ────────────────────────────── */
@media (max-width: 991px) {
    .mz-slide-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .mz-slide-content {
        flex: 1;
        max-width: 100%;
    }
    
    .mz-slide-visual {
        flex: 1;
        width: 100%;
    }
    
    .mz-slide-desc, .mz-spec-grid {
        margin-left: auto;
        margin-right: auto;
    }
    
    .mz-feature-chips, .mz-slide-actions {
        justify-content: center;
    }
    
    .mz-visual-note {
        display: none;
    }
}

@media (max-width: 767px) {
    .mz-slide {
        padding-top: 80px; /* Space for the header */
    }
    
    .mz-trust-divider {
        display: none;
    }
    
    .mz-trust-items {
        justify-content: center;
        gap: 10px;
    }
    
    .mz-trust-item {
        flex: 1 1 40%;
        justify-content: center;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .mz-slide-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .mz-btn-primary, .mz-btn-ghost {
        width: 100%;
    }
}
