/* ============================================================
   ACE Banner Slider — slider.css  (core engine only)
   All styles scoped under .coe-slider to avoid conflicts
   with Jupiter theme and WPBakery.

   Slide-specific styles live inside each slide's own HTML
   snippet — paste a slide in the admin and it just works.
   v2.1.0
============================================================ */

/* ── Reset (scoped) ── */
.coe-slider,
.coe-slider * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Brand tokens ── */
.coe-slider {
    --gold: #e2b600;
    --gold-light: #f0d060;
    --dark: #0b0704;

    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dark);
    font-family: "Jost", sans-serif;
    border-top: 3px solid var(--gold);
}

/* ── Track ── */
.coe-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* ══════════════════════════════════════════════════════════════
   HEIGHT FORMULA — three zones, one clamp(), zero media queries:
   Zone 1  ≥ 1200px  →  fixed 650px   (clamped at max)
   Zone 2  1000–1200px  →  linear 650px → 500px
   Zone 3  ≤ 1000px  →  fixed 500px   (clamped at min)
══════════════════════════════════════════════════════════════ */
.coe-slide {
    position: relative;
    min-width: 100%;
    overflow: hidden;
    height: clamp(
        500px,
        calc(650px - (1200px - 100vw) * 0.75),
        650px
    );
}

/* ── Video: fill the slide ── */
.coe-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.coe-video--left-center { object-position: left center; }
.coe-video--top-center  { object-position: center top;  }

/* ── Overlay — bottom + left vignette ── */
.coe-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(11, 7, 4, 0.96)  0%,
            rgba(11, 7, 4, 0.55) 40%,
            rgba(11, 7, 4, 0.08) 72%,
            transparent          100%
        ),
        linear-gradient(
            to right,
            rgba(11, 7, 4, 0.65)  0%,
            rgba(11, 7, 4, 0.15) 55%,
            transparent          100%
        );
}

/* ── Overlay — bottom + right vignette ── */
.coe-overlay--right {
    background:
        linear-gradient(
            to top,
            rgba(11, 7, 4, 0.55)  0%,
            rgba(11, 7, 4, 0.18) 50%,
            transparent          100%
        ),
        linear-gradient(
            to left,
            rgba(11, 7, 4, 0.92)  0%,
            rgba(11, 7, 4, 0.60) 40%,
            rgba(11, 7, 4, 0.12) 70%,
            transparent          100%
        );
}

/* ── Content block — bottom-left ── */
.coe-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5% 6% 6%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}
@media (max-width: 600px) {
    .coe-content { padding: 6% 6% 12%; gap: 0.75rem; }
}

/* ── Content block — bottom-right ── */
.coe-content--right { align-items: flex-end; text-align: right; }
@media (max-width: 600px) {
    .coe-content--right { align-items: flex-start; text-align: left; }
}

/* ── Eyebrow ── */
.coe-eyebrow {
    font-weight: 300;
    font-size: clamp(0.6rem, 1.4vw, 0.82rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Title ── */
.coe-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4.8vw, 3.8rem);
    line-height: 1.08;
    color: #fff;
}
.coe-title em { font-style: italic; font-weight: 400; color: var(--gold); }

/* ── Title logo (WP theme override) ── */
.coe-slider .coe-title-logo {
    display: block !important;
    max-width: clamp(180px, 32vw, 480px) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* ── Details ── */
.coe-details {
    font-weight: 300;
    font-size: clamp(0.65rem, 1.3vw, 0.85rem);
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ── CTA — primary (gold fill) ── */
.coe-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.78em 2.2em;
    background: var(--gold);
    color: var(--dark);
    font-weight: 500;
    font-size: clamp(0.62rem, 1.2vw, 0.8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
}
.coe-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(226, 182, 0, 0.35);
}

/* ── CTA — secondary (gold outline) ── */
.coe-btn--outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.coe-btn--outline:hover {
    background: rgba(226, 182, 0, 0.1);
    color: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 6px 28px rgba(226, 182, 0, 0.2);
}

/* ── Button group ── */
.coe-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

/* ── Staggered reveal (shared keyframe + common element defaults) ── */
@keyframes coeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.coe-eyebrow,
.coe-title,
.coe-title-logo,
.coe-details,
.coe-btn,
.coe-btn-group {
    opacity: 0;
}

.coe-slide.is-active .coe-eyebrow    { animation: coeUp 0.75s 0.15s both ease-out; }
.coe-slide.is-active .coe-title      { animation: coeUp 0.75s 0.35s both ease-out; }
.coe-slide.is-active .coe-title-logo { animation: coeUp 0.75s 0.35s both ease-out; }
.coe-slide.is-active .coe-details    { animation: coeUp 0.75s 0.55s both ease-out; }
.coe-slide.is-active .coe-btn        { animation: coeUp 0.75s 0.72s both ease-out; }
.coe-slide.is-active .coe-btn-group  { animation: coeUp 0.75s 0.72s both ease-out; }

/* ── Dots ── */
.coe-dots {
    position: absolute;
    bottom: 1.4rem;
    right: 2rem;
    display: flex;
    gap: 0.45rem;
    z-index: 20;
}
.coe-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.coe-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

/* ── Arrows ── */
.coe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
}
.coe-arrow:hover  { background: rgba(0, 0, 0, 0.6); border-color: var(--gold); }
.coe-arrow--prev  { left: 1rem; }
.coe-arrow--next  { right: 1rem; }

/* Single-slide: hide nav chrome */
.coe-slider[data-slides="1"] .coe-dots,
.coe-slider[data-slides="1"] .coe-arrow { display: none; }
