/* Services and Amenities Hero — values pulled directly from Figma
   (file 0KinpiFkveoT91a5qAunkk, node 473:11). assets/shared.css is the only
   global stylesheet and carries just the font @import, so colors, fonts, and
   sizes are hardcoded per block. */

.servicesAmenitiesHero {
    position: relative;
    display: flex;
    min-height: 589px;
    overflow: hidden;
    background: #385723;
    /* Break out of the theme's content column to fill the full viewport */
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
}

/* ── Background photo ── */

.servicesAmenitiesHero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.servicesAmenitiesHero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Diagonal green gradient — solid at the bottom-left, clear toward upper-right ── */

.servicesAmenitiesHero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(26.71deg, rgba(56, 87, 35, 0.95) 14.1%, rgba(56, 87, 35, 0) 52.9%);
    pointer-events: none;
}

/* ── Content — bottom-left, 60px inset ── */

.servicesAmenitiesHero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 15px;
    padding: 60px;
    width: 100%;
}

/* ── Headline ── */

.servicesAmenitiesHero__headline {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 55px;
    line-height: 55px;
    color: #ffffff;
    max-width: 657px;
    margin: 0;
    overflow-wrap: break-word;
}

/* ── Tagline ── */

.servicesAmenitiesHero__subHeadline {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    /* Figma pins this at 35px inside an 844px box, but the tagline is meant to
       hold a single line for as long as it can. Scaling with the viewport and
       dropping the width cap pushes the wrap point well past the design width. */
    font-size: clamp(22px, 2.43vw, 35px);
    line-height: 55px;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 100%;
    margin: 0;
    overflow-wrap: break-word;
}

/* ── Intro copy ── */

.servicesAmenitiesHero__body {
    font-family: 'Andada Pro', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #ffffff;
    max-width: 719px;
    overflow-wrap: break-word;
}

.servicesAmenitiesHero__body p {
    margin: 0 0 12px;
}

.servicesAmenitiesHero__body p:last-child {
    margin-bottom: 0;
}

.servicesAmenitiesHero__body a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── CTA — brown pill with an inset white keyline (two nested rounded boxes in Figma) ── */

.servicesAmenitiesHero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #a47c48;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.servicesAmenitiesHero__ctaLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* ADA: keeps the tappable area at or above 44x44px */
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    border: 1px solid #ffffff;
    border-radius: 16px;
    font-family: 'Andada Pro', serif;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
}

.servicesAmenitiesHero__cta:hover {
    background: #8a6538;
}

.servicesAmenitiesHero__cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.servicesAmenitiesHero__cta:active {
    transform: scale(0.98);
}

/* ── Tablet ── */

@media (max-width: 1024px) {
    .servicesAmenitiesHero {
        min-height: 500px;
    }

    .servicesAmenitiesHero__content {
        padding: 44px;
    }

    .servicesAmenitiesHero__headline {
        font-size: 42px;
        line-height: 46px;
    }

    .servicesAmenitiesHero__subHeadline {
        line-height: 40px;
    }
}

/* ── Mobile — Figma node 446:424 ── */

@media (max-width: 768px) {
    .servicesAmenitiesHero {
        min-height: 440px;
    }

    /* Steeper angle than desktop so the green stays behind the copy column */
    .servicesAmenitiesHero__overlay {
        background: linear-gradient(56.63deg, rgba(56, 87, 35, 0.95) 14.1%, rgba(56, 87, 35, 0) 52.9%);
    }

    .servicesAmenitiesHero__content {
        padding: 60px 20px;
    }

    .servicesAmenitiesHero__headline {
        font-size: 32px;
        line-height: 1.2;
    }

    .servicesAmenitiesHero__subHeadline {
        font-size: 21px;
        line-height: 1.3;
    }

    .servicesAmenitiesHero__body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Button matches desktop exactly in the mobile design — only guard against
       an over-long CTA label overflowing the narrow viewport. */
    .servicesAmenitiesHero__ctaLabel {
        /* Tighter side padding so a longer CTA label still fits on one line at
           phone widths. white-space stays normal as a safety valve — a label too
           long even for this wraps rather than overflowing the viewport. */
        padding: 12px 12px;
        white-space: normal;
        /* Guards the one case plain wrapping cannot: a single token longer
           than the viewport, whose min-content width would otherwise force
           the shrink-to-fit link wider than the screen. */
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .servicesAmenitiesHero__cta {
        transition: none;
    }

    .servicesAmenitiesHero__cta:active {
        transform: none;
    }
}
