:root {
    --color-text: #8CA15E; /* Verd oliva */
    --color-bg: #F1F1EF;   /* Blanc trencat */
    --color-accent-blue: #CEDBEE;
    --color-dark-green: #3F5411;
    --color-black: #000000;
    
    --font-serif: 'Cormorant SC', 'Times New Roman', serif; 
    --font-sans: 'Graphik', 'Helvetica Neue', 'Arial', sans-serif;
    
    --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-bg); font-family: var(--font-sans); color: var(--color-text); overflow-x: hidden; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

/* === MENÚ === */
.main-nav { width: 100%; height: 48px; background-color: var(--color-bg); position: relative; z-index: 100; }
.nav-container { max-width: var(--max-width); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; }
.nav-item a { text-decoration: none; color: var(--color-text); font-family: var(--font-serif); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.nav-item.center { text-align: center; }
.nav-item.right { text-align: right; }

/* Botó Hamburguesa */
.hamburger-btn { display: none; }

/* DESPLEGABLE MÒBIL */
.mobile-menu-overlay { 
    display: none; 
    position: absolute; 
    top: 48px; 
    left: 0; 
    width: 100%; 
    background-color: var(--color-text); 
    padding: 30px 20px; 
    text-align: center; 
    border-top: 1px solid var(--color-bg);
    z-index: 99;
}
.mobile-menu-overlay.is-active { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu-overlay a {
    text-decoration: none;
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LANDING */
.hero-section { position: relative; width: 100%; height: 745px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.flower-crown { position: relative; z-index: 1; width: auto; max-height: 80vh; opacity: 0.7; }

/* TÍTOL LANDING */
.hero-title { 
    position: absolute; 
    z-index: 3; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%; 
    max-width: var(--max-width); 
    padding: 0 20px; 
    text-align: center; 
    color: var(--color-bg); 
    font-size: 124px; 
    line-height: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
    font-family: var(--font-serif); 
}

/* MARQUEE INTRO */
.marquee-intro-bar {
    width: 100%;
    height: 68px;
    background-color: var(--color-text);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.marquee-intro-bar .marquee-track { display: flex; white-space: nowrap; will-change: transform; }
.marquee-intro-bar span { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; text-transform: uppercase; padding-right: 50px; font-weight: 400; }

/* COMPONENTS */
.btn-ritual { background-color: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-text); padding: 12px 24px; font-family: var(--font-serif); font-size: 1.1rem; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; border-radius: 4px; font-weight: 600; }
.btn-ritual:hover { background-color: var(--color-text); color: var(--color-bg); }

/* PRODUCTES */
.products-section { width: 100%; height: 536px; background-color: var(--color-bg); display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.products-container { width: 100%; max-width: var(--max-width); height: 100%; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.products-container::-webkit-scrollbar { display: none; }
.product-card { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; scroll-snap-align: center; }
.card-image img { max-width: 100%; height: auto; max-height: 200px; object-fit: contain; margin-bottom: 20px; }
.card-title { font-size: 2rem; margin-bottom: 10px; color: #000; font-family: var(--font-serif); }

/* DESCRIPCIÓ PRODUCTES (RECTIFICAT: PES NORMAL) */
.card-desc { 
    font-family: var(--font-sans); 
    font-style: italic; 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 20px; 
    max-width: 80%; 
    /* Tornem al pes normal per defecte (400) */
}

/* SECCIONS GENERALS */
.dagher-section, .morknande-section { width: 100%; background-size: cover; background-position: center; position: relative; display: flex; justify-content: center; }
.dagher-section { height: 658px; }
.morknande-section { height: 704px; }
.content-wrapper { width: 100%; max-width: var(--max-width); height: 100%; position: relative; }

.content-wrapper.text-layout-left { 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    padding-top: 20px; 
}

/* TIPOGRAFIA SECCIONS */
.section-big-title { 
    padding: 0 10px; 
    color: #fff; 
    font-family: var(--font-serif);
    font-size: 162px; 
    line-height: 0.8; 
    margin-bottom: 10px; 
}

.morknande-section .section-big-title { color: var(--color-dark-green); }
.content-wrapper.dark-text .text-content { color: var(--color-dark-green); }

.section-info-box { padding: 0 20px; display: flex; flex-direction: column; }

/* === TEXTOS PRINCIPALS SECCIONS (AQUESTS SÍ EN LIGHT) === */
.text-content, 
.main-footer p { 
    color: #fff; 
    font-size: 32px; 
    line-height: 32px; 
    max-width: 60%; 
    font-weight: 300; /* Light */
}
.main-footer p { max-width: 100%; }

.button-container-absolute { position: absolute; bottom: 40px; right: 20px; }

/* MARQUEE GRAN */
.marquee-block {
    width: 100%;
    height: 286px;
    background-color: var(--color-bg); 
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.marquee-content-wrapper { width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.marquee-row { display: flex; white-space: nowrap; will-change: transform; }
.marquee-row span { font-family: var(--font-serif); font-size: 1.8rem; color: var(--color-text); padding-right: 50px; font-weight: 400; }

.scroll-left { animation: scroll-left 40s linear infinite; }
.scroll-right { animation: scroll-right 40s linear infinite; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* AFTAER */
.aftaer-header { width: 100%; height: 196px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.header-content { width: 100%; max-width: var(--max-width); padding: 0 10px; }
.aftaer-header .section-big-title { margin-bottom: 0; color: var(--color-bg); padding: 0; }

.aftaer-gallery { width: 100%; height: 584px; background-color: var(--color-accent-blue); display: flex; align-items: center; justify-content: center; }
.gallery-scroll-container { width: 100%; height: 506px; display: flex; overflow-x: auto; scrollbar-width: none; }
.gallery-scroll-container img { height: 100%; width: auto; object-fit: cover; display: block; }

/* NATT */
.natt-section { width: 100%; height: 557px; background-size: cover; background-position: center center; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 40px; }
.natt-content .section-big-title { text-align: center; margin-bottom: 0; }

/* FOOTER */
.main-footer { background-color: var(--color-black); color: var(--color-bg); padding: 60px 20px; display: flex; justify-content: center; align-items: center; text-align: center; }

/* ANIMACIONS REVEAL (SUAU) */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.fast-transition { transition-duration: 0.8s; }
.reveal-text { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.2s; 
}
.is-visible .reveal-text { opacity: 1; transform: translateY(0); }


/* === MEDIA QUERIES === */
@media screen and (max-width: 1023px) {
    /* TABLET */
    .hero-title { font-size: 62px; }

    .section-big-title { font-size: 101px; }
    .text-content, .main-footer p { font-size: 28px; line-height: 28px; max-width: 80%; }

    .hero-section { height: 706px; }
    .products-section { height: 536px; }
    .products-container { scroll-snap-type: x mandatory; }
    .product-card { flex: 0 0 50%; }
    .dagher-section { height: 694px; }
    .aftaer-header { height: 145px; }
    .aftaer-gallery { height: 578px; }
    .gallery-scroll-container { height: 506px; } 
    .morknande-section { height: 576px; }
    .natt-section { height: 319px; }
    .marquee-block { height: 282px; }
}

@media screen and (max-width: 767px) {
    /* MOBILE */
    .hero-title { font-size: 32px; padding: 0 20px; }

    .section-big-title { font-size: 52px; }
    .text-content, .main-footer p { font-size: 18px; line-height: 18px; max-width: 100%; }

    .nav-container { display: flex; justify-content: space-between; }
    .nav-item.left, .nav-item.right { display: none; }
    .nav-item.center { text-align: left; flex-grow: 1; }
    .hamburger-btn { display: block; background: none; border: none; cursor: pointer; }
    .hamburger-btn span { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: var(--color-text); }
    .hero-section { height: 100vh; }
    
    .products-section { height: 100vh; padding: 0 10px; }
    .products-container { scroll-snap-type: x mandatory; }
    .product-card { flex: 0 0 100%; scroll-snap-align: center; }
    .dagher-section, .morknande-section { height: 100vh; }
    
    .content-wrapper.text-layout-left { align-items: center; justify-content: center; text-align: center; padding-top: 0; }
    
    .morknande-section .content-wrapper.text-layout-left,
    .dagher-section .content-wrapper.text-layout-left {
        justify-content: flex-start;
        padding-top: 80px; 
    }

    .section-info-box { padding: 0 20px; }
    .text-content { margin-bottom: 40px; }
    .button-container-absolute { position: static; margin-top: 20px; }
    .aftaer-header { height: 81px; }
    
    .aftaer-gallery { height: 75vh; } 
    .gallery-scroll-container { height: 100%; } 
    .gallery-scroll-container img { width: 100vw; height: 75vh; object-fit: cover; scroll-snap-align: center; }
    
    .natt-section { 
        height: 205px; 
        position: relative; 
        background-position: center 40%; 
    }
    .natt-section .natt-content .section-big-title {
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: 52px; 
    }
    
    .marquee-block { height: 197px; }
    .marquee-row span { font-size: 1.2rem; }
    .marquee-intro-bar { height: 39px; }
    .marquee-intro-bar span { font-size: 1.1rem; }
}