/* =============================================================
   Premium GSAP Hero Slider — Frontend Styles
   Version: 2.0.0
   ============================================================= */

/* ── Wrapper ──────────────────────────────────────────────── */
.pghs-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* ── Custom Cursor ────────────────────────────────────────── */
.pghs-cursor-dot,
.pghs-cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s;
}
.pghs-cursor-dot {
    width: 24px;
    height: 24px;
    background: #e5c87b;
    mix-blend-mode: difference;
    transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.3s;
}
.pghs-cursor-ring {
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(229, 200, 123, 0.6);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.pghs-wrapper.pghs-cursor-active .pghs-cursor-dot,
.pghs-wrapper.pghs-cursor-active .pghs-cursor-ring {
    opacity: 1;
}
.pghs-wrapper.cursor-hover .pghs-cursor-dot  { width: 8px; height: 8px; }
.pghs-wrapper.cursor-hover .pghs-cursor-ring { width: 60px; height: 60px; opacity: 0.5; }

/* ── Slider Container ─────────────────────────────────────── */
.pghs-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}

/* ── Slides ───────────────────────────────────────────────── */
.pghs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* opacity and z-index are set by GSAP — not here */
    pointer-events: none;
    z-index: 1;
}
.pghs-slide.is-active {
    pointer-events: auto;
}

/* ── Background Media ─────────────────────────────────────── */
.pghs-bg {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    overflow: hidden;
    will-change: transform;
}
.pghs-bg img,
.pghs-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Overlay ──────────────────────────────────────────────── */
.pghs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1;
}

/* ── Mask Strips ──────────────────────────────────────────── */
.pghs-mask-strips {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
}
.pghs-strip {
    flex: 1;
    background: #0a0a0a;
    transform-origin: top;
    /* Start hidden — GSAP will set scaleY:1 when covering, scaleY:0 when revealing.
       Keeping scaleY:0 here prevents the 1-frame flash before GSAP initialises. */
    transform: scaleY(0);
}

/* Hide slider until GSAP takes control — prevents unpainted-frame flicker on load */
.pghs-slider {
    visibility: hidden;
}
/* GSAP adds this class once it has set initial state, before fading in */
.pghs-slider.pghs-ready {
    visibility: visible;
}

/* ── Dimension Grid Lines ─────────────────────────────────── */
.pghs-dimension-lines {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.pghs-dim-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.055);
    transform-origin: top;
}

/* ── Content Block ────────────────────────────────────────── */
.pghs-content {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    visibility: hidden; /* GSAP controls reveal */
}

/* Horizontal alignment */
.pghs-content.pghs-halign-left {
    left: var(--pghs-padding-x, 8%);
    text-align: left;
    align-items: flex-start;
}
.pghs-content.pghs-halign-center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
}
.pghs-content.pghs-halign-right {
    right: var(--pghs-padding-x, 8%);
    text-align: right;
    align-items: flex-end;
}

/* Vertical alignment */
.pghs-content.pghs-valign-top    { top: 10%; }
.pghs-content.pghs-valign-center { top: 50%; transform: translateY(-50%); }
.pghs-content.pghs-valign-bottom { bottom: 10%; }

/* Combined center+center */
.pghs-content.pghs-halign-center.pghs-valign-center {
    transform: translate(-50%, -50%);
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.pghs-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e5c87b;
    line-height: 1;
}

/* ── Title ────────────────────────────────────────────────── */
.pghs-title {
    font-size: 8vw;
    line-height: 0.95;
    color: #ffffff;
    letter-spacing: 0.01em;
    margin: 0;
}
.pghs-line-wrap {
    display: inline-block;
    overflow: hidden;
}
.pghs-word {
    display: inline-block;
}

/* ── Description ──────────────────────────────────────────── */
.pghs-desc {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 480px;
    margin: 0;
}

/* ── Button ───────────────────────────────────────────────── */
.pghs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 2.2rem;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    line-height: 1;
    white-space: nowrap;
}
.pghs-btn:hover {
    background: transparent;
    color: #ffffff;
}
.pghs-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.pghs-btn:hover svg {
    transform: translateX(4px);
}

/* ── Navigation Arrows ────────────────────────────────────── */
.pghs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pghs-nav:hover {
    border-color: #e5c87b;
    background: rgba(229, 200, 123, 0.12);
}
.pghs-nav svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.pghs-nav-prev { left: 3%; }
.pghs-nav-next { right: 3%; }

/* ── Dots ─────────────────────────────────────────────────── */
.pghs-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}
.pghs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.pghs-dot.is-active {
    background: #e5c87b;
    transform: scale(1.6);
}

/* ── Counter ──────────────────────────────────────────────── */
.pghs-counter {
    position: absolute;
    bottom: 4rem;
    right: 6%;
    z-index: 20;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-variant-numeric: tabular-nums;
}
.pghs-counter-current {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}
.pghs-counter-sep {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    display: block;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.pghs-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 20;
}
.pghs-progress-bar {
    height: 100%;
    width: 100%;
    background: #e5c87b;
    transform: scaleX(0);
    transform-origin: left;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .pghs-nav { display: none; }
    .pghs-title { font-size: clamp(2.5rem, 12vw, 5rem); }
    .pghs-content.pghs-halign-left,
    .pghs-content.pghs-halign-right {
        left: 5%;
        right: 5%;
        text-align: left;
        align-items: flex-start;
    }
}

/* ── Elementor Editor: prevent cursor hiding ──────────────── */
.elementor-editor-active .pghs-cursor-dot,
.elementor-editor-active .pghs-cursor-ring {
    display: none !important;
}
