
Layout luxe · CSS
/* =========================================================
   ELDER LABORATORIES — MASTER PAGE LUXE LAYER
   Load AFTER site.css in _Layout.cshtml.
   Palette: navy #0a1b33 / brand #234E86 / blue #0d4f8b / gold #c9a24b
   Remove this file + layout-luxe.js to go back to the old look.
   ========================================================= */
:root {
    --lx-navy: #0a1b33;
    --lx-brand: #234e86;
    --lx-gold: #c9a24b;
    --lx-gold-soft: #e8cf8e;
    --lx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- global finish ---------- */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(201,162,75,.35);
    color: var(--lx-navy);
}

:focus-visible {
    outline: 2px solid var(--lx-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: #eef3f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #234e86, #0d4f8b);
    border-radius: 10px;
    border: 2px solid #eef3f9;
}

/* =========================================================
   PAGE LOADER
   ========================================================= */
.elder-page-loader {
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.98), rgba(232,242,251,.97)) !important;
    backdrop-filter: blur(10px);
}

.loader-circle {
    position: relative;
    border: 3px solid rgba(35,78,134,.10) !important;
    border-top-color: var(--lx-gold) !important;
    box-shadow: 0 20px 50px -18px rgba(35,78,134,.35);
}

    .loader-circle::after { /* counter-rotating dashed ring */
        content: "";
        position: absolute;
        inset: -14px;
        border-radius: 50%;
        border: 1px dashed rgba(35,78,134,.35);
        animation: lxSpinBack 6s linear infinite;
    }

    .loader-circle img {
        animation: lxBreath 2.4s ease-in-out infinite !important;
    }

.loader-content h3 {
    margin-top: 34px;
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 7px;
    color: var(--lx-brand);
}

