/* ==========================================================================
   Lumina Furniture - Luxury CSS styling
   ========================================================================== */

/* Variables */
:root {
    --primary-color: #1A1A1A; /* Deep Charcoal/Black */
    --secondary-color: #FAF9F6; /* Alabaster/Beige White */
    --accent-color: #D4AF37; /* Champagne Gold */
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E2E2E2;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Typography Classes */
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); }

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.alternate-bg {
    background-color: var(--white);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    padding: 0.5rem 3rem;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between logo image and text */
}

.brand-logo-img {
    height: 50px; /* Constrain the height of the logo */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu CSS */
.dropdown {
    position: relative;
}

.caret {
    font-size: 0.7rem;
    margin-left: 3px;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 1rem 0;
    border-radius: 4px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
}


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 136px;
}

.hero-image {
    position: absolute;
    top: 136px;
    left: 0;
    width: 100%;
    height: calc(100% - 136px);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    margin-left: 10%;
    color: var(--white);
    padding: 2rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #C09D2A;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Page Headers (Internal Pages)
   ========================================================================== */
.page-header {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 136px;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    text-align: center;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
    background: var(--white);
    transition: var(--transition);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card:hover .quick-view {
    bottom: 0;
}

.product-info {
    padding: 1.5rem 0;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    color: var(--accent-color);
    font-weight: 600;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
}

/* ==========================================================================
   Gallery Masonry
   ========================================================================== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    grid-row-end: span 30; /* Adjust dynamically with JS or approximate for demo */
}

.masonry-item:nth-child(even) {
    grid-row-end: span 40;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* ==========================================================================
   About & Contact Forms
   ========================================================================== */
.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-text h2, .contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p, .contact-info p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.mask-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--secondary-color);
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    background: var(--white);
}

.w-100 { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 2rem;
}

.footer-brand p {
    color: #999;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links h3, .footer-newsletter h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: #999;
}

.footer-links ul a:hover {
    color: var(--accent-color);
}

.footer-newsletter p {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--white);
    outline: none;
}

.newsletter-form button {
    background: var(--accent-color);
    border: none;
    padding: 0 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #C09D2A;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-anim {
    animation: slideUpFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid, .contact-grid, .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mask-image img {
        border-radius: 100px 100px 0 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }

    .nav-container {
        margin-left: -40px;
    }

    .nav-actions {
        flex-direction: column;
        margin-right: -30px;
        margin-top: -45px;
    }
}