/* ==========================================
   L'OPERA ROYAL - FOOTER COMPONENT
   Premium footer
   Navy background / Gold accents / No gradients
========================================== */

/*
|--------------------------------------------------------------------------
| Expected image from PHP
|--------------------------------------------------------------------------
| Location: assets/images/logo/
| File name: Logo-LOpera-Royal_Logo-in-Gold.webp
| Replace with: Official gold L'Opera Royal logo for a premium navy footer.
|--------------------------------------------------------------------------
*/

/* ==========================================
   FOOTER WRAPPER
========================================== */

.royal-footer {
    position: relative;
    isolation: isolate;

    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;

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

    overflow: hidden;
}

.royal-footer::before {
    content: "";

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

    pointer-events: none;

    background: rgba(var(--royal-white-rgb), 0.025);
}

.royal-footer::after {
    content: "";

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

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

    pointer-events: none;

    background: rgba(var(--royal-gold-rgb), 0.60);

    transform: translateX(-50%);
}

/* ==========================================
   MAIN
========================================== */

.royal-footer__main {
    position: relative;
    z-index: 1;

    padding: 104px 0 86px;
}

.royal-footer__grid {
    display: grid;
    grid-template-columns: 1.22fr 0.95fr 0.95fr 0.78fr;
    gap: 58px;

    align-items: start;
}

/* ==========================================
   BRAND
========================================== */

.royal-footer__brand {
    position: relative;

    padding-right: 46px;
}

.royal-footer__brand::after {
    content: "";

    position: absolute;
    top: 6px;
    right: 0;

    width: 1px;
    height: 100%;

    background: rgba(var(--royal-gold-rgb), 0.28);
}

