/**
 * INSTANTS DE LLUM - STYLES
 */

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

:root {
    --stone-50: #FDFCF8;
    --stone-100: #F7F5EF;
    --stone-200: #EBE7DD;
    --stone-300: #D8D3C4;
    --stone-400: #B6B09C;
    --stone-500: #948D76;
    --stone-600: #756F59;
    --stone-700: #5C5645;
    --stone-800: #464236;
    --stone-900: #3A362E;
    --olive-500: #6B705C;
    --olive-600: #585C4B;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--stone-50);
    color: var(--stone-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* Animations */
@keyframes softFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-soft { animation: softFadeIn 1s ease-out forwards; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.scale-in { animation: scaleIn 0.6s ease-out forwards; opacity: 0; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 231, 221, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.nav-logo-icon {
    width: 56px;
    height: auto;
    transition: transform 0.5s ease;
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.05);
}

.nav-logo-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-logo span {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}

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

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-500);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--olive-500);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-whatsapp:hover {
    background: var(--olive-600);
    transform: translateY(-1px);
}

.nav-whatsapp svg { width: 18px; height: 18px; }

/* HERO HEADER */
.hero-header {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: 72px;
}

@media (min-width: 768px) {
    .hero-header {
        grid-template-columns: 1fr 1fr;
        min-height: 90vh;
    }
}

.hero-content {
    padding: 3rem 2rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 4rem 2rem 4rem 4rem;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 4rem 3rem 4rem 6rem;
    }
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-logo {
        width: 150px;
    }
}

.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--stone-500);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--olive-500);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(107, 112, 92, 0.4);
    transition: all 0.3s;
}

.hero-cta-btn:hover {
    background: var(--olive-600);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(107, 112, 92, 0.5);
}

.hero-cta-btn svg { width: 18px; height: 18px; }

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--stone-700);
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--stone-300);
    transition: all 0.3s;
}

.hero-cta-secondary:hover {
    background: var(--stone-100);
    border-color: var(--stone-400);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        padding: 3rem;
    }
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .hero-image {
        max-width: 450px;
        border-radius: 2rem;
    }
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* MAIN */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* SECTION TITLES */
.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--stone-900);
}

/* PRODUCTS */
.products-section { margin-bottom: 5rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.product-card {
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover { transform: translateY(-4px); }

.product-card.out-of-stock { opacity: 0.6; }
.product-card.out-of-stock .product-image img { filter: grayscale(40%); }

.product-image {
    aspect-ratio: 1;
    border-radius: 1rem;
    background: var(--stone-100);
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(235, 231, 221, 0.6);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    opacity: 0.9;
}

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

.product-add {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem;
    border-radius: 50%;
}

.product-card:hover .product-add { opacity: 1; }

.product-add svg { width: 14px; height: 14px; color: var(--stone-900); }

.product-info { padding: 0 0.25rem; }

.product-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.125rem;
    color: var(--stone-800);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.product-size {
    font-size: 0.75rem;
    color: var(--stone-500);
    font-weight: 300;
}

.product-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-900);
    background: var(--stone-100);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
}

/* STOCK BADGE */
.stock-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.stock-badge.esgotat {
    background: var(--stone-700);
    color: white;
}

/* WHATSAPP BTN */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--olive-500);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
    width: 100%;
}

.whatsapp-btn:hover {
    background: var(--olive-600);
    transform: translateY(-1px);
}

.whatsapp-btn.disabled {
    background: var(--stone-300);
    cursor: not-allowed;
    pointer-events: none;
}

.whatsapp-icon { width: 14px; height: 14px; }

/* PACKS */
.packs-section { margin-bottom: 5rem; }

.packs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .packs-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 1024px) {
    .packs-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem; 
    }
}

.pack-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(235, 231, 221, 0.6);
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.pack-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(87, 83, 77, 0.2);
}

.pack-item.out-of-stock { opacity: 0.6; }

.pack-image {
    aspect-ratio: 2 / 1;
    background: var(--stone-100);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .pack-image {
        aspect-ratio: 2.5 / 1;
    }
}

.pack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    opacity: 0.9;
}

.pack-item:hover .pack-image img { 
    transform: scale(1.1); 
    opacity: 1;
}

.pack-info {
    padding: 1rem 1.25rem;
}

.pack-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--stone-800);
    font-weight: 400;
}

.pack-description {
    font-size: 0.8rem;
    color: var(--stone-500);
    margin-bottom: 0.75rem;
    font-weight: 300;
    line-height: 1.5;
}

.pack-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-900);
    background: var(--stone-100);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

/* QUI SOM */
.about-section {
    margin-bottom: 4rem;
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4/5;
}

@media (min-width: 768px) {
    .about-image { aspect-ratio: 3/4; }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.about-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stone-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content { padding: 1rem 0; }

.about-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--olive-500);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(107, 112, 92, 0.1);
    border-radius: 50px;
}

.about-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 0.95rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .about-features { grid-template-columns: repeat(3, 1fr); }
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--stone-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--olive-500);
}

.about-feature h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-800);
    margin-bottom: 0.125rem;
}

.about-feature p {
    font-size: 0.75rem;
    color: var(--stone-500);
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(235, 231, 221, 0.6);
    margin-top: 2rem;
    padding: 3rem 0;
    background: var(--stone-50);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-logo:hover { opacity: 1; }

.footer-logo-icon {
    width: 36px;
    height: auto;
}

.footer-logo-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-logo span {
    font-family: 'Crimson Pro', serif;
    color: var(--stone-600);
}

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

.footer-links a {
    font-size: 0.75rem;
    color: var(--stone-500);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--stone-900); }

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--stone-500);
    grid-column: 1 / -1;
}