@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* Brand Design Variables */
:root {
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA7C11;
    --gold-gradient: linear-gradient(135deg, #AA7C11 0%, #D4AF37 50%, #F3E5AB 100%);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Default: Light Mode */
    --bg-primary: #FAF9F6;      /* Linen / Ivory */
    --bg-secondary: #F4F1EA;    /* Soft warm cream */
    --bg-card: #FFFFFF;
    --text-primary: #121A16;    /* Dark Charcoal Green */
    --text-secondary: #4A534E;
    --border-color: rgba(18, 26, 22, 0.08);
    --emerald-deep: #0D2C20;
    --emerald-light: #1A4635;
    --glass-bg: rgba(250, 249, 246, 0.8);
    --glass-border: rgba(18, 26, 22, 0.06);
    --shadow-soft: 0 10px 30px rgba(13, 44, 32, 0.04);
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-primary: #0A0D0B;      /* Deep Midnight Green */
    --bg-secondary: #111513;    /* Soft Dark Surface */
    --bg-card: #141A17;
    --text-primary: #F0F4F2;    /* Soft white */
    --text-secondary: #A0ABA5;
    --border-color: rgba(212, 175, 55, 0.15); /* Soft gold borders */
    --emerald-deep: #163D2E;
    --emerald-light: #2A5A48;
    --glass-bg: rgba(10, 13, 11, 0.8);
    --glass-border: rgba(212, 175, 55, 0.15);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Global Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Luxury Utilities */
.text-gold {
    color: var(--gold);
}
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-emerald {
    background-color: var(--emerald-deep);
}
.text-emerald {
    color: var(--emerald-deep);
}

/* Golden Flourish Border */
.ornate-border {
    position: relative;
    padding-bottom: 15px;
}
.ornate-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
}
.ornate-border::before {
    content: '◈';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 10px;
    background-color: var(--bg-primary);
    padding: 0 6px;
    z-index: 1;
}

/* Navigation */
.navbar {
    transition: var(--transition-smooth);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
}
.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}
.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-gradient);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth);
}

/* ─── Navbar Full Logo ───────────────────────────────────────── */
/*
 * The logo PNG is black artwork on a white background.
 *
 * Strategy:
 *   • Transparent navbar (page load, dark hero behind it)
 *       – invert(1)        → logo lines become white, bg becomes black
 *       – sepia + saturate + hue-rotate → push white lines to gold
 *       – mix-blend-mode: screen → black bg dissolves away, gold lines shine
 *
 *   • Scrolled navbar (glass surface, light behind it)
 *       – filter: none     → original black artwork
 *       – mix-blend-mode: multiply → white bg dissolves, black logo stays sharp
 */
.brand-logo-full {
    height: 50px;
    width: auto;
    display: block;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    /* Scrolled / default: black logo, white bg disappears via multiply */
    filter: none;
    mix-blend-mode: multiply;
}
.navbar.scrolled .brand-logo-full {
    height: 42px;
}

/* ── Page-load state: gold logo on dark hero ─────────────────── */
.navbar:not(.scrolled) .brand-logo-full {
    /*
     * invert(1)            → art becomes white, bg becomes black
     * sepia(1)             → shifts white toward warm cream
     * saturate(6)          → pumps saturation high
     * hue-rotate(355deg)   → nudges hue into yellow-gold range
     * brightness(0.88)     → dims to rich gold rather than pale yellow
     */
    filter: invert(1) sepia(1) saturate(6) hue-rotate(355deg) brightness(0.88);
    mix-blend-mode: screen;  /* removes the inverted black bg, leaves gold lines */
}

