/* =============================================
   Snap Homepage — scroll-snap layout
   Only loaded on page-probna-pocetna
   ============================================= */

/* Page fills viewport, flex column lets header stay on top */
body.page-snap-homepage {
    overflow: hidden;
    height: 100vh;
}

body.page-snap-homepage #page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Hide empty content wrappers closed in template */
body.page-snap-homepage #content {
    display: none;
}

/* Snap container fills remaining space below header */
#snap-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Each section fills the snap container height (set by JS as --snap-h) */
.snap-section {
    height: var(--snap-h, 100vh);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

/* Footer section */
.snap-footer {
    height: auto;
    min-height: var(--snap-h, 100vh);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Desktop / Mobile visibility */
.hero-desktop {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-mobile {
    display: none;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .hero-desktop { display: none; }
    .hero-mobile  { display: block; }
}

/* Background image (fallback while video loads) */
.hero-desktop,
.hero-mobile {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* Video — fills the section */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Clickable overlay link */
.hero-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* Label text (bottom-right) */
.hero-label {
    position: absolute;
    bottom: 60px;
    right: 30px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 767px) {
    .hero-label {
        bottom: 80px;
        right: 20px;
    }
}

/* Hide the global Elementor footer (we render it inside snap) */
body.page-snap-homepage .site-footer,
body.page-snap-homepage footer.site-footer,
body.page-snap-homepage .elementor-location-footer {
    display: none !important;
}

/* Scrollbar hide */
#snap-container::-webkit-scrollbar {
    display: none;
}
#snap-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Elementor sections as snap children */
#snap-container > .elementor > .elementor-inner > .elementor-section-wrap > .elementor-section,
#snap-container > .elementor > .elementor-inner > .elementor-section-wrap > .e-con,
#snap-container > .elementor > .elementor-element {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: var(--snap-h, 100vh);
}

/* Collapse mini-cart wrap that pushes header down */
body.page-snap-homepage .shoptimizer-mini-cart-wrap {
    position: absolute;
    height: 0;
    overflow: hidden;
}

/* Compensate for WP admin bar pushing page down */
html:has(body.page-snap-homepage) {
    margin-top: 0 !important;
}
body.page-snap-homepage.admin-bar {
    padding-top: 32px;
}

/* Fix sticky header gap - no scroll context in flex, so top:32px creates gap */
body.page-snap-homepage .header-4-container {
    position: relative !important;
    top: 0 !important;
}

/* Snap navigation dots — right side */
#snap-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.snap-dot {
    width: 3px;
    height: 28px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, height 0.3s;
}

.snap-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.snap-dot.active {
    background: rgba(255, 255, 255, 0.9);
    height: 36px;
}

/* On light backgrounds use dark dots */
body.page-snap-homepage .snap-dot {
    background: rgba(0, 0, 0, 0.25);
}

body.page-snap-homepage .snap-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

body.page-snap-homepage .snap-dot.active {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {
    #snap-nav {
        right: 10px;
        gap: 8px;
    }
    .snap-dot {
        height: 22px;
        width: 3px;
    }
    .snap-dot.active {
        height: 28px;
    }
}

/* =============================================
   Hero Logo Overlay — Zara-style branding
   Large logo positioned right, overflowing viewport
   ============================================= */
.hero-logo-overlay {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: normal;
    filter: invert(1);
}

/* On light hero backgrounds, use dark logo */
#hero-1 .hero-logo-overlay {
    filter: none;
    opacity: 0.08;
}

@media (max-width: 767px) {
    .hero-logo-overlay {
        height: 40%;
        right: -10%;
    }
}


/* Mobile: move logo overlay lower */
@media (max-width: 767px) {
    #hero-brand-overlay {
        bottom: 12% !important;
        width: 60vw !important;
    }
}
