/*
 * NKAR Luxury Lounge — site footer (shared by the home and interior layouts).
 *
 * Self-contained: every rule is scoped to .lux-footer and the palette is defined
 * here, so it renders the same whichever page stylesheet is loaded. It also resets
 * the few theme rules that would otherwise leak in (footer img max-width, list
 * bullets, oversized h3).
 */

.lux-footer {
    --lf-bg: #02120e;
    --lf-bg-raised: #041b16;
    --lf-ink: #f4eee1;
    --lf-muted: rgba(244, 238, 225, 0.66);
    --lf-faint: rgba(244, 238, 225, 0.46);
    --lf-gold: #c8a96a;
    --lf-gold-light: #e6cf99;
    --lf-line: rgba(200, 169, 106, 0.18);
    --lf-line-strong: rgba(200, 169, 106, 0.42);
    --lf-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --lf-sans: "Montserrat", Arial, sans-serif;
    --lf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    clear: both;
    color: var(--lf-muted);
    font-family: var(--lf-sans);
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    /* Golden luxury pattern: the same background as the "Tailor made" section above it */
    background:
        linear-gradient(115deg, transparent 0 26%, rgba(200, 169, 106, 0.045) 26.2% 30%, transparent 30.2% 68%, rgba(200, 169, 106, 0.04) 68.2% 72%, transparent 72.2%),
        radial-gradient(ellipse at 8% 0%, rgba(200, 169, 106, 0.12), transparent 34%),
        radial-gradient(ellipse at 94% 96%, rgba(200, 169, 106, 0.08), transparent 34%),
        linear-gradient(180deg, #051f19 0%, #031712 100%);
}

/* Gold hairline that fades out at both ends. */
.lux-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 207, 153, 0.75) 50%, transparent);
}

/* Faint palm-frond motif in the corner, echoing the hero. */
.lux-footer::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -20px;
    z-index: -1;
    width: min(620px, 70vw);
    aspect-ratio: 520 / 180;
    background: url("../images/ui/brand/palm-frond.svg") right bottom / contain no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

.lux-footer__inner {
    container-type: inline-size;
    width: min(1240px, 100% - 48px);
    margin-inline: auto;
}

.lux-footer a {
    color: inherit;
    text-decoration: none;
}

.lux-footer a:focus-visible {
    outline: 1px solid var(--lf-gold-light);
    outline-offset: 4px;
    border-radius: 4px;
}

.lux-footer img {
    max-width: none;
}

/* Icons follow their link's colour (the theme otherwise colours <i> directly). */
.lux-footer i {
    color: inherit !important;
}

.lux-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.lux-footer__cta {
    display: grid;
    gap: 28px;
    align-items: center;
    padding-block: clamp(44px, 5.5vw, 72px) clamp(36px, 4vw, 52px);
    border-bottom: 1px solid var(--lf-line);
}

.lux-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--lf-gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em;
    line-height: 1;
    text-transform: uppercase;
}

.lux-footer__eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--lf-gold), transparent);
}

