/* ==========================================
   L'OPERA ROYAL - HOME HERO COMPONENT
   Premium image hero
   WebP LCP optimized
   No black background / no gradients
========================================== */

/*
|--------------------------------------------------------------------------
| Expected images from PHP
|--------------------------------------------------------------------------
| Location: assets/images/home/
|
| File name: hero-terrace.webp
| Replace with: Wide premium restaurant terrace hero image optimized for web.
|
| File name: hero-terrace.jpg
| Replace with: JPG fallback of the same hero image.
|--------------------------------------------------------------------------
*/

/* ==========================================
   HERO WRAPPER
========================================== */

.royal-home-hero {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: clamp(620px, 74vh, 760px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 150px 24px 72px;

    color: var(--royal-white);
    text-align: center;

    overflow: hidden;

    background-color: var(--royal-navy);
}

.royal-home-hero.has-fallback-background {
    background-color: var(--royal-navy);
}

/* ==========================================
   REAL HERO IMAGE
   Used for LCP optimization
========================================== */

.royal-home-hero__picture {
    position: absolute;
    inset: 0;
    z-index: 0;

    display: block;
    width: 100%;
    height: 100%;

    overflow: hidden;
    pointer-events: none;
}

.royal-home-hero__img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 1;
    visibility: visible;
}

/* ==========================================
   LEGACY BACKGROUND LAYERS
   Disabled after migration to <picture><img>
========================================== */

.royal-home-hero__background,
.royal-home-hero__background--primary,
.royal-home-hero__background--secondary {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background-image: none !important;
}

/* ==========================================
   OVERLAY
   Solid navy only. No gradient.
========================================== */

.royal-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background-color: rgba(var(--royal-navy-rgb), 0.18);
}

.royal-home-hero.has-fallback-background .royal-home-hero__overlay {
    background-color: rgba(var(--royal-navy-rgb), 0.48);
}

/* ==========================================
   CONTENT
========================================== */

.royal-home-hero__content {
    position: relative;
    z-index: 2;

    width: min(100%, 760px);
    margin-inline: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: clamp(28px, 3vw, 42px) clamp(24px, 4vw, 54px);

    text-align: center;

    transform: translateY(12px);
}

.royal-home-hero__content::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background-color: rgba(var(--royal-navy-rgb), 0.18);
    border: 1px solid rgba(var(--royal-gold-rgb), 0.34);

    -webkit-backdrop-filter: blur(4px) saturate(102%);
    backdrop-filter: blur(4px) saturate(102%);

    box-shadow:
        0 22px 62px rgba(var(--royal-navy-rgb), 0.15),
        0 0 0 1px rgba(var(--royal-gold-rgb), 0.06);

    pointer-events: none;
}

/* ==========================================
   SCRIPT TEXT
========================================== */

