/* Theme 3: BMS Marble Premium (White & Black) */

:root[data-theme="marble"] {
    --primary: #1a1a1a;
    /* Deep Black/Grey */
    --primary-dark: #000000;
    /* Pure Black */
    --secondary: #4a4a4a;
    /* Dark Grey */
    --accent: #c1a57b;
    /* Premium Gold/Bronze */
    --accent-hover: #b09166;
    /* Darker Gold */
    --dark: #111111;
    --light: #f9f9f9;
    --text: #333333;
    --text-light: #666666;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.12);
    --border-radius-card: 2px;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* Base Styles */
[data-theme="marble"] body {
    font-family: var(--font-body);
    color: var(--text);
    /* White Marble Background Texture */
    background-color: #f7f7f7;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    line-height: 1.7;
}

/* Typography Overrides */
[data-theme="marble"] h1,
[data-theme="marble"] h2,
[data-theme="marble"] h3,
[data-theme="marble"] h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* Header */
[data-theme="marble"] header {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="marble"] .header-top {
    background: #0a0a0a !important;
    border-bottom: 1px solid #1a1a1a;
    color: #aeaeae;
    font-size: 11px;
    letter-spacing: 1px;
}

[data-theme="marble"] .mobile-menu-toggle {
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    background: transparent;
}

[data-theme="marble"] .logo h1 {
    font-family: var(--font-heading);
    color: #1a1a1a;
    font-size: 26px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

[data-theme="marble"] .logo p {
    color: var(--accent);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

[data-theme="marble"] nav a {
    color: #444 !important;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px !important;
    transition: color 0.3s ease;
}

[data-theme="marble"] nav a:hover,
[data-theme="marble"] nav a.active {
    color: var(--accent) !important;
    background: transparent !important;
}


/* HERO SECTION (White Marble, Center Aligned) */
[data-theme="marble"] .hero {
    background-color: #f4f4f4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='marble' patternUnits='userSpaceOnUse' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23marble)'/%3E%3C/svg%3E");
    padding: 25px 0 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Ornamental Divider */
[data-theme="marble"] .hero::after {
    content: "✦";
    display: block;
    font-size: 16px;
    color: var(--accent);
    margin-top: 5px;
    opacity: 0.6;
}

[data-theme="marble"] .hero h1 {
    color: #1a1a1a;
    font-size: 42px !important;
    text-shadow: none;
    margin-bottom: 0px;
    line-height: 1.1;
}

[data-theme="marble"] .hero p {
    color: #555;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px !important;
    max-width: 680px;
    margin: 5px auto 10px;
    line-height: 1.3;
}

/* Buttons */
[data-theme="marble"] .btn {
    border-radius: 2px;
    padding: 16px 40px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    transition: all 0.4s ease;
}

[data-theme="marble"] .btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="marble"] .btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="marble"] .btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

[data-theme="marble"] .btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-3px);
}


/* SECTIONS */
/* SECTIONS */
[data-theme="marble"] .section-title {
    margin-bottom: 40px;
}

[data-theme="marble"] .section-title h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

[data-theme="marble"] .section-title p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* CARDS (Clean, White, Floating) */
[data-theme="marble"] .category-card,
[data-theme="marble"] .product-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius-card);
    /* Square/Minimalist */
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="marble"] .category-card {
    padding: 30px 20px;
}

[data-theme="marble"] .category-card:hover,
[data-theme="marble"] .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

[data-theme="marble"] .product-image {
    height: 320px;
    /* Taller, more elegant ratio */
}

[data-theme="marble"] .category-card i,
[data-theme="marble"] .product-card i {
    color: var(--accent);
    margin-bottom: 15px;
}

[data-theme="marble"] .category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

[data-theme="marble"] .category-card .count {
    background: #f0f0f0;
    color: #555;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

[data-theme="marble"] .product-category {
    background: transparent;
    color: var(--accent);
    padding: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

[data-theme="marble"] .product-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

[data-theme="marble"] .product-price {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 400;
}

/* SOLUTIONS / FEATURES SECTION (Black Marble) */
[data-theme="marble"] .solutions {
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='darkmarble' patternUnits='userSpaceOnUse' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23darkmarble)'/%3E%3C/svg%3E");
    color: #fff;
    position: relative;
    padding: 120px 0;
}

/* Gold Divider for Dark Section */
[data-theme="marble"] .solutions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

[data-theme="marble"] .solutions .section-title h2 {
    color: #fff;
}

[data-theme="marble"] .solutions .section-title p {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="marble"] .solution-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 2px;
    padding: 40px;
}

[data-theme="marble"] .solution-card h3 {
    color: #fff;
    font-size: 20px;
    margin-top: 20px;
}

[data-theme="marble"] .solution-card .icon-box {
    background: transparent;
    color: var(--accent);
    font-size: 32px;
    border: 1px solid rgba(193, 165, 123, 0.4);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

[data-theme="marble"] .solution-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* FOOTER */
[data-theme="marble"] footer {
    background: #050505;
    color: #888;
    padding-top: 100px;
}

[data-theme="marble"] .footer-section h3 {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-size: 16px;
    margin-bottom: 30px;
}

[data-theme="marble"] .footer-section a:hover {
    color: var(--accent);
    padding-left: 5px;
}

[data-theme="marble"] .footer-bottom {
    background: #000;
    border-top: 1px solid #1a1a1a;
    padding: 30px 0;
    color: #444;
}

/* Scrollbar */
[data-theme="marble"] ::-webkit-scrollbar {
    width: 10px;
}

[data-theme="marble"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[data-theme="marble"] ::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 5px;
}

[data-theme="marble"] ::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsive Overrides for Marble */
@media (max-width: 768px) {
    [data-theme="marble"] .hero {
        padding: 100px 0 80px;
    }

    [data-theme="marble"] .hero h1 {
        font-size: 36px !important;
    }

    [data-theme="marble"] .hero p {
        font-size: 18px !important;
    }

    [data-theme="marble"] .section-title h2 {
        font-size: 32px;
    }

    [data-theme="marble"] .product-image {
        height: 200px !important;
        /* Reset height for mobile */
    }

    /* Mobile Sidebar Menu Styling */
    [data-theme="marble"] nav {
        background: #ffffff !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

    [data-theme="marble"] nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    [data-theme="marble"] nav a {
        color: var(--primary) !important;
        font-family: var(--font-heading);
        font-style: italic;
        letter-spacing: 1px;
    }

    [data-theme="marble"] nav a:hover,
    [data-theme="marble"] nav a.active {
        background: rgba(0, 0, 0, 0.02) !important;
        color: var(--accent) !important;
        padding-left: 30px !important;
        /* Animated indentation */
    }
}

/* Modal Overrides for Marble Theme */
[data-theme="marble"] #contactModal .modal-content {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
}

[data-theme="marble"] #contactModal h2 {
    color: var(--primary) !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px !important;
}

[data-theme="marble"] #contactModal label {
    color: #555 !important;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-theme="marble"] #contactModal input,
[data-theme="marble"] #contactModal textarea {
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
    color: #333 !important;
    border-radius: 2px !important;
    font-family: var(--font-body);
}

[data-theme="marble"] #contactModal input:focus,
[data-theme="marble"] #contactModal textarea:focus {
    background: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(193, 165, 123, 0.1) !important;
}

[data-theme="marble"] #contactModal .close {
    color: #333 !important;
    opacity: 0.5;
    transition: all 0.3s;
}

[data-theme="marble"] #contactModal .close:hover {
    color: var(--accent) !important;
    opacity: 1;
}