.royal-footer__brand-link {
    width: fit-content;

    display: inline-flex;
    align-items: center;

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

.royal-footer__logo {
    width: 285px;
    max-height: 160px;

    display: block;

    object-fit: contain;
    object-position: left center;

    filter: drop-shadow(0 18px 34px rgba(var(--royal-navy-rgb), 0.42));

    transition:
        filter var(--royal-transition),
        transform var(--royal-transition);
}

.royal-footer__brand-link:hover .royal-footer__logo,
.royal-footer__brand-link:focus-visible .royal-footer__logo {
    filter: drop-shadow(0 22px 42px rgba(var(--royal-navy-rgb), 0.50));

    transform: translateY(-2px);
}

.royal-footer__logo-text {
    color: var(--royal-gold);

    font-family: var(--royal-font-script);
    font-size: clamp(40px, 4.6vw, 66px);
    font-weight: 400;
    line-height: 1;

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

.royal-footer__brand-text {
    max-width: 320px;
    margin: 30px 0 0;

    color: rgba(var(--royal-white-rgb), 0.76);

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

/* ==========================================
   SOCIALS
========================================== */

.royal-footer__socials {
    margin-top: 30px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.royal-footer__socials a {
    width: 44px;
    height: 44px;

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

    color: var(--royal-gold);
    background: rgba(var(--royal-white-rgb), 0.035);
    border: 1px solid rgba(var(--royal-gold-rgb), 0.44);

    box-shadow: 0 10px 26px rgba(var(--royal-navy-rgb), 0.24);

    transition:
        color var(--royal-transition),
        background-color var(--royal-transition),
        border-color var(--royal-transition),
        box-shadow var(--royal-transition),
        transform var(--royal-transition);
}

.royal-footer__socials a:hover,
.royal-footer__socials a:focus-visible {
    color: var(--royal-white);
    background: rgba(var(--royal-white-rgb), 0.075);
    border-color: var(--royal-gold);

    box-shadow: 0 16px 34px rgba(var(--royal-navy-rgb), 0.34);

    transform: translateY(-2px);
}

.royal-footer__socials svg {
    width: 19px;
    height: 19px;

    display: block;

    fill: currentColor;
}

/* ==========================================
   COLUMNS
========================================== */

.royal-footer__column {
    position: relative;
}

.royal-footer__title {
    margin: 0 0 26px;

    color: var(--royal-white);

    font-family: var(--royal-font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.royal-footer__title::after {
    content: "";

    width: 62px;
    height: 1px;
    margin: 18px 0 0;

    display: block;

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

.royal-footer__text {
    margin: 0;

    color: rgba(var(--royal-white-rgb), 0.78);

    font-family: var(--royal-font-body);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;
}

.royal-footer__text p {
    margin: 0 0 9px;
}

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

.royal-footer__text strong {
    color: var(--royal-white);

    font-weight: 800;
}

/* ==========================================
   CONTACT
========================================== */

.royal-footer__contact {
    margin-top: 24px;

    display: flex;
    flex-direction: column;
    gap: 9px;
}

.royal-footer__contact a {
    width: fit-content;

    color: rgba(var(--royal-white-rgb), 0.82);

    font-family: var(--royal-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

    transition:
        color var(--royal-transition),
        transform var(--royal-transition);
}

.royal-footer__contact a:hover,
.royal-footer__contact a:focus-visible {
    color: var(--royal-gold);

    transform: translateX(3px);
}

/* ==========================================
   NAVIGATION
========================================== */

.royal-footer__nav,
.royal-footer__nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.royal-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.royal-footer__nav li {
    margin: 0;
    padding: 0;
}

.royal-footer__nav a {
    position: relative;

    width: fit-content;

    display: inline-flex;

    color: rgba(var(--royal-white-rgb), 0.78);

    font-family: var(--royal-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    transition:
        color var(--royal-transition),
        padding-left var(--royal-transition);
}

.royal-footer__nav a::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 0;
    height: 1px;

    background: var(--royal-gold);

    transform: translateY(-50%);

    transition: width var(--royal-transition);
}

.royal-footer__nav a:hover,
.royal-footer__nav a:focus-visible,
.royal-footer__nav .current-menu-item>a {
    padding-left: 18px;

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

.royal-footer__nav a:hover::before,
.royal-footer__nav a:focus-visible::before,
.royal-footer__nav .current-menu-item>a::before {
    width: 10px;
}

/* ==========================================
   BOTTOM
========================================== */

.royal-footer__bottom {
    position: relative;
    z-index: 1;

    border-top: 1px solid rgba(var(--royal-white-rgb), 0.08);
    background: rgba(var(--royal-white-rgb), 0.025);
}

.royal-footer__bottom-inner {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.royal-footer__bottom p {
    margin: 0;

    color: rgba(var(--royal-white-rgb), 0.66);

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

.royal-footer__bottom-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.royal-footer__bottom-nav a {
    position: relative;

    padding: 0 13px;

    color: rgba(var(--royal-white-rgb), 0.66);

    font-family: var(--royal-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    transition: color var(--royal-transition);
}

.royal-footer__bottom-nav a:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 0;

    width: 1px;
    height: 12px;

    background: rgba(var(--royal-white-rgb), 0.20);

    transform: translateY(-50%);
}

.royal-footer__bottom-nav a:hover,
.royal-footer__bottom-nav a:focus-visible {
    color: var(--royal-gold);
}

/* ==========================================
   CONTACT BAR
========================================== */

.royal-footer__contact-bar {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1;

    margin: 0 !important;

    color: var(--royal-white);
    background: rgba(var(--royal-white-rgb), 0.035);
    border-top: 1px solid rgba(var(--royal-gold-rgb), 0.28);

    box-shadow: none;
}

.royal-footer__contact-bar-inner {
    width: min(100% - 48px, var(--royal-container-wide));
    min-height: 56px;
    margin-inline: auto;

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

.royal-footer__contact-bar a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--royal-white);

    font-family: var(--royal-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1;
    white-space: nowrap;

    transition:
        color var(--royal-transition),
        transform var(--royal-transition);
}

.royal-footer__contact-bar a:hover,
.royal-footer__contact-bar a:focus-visible {
    color: var(--royal-gold);

    transform: translateY(-1px);
}

.royal-footer__contact-bar span {
    width: 18px;
    height: 18px;

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

    flex: 0 0 18px;
}

.royal-footer__contact-bar svg {
    width: 100%;
    height: 100%;

    display: block;

    fill: currentColor;
}

/* ==========================================
   PREMIUM BACK TO TOP
========================================== */

#ast-scroll-top,
.ast-scroll-top-icon,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left,
[class*="ast-scroll"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.royal-back-to-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 99999 !important;

    width: 54px !important;
    height: 54px !important;

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

    color: var(--royal-gold) !important;
    background: rgba(var(--royal-navy-rgb), 0.92) !important;

    border: 1px solid rgba(var(--royal-gold-rgb), 0.78) !important;
    border-radius: 999px !important;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    box-shadow: 0 22px 58px rgba(var(--royal-navy-rgb), 0.34) !important;

    cursor: pointer !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(12px) !important;

    transition:
        opacity var(--royal-transition),
        visibility var(--royal-transition),
        border-color var(--royal-transition),
        box-shadow var(--royal-transition),
        transform var(--royal-transition);
}

.royal-back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
}

.royal-back-to-top:hover,
.royal-back-to-top:focus-visible {
    border-color: var(--royal-gold) !important;

    box-shadow: 0 26px 68px rgba(var(--royal-navy-rgb), 0.42) !important;

    transform: translateY(-2px) !important;
}

.royal-back-to-top::before {
    content: "";

    position: absolute;
    inset: 12px;
    z-index: 1;

    background-image: var(--royal-back-to-top-logo, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.20;

    pointer-events: none;
}

.royal-back-to-top::after {
    content: "";

    position: relative;
    z-index: 2;

    width: 14px;
    height: 14px;

    border-top: 3px solid var(--royal-gold);
    border-left: 3px solid var(--royal-gold);

    transform: translateY(4px) rotate(45deg);

    pointer-events: none;
}

.royal-back-to-top__mark,
.royal-back-to-top__arrow {
    display: none !important;
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1180px) {
    .royal-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px 46px;
    }

    .royal-footer__brand {
        padding-right: 0;
    }

    .royal-footer__brand::after {
        display: none;
    }

    .royal-footer__contact-bar-inner {
        gap: 28px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width: 767px) {
    .royal-footer__main {
        padding: 64px 0 52px;
    }

    .royal-footer__grid {
        grid-template-columns: 1fr;
        gap: 38px;

        text-align: center;
    }

    .royal-footer__brand {
        max-width: 360px;
        margin-inline: auto;
    }

    .royal-footer__brand-link,
    .royal-footer__nav a,
    .royal-footer__contact a {
        margin-inline: auto;
    }

    .royal-footer__logo {
        width: 245px;
        margin-inline: auto;

        object-position: center;
    }

    .royal-footer__brand-text {
        margin-inline: auto;
    }

    .royal-footer__socials {
        justify-content: center;
    }

    .royal-footer__title::after {
        margin-inline: auto;
    }

    .royal-footer__text {
        font-size: 14px;
    }

    .royal-footer__contact a:hover,
    .royal-footer__contact a:focus-visible {
        transform: none;
    }

    .royal-footer__bottom-inner {
        min-height: auto;
        padding: 22px 0;

        flex-direction: column;
        justify-content: center;
        gap: 16px;

        text-align: center;
    }

    .royal-footer__bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }

    .royal-footer__contact-bar-inner {
        width: min(100% - 36px, 100%);
        padding: 18px 0 22px;

        flex-direction: column;
        gap: 10px;
    }

    .royal-footer__contact-bar a {
        width: 100%;
        max-width: 300px;

        justify-content: center;

        white-space: normal;
        text-align: center;
        line-height: 1.42;
    }

    .royal-back-to-top {
        right: 18px !important;
        bottom: 18px !important;

        width: 46px !important;
        height: 46px !important;
    }

    .royal-back-to-top::before {
        inset: 11px;
    }

    .royal-back-to-top::after {
        width: 12px;
        height: 12px;

        border-top-width: 2px;
        border-left-width: 2px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
========================================== */

@media (max-width: 420px) {
    .royal-footer__logo {
        width: 220px;
    }

    .royal-footer__title {
        font-size: 20px;
    }

    .royal-footer__bottom-nav a {
        padding: 0 9px;
    }
}

/* ==========================================
   ASTRA / PAGE GAP FIX
========================================== */

html,
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: var(--royal-navy);
}

.site,
.site-content,
.ast-container,
#content,
#page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.royal-footer+* {
    margin-top: 0 !important;
}