/* ── Dark-mode scrolled: white logo on dark glass surface ───── */
[data-theme="dark"] .brand-logo-full {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* ─── Footer logo icon ──────────────────────────────────────── */
/* Square icon inverted to white so it sits on the dark emerald footer */
.footer-logo-icon {
    height: 56px;
    width: auto;
    filter: invert(1);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.footer-logo-wrap:hover .footer-logo-icon {
    /* turns gold on hover */
    filter: invert(1) sepia(1) saturate(6) hue-rotate(355deg) brightness(0.88);
}
.footer-brand-text {
    line-height: 1.3;
}
.footer-logo-wrap:hover .footer-brand-text span:first-child {
    color: var(--gold);
}


/* Transparent navbar overrides (when at the top over dark hero) */
.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: #FFFFFF !important;
}
.navbar:not(.scrolled) .navbar-brand {
    color: #FFFFFF !important;
}
.navbar:not(.scrolled) .theme-switch-btn {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.navbar:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}
.navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Luxury Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #FFFFFF !important;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA7C11 100%);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold) !important;
    border: 1.5px solid var(--gold);
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0A0D0B;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 13, 11, 0.75), rgba(10, 13, 11, 0.85)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: var(--transition-smooth);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

/* Category Section */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}
.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}
.category-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover .category-img {
    transform: scale(1.08);
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(13, 44, 32, 0.95));
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    height: 50%;
}
.category-card:hover .category-overlay {
    background: linear-gradient(transparent, rgba(13, 44, 32, 0.99));
}

/* Tab Filtering styling */
.nav-pills-luxury {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    background-color: var(--bg-secondary);
}
.nav-pills-luxury .nav-link {
    border-radius: 50px;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.5rem;
    margin: 0;
    font-weight: 500;
}
.nav-pills-luxury .nav-link::after {
    display: none;
}
.nav-pills-luxury .nav-link.active {
    background: var(--gold-gradient) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Product Cards */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}
.product-img-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-gradient);
    color: #FFFFFF;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 40px;
    z-index: 2;
}
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(13, 44, 32, 0.85);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    z-index: 2;
}
.product-card:hover .product-actions {
    bottom: 0;
}
.btn-action {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.btn-action:hover {
    background: var(--gold-gradient);
    color: #FFFFFF;
    transform: scale(1.1);
}
.product-body {
    padding: 1.5rem;
}
.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.product-price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

/* Feature/Why Choose Us */
.feature-box {
    padding: 2.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}
.feature-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.feature-box:hover .feature-icon-box {
    background: var(--gold-gradient);
    color: #FFFFFF;
    border-color: transparent;
}

/* Theme Switcher Toggle styling */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}
.theme-switch-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--gold);
    border-color: var(--gold);
}

/* Stats counter on scroll */
.stats-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Contact and Forms */
.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}
.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.floating-whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--gold);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #25D366;
}

/* Enquiry Cart Drawer */
.enquiry-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.enquiry-drawer.active {
    right: 0;
}
.enquiry-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enquiry-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.enquiry-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.enquiry-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.enquiry-item-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}
.enquiry-item-details {
    flex-grow: 1;
}
.enquiry-item-remove {
    background: none;
    border: none;
    color: #DC3545;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.enquiry-item-remove:hover {
    transform: scale(1.1);
}

/* Back-to-top Button */
.back-to-top {
    position: fixed;
    bottom: 105px;
    right: 35px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--gold);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Styling Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: var(--transition-smooth);
}
.custom-toast.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quick View Modal Customize */
.modal-content-luxury {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
}
.modal-header-luxury {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}
.modal-body-luxury {
    padding: 1.5rem;
}

/* Youtube Banner Section styles */
.youtube-cta-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.youtube-mockup-wrapper {
    position: relative;
    border: 4px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Media Queries for Responsiveness adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
    }
    .category-card {
        height: 380px;
    }
    .product-img-wrapper {
        height: 280px;
    }
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .whatsapp-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    .back-to-top {
        bottom: 85px;
        right: 22px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .nav-pills-luxury {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 8px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .nav-pills-luxury .nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .stats-number {
        font-size: 2.2rem;
    }
    .enquiry-drawer {
        width: 100%;
        right: -100%;
    }
}