.royal-home-hero__script {
    position: relative;
    z-index: 2;

    margin: 0 0 13px;

    color: var(--royal-white);

    font-family: var(--royal-font-script);
    font-size: clamp(34px, 3.3vw, 52px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;

    text-shadow: 0 12px 32px rgba(var(--royal-navy-rgb), 0.42);
}

/* ==========================================
   TITLE
========================================== */

.royal-home-hero__title {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 700px;
    margin: 0 auto;

    color: var(--royal-white);

    font-family: var(--royal-font-heading);
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 0.065em;
    text-transform: uppercase;

    overflow-wrap: normal;
    word-break: normal;

    text-shadow: 0 14px 38px rgba(var(--royal-navy-rgb), 0.42);
}

.royal-home-hero__title span,
.royal-home-hero__title strong {
    color: rgba(var(--royal-gold-rgb), 0.92);
    font-weight: 500;
}

/* ==========================================
   ACTIONS
========================================== */

.royal-home-hero__actions {
    position: relative;
    z-index: 2;

    width: 100%;
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.royal-home-hero__actions .royal-btn {
    min-width: 150px;
    min-height: 39px;
    padding-inline: 22px;

    color: var(--royal-white);
    background-color: rgba(var(--royal-navy-rgb), 0.30);
    border-color: rgba(var(--royal-gold-rgb), 0.74);

    font-size: 9px;
    letter-spacing: 0.12em;

    -webkit-backdrop-filter: blur(6px) saturate(106%);
    backdrop-filter: blur(6px) saturate(106%);
}

.royal-home-hero__actions .royal-btn:hover,
.royal-home-hero__actions .royal-btn:focus-visible {
    color: var(--royal-white);
    background-color: rgba(var(--royal-navy-rgb), 0.56);
    border-color: var(--royal-gold);
}

.royal-home-hero__actions .royal-btn--gold,
.royal-home-hero__actions .royal-btn--outline,
.royal-home-hero__actions .royal-btn--glass,
.royal-home-hero__actions .royal-btn--transparent {
    color: var(--royal-white);
    border-color: rgba(var(--royal-gold-rgb), 0.74);
}

/* ==========================================
   DESKTOP LARGE
========================================== */

@media (min-width: 1440px) {
    .royal-home-hero {
        min-height: clamp(640px, 76vh, 800px);
        padding-top: 150px;
        padding-bottom: 72px;
    }

    .royal-home-hero__content {
        width: min(100%, 780px);
        padding: 40px 58px;

        transform: translateY(16px);
    }

    .royal-home-hero__script {
        font-size: clamp(38px, 3.4vw, 56px);
    }

    .royal-home-hero__title {
        max-width: 720px;
        font-size: clamp(32px, 3.1vw, 50px);
        line-height: 1.18;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1023px) {
    .royal-home-hero {
        min-height: 590px;
        padding: 104px 30px 50px;
    }

    .royal-home-hero__img {
        object-position: center center;
    }

    .royal-home-hero__overlay {
        background-color: rgba(var(--royal-navy-rgb), 0.18);
    }

    .royal-home-hero__content {
        width: min(100%, 520px);
        padding: 26px 26px 24px;

        transform: translateY(8px);
    }

    .royal-home-hero__script {
        margin-bottom: 10px;

        font-size: clamp(30px, 4.4vw, 42px);
    }

    .royal-home-hero__title {
        max-width: 500px;

        font-size: clamp(26px, 4.1vw, 38px);
        line-height: 1.18;
        letter-spacing: 0.048em;
    }

    .royal-home-hero__actions {
        margin-top: 20px;
        gap: 12px;
    }

    .royal-home-hero__actions .royal-btn {
        min-width: 132px;
        min-height: 36px;
        padding-inline: 18px;

        font-size: 8px;
        letter-spacing: 0.10em;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
    .royal-home-hero {
        min-height: 500px;

        align-items: center;

        padding: 82px 18px 36px;
    }

    .royal-home-hero__img {
        object-position: center center;
    }

    .royal-home-hero__overlay {
        background-color: rgba(var(--royal-navy-rgb), 0.14);
    }

    .royal-home-hero__content {
        width: min(100%, 260px);
        max-width: 260px;

        padding: 18px 13px 15px;

        transform: none;
        overflow: visible;
    }

    .royal-home-hero__content::before {
        background-color: rgba(var(--royal-navy-rgb), 0.14);
        border-color: rgba(var(--royal-gold-rgb), 0.34);

        -webkit-backdrop-filter: blur(5px) saturate(102%);
        backdrop-filter: blur(5px) saturate(102%);
    }

    .royal-home-hero__script {
        margin-bottom: 8px;

        font-size: clamp(25px, 8.2vw, 34px);
        line-height: 1;
    }

    .royal-home-hero__title {
        width: 100%;
        max-width: 100%;

        font-size: clamp(18px, 4.85vw, 23px);
        line-height: 1.28;
        letter-spacing: 0.022em;

        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .royal-home-hero__title span,
    .royal-home-hero__title strong {
        display: inline-block;
    }

    .royal-home-hero__actions {
        width: 100%;
        margin-top: 15px;

        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .royal-home-hero__actions .royal-btn {
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding-inline: 13px;

        font-size: 7px;
        letter-spacing: 0.09em;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 420px) {
    .royal-home-hero {
        min-height: 470px;
        padding-inline: 16px;
        padding-top: 76px;
        padding-bottom: 32px;
    }

    .royal-home-hero__content {
        width: min(100%, 280px);
        max-width: 246px;

        padding: 17px 12px 14px;
    }

    .royal-home-hero__title {
        font-size: clamp(17px, 4.65vw, 21px);
        line-height: 1.30;
        letter-spacing: 0.02em;
    }

    .royal-home-hero__script {
        font-size: clamp(20px, 4.5vw, 32px);
    }

    .royal-home-hero__actions {
        margin-top: 14px;
        gap: 7px;
    }

    .royal-home-hero__actions .royal-btn {
        min-height: 33px;
    }
}