/* * Sparow's Creations - Premium Design System
 * Architect: SiteBuilder Elite
 */

:root {
    /* Color Palette - Warm, Nostalgic, Premium */
    --color-bg: #f9f7f2;
    --color-text: #4a4a4a;
    --color-heading: #2c2c2c;
    --color-primary: #8da399; /* Sage Green */
    --color-primary-dark: #7a8f85;
    --color-secondary: #d4a59a; /* Dusty Rose */
    --color-accent: #b08d55; /* Muted Gold */
    --color-white: #ffffff;
    --color-overlay: rgba(255, 255, 255, 0.85);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --blur-strength: 12px;

    /* Typography - Fluid Sizing */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --h1-size: clamp(2.5rem, 5vw, 4.5rem);
    --h2-size: clamp(2rem, 4vw, 3rem);
    --h3-size: clamp(1.25rem, 2vw, 1.75rem);
    --p-size: clamp(1rem, 1vw, 1.15rem);

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: clamp(3rem, 6vw, 6rem);
    --grid-gap: clamp(1.5rem, 3vw, 3rem);
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-title { margin-bottom: 1rem; font-size: var(--h2-size); }
.section-subtitle { 
    color: var(--color-primary); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.875rem; 
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navigation - Glassmorphism & Adaptive Colors */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    color: var(--color-white); /* White text by default at top */
}

/* Mobile Toggle (Hamburger) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

/* Scrolled State (Light Background, Dark Text) */
.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
    color: var(--color-heading); /* Switch to dark text */
}

.site-header.scrolled .mobile-toggle span {
    background-color: var(--color-heading);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated Logo Styles */
.logo {
    display: block;
    line-height: 0; /* Removes extra space below image */
    position: relative;
}

.logo img {
    max-height: 60px; /* Restricts height to fit header */
    width: auto;      /* Maintains aspect ratio */
    object-fit: contain;
}

/* Logo Switching Logic */
/* Default State (Top): Show White, Hide Dark */
.logo .logo-dark { display: none; }
.logo .logo-white { display: block; }

/* Scrolled State: Show Dark, Hide White */
.site-header.scrolled .logo .logo-white { display: none; }
.site-header.scrolled .logo .logo-dark { display: block; }

/* Product Page: Always Show Dark Logo */
.site-header[data-dark-logo="true"] .logo .logo-white { display: none; }
.site-header[data-dark-logo="true"] .logo .logo-dark { display: block; }


.nav-links { display: flex; gap: 2.5rem; }

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    color: inherit;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Changed to Dark Sage Green to support White Text */
    background: linear-gradient(135deg, var(--color-primary) 0%, #6d8579 100%);
    overflow: hidden;
    color: var(--color-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
    color: var(--color-white); /* Ensure H1 is white */
}

.hero .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: var(--p-size);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-white);
    color: var(--color-primary); /* Invert colors for button on dark bg */
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background-color: #f0f0f0;
}

/* Collections Grid */
.collections { padding: var(--section-padding) 0; }

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin-top: 3rem;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-img {
    height: 280px;
    width: 100%;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 { margin-bottom: 0.75rem; font-size: var(--h3-size); }
.card p { font-size: 0.95rem; color: #777; margin-bottom: 1.5rem; }

.card-link {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Process / About Section */
.process {
    background-color: var(--color-white);
    padding: var(--section-padding) 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-text h2 { margin-bottom: 1.5rem; }

.stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat h4 { font-size: 2.5rem; color: var(--color-secondary); margin-bottom: 0.5rem; }
.stat span { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: #999; }

/* Testimonials */
.testimonials {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #f0ece6 100%);
    text-align: center;
}

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

.review-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: var(--glass-border);
}

.stars { color: var(--color-accent); margin-bottom: 1rem; }
.review-text { font-style: italic; font-size: 1.1rem; margin-bottom: 1.5rem; }
.reviewer { font-weight: 700; font-family: var(--font-serif); }

/* Footer */
.site-footer {
    background-color: #2c2c2c;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

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

.footer-brand h3 { color: var(--color-white); margin-bottom: 1rem; }
.footer-links a { display: block; margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--color-white); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; font-size: 0.9rem; }

/* -----------------------------------------------------------------
   Mobile Responsive Adjustments 
   ----------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-image-wrapper {
        width: 100%;
        height: 50vh;
        position: relative;
        order: -1; /* Put image on top */
    }

    .hero {
        flex-direction: column;
        padding-top: 0;
        text-align: center;
    }

    .hero-content {
        padding: 3rem 1.5rem;
        max-width: 100%;
    }

    .process-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-row {
        justify-content: center;
    }
    
    .process-img {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Fix: Reduced logo size for mobile screens */
    .logo img {
        max-height: 50px;
    }

    /* Fix: Enforce single logo visibility on mobile */
    .logo .logo-dark { display: none; }
    .logo .logo-white { display: block; }
    
    .site-header.scrolled .logo .logo-white { display: none; }
    .site-header.scrolled .logo .logo-dark { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        height: 100vh;
        width: 60%;
        max-width: 220px;
        background: var(--color-white);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        color: var(--color-text); /* Ensure links are dark on white mobile menu */
    }

    .nav-links.active {
        right: 0;
    }

    /* Override white text for mobile menu since background is white */
    .nav-links a {
        color: var(--color-heading);
        font-size: 1.2rem;
    }

    .grid-layout {
        grid-template-columns: 1fr; /* Full width cards */
    }

    .card-img {
        height: 240px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
}