/**
 * LJUS Enterprise Hero Banner Styles
 * 4 Switchable Layouts: Editorial, Dual-Split, Glassmorphic, Lookbook Hotspots
 */

:root {
    --hero-ent-height-desktop: 85vh;
    --hero-ent-height-mobile: 60vh;
    --hero-ent-glass-bg: rgba(14, 14, 16, 0.72);
    --hero-ent-border: rgba(255, 255, 255, 0.16);
    --hero-ent-accent: #ffffff;
}

/* ==========================================================================
   Base Container & Carousel
   ========================================================================== */
.hero-enterprise {
    position: relative;
    overflow: hidden;
    min-height: var(--hero-ent-height-desktop);
    width: 100%;
    background-color: #000000;
    color: #ffffff;
}

.hero-enterprise .carousel-inner,
.hero-enterprise .carousel-item {
    height: 100%;
    min-height: var(--hero-ent-height-desktop);
}

.hero-enterprise-img,
.hero-enterprise picture img,
.hero-enterprise .hero-enterprise-picture img {
    height: var(--hero-ent-height-desktop);
    width: 100%;
    object-fit: cover !important;
    object-position: top center !important;
    display: block;
}

/* ==========================================================================
   Shared Typography & Badges
   ========================================================================== */
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    width: fit-content;
}

.hero-eyebrow-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-enterprise .hero-title {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    opacity: 1 !important;
    margin: 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hero-enterprise .hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 400;
    color: #e5e5e5 !important;
    opacity: 1 !important;
    max-width: 680px;
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Action Buttons (Mont5 Inversion Hover Effect)
   ========================================================================== */
.hero-enterprise .hero-buttons {
    margin-top: 24px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    opacity: 1 !important;
}

.hero-enterprise .hero-btn {
    position: relative;
    z-index: 1;
    padding: 12px 34px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: color 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86),
                border-color 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.hero-enterprise .hero-btn:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* Primary Button: Solid White -> Transparent on hover */
.hero-enterprise .hero-btn-primary {
    color: #000000 !important;
    border-color: #ffffff;
}

.hero-enterprise .hero-btn-primary:before {
    transform: scale(1);
    transform-origin: left center;
}

.hero-enterprise .hero-btn-primary:hover {
    color: #ffffff !important;
}

.hero-enterprise .hero-btn-primary:hover:before {
    transform-origin: right center;
    transform: scaleX(0);
}

/* Secondary Button: Transparent Outline -> Solid White on hover */
.hero-enterprise .hero-btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff;
}

.hero-enterprise .hero-btn-secondary:before {
    transform: scaleX(0);
    transform-origin: right center;
}

.hero-enterprise .hero-btn-secondary:hover {
    color: #000000 !important;
}

.hero-enterprise .hero-btn-secondary:hover:before {
    transform-origin: left center;
    transform: scaleX(1);
}

/* ==========================================================================
   LAYOUT 1: Luxury Editorial Hero (Default)
   ========================================================================== */
.hero-enterprise.style-luxury-editorial .editorial-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.65) 75%,
        rgba(0, 0, 0, 0.90) 100%
    );
    pointer-events: none;
}

.hero-enterprise.style-luxury-editorial .editorial-caption {
    position: absolute;
    bottom: 74px; /* Space for trust bar */
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-enterprise.style-luxury-editorial .editorial-caption.pos-left {
    text-align: left;
}

.hero-enterprise.style-luxury-editorial .editorial-caption.pos-center {
    text-align: center;
}

.hero-enterprise.style-luxury-editorial .editorial-caption.pos-center .hero-eyebrow-badge,
.hero-enterprise.style-luxury-editorial .editorial-caption.pos-center .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-enterprise.style-luxury-editorial .editorial-caption.pos-right {
    text-align: right;
}

.hero-enterprise.style-luxury-editorial .editorial-caption.pos-right .hero-eyebrow-badge,
.hero-enterprise.style-luxury-editorial .editorial-caption.pos-right .hero-subtitle {
    margin-left: auto;
}

/* ==========================================================================
   LAYOUT 2: Interactive Dual-Split (His & Hers)
   ========================================================================== */
.hero-enterprise.style-dual-split {
    min-height: var(--hero-ent-height-desktop);
}

.hero-dual-split-container {
    display: flex;
    width: 100%;
    height: var(--hero-ent-height-desktop);
    overflow: hidden;
    position: relative;
}

.dual-split-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px 50px 90px;
    transition: flex 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.dual-split-bg,
.dual-split-panel picture,
.dual-split-panel picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.dual-split-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.88) 100%
    );
    transition: opacity 0.5s ease;
}

.dual-split-content {
    position: relative;
    z-index: 3;
    max-width: 520px;
}