.loader-content p {
    color: #6b86a8;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

@keyframes lxSpinBack {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes lxBreath {
    50% {
        transform: scale(1.06);
    }
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
    background: linear-gradient(90deg, #072b52 0%, #0d4f8b 50%, #072b52 100%);
    border-bottom: 1px solid rgba(201,162,75,.55);
}

.top-bar-tagline {
    letter-spacing: .8px;
    font-weight: 600;
}

    .top-bar-tagline::before, .top-bar-tagline::after {
        content: "";
        display: inline-block;
        width: 5px;
        height: 5px;
        margin: 0 12px;
        background: var(--lx-gold);
        transform: rotate(45deg);
        vertical-align: middle;
    }

/* =========================================================
   HEADER — sticky, turns to frosted glass on scroll
   ========================================================= */
.main-header {
    position: sticky !important;
    top: 0;
    z-index: 1000 !important;
    border-bottom: 0 !important;
    transition: background .35s ease, box-shadow .35s ease;
}

    .main-header::after { /* gold hairline */
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201,162,75,.75) 50%, transparent);
        pointer-events: none;
    }

    .main-header.is-scrolled {
        background: rgba(255,255,255,.88);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        backdrop-filter: blur(14px) saturate(160%);
        box-shadow: 0 12px 32px -14px rgba(10,27,51,.30);
    }

.header-content, .brand-area, .brand-logo {
    transition: min-height .35s var(--lx-ease), height .35s var(--lx-ease);
}

.brand-logo-image {
    transition: all .35s var(--lx-ease);
}

@media (min-width: 769px) {
    .main-header.is-scrolled .header-content {
        min-height: 68px;
    }

    .main-header.is-scrolled .brand-area,
    .main-header.is-scrolled .brand-logo {
        height: 68px;
    }

    .main-header.is-scrolled .brand-logo-image {
        width: 112px;
        height: 66px;
        top: 1px;
    }
}

/* ---------- navigation ---------- */
.nav-link {
    color: #1f3a5c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

    .nav-link:hover, .nav-item.active > .nav-link {
        color: var(--lx-brand);
    }

.nav-menu-indicator {
    height: 4px !important;
    bottom: -3px !important; /* sits on the header's bottom edge */
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #b98a2c, #c9a24b) !important; /* solid gold, visible on white */
    box-shadow: none !important;
}
/* ---------- dropdown ---------- */
.main-navigation .dropdown-menu {
    margin-top: 0;
    padding: 10px;
    min-width: 250px;
    overflow: hidden;
    border: 1px solid rgba(35,78,134,.10);
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(10,27,51,.35), 0 0 0 1px rgba(255,255,255,.6) inset;
}

.main-navigation .dropdown:hover > .dropdown-menu {
    animation: lxMenuIn .35s var(--lx-ease) both;
}

@keyframes lxMenuIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.dropdown-item {
    position: relative;
    border: 0 !important;
    border-radius: 9px;
    padding: 11px 16px;
    font-weight: 600;
    color: #2a4466;
    transition: background .25s ease, padding-left .25s ease, color .25s ease;
}

    .dropdown-item:hover {
        background: linear-gradient(90deg, #eef5fc, #fff);
        color: var(--lx-brand);
        padding-left: 22px;
        box-shadow: inset 3px 0 0 var(--lx-gold);
    }

/* ---------- login button ---------- */
.admin-login-button {
    background: linear-gradient(135deg, #2a5a9a, #173a68) !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(201,162,75,.65), 0 8px 18px -6px rgba(23,58,104,.5);
}

    .admin-login-button:hover {
        box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--lx-gold), 0 12px 22px -6px rgba(23,58,104,.6);
    }

/* =========================================================
   FOOTER
   ========================================================= */
.elder-footer::after { /* gold edge across the top */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 30;
    background: linear-gradient(90deg, transparent, var(--lx-gold) 20%, var(--lx-gold-soft) 50%, var(--lx-gold) 80%, transparent);
}

.footer-cta-box {
    border: 1px solid rgba(255,255,255,.55);
}

.elder-footer .footer-cta-button {
    box-shadow: 0 14px 28px -10px rgba(0,45,90,.55), inset 0 1px 0 rgba(255,255,255,.2);
}

.footer-column-title {
    letter-spacing: .2px;
}

.footer-title-line {
    background: linear-gradient(90deg, var(--lx-gold), var(--lx-gold-soft)) !important;
}

.footer-links-list a {
    transition: padding-left .3s ease, color .3s ease;
}

.elder-footer .footer-social-link:hover {
    box-shadow: 0 10px 24px -8px rgba(255,212,59,.6);
}

.footer-bottom-section {
    border-top: 1px solid rgba(232,207,142,.35) !important;
}

/* ---------- back to top (injected by JS) ---------- */
.lx-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a5a9a, #173a68);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(201,162,75,.7), 0 14px 26px -8px rgba(10,27,51,.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s var(--lx-ease), visibility .35s;
}

    .lx-top.show {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .lx-top:hover {
        transform: translateY(-4px);
    }

/* ---------- mobile ---------- */
@media (max-width: 768px) {
    .main-header.is-scrolled {
        box-shadow: 0 8px 22px -12px rgba(10,27,51,.3);
    }

    .main-navigation {
        border-top: 1px solid rgba(201,162,75,.4) !important;
        border-radius: 0 0 16px 16px;
    }

        .main-navigation.mobile-menu-open {
            animation: lxMenuIn .3s var(--lx-ease) both;
        }

    .top-bar-tagline::before, .top-bar-tagline::after {
        display: none;
    }

    .lx-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .loader-circle::after, .loader-circle img, .main-navigation .dropdown:hover > .dropdown-menu,
    .main-navigation.mobile-menu-open {
        animation: none !important;
    }

    .main-header, .brand-logo-image, .lx-top {
        transition: none;
    }
}

/* =========================================================
   FOOTER — MOBILE (≤767px): compact, aligned, accordion columns
   ========================================================= */
@media (max-width: 767px) {

    /* the wide artwork only covers a band on a tall footer, so use a clean gradient instead */
    .elder-footer {
        background-image: radial-gradient(520px 300px at 100% 12%, rgba(64,170,255,.22), transparent 70%), radial-gradient(480px 300px at 0% 88%, rgba(35,130,210,.22), transparent 70%), linear-gradient(180deg, #07579a 0%, #034a86 45%, #023b70 100%) !important;
        background-size: auto !important;
        animation: none !important;
    }

    .footer-cta-section {
        padding: 36px 16px 0 !important;
    }

    .footer-cta-box {
        padding: 26px 22px !important;
        min-height: 0 !important;
        gap: 20px !important;
        border-radius: 18px;
    }

    .footer-cta-content h2 {
        font-size: 27px !important;
    }

    .footer-cta-button {
        min-width: 0 !important;
        padding: 15px 22px !important;
    }

    .footer-main-section {
        padding-top: 40px !important;
    }

        .footer-main-section > .container {
            width: 88% !important;
        }

    .footer-grid {
        gap: 0 !important;
        padding-bottom: 24px !important;
    }

    /* contact block */
    .footer-contact-column {
        padding: 0 0 26px !important;
    }

    .footer-logo {
        width: 150px !important;
        margin-bottom: 16px !important;
    }

    .footer-company-description {
        font-size: 13.5px !important;
        margin-bottom: 20px !important;
    }

    .footer-contact-details {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .footer-contact-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .footer-contact-item {
        font-size: 13px !important;
    }

    .footer-social-link {
        width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
    }

    /* link columns → accordion rows, all aligned to the same left edge */
    .footer-link-column {
        padding: 0 !important;
        min-height: 0 !important;
        border-top: 1px solid rgba(232,207,142,.28);
    }

        .footer-link-column:last-of-type {
            border-bottom: 1px solid rgba(232,207,142,.28);
        }

    .footer-title-line {
        display: none !important;
    }

    .footer-column-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        font-size: 21px !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        .footer-column-title::after {
            content: "\F282";
            font-family: "bootstrap-icons";
            font-size: 15px;
            color: #FFD43B;
            transition: transform .35s var(--lx-ease);
        }

    .footer-link-column.lx-open .footer-column-title::after {
        transform: rotate(180deg);
    }

    .footer-links-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s var(--lx-ease);
    }

    .footer-link-column.lx-open .footer-links-list {
        max-height: 420px;
        padding-bottom: 10px;
    }

    .footer-links-list a {
        min-height: 44px !important;
        padding: 8px 0 !important;
        font-size: 13.5px !important;
    }

        .footer-links-list a i {
            opacity: .7 !important;
            transform: none !important;
        }

    /* bottom bar: keep clear of the back-to-top button */
    .footer-bottom-section {
        padding: 20px 0 84px !important;
        gap: 8px !important;
        border-top: 0 !important;
    }
}

/* =========================================================
   FOOTER — TABLET & SMALL LAPTOP (768–1440px)
   ========================================================= */

/* 992–1440: artwork must cover the whole footer, otherwise a flat band shows at the bottom */
@media (min-width: 992px) and (max-width: 1440px) {
    .elder-footer {
        background-size: cover !important;
        background-position: center !important;
        animation: none !important;
    }
}

/* ≤991: footer gets too tall/narrow for the artwork, use the clean gradient */
@media (max-width: 991px) {
    .elder-footer {
        background-image: radial-gradient(520px 300px at 100% 12%, rgba(64,170,255,.22), transparent 70%), radial-gradient(480px 300px at 0% 88%, rgba(35,130,210,.22), transparent 70%), linear-gradient(180deg, #07579a 0%, #034a86 45%, #023b70 100%) !important;
        background-size: auto !important;
        animation: none !important;
    }
}

/* 768–1199: tighter columns, no huge gap between headings and links */
@media (min-width: 768px) and (max-width: 1199px) {
    .footer-main-section {
        padding-top: 56px !important;
    }

    .footer-grid {
        padding-bottom: 40px !important;
    }

    .footer-contact-column {
        padding-right: 32px !important;
    }

    .footer-logo {
        width: 170px !important;
    }

    .footer-link-column {
        padding: 0 24px !important;
        min-height: 0 !important;
    }

    .footer-column-title {
        font-size: 23px !important;
    }

    .footer-title-line {
        margin: 10px 0 12px !important;
    }

    .footer-links-list a {
        min-height: 46px !important;
        padding: 8px 0 !important;
        font-size: 13px !important;
    }

    .footer-bottom-section {
        padding-right: 70px !important;
    }
    /* keep clear of back-to-top */
}

/* 768–991: contact block on top, three link columns below, aligned to the same left edge */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-contact-column {
        padding-bottom: 32px !important;
        margin-bottom: 34px;
        border-bottom: 1px solid rgba(232,207,142,.30);
    }

    .footer-link-column:nth-child(2) {
        padding-left: 0 !important;
    }

        .footer-link-column:nth-child(2)::before {
            display: none;
        }
}
