/* =========================================
   CSS Custom Properties & Design System
   ========================================= */
:root {
    /* Color Palette */
    --clr-bg: #F4F1ED; /* Soft Cream / Beige */
    --clr-text: #2D2A26; /* Dark Walnut almost black */
    --clr-text-light: #5A544F;
    --clr-accent: #C79A5E; /* Soft Gold */
    --clr-walnut: #41352A;

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --glass-glow: inset 0 0 20px rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Border Radius */
    --br-md: 16px;
    --br-lg: 24px;
    --br-pill: 999px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#smooth-wrapper {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-walnut);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================================
   Liquid Glass UI Utilities
   ========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    box-shadow: var(--glass-shadow), var(--glass-glow);
    border-radius: var(--br-lg);
    position: relative;
    overflow: hidden;
}

/* Add a subtle inner light reflection to glass panels */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--clr-text);
    padding: 12px 28px;
    border-radius: var(--br-pill);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; padding-bottom: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    border-radius: 50%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.glass-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
}

/* =========================================
   Navbar
   ========================================= */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(244, 241, 237, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--br-pill);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--clr-walnut);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -15%; left: 0;
    width: 100%; height: 130%; /* taller for parallax and offset top */
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 3rem;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-walnut);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Featured Section
   ========================================= */
.featured {
    padding: var(--space-xl) 5%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    border-radius: var(--br-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    perspective: 1000px;
    /* Fix for border-radius loss on transform in WebKit */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.card-img-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: var(--br-lg);
}

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

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

.card-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.product-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.4); /* intense glass on hover */
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin-bottom: 15px;
}

/* =========================================
   About Section
   ========================================= */
.about {
    padding: var(--space-xl) 5%;
    background: #EAE6DF;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 4rem;
    background: rgba(244, 241, 237, 0.5); /* subtle glass */
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--br-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--glass-shadow);
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery {
    padding: var(--space-xl) 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--br-lg);
    aspect-ratio: 1/1;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: var(--br-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* =========================================
   Footer
   ========================================= */
.glass-footer {
    margin: 0 5% \var(--space-md) 5%;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--glass-shadow);
    border-radius: var(--br-lg);
    margin-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    text-align: right;
    color: var(--clr-text-light);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 12px 20px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(37, 211, 102, 0.3), inset 0 0 15px rgba(255,255,255,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa svg {
    width: 24px;
    height: 24px;
    fill: #1eb954; /* green WhatsApp tone but muted for elegance */
    filter: drop-shadow(0 0 5px rgba(30, 185, 84, 0.5));
}

.floating-wa span {
    font-weight: 500;
}

.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px 0 rgba(37, 211, 102, 0.4), inset 0 0 20px rgba(255,255,255,0.8);
}

/* =========================================
   Responsive Design
   ========================================= */
@media screen and (max-width: 900px) {
    :root {
        --space-xl: 4rem; /* halve the vertical spaces */
        --space-lg: 2rem;
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
        padding: 0 10px;
    }

    .hero-content {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 92%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .about-text {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-image {
        width: 100%;
        max-width: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .glass-nav {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 15px; /* Prevent edge bleeding */
    }
    
    .product-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        min-height: 480px;
    }

    .card-info {
        width: calc(100% - 40px);
        left: 20px;
    }

    .glass-footer {
        padding: 2.5rem 1.5rem;
        text-align: center;
        margin: 0 5% var(--space-md) 5%;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .floating-wa span {
        display: none; /* Icon only on mobile to save space */
    }
}
