:root {
    /* Color Palette */
    --primary-ochre: #C05621;
    --primary-light: #ED8936;
    --secondary-gold: #D69E2E;
    --accent-emerald: #276749;
    --bg-dark: #1A202C;
    --bg-card: #2D3748;
    --text-light: #F7FAFC;
    --text-muted: #CBD5E0;
    /* Lightened for better contrast on dark bg */
    --white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

::selection {
    background-color: var(--primary-ochre);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--secondary-gold);
    outline-offset: 4px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glass Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-ochre), var(--primary-light));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 86, 33, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary-gold), #ECC94B);
    color: #2D3748;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* --- Animations & Effects --- */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(214, 158, 46, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(214, 158, 46, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(214, 158, 46, 0);
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* Enhanced Interactive Elements */
.product-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(214, 158, 46, 0.3);
}

.product-image-container {
    overflow: hidden;
}

.product-image {
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.price-tag {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.2;
}

.price-amount {
    white-space: nowrap;
    /* Prevent number splitting */
    color: var(--secondary-gold);
    font-size: 1.25rem;
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* --- Responsive & Utilities --- */

/* Header & Nav */
.main-header {
    position: fixed;
    top: 1rem;
    inset-inline: 1rem;
    z-index: 1000;
    height: 4.5rem;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-gold);
}

.logo {
    font-size: 1.5rem;
    color: var(--secondary-gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('../assets/images/hero-bg.jpg') center/cover;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
}

/* Utilities */
.text-gold {
    color: var(--secondary-gold);
}

.text-white {
    color: var(--white);
}

.text-muted {
    color: var(--text-muted);
}

.section-title {
    font-size: 2.5rem;
}

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

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

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

/* Mobile Menu Icon Animation */
.fa-times {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* --- Media Queries --- */

@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    /* Header */
    .main-header {
        top: 0;
        inset-inline: 0;
        border-radius: 0;
        padding: 0 1rem;
        background: rgba(26, 32, 44, 0.95);
        /* Plus opaque sur mobile */
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Elements */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}