.lux-footer__cta-title {
    max-width: 24ch;
    margin: 0;
    color: var(--lf-ink);
    font-family: var(--lf-serif);
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

.lux-footer__cta-title em {
    font-style: italic;
    background: linear-gradient(180deg, #f1dfb3 0%, var(--lf-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lux-footer__cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 16px;
    overflow: hidden;
    padding: 18px 30px;
    border: 1px solid var(--lf-line-strong);
    border-radius: 999px;
    color: var(--lf-gold-light) !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(120deg, var(--lf-gold-light), var(--lf-gold)) left / 0% 100% no-repeat;
    transition: background-size 0.6s var(--lf-ease), color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.lux-footer__cta-btn i {
    font-size: 12px;
    transition: transform 0.4s var(--lf-ease);
}

.lux-footer__cta-btn:hover {
    border-color: var(--lf-gold-light);
    background-size: 100% 100%;
    color: var(--lf-bg) !important;
    box-shadow: 0 12px 34px -14px rgba(230, 207, 153, 0.55);
}

.lux-footer__cta-btn:hover i {
    transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Columns
   -------------------------------------------------------------------------- */

.lux-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    padding-block: clamp(40px, 5vw, 64px);
}

/* The brand block and the contact details take a full row until there is room for four columns. */
.lux-footer__brand,
.lux-footer__col--contact {
    grid-column: 1 / -1;
}

.lux-footer__logo {
    display: inline-block;
}

.lux-footer__logo img {
    display: block;
    width: auto;
    height: 54px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(23%) saturate(650%) hue-rotate(3deg) brightness(1.02);
}

.lux-footer__about {
    max-width: 34ch;
    margin: 22px 0 26px;
    color: var(--lf-muted);
    font-size: 13px;
    line-height: 1.85;
}

.lux-footer__social {
    display: flex;
    gap: 12px;
}

.lux-footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--lf-line-strong);
    border-radius: 50%;
    color: var(--lf-gold-light) !important;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.35s var(--lf-ease), background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.lux-footer__social a:hover {
    border-color: var(--lf-gold);
    background: var(--lf-gold);
    color: var(--lf-bg) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -10px rgba(200, 169, 106, 0.7);
}

.lux-footer__heading {
    position: relative;
    margin: 0 0 26px;
    padding-bottom: 16px;
    color: var(--lf-gold-light);
    font-family: var(--lf-sans);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.lux-footer__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 1px;
    background: var(--lf-gold);
}

.lux-footer__links {
    display: grid;
    gap: 14px;
}

/* Underline that draws in from the left on hover. */
.lux-footer__links a {
    padding-bottom: 2px;
    color: var(--lf-muted);
    font-size: 13px;
    background: linear-gradient(var(--lf-gold-light), var(--lf-gold-light)) left bottom / 0% 1px no-repeat;
    transition: color 0.3s ease, background-size 0.45s var(--lf-ease) !important;
}

.lux-footer__links a:hover {
    color: var(--lf-ink);
    background-size: 100% 1px;
}

.lux-footer__contact {
    display: grid;
    gap: 20px;
}

.lux-footer__contact a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 16px;
    color: var(--lf-ink);
    font-size: 13px;
    line-height: 1.55;
}

.lux-footer__contact small {
    display: block;
    margin-bottom: 3px;
    color: var(--lf-faint);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.lux-footer__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--lf-line-strong);
    border-radius: 50%;
    color: var(--lf-gold-light);
    font-size: 13px;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.lux-footer__contact a:hover .lux-footer__icon {
    border-color: var(--lf-gold);
    background: var(--lf-gold);
    color: var(--lf-bg);
}

.lux-footer__contact a:hover > span:last-child {
    color: var(--lf-gold-light);
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.lux-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-block: 24px 28px;
    border-top: 1px solid var(--lf-line);
    color: var(--lf-faint);
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.6;
    text-transform: uppercase;
}

.lux-footer__bottom a {
    color: var(--lf-muted);
    transition: color 0.3s ease !important;
}

.lux-footer__bottom a:hover {
    color: var(--lf-gold-light);
}

/* --------------------------------------------------------------------------
   Layout by available width (container queries)
   -------------------------------------------------------------------------- */

@container (min-width: 600px) {
    /* Leave room for the fixed back-to-top button so it never covers the links. */
    .lux-footer__bottom {
        padding-inline-end: 72px;
    }
}

@container (min-width: 820px) {
    .lux-footer__cta {
        grid-template-columns: 1fr auto;
        gap: 48px;
    }

    .lux-footer__cta-btn {
        justify-self: end;
    }

}

@container (min-width: 1000px) {
    .lux-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.25fr);
        gap: 32px 48px;
    }

    .lux-footer__brand,
    .lux-footer__col--contact {
        grid-column: auto;
    }
}

@container (max-width: 599px) {
    .lux-footer__cta-btn {
        justify-self: stretch;
        justify-content: center;
    }

    .lux-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 84px; /* clear the fixed back-to-top button */
    }
}

/* --------------------------------------------------------------------------
   Back-to-top button (fixed, site-wide) — restyled to match the footer
   -------------------------------------------------------------------------- */

.scrollToTop {
    top: auto !important;
    right: 24px !important;
    bottom: 24px;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(200, 169, 106, 0.45);
    border-radius: 50% !important;
    background: rgba(2, 18, 14, 0.72) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.scrollToTop.scrolltotop-position-left {
    right: auto !important;
    left: 24px;
}

.scrollToTop i {
    display: grid !important;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    color: #e6cf99 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.scrollToTop:hover {
    opacity: 1 !important;
    border-color: #c8a96a;
    background: #c8a96a !important;
    transform: translateY(-2px);
}

.scrollToTop:hover i {
    color: #02120e !important;
}

@media (prefers-reduced-motion: reduce) {
    .lux-footer *,
    .scrollToTop {
        transition: none !important;
    }
}

/* Legal links: Privacy Policy and the cookie settings button */
.lux-footer__legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.lux-footer__cookie {
    padding: 0;
    border: 0;
    background: none;
    color: var(--lf-muted);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lux-footer__cookie:hover,
.lux-footer__cookie:focus-visible {
    color: var(--lf-gold-light);
}

.lux-footer__cookie:focus-visible {
    outline: 1px solid var(--lf-gold-light);
    outline-offset: 4px;
    border-radius: 4px;
}
