/* Ratanwala Museum Grid Theme */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Palette */
    --bg-black: #050505;
    --bg-charcoal: #121212;
    --text-gold: #C5A065;
    --text-white: #EAEAEA;
    --text-muted: #888888;

    /* Typography */
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Lato', sans-serif;

    /* Spacing */
    --section-pad: 120px;
    --container-max: 1600px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.text-gold {
    color: var(--text-gold);
}

.serif {
    font-family: var(--font-serif);
}

/* Navigation (Minimal) */
.nav-minimal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-serif);
}

.menu-txt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Hero Section */
.hero-museum {
    height: 100vh;
    width: 100%;
    background: url('ik.jpg') no-repeat center center/cover;
    background-attachment: scroll;
    /* Changed from fixed to scroll */
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 10%;
}

.hero-museum::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-gold);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* Storytelling Section */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--bg-black);
}

.story-visual {
    background: url('ik.jpg') no-repeat center center/cover;
    position: relative;
    min-height: 400px;
    /* Ensure visibility on mobile */
}

.story-text {
    padding: var(--section-pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drop-cap::first-letter {
    font-family: var(--font-serif);
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    line-height: 1;
    color: var(--text-gold);
}

.story-meta {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.meta-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-item strong {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* Immersive Banner */
.immersive-banner {
    height: 60vh;
    background: url('io.jpg') no-repeat center center/cover;
    background-attachment: scroll;
    /* Changed from fixed to scroll */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-txt {
    text-align: center;
    font-size: 3rem;
    font-family: var(--font-serif);
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Provenance (Origin) */
.provenance-section {
    padding: var(--section-pad) 0;
    text-align: center;
}

.provenance-content {
    max-width: 800px;
    margin: 0 auto;
}

.gem-highlight {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    border-radius: 50%;
    /* Circle highlight */
    background: url('ij.jpg') no-repeat center center/cover;
    border: 1px solid var(--text-gold);
    box-shadow: 0 0 50px rgba(197, 160, 101, 0.2);
}

/* Dark Slider (Carousel) */
.dark-slider-container {
    background: #080808;
    padding: 100px 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 60px;
    padding: 0 100px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.stone-card {
    min-width: 300px;
    text-align: center;
    transition: transform 0.4s ease;
    opacity: 0.7;
}

.stone-card:hover {
    transform: scale(1.1);
    opacity: 1;
}

.stone-visual {
    height: 250px;
    width: 100%;
    /* In a real scenario, these would be transparent PNGs of stones */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    margin-bottom: 20px;
    border-radius: 50%;
}

.stone-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stone-origin {
    font-size: 0.8rem;
    color: var(--text-gold);
    text-transform: uppercase;
}

/* Shopping Cart Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #111;
    z-index: 1000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cart-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-gold);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Cart */
.cart-items::-webkit-scrollbar {
    width: 5px;
}

.cart-items::-webkit-scrollbar-track {
    background: #222;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #444;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #eee;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-gold);
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 5px;
}

.remove-item:hover {
    color: #ff0000;
}

.cart-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bill-details {
    margin-bottom: 20px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.bill-row.total {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--text-gold);
    color: #000;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #d4af75;
}

/* Footer fossils */
.fossils-footer {
    background: #2a2a2a url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    /* Texture fallback */
    padding: 100px;
    text-align: center;
    color: #aaa;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* --- RESPONSIVE QUERIES --- */

/* Tablet & Mobile (Max Width: 768px) */
@media (max-width: 768px) {

    /* Navigation */
    .nav-minimal {
        padding: 20px;
    }

    .menu-links {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        border-bottom: 1px solid #333;
        gap: 20px;
    }

    .menu-links.active {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Hero */
    .hero-museum {
        padding-left: 5%;
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Smaller heading */
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    /* Sections */
    .section-pad {
        padding: 60px 0;
    }

    .story-section {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .story-visual {
        min-height: 300px;
    }

    .container {
        padding: 0 20px;
    }

    /* Trust Badges */
    .badge-item {
        width: 45%;
        /* 2 per row */
        font-size: 0.8rem;
    }

    .badge-item i {
        font-size: 1.2rem;
    }

    /* Purpose Cards */
    .purpose-card {
        width: 45%;
        /* 2 per row */
        margin-bottom: 20px;
    }

    /* Footer */
    .fossils-footer {
        padding: 50px 0;
        text-align: left;
    }

    .fossils-footer .container {
        gap: 30px;
    }
}

/* Mobile (Max Width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .badge-item {
        width: 100%;
        /* 1 per row */
        justify-content: flex-start;
    }

    .purpose-card {
        width: 100%;
        /* 1 per row */
    }

    .stone-card {
        min-width: 100%;
    }

    /* Adjust Grid for Services Page */
    .dark-slider-container div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}