/* ---------------------------------------------------------------------------
   Lumiks — shared shell (header, footer, resets).
   Page-specific styling stays inline in each page template, exactly as it was
   in the WordPress theme, so the ported markup renders unchanged.
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: #050816;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Header --------------------------------------------------------------- */
.lk-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(147, 197, 253, 0.10);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lk-header.is-scrolled {
    background: rgba(5, 8, 22, 0.94);
    border-bottom-color: rgba(147, 197, 253, 0.18);
}

.lk-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lk-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.lk-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.lk-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.lk-nav a:hover,
.lk-nav a:focus-visible { color: #ffffff; background: rgba(59, 130, 246, 0.16); }

.lk-nav a.is-active { color: #ffffff; background: rgba(59, 130, 246, 0.24); }

.lk-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 8px;
    cursor: pointer;
}

.lk-nav-toggle span {
    display: block;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.lk-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lk-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.lk-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .lk-header__inner { padding: 14px 20px; }
    .lk-nav-toggle { display: flex; }

    .lk-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 8, 22, 0.98);
        border-bottom: 1px solid rgba(147, 197, 253, 0.14);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .lk-nav.is-open { max-height: 70vh; overflow-y: auto; }

    .lk-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
    .lk-nav a { display: block; padding: 13px 12px; border-radius: 8px; }
}

/* --- Footer (ported from the theme footer) -------------------------------- */
.site-footer-custom-wrapper {
    background-color: #0f172a;
    color: #94a3b8;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 80px 40px 0;
}

.site-footer-custom-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-widget-area h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.footer-widget-area p,
.footer-widget-area ul { margin: 0; padding: 0; list-style: none; }

.footer-widget-area a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-widget-area a:hover { color: #3b82f6; transform: translateX(4px); }

.footer-widget-area ul li { margin-bottom: 10px; }

.footer-widget-area .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-widget-area .contact-info svg {
    color: #3b82f6;
    margin-right: 15px;
    margin-top: 6px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-brand .logo-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.08em;
}

.footer-brand .tagline { margin-bottom: 25px; }

.staff-portal-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    font-weight: 600;
    color: #bdc3c7;
    background: transparent;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.staff-portal-button:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-bottom-bar-custom {
    text-align: center;
    padding: 30px 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-bar-custom p { margin: 0; }

@media (max-width: 768px) {
    .site-footer-custom-wrapper { padding: 56px 20px 0; }
    .site-footer-custom-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-widget-area { text-align: center; }
    .footer-widget-area .contact-info li { justify-content: center; }
    .footer-widget-area a:hover { transform: none; }

    /* Footer links sat at 27px tall — below a comfortable touch target. */
    .footer-widget-area ul li { margin-bottom: 4px; }
    .footer-widget-area ul li a {
        padding: 10px 6px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .footer-widget-area h3 { margin-bottom: 16px; font-size: 1.3rem; }
    .staff-portal-button { min-height: 44px; }
    .footer-bottom-bar-custom { padding: 24px 16px; margin-top: 40px; font-size: 0.9rem; }
}
