/* ==========================================
   L'OPERA ROYAL - HOME STORY COMPONENT
   Premium editorial story section
========================================== */

/*
|--------------------------------------------------------------------------
| Expected image from PHP
|--------------------------------------------------------------------------
| Location: assets/images/home/
| File name: story-dining-detail.png
| Replace with: Premium dining table detail with menu, glasses or candlelight.
|--------------------------------------------------------------------------
*/

/* ==========================================
   SECTION
========================================== */

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

    width: 100%;

    padding: 104px 0;

    color: var(--royal-text-body);
    background:
        linear-gradient(180deg,
            var(--royal-white) 0%,
            rgba(248, 241, 231, 0.58) 100%);

    overflow: hidden;
}

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

    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;

    width: min(980px, 92%);
    height: 1px;

    background: linear-gradient(90deg,
            rgba(172, 142, 91, 0),
            rgba(172, 142, 91, 0.36),
            rgba(172, 142, 91, 0));

    transform: translateX(-50%);
}

.royal-home-story::after {
    content: "";

    position: absolute;
    right: -180px;
    top: 50%;
    z-index: 0;

    width: 420px;
    height: 420px;

    pointer-events: none;

    background: radial-gradient(circle,
            rgba(172, 142, 91, 0.14) 0%,
            rgba(172, 142, 91, 0.06) 38%,
            rgba(172, 142, 91, 0) 70%);

    transform: translateY(-50%);
}

/* ==========================================
   GRID
========================================== */

.royal-home-story__grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;

    align-items: center;
}

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

.royal-home-story__content {
    position: relative;

    max-width: 640px;
}

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

    width: 68px;
    height: 1px;
    margin: 0 0 22px;

    display: block;

    background: var(--royal-gold);
}

.royal-home-story__title {
    margin: 0;

    color: var(--royal-navy);

    font-family: var(--royal-font-heading);
    font-size: clamp(38px, 4.8vw, 72px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.royal-home-story__title::after {
    content: "";

    width: 112px;
    height: 1px;
    margin: 26px 0 30px;

    display: block;

    background: linear-gradient(90deg,
            var(--royal-gold),
            rgba(172, 142, 91, 0.08));
}

.royal-home-story__text {
    max-width: 620px;

    color: var(--royal-text-body);

    font-family: var(--royal-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.82;
}

.royal-home-story__text p {
    margin: 0 0 18px;
}

.royal-home-story__text p:first-child {
    color: var(--royal-navy);

    font-weight: 650;
}

.royal-home-story__text p:last-child {
    margin-bottom: 0;
}

.royal-home-story__actions {
    margin-top: 34px;

    display: flex;
    align-items: center;
}

/* ==========================================
   MEDIA
========================================== */

.royal-home-story__media {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 42%,
            rgba(172, 142, 91, 0.18) 0%,
            rgba(8, 48, 80, 0.10) 46%,
            rgba(248, 241, 231, 1) 100%);

    box-shadow:
        0 24px 64px rgba(3, 16, 29, 0.14),
        inset 0 0 0 1px rgba(172, 142, 91, 0.18);
}

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

    position: absolute;
    inset: 18px;
    z-index: 2;

    pointer-events: none;

    border: 1px solid rgba(255, 255, 255, 0.46);
}

.royal-home-story__media::after {
    content: "";

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

    pointer-events: none;

    background:
        linear-gradient(180deg,
            rgba(1, 7, 13, 0.02) 0%,
            rgba(1, 7, 13, 0.24) 100%);
}

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

    background-image: var(--royal-story-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: scale(1.01);

    transition:
        transform 900ms ease,
        filter 900ms ease;
}

.royal-home-story.has-fallback-background .royal-home-story__image {
    display: none;
}

.royal-home-story__media:hover .royal-home-story__image {
    transform: scale(1.055);
    filter: saturate(1.06) contrast(1.04);
}

/* ==========================================
   FALLBACK
========================================== */

.royal-home-story.has-fallback-background .royal-home-story__media {
    background:
        linear-gradient(135deg,
            rgba(8, 48, 80, 0.14) 0%,
            rgba(172, 142, 91, 0.14) 48%,
            rgba(248, 241, 231, 1) 100%);
}

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

@media (min-width: 1024px) {
    .royal-home-story {
        padding: 118px 0;
    }

    .royal-home-story__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 72px;
    }

    .royal-home-story__media {
        min-height: 560px;
    }
}

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

@media (min-width: 1440px) {
    .royal-home-story {
        padding: 132px 0;
    }

    .royal-home-story__grid {
        gap: 92px;
    }

    .royal-home-story__media {
        min-height: 620px;
    }
}

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

@media (min-width: 768px) and (max-width: 1023px) {
    .royal-home-story {
        padding: 92px 0;
    }

    .royal-home-story__grid {
        gap: 56px;
    }

    .royal-home-story__content {
        max-width: 720px;
        margin-inline: auto;

        text-align: center;
    }

    .royal-home-story__content::before,
    .royal-home-story__title::after {
        margin-inline: auto;
    }

    .royal-home-story__text {
        max-width: 720px;
        margin-inline: auto;
    }

    .royal-home-story__actions {
        justify-content: center;
    }

    .royal-home-story__media {
        min-height: 460px;
    }
}

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

@media (max-width: 767px) {
    .royal-home-story {
        padding: 68px 0;
    }

    .royal-home-story__grid {
        gap: 36px;
    }

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

        text-align: left;
    }

    .royal-home-story__content::before {
        margin-bottom: 18px;
    }

    .royal-home-story__title {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.08;
    }

    .royal-home-story__title::after {
        margin: 22px 0 24px;
    }

    .royal-home-story__text {
        font-size: 14px;
        line-height: 1.74;
    }

    .royal-home-story__actions {
        margin-top: 28px;
    }

    .royal-home-story__media {
        min-height: 340px;
    }

    .royal-home-story__media::before {
        inset: 14px;
    }
}

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

@media (max-width: 420px) {
    .royal-home-story__media {
        min-height: 300px;
    }
}