/**
 * Commercial Connection — Horizontal Scroll Widget
 * Pure CSS sticky approach — no GSAP pin, no snap.
 */

.cc-hs-widget {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.cc-hs-outer {
    position: relative;
    /* Height set by JS: viewport + travel distance */
}

.cc-hs-sticky {
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

.cc-hs-track {
    display: flex;
    height: 100%;
    width: fit-content;
    will-change: transform;
}

/* Panel */
.cc-hs-panel {
    position: relative;
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 60px 80px;
    background-size: cover;
    background-position: center;
}

.cc-hs-panel--left   { justify-content: flex-start; }
.cc-hs-panel--center { justify-content: center; text-align: center; }
.cc-hs-panel--right  { justify-content: flex-end; }

.cc-hs-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.cc-hs-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}
.cc-hs-panel--center .cc-hs-content {
    text-align: center;
    margin: 0 auto;
}

/* Typography */
.cc-hs-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
    margin: 0 0 16px;
}
.cc-hs-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.cc-hs-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    opacity: 0.85;
    margin: 0 0 32px;
}
.cc-hs-text p:last-child { margin-bottom: 0; }

/* CTA */
.cc-hs-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
    backdrop-filter: blur(4px);
}
.cc-hs-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Dots & hint (hidden by default in this mode) */
.cc-hs-dots, .cc-hs-hint { display: none; }

/* Card mode */
.cc-hs-track--cards { gap: 0; padding: 0; }
.cc-hs-panel--card { border-radius: 0; }

/* Kill Elementor parent padding */
.e-con-inner:has(.cc-hs-widget) {
    padding: 0 !important;
    gap: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .cc-hs-widget { width: 100%; margin-left: 0; }
    .cc-hs-outer { height: auto !important; }
    .cc-hs-sticky { position: relative; height: auto !important; overflow: visible; }
    .cc-hs-track { transform: none !important; will-change: auto; }
    .cc-hs-mobile-stack .cc-hs-track { flex-direction: column; width: 100%; }
    .cc-hs-mobile-stack .cc-hs-panel { width: 100%; min-height: 80vh; height: auto; }
    .cc-hs-mobile-swipe .cc-hs-sticky { overflow-x: auto; scroll-snap-type: x mandatory; }
    .cc-hs-mobile-swipe .cc-hs-track { width: fit-content; }
    .cc-hs-mobile-swipe .cc-hs-panel { scroll-snap-align: start; min-height: 80vh; height: 80vh; }
}