.dual-split-panel .hero-title {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.dual-split-panel .hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

/* Desktop Hover Micro-interaction */
@media (min-width: 992px) {
    .hero-dual-split-container:hover .dual-split-panel {
        flex: 0.85;
    }
    .hero-dual-split-container .dual-split-panel:hover {
        flex: 1.15;
    }
    .dual-split-panel:hover .dual-split-bg,
    .dual-split-panel:hover picture img {
        transform: scale(1.06);
    }
    .dual-split-panel:hover .dual-split-overlay {
        opacity: 0.85;
    }
}

/* Mobile Stacked Dual Split */
@media (max-width: 991px) {
    .hero-dual-split-container {
        flex-direction: column;
        height: auto;
    }
    .dual-split-panel {
        height: 50vh;
        min-height: 340px;
        width: 100%;
        padding: 40px 24px;
    }
}

/* ==========================================================================
   LAYOUT 3: Floating Glassmorphic Card
   ========================================================================== */
.hero-enterprise.style-glassmorphic-card .glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.1) 60%
    );
    pointer-events: none;
}

.hero-glass-card {
    position: absolute;
    z-index: 5;
    background: var(--hero-ent-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hero-ent-border);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    border-radius: 14px;
    padding: 38px 42px;
    max-width: 580px;
    width: 90%;
}

.hero-glass-card.pos-bottom-left {
    left: 6%;
    bottom: 84px;
}

.hero-glass-card.pos-center-left {
    left: 6%;
    top: 48%;
    transform: translateY(-50%);
}

.hero-glass-card.pos-bottom-center {
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    text-align: center;
}

.hero-glass-card.pos-center {
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-glass-card.pos-bottom-center .hero-eyebrow-badge,
.hero-glass-card.pos-center .hero-eyebrow-badge {
    margin-left: auto;
    margin-right: auto;
}

.hero-glass-card .hero-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.hero-glass-card .hero-subtitle {
    font-size: 1.05rem;
}

/* ==========================================================================
   LAYOUT 4: Shop The Look Hotspots
   ========================================================================== */
.hero-enterprise.style-interactive-hotspots .hotspots-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.enterprise-hotspot-pin {
    position: absolute;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

.enterprise-hotspot-pin .hotspot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.enterprise-hotspot-pin:hover .hotspot-dot,
.enterprise-hotspot-pin.is-active .hotspot-dot {
    transform: scale(1.3);
    background: #ffffff;
}

.enterprise-hotspot-pin .hotspot-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    animation: enterpriseHotspotPulse 2.2s infinite ease-out;
}

@keyframes enterpriseHotspotPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Hotspot Popover Card */
.enterprise-hotspot-pin .hotspot-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
    width: 250px;
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    z-index: 25;
    color: #ffffff;
    text-align: left;
}

.enterprise-hotspot-pin.is-active .hotspot-popover,
.enterprise-hotspot-pin:hover .hotspot-popover {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Smart placement adjustments */
.enterprise-hotspot-pin[data-pos-y="top"] .hotspot-popover {
    bottom: auto;
    top: calc(100% + 14px);
    transform: translateX(-50%) translateY(-8px) scale(0.96);
}
.enterprise-hotspot-pin[data-pos-y="top"].is-active .hotspot-popover,
.enterprise-hotspot-pin[data-pos-y="top"]:hover .hotspot-popover {
    transform: translateX(-50%) translateY(0) scale(1);
}

.enterprise-hotspot-pin[data-pos-x="right"] .hotspot-popover {
    left: auto;
    right: -10px;
    transform: translateY(8px) scale(0.96);
}
.enterprise-hotspot-pin[data-pos-x="right"].is-active .hotspot-popover,
.enterprise-hotspot-pin[data-pos-x="right"]:hover .hotspot-popover {
    transform: translateY(0) scale(1);
}

.enterprise-hotspot-pin[data-pos-x="left"] .hotspot-popover {
    left: -10px;
    transform: translateY(8px) scale(0.96);
}
.enterprise-hotspot-pin[data-pos-x="left"].is-active .hotspot-popover,
.enterprise-hotspot-pin[data-pos-x="left"]:hover .hotspot-popover {
    transform: translateY(0) scale(1);
}

.hotspot-popover-inner {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hotspot-popover-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hotspot-popover-info {
    flex: 1;
    min-width: 0;
}

.hotspot-popover-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotspot-popover-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.hotspot-popover-cta {
    display: block;
    margin-top: 10px;
    padding: 7px 12px;
    background: #ffffff;
    color: #000000 !important;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hotspot-popover-cta:hover {
    background: #e0e0e0;
}

/* ==========================================================================
   Floating 3-Pillar Trust Ribbon
   ========================================================================== */
.hero-trust-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 24px;
}

.hero-trust-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    gap: 20px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-trust-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #ffffff;
    color: #ffffff;
}

