/* =============================================
   LUXURY LINE - Hero
   ============================================= */

.lux-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* Height tracks the viewport width at the image's own aspect ratio (2.4:1,
   matching the recommended 1920×800 / 3840×1600 uploads), clamped between a
   floor and a ceiling per size. Inside that range, the section's aspect
   ratio equals the image's aspect ratio exactly — object-fit:cover then has
   nothing to crop, it only scales uniformly. That's what makes this work
   identically on a 1366px laptop and a 1920px desktop without a second
   image and without the "zoomed in" look a flat height causes on anything
   narrower than its one ideal width.

   Outside the clamped range: below the floor's ideal width, height stops
   shrinking and cropping resumes (expected on narrow desktop windows —
   phones get their own crop below 767px anyway). Above the ceiling's ideal
   width, height stops growing and the section relies on the Desktop Wide
   image (if provided) to avoid upscaling past 1920px source width.

   .lux-hero__inner is a normal-flow flex child, but because height is
   always an explicit formula (never "auto"), long copy can never stretch
   the box past what the image was cropped for. */
.lux-hero--banner {
    height: clamp(300px, calc(100vw / 2.4), 350px);
    min-height: 300px;
}

.lux-hero--medium {
    height: clamp(420px, calc(100vw / 2.4), 500px);
    min-height: 420px;
}

.lux-hero--large {
    height: clamp(560px, calc(100vw / 2.4), 800px);
    min-height: 560px;
}

.lux-hero--fullscreen {
    height: 100vh;
    min-height: 700px;
    max-height: 800px; /* matches the GetCropUrl height requested for fullscreen */
}

.lux-hero__media,
.lux-hero__media picture {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}

.lux-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lux-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.lux-hero--overlay-none::after {
    background: transparent;
}

.lux-hero--overlay-light::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.lux-hero--overlay-dark::after {
    background: linear-gradient(180deg, rgba(15, 12, 10, 0.24) 0%, rgba(15, 12, 10, 0.58) 100%);
}

.lux-hero--bg-white {
    background: #fff;
}

.lux-hero--bg-cream {
    background: linear-gradient(180deg, #f7f2ea 0%, #efe7dc 100%);
}

.lux-hero--bg-dark {
    background: linear-gradient(180deg, #2a241f 0%, #171310 100%);
}

.lux-hero__inner {
    position: relative;
    width: 100%;
    padding-top: clamp(72px, 10vw, 128px);
    padding-bottom: clamp(72px, 10vw, 128px);
}

.lux-hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 760px;
}

.lux-hero--left .lux-hero__content {
    margin-right: auto;
    text-align: left;
    align-items: flex-start;
}

.lux-hero--center .lux-hero__content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.lux-hero--right .lux-hero__content {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}

.lux-hero__title {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(44px, 6vw, 60px);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: var(--color-text-white);
    font-weight: var(--font-weight-bold);
}

.lux-hero--overlay-none .lux-hero__title,
.lux-hero--bg-white .lux-hero__title,
.lux-hero--bg-cream .lux-hero__title {
    color: var(--color-text-white);
}

.lux-hero--overlay-light .lux-hero__title,
.lux-hero--overlay-dark .lux-hero__title,
.lux-hero--bg-dark .lux-hero__title {
    color: #fff;
}

.lux-hero__subtitle {
    margin: 0;
    max-width: 58ch;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.45;
    font-weight: var(--font-weight-normal);
}

.lux-hero--overlay-none .lux-hero__subtitle,
.lux-hero--bg-white .lux-hero__subtitle,
.lux-hero--bg-cream .lux-hero__subtitle {
    color: var(--color-text);
}

.lux-hero--overlay-light .lux-hero__subtitle,
.lux-hero--overlay-dark .lux-hero__subtitle,
.lux-hero--bg-dark .lux-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.lux-hero__cta {
    margin-top: 10px;
}

@media (max-width: 767px) {
    /* banner/medium/large need no override here — the clamp() formula above
       already reaches their mobile floor smoothly as the viewport narrows. */

    .lux-hero--fullscreen {
        height: 100svh;
        min-height: 560px;
        max-height: 700px; /* matches the GetCropUrl height requested for fullscreen on mobile */
    }

    .lux-hero__inner {
        padding-top: 88px;
        padding-bottom: 72px;
    }

    .lux-hero__content {
        gap: 14px;
    }

    .lux-hero__title {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: clamp(34px, 10vw, 54px);
    }

    .lux-hero__subtitle {
        font-size: 16px;
    }
}
