
/*
 * LIFECHANGE — HERO SLIDER
 * File: assets/css/hero-slider.css
 *
 * Breakpoints:
 * Desktop: 1080px+
 * Tablet: 768px–1079px
 * Mobile: 767px and below
 */


/* =========================================
   1. BASE
========================================= */

.lc-hero {
    --lc-hero-green: #12351b;
    --lc-hero-dark: #102b16;
    --lc-hero-accent: #b9d89a;
    --lc-hero-white: #ffffff;

    position: relative;
    width: 100%;
    isolation: isolate;
}

.lc-hero,
.lc-hero * {
    box-sizing: border-box;
}

.lc-hero__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--lc-hero-green);
}

/* Avoid showing all slides before Slick initialises. */
.lc-hero__slider:not(.slick-initialized)
.lc-hero__slide:not(:first-child) {
    display: none;
}

.lc-hero__slider .slick-list,
.lc-hero__slider .slick-track {
    height: 100%;
}

.lc-hero__slide {
    position: relative;
    display: block;
    width: 100%;
    height: 750px;
    min-height: 750px;
    overflow: hidden;
    isolation: isolate;

    background: var(--lc-panel-color, #12351b);
    color: var(--lc-text-color, #ffffff);
}

.lc-hero__slide:focus {
    outline: none;
}

.lc-hero__slider .slick-slide {
    height: 750px;
}

.lc-hero__slider .slick-slide > div {
    height: 100%;
}


/* =========================================
   2. BACKGROUND MEDIA
========================================= */

.lc-hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;

    background: #dce2d8;
}

.lc-hero__picture {
    position: absolute;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lc-hero__background-image,
.lc-hero__video {
    position: absolute;
    display: block;

    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.lc-hero__video {
    z-index: 2;
}

/* Background focal points */

.lc-hero__slide--focus-center
.lc-hero__background-image,
.lc-hero__slide--focus-center
.lc-hero__video {
    object-position: center;
}

.lc-hero__slide--focus-left
.lc-hero__background-image,
.lc-hero__slide--focus-left
.lc-hero__video {
    object-position: left center;
}

.lc-hero__slide--focus-right
.lc-hero__background-image,
.lc-hero__slide--focus-right
.lc-hero__video {
    object-position: right center;
}

.lc-hero__slide--focus-top
.lc-hero__background-image,
.lc-hero__slide--focus-top
.lc-hero__video {
    object-position: center top;
}

.lc-hero__slide--focus-bottom
.lc-hero__background-image,
.lc-hero__slide--focus-bottom
.lc-hero__video {
    object-position: center bottom;
}



/* =========================================
   3. COLOURED TEXT PANEL
========================================= */

.lc-hero__panel {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;

    width: var(--lc-panel-width, 55%);
    height: 100%;

    /*
     * Dark translucent green gradient.
     * The background image remains subtly visible.
     */
    background:
        radial-gradient(
            ellipse at 80% 55%,
            rgba(65, 91, 68, 0.16) 0%,
            rgba(0, 0, 0, 0) 65%
        ),
        linear-gradient(
            100deg,
            rgba(9, 36, 19, 0.97) 0%,
            rgba(13, 43, 23, 0.94) 55%,
            rgba(19, 49, 28, 0.90) 100%
        );

    pointer-events: none;
}

/*
 * Gentle curved edge.
 *
 * Instead of using a 50% horizontal radius,
 * use an 80px radius with a 50% vertical radius.
 *
 * This creates a subtle, elongated curve
 * rather than a large semicircle.
 */

.lc-hero__slide--layered
.lc-hero__panel,
.lc-hero__slide--background_only
.lc-hero__panel {
    width: calc(var(--lc-panel-width, 55%) + 20px);

    border-top-right-radius: 80px 50%;
    border-bottom-right-radius: 80px 50%;
}

/* Panel positioned on the right */

.lc-hero__slide--text-right
.lc-hero__panel {
    left: auto;
    right: 0;
}

/* Reverse the curved edge for right-side panels */

.lc-hero__slide--layered.lc-hero__slide--text-right
.lc-hero__panel,
.lc-hero__slide--background_only.lc-hero__slide--text-right
.lc-hero__panel {
    border-radius: 0;

    border-top-left-radius: 80px 50%;
    border-bottom-left-radius: 80px 50%;
}


/* =========================================
   4. SIMPLE SPLIT STYLE
========================================= */

.lc-hero__slide--split
.lc-hero__panel {
    width: var(--lc-panel-width, 55%);
    border-radius: 0;
}

.lc-hero__slide--split.lc-hero__slide--text-right
.lc-hero__panel {
    left: auto;
    right: 0;
}


/* =========================================
   5. FOREGROUND IMAGE
========================================= */

.lc-hero__foreground {
    position: absolute;
    z-index: 5;
    bottom: 0;
    right: -3%;

    width: 58%;
    height: 108%;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    pointer-events: none;
}

.lc-hero__foreground-image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;

    object-fit: cover;
    object-position: left bottom;

    transform-origin: center bottom;
}

/* Foreground position */

.lc-hero__slide--foreground-left
.lc-hero__foreground {
    left: 0;
    right: auto;
}

.lc-hero__slide--foreground-center
.lc-hero__foreground {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.lc-hero__slide--foreground-right
.lc-hero__foreground {
    left: auto;
    right: 0;
}

/* Foreground size */

.lc-hero__slide--foreground-small
.lc-hero__foreground {
    width: 32%;
}

.lc-hero__slide--foreground-medium
.lc-hero__foreground {
    width: 40%;
}

.lc-hero__slide--foreground-large
.lc-hero__foreground {
    width: 50%;
}


/* =========================================
   6. CONTENT CONTAINER
========================================= */

.lc-hero__content-container {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;

    width: 80%;
    max-width: 1500px;
    height: 100%;

    margin: 0 auto;
}

.lc-hero__content {
    width: 100%;
    max-width: 620px;

    padding: 40px 0;

    color: var(--lc-text-color, #ffffff);
}

.lc-hero__slide--text-right
.lc-hero__content-container {
    justify-content: flex-end;
}

.lc-hero__slide--text-right
.lc-hero__content {
    text-align: right;
}


/* =========================================
   7. TYPOGRAPHY
========================================= */

.lc-hero__eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--lc-text-color, #ffffff);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lc-hero__heading {
    margin: 0 0 25px;
    padding: 0;

    max-width: 620px;

    color: var(--lc-text-color, #ffffff);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.8px;

    overflow-wrap: break-word;
}

.lc-hero__description {
    max-width: 530px;

    color: var(--lc-text-color, #ffffff);

    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

.lc-hero__description p {
    margin: 0 0 16px;
    padding: 0;

    color: inherit;
}

.lc-hero__description p:last-child {
    margin-bottom: 0;
}

.lc-hero__slide--text-right
.lc-hero__description {
    margin-left: auto;
}


/* =========================================
   8. BUTTON
========================================= */

.lc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 32px;
}

.lc-hero__slide--text-right
.lc-hero__actions {
    justify-content: flex-end;
}

.lc-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    padding: 13px 25px;

    border: 2px solid #ffffff;
    border-radius: 4px;

    background: #ffffff;
    color: #173b20;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.lc-hero__button:hover {
    background: #e4eddf;
    border-color: #e4eddf;
    color: #173b20;

    text-decoration: none;
    transform: translateY(-2px);
}

.lc-hero__button:focus-visible {
    outline: 3px solid #f4d35e;
    outline-offset: 4px;
}

.lc-hero__button-icon {
    font-size: 21px;
    line-height: 1;
}


/* =========================================
   9. SLIDER CONTROLS
========================================= */

.lc-hero__controls {
    position: absolute;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);
}

.lc-hero__arrow,
.lc-hero__autoplay-toggle,
.lc-hero__video-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #ffffff;
    border-radius: 50%;

    background: #12351b;
    color: #ffffff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.lc-hero__arrow:hover,
.lc-hero__autoplay-toggle:hover,
.lc-hero__video-toggle:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #173b20;
}

.lc-hero__arrow:focus-visible,
.lc-hero__autoplay-toggle:focus-visible,
.lc-hero__video-toggle:focus-visible {
    outline: 3px solid #f4d35e;
    outline-offset: 3px;
}

/* Slick dots */

.lc-hero__dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-hero__dots .slick-dots {
    position: static;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: auto;
    margin: 0;
    padding: 0;

    list-style: none;
}

.lc-hero__dots .slick-dots li {
    display: block;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;
}

.lc-hero__dots .slick-dots button {
    display: block;

    width: 12px;
    height: 12px;

    padding: 0;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: transparent;

    font-size: 0;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.lc-hero__dots .slick-dots button::before {
    display: none;
}

.lc-hero__dots .slick-dots .slick-active button {
    background: #ffffff;
    transform: scale(1.15);
}

.lc-hero__dots .slick-dots button:focus-visible {
    outline: 3px solid #f4d35e;
    outline-offset: 4px;
}

.lc-hero__video-toggle {
    position: absolute;
    z-index: 11;

    right: 25px;
    bottom: 25px;
}

.lc-hero__video-toggle[hidden] {
    display: none !important;
}


/* =========================================
   10. SLIDE ENTRANCE ANIMATIONS
========================================= */

@keyframes lcHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lcHeroForegroundIn {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lc-hero__slider.slick-initialized
.lc-hero__eyebrow,
.lc-hero__slider.slick-initialized
.lc-hero__heading,
.lc-hero__slider.slick-initialized
.lc-hero__description,
.lc-hero__slider.slick-initialized
.lc-hero__actions {
    opacity: 0;
}

.lc-hero__slider.slick-initialized
.slick-current .lc-hero__eyebrow {
    animation: lcHeroFadeUp 0.6s ease 0.1s both;
}

.lc-hero__slider.slick-initialized
.slick-current .lc-hero__heading {
    animation: lcHeroFadeUp 0.65s ease 0.2s both;
}

.lc-hero__slider.slick-initialized
.slick-current .lc-hero__description {
    animation: lcHeroFadeUp 0.65s ease 0.3s both;
}

.lc-hero__slider.slick-initialized
.slick-current .lc-hero__actions {
    animation: lcHeroFadeUp 0.65s ease 0.4s both;
}

.lc-hero__slider.slick-initialized
.slick-current .lc-hero__foreground-image {
    animation: lcHeroForegroundIn 0.8s ease 0.15s both;
}


/* =========================================
   11. TABLET
   768px – 1079px
========================================= */

@media (min-width: 768px) and (max-width: 1079px) {

    .lc-hero__slide,
    .lc-hero__slider .slick-slide {
        height: 560px;
        min-height: 560px;
    }

    .lc-hero__content-container {
        width: 88%;
    }

    .lc-hero__content {
        max-width: 480px;
    }

    .lc-hero__heading {
        font-size: 38px;
        line-height: 1.2;
    }

    .lc-hero__description {
        font-size: 16px;
        line-height: 1.65;
    }

    .lc-hero__eyebrow {
        font-size: 12px;
    }

    .lc-hero__slide--layered
    .lc-hero__panel,
    .lc-hero__slide--background_only
    .lc-hero__panel {
        width: calc(var(--lc-panel-width, 55%) + 40px);
    }

    .lc-hero__slide--foreground-large
    .lc-hero__foreground {
        width: 44%;
    }

    .lc-hero__slide--foreground-medium
    .lc-hero__foreground {
        width: 38%;
    }

    .lc-hero__slide--foreground-small
    .lc-hero__foreground {
        width: 30%;
    }

    .lc-hero__controls {
        bottom: 18px;
    }
}


/* =========================================
   12. MOBILE
   767px AND BELOW
========================================= */

@media (max-width: 767px) {

    .lc-hero__slider {
        overflow: hidden;
    }

    .lc-hero__slide,
    .lc-hero__slider .slick-slide {
        height: auto;
        min-height: 0;
    }

    .lc-hero__slide {
        display: flex;
        flex-direction: column;
    }

    /*
     * Mobile media area.
     * Image/video appears above text.
     */
    .lc-hero__background {
        position: relative;
        inset: auto;

        width: 100%;
        height: 270px;

        flex: 0 0 270px;
    }

    .lc-hero__picture,
    .lc-hero__background-image,
    .lc-hero__video {
        width: 100%;
        height: 100%;
    }

    /*
     * Remove desktop curved panel.
     */
    .lc-hero__panel {
        display: none;
    }

    /*
     * Foreground cutouts are hidden on mobile
     * to preserve a clean composition.
     */
    .lc-hero__foreground {
        display: none;
    }

    /*
     * Solid text section.
     */
    .lc-hero__content-container {
        position: relative;
        display: flex;
        align-items: center;

        width: 100%;
        max-width: none;
        height: auto;

        min-height: 340px;
        padding: 38px 7% 100px;

        background: var(--lc-panel-color, #12351b);
    }

    .lc-hero__content {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .lc-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .lc-hero__heading {
        max-width: none;

        margin-bottom: 20px;

        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .lc-hero__description {
        max-width: none;

        font-size: 16px;
        line-height: 1.65;
    }

    .lc-hero__actions {
        margin-top: 26px;
    }

    .lc-hero__button {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .lc-hero__slide--text-right
    .lc-hero__content-container {
        justify-content: flex-start;
    }

    .lc-hero__slide--text-right
    .lc-hero__content {
        text-align: left;
    }

    .lc-hero__slide--text-right
    .lc-hero__description {
        margin-left: 0;
    }

    .lc-hero__slide--text-right
    .lc-hero__actions {
        justify-content: flex-start;
    }

    /*
     * Slider controls remain below text.
     */
    .lc-hero__controls {
        bottom: 22px;
        gap: 12px;
    }

    .lc-hero__arrow,
    .lc-hero__autoplay-toggle,
    .lc-hero__video-toggle {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .lc-hero__video-toggle {
        bottom: auto;
        top: 216px;
        right: 15px;
    }

}


/* =========================================
   13. SMALL MOBILE
   480px AND BELOW
========================================= */

@media (max-width: 480px) {

    .lc-hero__background {
        height: 230px;
        flex-basis: 230px;
    }

    .lc-hero__content-container {
        padding: 34px 6% 95px;
    }

    .lc-hero__heading {
        font-size: 28px;
    }

    .lc-hero__description {
        font-size: 15px;
    }

    .lc-hero__button {
        width: 100%;
        justify-content: space-between;
    }

    .lc-hero__controls {
        bottom: 18px;
    }

    .lc-hero__video-toggle {
        top: 178px;
    }

}


/* =========================================
   14. ACCESSIBILITY
========================================= */

/*
 * Visible keyboard focus.
 */
.lc-hero a:focus-visible,
.lc-hero button:focus-visible {
    outline: 3px solid #f4d35e;
    outline-offset: 4px;
}

/*
 * Reduced motion preferences.
 */
@media (prefers-reduced-motion: reduce) {

    .lc-hero *,
    .lc-hero *::before,
    .lc-hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .lc-hero__slider.slick-initialized
    .lc-hero__eyebrow,
    .lc-hero__slider.slick-initialized
    .lc-hero__heading,
    .lc-hero__slider.slick-initialized
    .lc-hero__description,
    .lc-hero__slider.slick-initialized
    .lc-hero__actions {
        opacity: 1;
    }

}


/* =========================================
   15. AVADA COMPATIBILITY
========================================= */

.lc-hero h1,
.lc-hero h2,
.lc-hero h3,
.lc-hero p {
    color: inherit;
}

.lc-hero__heading {
    color: var(--lc-text-color, #ffffff) !important;
}

.lc-hero__eyebrow,
.lc-hero__description,
.lc-hero__description p {
    color: var(--lc-text-color, #ffffff) !important;
}

.lc-hero__button,
.lc-hero__button:hover {
    text-decoration: none !important;
}

/* Remove unwanted theme spacing inside the hero. */
.lc-hero__content > :first-child {
    margin-top: 0;
}

.lc-hero__content > :last-child {
    margin-bottom: 0;
}



/* Ensure controls marked as hidden are not displayed. */

.lc-hero__controls[hidden],
.lc-hero__controls button[hidden],
.lc-hero__dots[hidden] {
    display: none !important;
}

/* Keep controls above the foreground image. */

.lc-hero__controls,
.lc-hero__video-toggle {
    z-index: 20;
}