.hero-trust-text {
    line-height: 1.25;
}

.hero-trust-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.hero-trust-subtitle {
    font-size: 11px;
    color: #a0a0a0;
    margin-top: 2px;
}

/* ==========================================================================
   Carousel Navigation & Pagination
   ========================================================================== */
.hero-enterprise .carousel-control-prev,
.hero-enterprise .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    z-index: 7;
    transition: opacity 0.3s ease;
}

.hero-enterprise .carousel-control-prev {
    left: 24px;
}

.hero-enterprise .carousel-control-next {
    right: 24px;
}

.hero-enterprise .carousel-control-prev:hover,
.hero-enterprise .carousel-control-next:hover {
    opacity: 1;
}

.hero-control-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hero-enterprise .carousel-control-prev:hover .hero-control-circle,
.hero-enterprise .carousel-control-next:hover .hero-control-circle {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.hero-enterprise .carousel-indicators {
    bottom: 24px;
    margin-bottom: 0;
    z-index: 7;
    gap: 8px;
}

/* If trust bar is present, lift indicators */
.hero-enterprise.has-trust-bar .carousel-indicators {
    bottom: 74px;
}

.hero-enterprise .carousel-indicators button {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.hero-enterprise .carousel-indicators button.active {
    width: 48px;
    background-color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .hero-enterprise.style-luxury-editorial .editorial-caption {
        padding: 0 36px;
    }
    .hero-glass-card {
        padding: 28px;
    }
    .hero-trust-bar {
        padding: 10px 16px;
    }
    .hero-trust-subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-enterprise {
        min-height: max(560px, 70vh);
    }
    .hero-enterprise .carousel-inner,
    .hero-enterprise .carousel-item {
        min-height: max(560px, 70vh);
    }
    .hero-enterprise-img,
    .hero-enterprise picture img,
    .hero-enterprise .hero-enterprise-picture img {
        height: 100%;
        min-height: max(560px, 70vh);
        width: 100%;
        object-fit: cover !important;
        object-position: top center !important;
    }

    .hero-enterprise.style-luxury-editorial .editorial-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.15) 30%,
            rgba(0, 0, 0, 0.65) 60%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }

    .hero-enterprise.style-luxury-editorial .editorial-caption {
        padding: 0 16px;
        bottom: 55px;
        text-align: center !important;
    }
    .hero-enterprise.style-luxury-editorial .editorial-caption .hero-eyebrow-badge,
    .hero-enterprise.style-luxury-editorial .editorial-caption .hero-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-enterprise .hero-title {
        font-size: clamp(1.75rem, 5.2vw, 2.3rem);
    }

    .hero-enterprise .hero-subtitle {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 8px;
    }

    .hero-enterprise .hero-buttons {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .hero-enterprise .hero-btn {
        padding: 10px 22px;
        font-size: 12px;
    }

    /* Glass card on mobile */
    .hero-glass-card {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        padding: 24px 20px !important;
        margin-top: -120px;
        z-index: 6;
    }

    /* Trust bar on mobile: 2x2 aligned grid or hide */
    .hero-trust-bar.mobile-hide {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    .hero-trust-bar.mobile-grid,
    .hero-trust-bar {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        padding: 14px 16px !important;
        margin-top: 0 !important;
        background: #000000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
        z-index: 6;
    }

    .hero-trust-bar .hero-trust-inner,
    .hero-trust-bar.mobile-grid .hero-trust-inner {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 14px !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        justify-items: start !important;
    }

    .hero-trust-bar .hero-trust-item,
    .hero-trust-bar.mobile-grid .hero-trust-item {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .hero-trust-bar .hero-trust-icon,
    .hero-trust-bar.mobile-grid .hero-trust-icon {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
        stroke: #C2A265 !important;
    }

    .hero-trust-bar .hero-trust-title,
    .hero-trust-bar.mobile-grid .hero-trust-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        line-height: 1.25 !important;
        color: #ffffff !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .hero-trust-bar .hero-trust-subtitle,
    .hero-trust-bar.mobile-grid .hero-trust-subtitle {
        display: none !important;
    }

    .hero-enterprise .carousel-control-prev,
    .hero-enterprise .carousel-control-next {
        display: none; /* Rely on swipe and indicators on mobile */
    }
}

@media (max-width: 480px) {
    .hero-enterprise .hero-title {
        font-size: 1.85rem;
    }
    .hero-enterprise .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-enterprise .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-enterprise .hero-btn {
        width: 100%;
        text-align: center;
    }
}
