/**
 * LNMC homepage hero slider.
 * Brand: green #1B5E20, gold #FFB300, cream #FFF8E1, deep forest #0B1B0D.
 *
 * Several homepage rules in style.css use !important (e.g. `html body.home p`),
 * so the few hero rules that must beat them carry matching specificity and
 * !important. Everything else stays ordinary.
 */

/* Full-bleed: undo the homepage row width so the hero spans the viewport.
   Homepage rows are flex with a column gap, and Divi's clearfix ::after
   counts as a flex item, so the gap is zeroed too. */
body.home .lnmc-hero-section .et_pb_row,
body.home .lnmc-hero-section .et_pb_column {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.lnmc-hero {
    /* Text and deck align to the site's 1120px content frame. */
    --hero-frame: max(24px, calc((100% - 1120px) / 2));

    position: relative;
    width: 100%;
    min-height: min(85vh, 760px);
    min-height: min(85dvh, 760px);
    overflow: hidden;
    background: #0B1B0D;
    color: #FFF8E1;
}

.lnmc-hero *,
.lnmc-hero *::before,
.lnmc-hero *::after {
    box-sizing: border-box;
}

.lnmc-hero__track {
    position: relative;
    min-height: inherit;
}

.lnmc-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 1;
}

.lnmc-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.lnmc-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lnmc-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lnmc-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(11, 27, 13, 0.94) 0%, rgba(11, 27, 13, 0.82) 40%, rgba(11, 27, 13, 0.3) 70%, rgba(11, 27, 13, 0.08) 100%);
}

