/* ==========================================================================
   ACF Home Hero Block Styles
   ========================================================================== */

.home-hero {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    background-color: #06281d;
    color: #fff;
    --home-hero-slide-min-height: calc(var(--home-hero-vh, 1vh) * 50);
    min-height: var(--home-hero-slide-min-height);
    isolation: isolate;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
}

.no-header-page-layout .home-hero,
.no-header-page-layout .no-header-page__content .home-hero,
.lighthouse-contact-page-layout .home-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.home-hero--inner-page,
.home-hero--contact-page,
.no-header-page-layout .home-hero--inner-page,
.lighthouse-contact-page-layout .home-hero,
.has-contact-page-block .home-hero,
.lighthouse-service-page-layout .home-hero,
.has-service-page-block .home-hero {
    --home-hero-slide-min-height: clamp(520px, 68dvh, 600px);
    min-height: var(--home-hero-slide-min-height);
}

@media (min-width: 1024px) {
    .home-hero--contact-page,
    .lighthouse-contact-page-layout .home-hero,
    .has-contact-page-block .home-hero,
    .home-hero--inner-page,
    .no-header-page-layout .home-hero--inner-page,
    .lighthouse-service-page-layout .home-hero,
    .has-service-page-block .home-hero {
        --home-hero-slide-min-height: 760px;
        min-height: var(--home-hero-slide-min-height);
    }
}

.home-hero.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    width: 100vw;
    max-width: 100vw;
}

.home-hero.alignwide {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    width: 100vw;
    max-width: 100vw;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(6, 40, 29, 0.68) 0%,
            rgba(6, 40, 29, 0.42) 22%,
            rgba(6, 40, 29, 0.16) 38%,
            transparent 48%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.12) 34%,
            rgba(0, 0, 0, 0.12) 58%,
            rgba(0, 0, 0, 0.7) 100%
        );
}

.home-hero:not(.home-hero--has-image) .home-hero__overlay {
    background: linear-gradient(180deg, #06281d 0%, #042116 100%);
}

.home-hero__content-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.home-hero__container {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.home-hero__content {
    position: absolute;
    left: 96px;
    bottom: 120px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 820px;
    margin: 0;
    text-align: left;
    color: #fff;
    pointer-events: auto;
}

.home-hero__subtitle {
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.home-hero__subtitle::before {
    content: "";
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
    display: inline-block;
}

.home-hero__title {
    margin: 0.75rem 0 30px;
    font-family: var(--font-family-cormorant, "Cormorant Garamond", "Times New Roman", serif);
    font-size: clamp(2.1rem, 6.1vw, 3.7rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    max-width: 22ch;
}

.home-hero--inner-page .home-hero__content,
.home-hero--contact-page .home-hero__content,
.has-contact-page-block .home-hero__content,
.lighthouse-contact-page-layout .home-hero__content,
.lighthouse-service-page-layout .home-hero__content,
.has-service-page-block .home-hero__content {
    top: clamp(6.5rem, 16vw, 8.5rem);
    bottom: clamp(2.5rem, 6vw, 4rem);
    right: 96px;
}

.home-hero--inner-page.home-hero--has-breadcrumbs .home-hero__content,
.home-hero--contact-page.home-hero--has-breadcrumbs .home-hero__content,
.has-contact-page-block .home-hero--has-breadcrumbs .home-hero__content,
.lighthouse-contact-page-layout .home-hero--has-breadcrumbs .home-hero__content,
.lighthouse-service-page-layout .home-hero--has-breadcrumbs .home-hero__content,
.has-service-page-block .home-hero--has-breadcrumbs .home-hero__content {
    top: clamp(6.5rem, 16vw, 8.5rem);
    bottom: clamp(2.5rem, 6vw, 4rem);
}

.home-hero--contact-page .home-hero__title,
.has-contact-page-block .home-hero__title,
.lighthouse-contact-page-layout .home-hero__title {
    margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.home-hero__description {
    margin: 0;
    font-size: clamp(0.95rem, 1.45vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
    max-width: 600px;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    align-self: flex-start;
    width: min(100%, 22rem);
    min-width: 0;
    margin-top: 1.35rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-family: Helvetica, Arial, sans-serif;
    background: rgba(255, 255, 255, 0.02);
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.home-hero__link::after {
    content: "\2192";
    font-size: 0.9rem;
    letter-spacing: 0;
}

.home-hero__link:hover,
.home-hero__link:focus-visible {
    color: #102217;
    border-color: #fff;
    background: #fff;
}

.home-hero .hero-breadcrumbs {
    z-index: 3;
}

.home-hero .hero-breadcrumbs .container {
    text-align: center;
}

.home-hero .hero-breadcrumbs .breadcrumb-navigation {
    display: inline-block;
    text-align: center;
}

.home-hero--has-breadcrumbs .home-hero__content {
    bottom: 140px;
}

.home-hero__empty {
    position: relative;
    z-index: 2;
    margin: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

@media (max-width: 1100px) {
    .home-hero__content {
        left: 48px;
        right: 48px;
        bottom: 100px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .home-hero__content {
        left: 24px;
        right: 24px;
        bottom: 80px;
    }

    .home-hero--inner-page .home-hero__content,
    .home-hero--contact-page .home-hero__content,
    .has-contact-page-block .home-hero__content,
    .lighthouse-contact-page-layout .home-hero__content,
    .lighthouse-service-page-layout .home-hero__content,
    .has-service-page-block .home-hero__content {
        top: clamp(7.5rem, 24vw, 9.5rem);
        bottom: clamp(2rem, 5vw, 3rem);
        right: 24px;
    }

    .home-hero--contact-page .home-hero__title,
    .has-contact-page-block .home-hero__title,
    .lighthouse-contact-page-layout .home-hero__title {
        margin-top: clamp(1.25rem, 4vw, 2rem);
    }

    .home-hero__link {
        width: 50%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-hero__title {
        font-size: clamp(1.95rem, 9vw, 2.7rem);
    }

    .home-hero__link {
        width: 50%;
    }
}
