/* LifeChild Hero Slider — v1.0.0 */

/* ═══════════════════════════════
   Slider container
═══════════════════════════════ */

.lchs-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #1a1a1a;
    user-select: none;
}

/* ═══════════════════════════════
   Progress bar
═══════════════════════════════ */

.lchs-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 20;
}

.lchs-progress-fill {
    height: 100%;
    width: 0%;
    background: #E05A2B;
    transition: width linear;
}

/* ═══════════════════════════════
   Track (slide / fade)
═══════════════════════════════ */

.lchs-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* Fade mode overrides */
.lchs-slider[data-transition="fade"] .lchs-track {
    display: block;
}

.lchs-slider[data-transition="fade"] .lchs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.lchs-slider[data-transition="fade"] .lchs-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════
   Individual slide
═══════════════════════════════ */

.lchs-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 70vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Image zoom on active */
.lchs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
    transform: scale(1.06);
    z-index: 0;
}

.lchs-slide.is-active::before {
    transform: scale(1);
}

/* Overlay */
.lchs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ═══════════════════════════════
   Slide content
═══════════════════════════════ */

.lchs-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 32px;
    color: #ffffff;
}

/* Alignment */
.lchs-align-center {
    margin: 0 auto;
    text-align: center;
}

.lchs-align-left {
    margin: 0 auto 0 0;
    text-align: left;
}

.lchs-align-right {
    margin: 0 0 0 auto;
    text-align: right;
}

/* Content wrapper for slide animation */
.lchs-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lchs-slide.is-active .lchs-content > * { opacity: 1; transform: translateY(0); }
.lchs-slide.is-active .lchs-content > *:nth-child(1) { transition-delay: 0.2s; }
.lchs-slide.is-active .lchs-content > *:nth-child(2) { transition-delay: 0.35s; }
.lchs-slide.is-active .lchs-content > *:nth-child(3) { transition-delay: 0.5s; }
.lchs-slide.is-active .lchs-content > *:nth-child(4) { transition-delay: 0.65s; }

/* Label */
.lchs-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
    opacity: 0.8;
}

/* Heading */
.lchs-heading {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
}

/* Subtext */
.lchs-subtext {
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.65;
    margin: 0 0 32px;
    opacity: 0.9;
}

/* ═══════════════════════════════
   Buttons
═══════════════════════════════ */

.lchs-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.lchs-align-center .lchs-buttons { justify-content: center; }
.lchs-align-right  .lchs-buttons { justify-content: flex-end; }

.lchs-btn {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
}

.lchs-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Solid */
.lchs-btn--solid {
    background: #E05A2B;
    color: #ffffff;
    border-color: #E05A2B;
}

.lchs-btn--solid:hover {
    background: #c44d22;
    border-color: #c44d22;
    color: #ffffff;
}

/* Outline */
.lchs-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.lchs-btn--outline:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* Ghost */
.lchs-btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.lchs-btn--ghost::after {
    content: ' →';
    transition: margin-left 0.15s;
}

.lchs-btn--ghost:hover::after {
    margin-left: 4px;
}

/* ═══════════════════════════════
   Navigation arrows
═══════════════════════════════ */

.lchs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    opacity: 1;
    padding: 0;
}

.lchs-arrow svg {
    stroke: #ffffff;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.lchs-arrow:hover {
    background: rgba(0,0,0,0.52);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.08);
}

.lchs-arrow--prev { left: 20px; }
.lchs-arrow--next { right: 20px; }

.lchs-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ═══════════════════════════════
   Dot navigation
═══════════════════════════════ */

.lchs-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 7px;
    align-items: center;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 7px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
}

.lchs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
    flex-shrink: 0;
}

.lchs-dot.is-active {
    background: #ffffff;
    width: 22px;
    border-radius: 4px;
}

.lchs-dot:hover:not(.is-active) {
    background: rgba(255,255,255,0.72);
}

/* ═══════════════════════════════
   Responsive
═══════════════════════════════ */

@media (max-width: 768px) {
    .lchs-slide        { min-height: 280px; }
    .lchs-content      { padding: 0 20px; }
    .lchs-heading      { font-size: clamp(22px, 7vw, 36px); }
    .lchs-subtext      { font-size: 15px; }
    .lchs-arrow        { width: 36px; height: 36px; }
    .lchs-arrow svg    { width: 15px; height: 15px; }
    .lchs-dots         { bottom: 16px; padding: 5px 10px; gap: 6px; }
    .lchs-dot          { width: 6px; height: 6px; }
    .lchs-dot.is-active{ width: 18px; }
    .lchs-arrow--prev  { left: 10px; }
    .lchs-arrow--next  { right: 10px; }
    .lchs-btn          { font-size: 14px; padding: 10px 20px; }
    .lchs-buttons      { gap: 10px; }
}

@media (max-width: 480px) {
    .lchs-buttons      { flex-direction: column; align-items: flex-start; }
    .lchs-align-center .lchs-buttons { align-items: center; }
    .lchs-align-right  .lchs-buttons { align-items: flex-end; }
}
