/* --- Design Tokens & Resets --- */
:root {
    --color-bg: #fcfbfa;
    --color-text: #2c1e16;
    --color-primary: #bc6c25;
    --color-primary-hover: #9c581c;
    --color-secondary: #dda15e;
    --color-accent: #fefae0;
    --color-light: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(44, 30, 22, 0.05);
    --shadow-md: 0 8px 24px rgba(44, 30, 22, 0.08);
    --shadow-lg: 0 16px 32px rgba(44, 30, 22, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
}

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

ul {
    list-style: none;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border: 1px solid var(--color-light);
}

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-text);
}

.btn-nav {
    background-color: var(--color-text);
    color: var(--color-light);
    padding: 0.6rem 1.25rem;
}

.btn-nav:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    background: var(--color-light);
    color: var(--color-text);
}

.btn-sm:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
}

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

.nav-links a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-secondary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-light);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    transform: scale(1.05); /* Slight scale for parallax effect potential */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 30, 22, 0.4), rgba(44, 30, 22, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-light);
    max-width: 800px;
    padding-top: 5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-secondary);
    font-style: italic;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features --- */
.features {
    padding: 5rem 0;
    background-color: var(--color-light);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--color-bg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-light);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* --- Collection --- */
.collection {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

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

.product-card {
    background: var(--color-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    group: product;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.product-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* --- Gallery Parallax --- */
.gallery {
    padding: 2rem 0;
    overflow: hidden;
    background-color: var(--color-light);
}

.gallery-container {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.gallery-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-item {
    flex: 0 0 70vw;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 30vw;
        height: 500px;
    }
    .gallery-container {
        justify-content: center;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

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

/* --- How it Works --- */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
}

/* Line connecting steps on desktop */
@media (min-width: 900px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 3rem;
        left: 10%;
        right: 10%;
        height: 2px;
        background: dashed 2px var(--color-secondary);
        z-index: 0;
    }
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--color-light);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--color-bg);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-text);
    margin: 1.5rem 0 1rem;
}

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

.step p {
    color: #666;
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    color: var(--color-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-light);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: var(--shadow-sm);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        color: var(--color-text);
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }
    
    .navbar {
        background-color: rgba(44, 30, 22, 0.9);
    }
    .navbar.scrolled {
        background-color: var(--color-light);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
