/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #111111;       /* Deep Onyx / Premium Black */
    --secondary: #1a1a1a;     /* Off-black for section shifts */
    --accent: #c5a880;        /* Muted Luxury Gold */
    --accent-hover: #b3946b;  /* Deep Gold */
    --text-main: #333333;     /* Deep Grey for optimal readability */
    --text-muted: #666666;    /* Muted body text */
    --bg-light: #fdfdfd;      /* Warm off-white marble backdrop */
    --bg-stone: #f5f5f3;      /* Light travertine grey */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. REUSABLE UTILITIES & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
}

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

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

/* Global Section Titles - Sophisticated styling */
h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

h2 span {
    color: var(--accent);
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Elegant Buttons - Designed for high Conversion Rates */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* ==========================================================================
   3. NAVIGATION (STICKY GLASSMORPHIC)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-menu a:hover {
    color: var(--accent);
}

/* Hamburger Icon styling */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

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

/* Mobile Fullscreen Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

/* Class added via JavaScript to deploy menu */
.mobile-menu-overlay.active {
    left: 0;
}

.mobile-link {
    color: var(--white);
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1rem;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   4. HERO HERO SECTION (SALES & IMPACT)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)), 
                url('images/Featured_Image_BLogb_1.webp') no-repeat center center/cover;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 300; /* Sophisticated light weight styling */
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 0.03em;
}

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

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

/* ==========================================================================
   5. ABOUT US SECTION
   ========================================================================== */
.about-us {
    background-color: var(--white);
}

.about-us .container {
    max-width: 850px;
    text-align: center;
}

.about-us p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   6. PREMIUM PRODUCTS GALLERY & FILTERS
   ========================================================================== */
.products {
    background-color: var(--bg-stone);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.product-item {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: zoom-in;
}

.product-item:hover img {
    transform: scale(1.04);
}

.product-item h3 {
    font-size: 1.3rem;
    padding: 1.75rem 1.75rem 0.5rem;
    font-weight: 600;
}

.product-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0 1.75rem 2rem;
    font-weight: 300;
}

/* ==========================================================================
   7. SERVICES GRID
   ========================================================================== */
.services {
    background-color: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    border-top-color: var(--accent);
    background: var(--white);
    transform: translateY(-4px);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   8. APPLICATION SHOWCASE (PORTFOLIO EFFECT)
   ========================================================================== */
.marble-applications {
    background-color: var(--secondary);
}

.marble-applications h2,
.marble-applications h3 {
    color: var(--white);
}

.section-subtext {
    text-align: center;
    color: #999999;
    margin-top: -3rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.application-item {
    background: #222222;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.application-item img {
    height: 240px;
    width: 100%;
    margin-bottom: 1.5rem;
    filter: grayscale(15%);
}

.application-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.application-item p {
    color: #aaaaaa;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================================================
   9. SALES OPTIMIZED CONTACT AREA
   ========================================================================== */
.contact {
    background-color: var(--bg-stone);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-area {
    background-color: var(--white);
    padding: 3.5rem;
    box-shadow: var(--shadow);
}

.contact-form-area h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.15);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-form-area .btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
}

.contact-form-area .btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Contact Details Info Sidebar */
.contact-info {
    padding-top: 1rem;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.contact-info p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
}

.contact-info p strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contact-info a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent);
}

.map-heading {
    margin-top: 2.5rem;
}

/* Map placeholder container styling */
.map-placeholder {
    margin-top: 1rem;
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   10. LIGHTBOX & INTERACTIVE COMPONENT STATES
   ========================================================================== */
.lightbox {
    display: none; /* Controlled by user logic scripts */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    html { font-size: 15px; }
    
    section { padding: 5rem 0; }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide standard nav items, defer to mobile menu layout */
    }
    
    .hamburger {
        display: flex;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .contact-form-area {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    h2 { font-size: 1.8rem; }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}