/* Variables */
:root {
    --primary-bg: #FDFBF7;
    /* Soft Beige */
    --secondary-bg: #F4F1EA;
    /* Slightly darker beige for sections */
    --accent-color: #D4AF37;
    /* Pale Gold */
    --text-color: #4A4A4A;
    /* Soft Grey */
    --text-light: #7A7A7A;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --transition-speed: 0.4s;
    --border-radius: 16px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background: radial-gradient(circle at top left, #FDFBF7, #F4F1EA);
    /* Soft gradient from white to beige */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--heading-font);
    font-weight: 400;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(253, 251, 247, 0.85);
    /* Slightly more transparent */
    backdrop-filter: blur(12px);
    /* Stronger blur for true glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

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

.btn-nav {
    border: 1px solid var(--text-color);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    /* Pill shape */
    transition: all var(--transition-speed);
}

.btn-nav:hover {
    background-color: var(--text-color);
    color: var(--primary-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.hamburger span {
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.4s ease-in-out;
    transform-origin: center;
}

/* Animations for Hamburger to X */
.hamburger.toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('assets/ethereal_hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    /* Lighten overlay to make text pop against white haze using dark text */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #4a4a4a;
    /* Lighter grey as requested */
}

.hero h1 {
    font-family: 'Pinyon Script', cursive;
    /* Calligraphic font */
    font-size: 7rem;
    /* Increased size for script font */
    margin-bottom: 0rem;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
}

.hero .subtitle {
    font-size: 1.6rem;
    font-family: var(--heading-font);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    /* Softer black */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero .description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-family: var(--heading-font);
    /* Changed to Serif as requested implies style change */
    font-size: 1.3rem;
    /* Larger */
    color: #333;
    /* Softer black */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.btn-hero {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background-color: #1a1a1a;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    border: 1px solid #1a1a1a;
    border-radius: 40px;
    /* Pill shape */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
    /* Elegant gold glow */
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.card {
    background-color: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
}

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

.card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 2rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services */
.services-section {
    background-color: var(--secondary-bg);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.service-item {
    flex: 1 1 300px;
    padding: 2.5rem 2rem;
    background-color: var(--primary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    display: inline-block;
    transition: transform var(--transition-speed);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer / Contact */
.footer {
    background-color: #dcdad5;
    /* Darker beige/grey */
    color: var(--text-color);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-outline {
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--text-color);
    border-radius: 30px;
    transition: all var(--transition-speed);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1.2s ease-out;
}

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

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        /* Cover entire top */
        background-color: rgba(253, 251, 247, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        /* Above nav links */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Category Page Header Styles */
.category-header {
    padding: 8rem 5% 3rem;
    text-align: center;
    background-color: var(--secondary-bg);
    margin-top: 80px;
    /* Offset for fixed navbar */
}

.category-header h1 {
    font-family: 'Pinyon Script', cursive;
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.category-header p {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Customization Section */
.customization-section {
    background-color: var(--primary-bg);
    padding: 0 5% 4rem;
    /* Reduced top padding as it comes after header */
    text-align: center;
}

.customization-box {
    background-color: #fff;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
}

.customization-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--heading-font);
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.customization-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

.scents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.scent-item {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-family: var(--body-font);
}

.scent-item::before {
    content: '•';
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.color-option {
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
    margin-top: 1rem;
}

.color-option h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    color: var(--text-color);
}

.color-option p {
    color: var(--text-light);
    font-style: italic;
}

/* Subtle Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Category Generic Header Style for Backgrounds */
.category-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff !important;
    /* Force white text */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
    padding: 8rem 5% 6rem;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* Dark overlay for contrast */
    z-index: 1;
}

.category-header h1,
.category-header p {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

/* Specific Background Classes */
.bg-candles {
    background-image: url('assets/bg-candles.png');
}

.bg-wax-melts {
    background-image: url('assets/bg-wax-melts.png');
}

.bg-favors {
    background-image: url('assets/bg-favors.png');
}

.bg-porcelain-wax {
    background-image: url('assets/bg-porcelain-wax.png');
}

/* Fallbacks for Missing Images */
.bg-porcelain-items {
    background-image: url('assets/background_porcelain_items.jpg');
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.bg-porcelain-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    display: block !important;
}

.bg-porcelain-items h1,
.bg-porcelain-items p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}


.bg-aromatics {
    background-image: url('assets/background_aromatics.jpg');
    color: #fff !important;
    /* Force white text */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
}

.bg-aromatics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* Dark overlay for contrast */
    z-index: 1;
    display: block !important;
}

.bg-aromatics h1,
.bg-aromatics p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}