/* Slide 3: green pattern, with poster/video layered on top on desktop. */
.lnmc-hero__media--graphic {
    background: radial-gradient(circle at 65% 50%, #13421A 0%, #0D3311 50%, #0B1B0D 100%);
}

.lnmc-hero__graphic-bg,
.lnmc-hero__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lnmc-hero__video {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lnmc-hero__video-caption {
    position: absolute;
    right: var(--hero-frame);
    bottom: 1.25rem;
    z-index: 3;
    display: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(11, 27, 13, 0.82);
    color: #FFF8E1;
    font-size: 0.75rem;
}

@media (min-width: 1024px) {
    .lnmc-hero__video,
    .lnmc-hero__video-caption {
        display: block;
    }
}

/* Slides 2 and 4 (split): the photo is a right-hand panel beside solid green, so
   no face ever sits behind the text. Full-bleed again on phones, where the
   text sits below the faces. */
@media (min-width: 768px) {
    .lnmc-hero__slide--split {
        background: #0B1B0D;
    }

    .lnmc-hero__slide--split .lnmc-hero__media {
        left: 46%;
    }

    .lnmc-hero__slide--split .lnmc-hero__overlay {
        background: linear-gradient(to right, #0B1B0D 0%, rgba(11, 27, 13, 0) 30%);
    }
}

/* Text ------------------------------------------------------------------ */

.lnmc-hero__content {
    position: absolute;
    left: var(--hero-frame);
    bottom: max(5.5rem, 14%);
    z-index: 4;
    width: min(560px, calc(100% - 48px));
    text-align: left;
}

html body.home .lnmc-hero .lnmc-hero__content p {
    text-align: left !important;
}

.lnmc-hero h1.lnmc-hero__title,
.lnmc-hero h2.lnmc-hero__title {
    margin: 0 0 1rem !important;
    padding: 0 !important;
    color: #FFF8E1 !important;
    font-family: "Cormorant Garamond", "Amiri", Georgia, serif !important;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-wrap: balance;
}

html body.home .lnmc-hero p.lnmc-hero__desc {
    max-width: 46ch;
    margin: 0 0 1.75rem;
    padding: 0;
    color: rgba(255, 248, 225, 0.92) !important;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
}

.lnmc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body.home .lnmc-hero a.lnmc-hero__cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s;
}

body.home .lnmc-hero a.lnmc-hero__cta:hover {
    transform: translateY(-2px);
}

body.home .lnmc-hero a.lnmc-hero__cta:focus-visible {
    outline: 3px solid #FFF8E1;
    outline-offset: 3px;
}

body.home .lnmc-hero a.lnmc-hero__cta--gold,
body.home .lnmc-hero a.lnmc-hero__cta--gold:hover {
    background: #FFB300;
    color: #0B1B0D;
}

body.home .lnmc-hero a.lnmc-hero__cta--cream,
body.home .lnmc-hero a.lnmc-hero__cta--cream:hover {
    background: #FFF8E1;
    color: #1B5E20;
}

/* Card deck: only where it can sit clear of the text column. ------------ */

.lnmc-hero__deck {
    position: absolute;
    right: var(--hero-frame);
    bottom: max(5.5rem, 14%);
    z-index: 5;
    display: none;
    gap: 1rem;
}

@media (min-width: 1200px) {
    .lnmc-hero__deck {
        display: flex;
    }
}

.lnmc-hero__card {
    position: relative;
    width: 140px;
    height: 180px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 248, 225, 0.6);
    border-radius: 12px;
    background: #0D3311;
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s, border-color 0.25s;
}

.lnmc-hero__card:hover,
.lnmc-hero__card:focus-visible {
    transform: translateY(-6px);
    border-color: #FFB300;
}

.lnmc-hero__card:focus-visible {
    outline: 3px solid #FFF8E1;
    outline-offset: 3px;
}

.lnmc-hero__card-thumb {
    position: absolute;
    inset: 0;
}

.lnmc-hero__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lnmc-hero__card-text {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.5rem 0.6rem 0.6rem;
    background: linear-gradient(to top, rgba(11, 27, 13, 0.96) 35%, transparent);
}

.lnmc-hero__card-label {
    display: block;
    color: #FFF8E1;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Controls -------------------------------------------------------------- */

.lnmc-hero__controls {
    position: absolute;
    left: var(--hero-frame);
    bottom: 1.5rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lnmc-hero__arrow,
.lnmc-hero__pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 248, 225, 0.55);
    border-radius: 50%;
    background: rgba(11, 27, 13, 0.7);
    color: #FFF8E1;
    cursor: pointer;
}

.lnmc-hero__arrow:hover,
.lnmc-hero__pause:hover {
    border-color: #FFB300;
    color: #FFB300;
}

.lnmc-hero__arrow:focus-visible,
.lnmc-hero__pause:focus-visible,
.lnmc-hero__dot:focus-visible {
    outline: 3px solid #FFF8E1;
    outline-offset: 2px;
}

.lnmc-hero__dots {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 24px hit area around a 10px visible dot. */
.lnmc-hero__dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.lnmc-hero__dot::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: rgba(255, 248, 225, 0.55);
    transition: transform 0.2s;
}

.lnmc-hero__dot.is-active::before {
    background: #FFB300;
    transform: scale(1.3);
}

.lnmc-hero__pause .lnmc-hero__icon-play,
.lnmc-hero__pause[aria-pressed="true"] .lnmc-hero__icon-pause {
    display: none;
}

.lnmc-hero__pause[aria-pressed="true"] .lnmc-hero__icon-play {
    display: block;
}

/* Phones: text below the faces, over a bottom-up gradient. -------------- */

@media (max-width: 767px) {
    .lnmc-hero {
        min-height: 82vh;
        min-height: 82dvh;
    }

    .lnmc-hero__overlay {
        background: linear-gradient(to top, rgba(11, 27, 13, 0.97) 0%, rgba(11, 27, 13, 0.88) 42%, rgba(11, 27, 13, 0.2) 75%, rgba(11, 27, 13, 0) 100%);
    }

    .lnmc-hero__content {
        bottom: 5rem;
        width: calc(100% - 48px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lnmc-hero__slide {
        transition: opacity 0.18s ease-in-out, visibility 0.18s;
    }

    .lnmc-hero__card,
    body.home .lnmc-hero a.lnmc-hero__cta,
    .lnmc-hero__dot::before {
        transition: none;
    }
}
