/**
 * Richmond Lighting - Home Page
 * Luxury Showroom Aesthetic
 *
 * Design: Dark gallery environment with warm brass accents
 * evoking the ambiance of a high-end lighting showroom
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   CUSTOM FONTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE FOUNDATION
   ═══════════════════════════════════════════════════════════════════════════════ */

body {
    font-family: var(--rl-font-body);
    background: #0d0c0b;
    color: #e8e6e3;
    line-height: var(--rl-leading-normal);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient light effect - simulates showroom lighting */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(184, 149, 108, 0.08) 0%,
        rgba(184, 149, 108, 0.03) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER - Brand Identity
   ═══════════════════════════════════════════════════════════════════════════════ */

header {
    position: relative;
    text-align: center;
    padding: 5rem 2rem 3rem;
    z-index: 1;
}

/* Decorative line above brand */
header::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--rl-brand-brass) 30%,
        var(--rl-brand-brass) 70%,
        transparent
    );
    opacity: 0.6;
}

.header-brand {
    font-family: 'Cormorant Garamond', var(--rl-font-accent, Georgia, serif);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f5f3f0;
    margin: 0 0 1rem;
    text-shadow: 0 0 80px rgba(184, 149, 108, 0.3);
    animation: fadeInUp 1s ease-out;
}

.header-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 80px rgba(184, 149, 108, 0.3));
    animation: fadeInUp 1s ease-out;
}

header .subtitle {
    font-family: var(--rl-font-display);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rl-brand-brass);
    opacity: 0.85;
    animation: fadeInUp 1s ease-out 0.15s both;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NAVIGATION - Refined Top Bar
   ═══════════════════════════════════════════════════════════════════════════════ */

nav {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(184, 149, 108, 0.3) 20%,
        rgba(184, 149, 108, 0.3) 80%,
        transparent
    );
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

nav li {
    position: relative;
}

/* Separator dots between items */
nav li:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -0.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(184, 149, 108, 0.3);
    font-size: 0.875rem;
}

nav a {
    display: block;
    color: rgba(245, 243, 240, 0.5);
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-family: var(--rl-font-display);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--rl-brand-brass);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover {
    color: #f5f3f0;
    text-shadow: 0 0 20px rgba(184, 149, 108, 0.4);
}

nav a:hover::before {
    width: calc(100% - 4rem);
    left: 2rem;
}

nav a.active {
    color: #f5f3f0;
}

nav a.active::before {
    width: calc(100% - 4rem);
    left: 2rem;
    background: var(--rl-brand-brass);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */

main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WELCOME CARD - Hero Section
   ═══════════════════════════════════════════════════════════════════════════════ */

.card {
    background: linear-gradient(
        145deg,
        rgba(30, 28, 26, 0.9) 0%,
        rgba(20, 19, 18, 0.95) 100%
    );
    border: 1px solid rgba(184, 149, 108, 0.12);
    border-radius: 2px;
    padding: 3.5rem 4rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.45s both;
}

/* Corner accents */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(184, 149, 108, 0.25);
    pointer-events: none;
}

.card::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.card::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Inner glow effect */
.card > *:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(184, 149, 108, 0.3),
        transparent
    );
}

.card h2 {
    font-family: 'Cormorant Garamond', var(--rl-font-accent);
    font-size: 1.5rem;
    color: #f5f3f0;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    position: relative;
}

.card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--rl-brand-brass), transparent);
    margin-top: 1rem;
}

.card > p {
    font-size: 0.95rem;
    color: rgba(232, 230, 227, 0.65);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUICK LINKS GRID - Portal Navigation
   ═══════════════════════════════════════════════════════════════════════════════ */

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(184, 149, 108, 0.1);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(184, 149, 108, 0.08);
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        transform 0.4s ease;
}

/* Hover glow effect */
.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: radial-gradient(
        ellipse 100% 100% at 50% -20%,
        rgba(184, 149, 108, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Animated border accent */
.quick-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rl-brand-brass), rgba(184, 149, 108, 0.3));
    transition: width 0.4s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(184, 149, 108, 0.2);
    transform: translateY(-4px);
}

.quick-link:hover::before {
    opacity: 1;
}

.quick-link:hover::after {
    width: 100%;
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(184, 149, 108, 0.08);
    border: 1px solid rgba(184, 149, 108, 0.15);
    border-radius: 2px;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.quick-link:hover .quick-link-icon {
    background: rgba(184, 149, 108, 0.15);
    border-color: rgba(184, 149, 108, 0.3);
    transform: scale(1.05);
}

.quick-link-label {
    display: block;
    font-family: var(--rl-font-display);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #f5f3f0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.quick-link:hover .quick-link-label {
    color: var(--rl-brand-brass-light);
}

.quick-link-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(232, 230, 227, 0.45);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

footer::before {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(184, 149, 108, 0.3),
        transparent
    );
    margin: 0 auto 2rem;
}

footer p {
    font-family: var(--rl-font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 230, 227, 0.35);
}

footer a {
    color: rgba(184, 149, 108, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--rl-brand-brass);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    header {
        padding: 4rem 1.5rem 2rem;
    }

    header::before {
        height: 32px;
        top: 1.5rem;
    }

    .header-brand {
        font-size: 1.75rem;
    }

    .header-logo {
        height: 48px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    nav li::after {
        display: none;
    }

    nav a {
        padding: 0.625rem 1rem;
        font-size: 0.65rem;
    }

    .card {
        padding: 2.5rem 2rem;
    }

    .card::before,
    .card::after {
        width: 24px;
        height: 24px;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .quick-link {
        padding: 1.25rem;
    }

    .quick-link-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header-brand {
        font-size: 1.4rem;
        letter-spacing: 0.15em;
    }

    .header-logo {
        height: 38px;
    }

    header .subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .quick-link {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .quick-link-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .quick-link-label {
        margin-bottom: 0.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
