/* ============================================
   LA MOUTCH — Landing Page
   Palette: jaune #F2B705 → orange #E87C1E → rouge #D42C2C
   Font: DM Sans
   ============================================ */

/* --- Tanker Display Font ------------------- */
@font-face {
    font-family: 'Tanker';
    src: url('fonts/Tanker-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

/* --- Custom Properties --------------------- */
:root {
    --yellow: #F2B705;
    --orange: #E87C1E;
    --red: #D42C2C;
    --cream: #FFFBF5;
    --cream-dark: #FFF3E0;
    --dark: #1A1A1A;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 8px;
}

/* --- Base ---------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

strong {
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HERO ---------------------------------- */
.hero {
    height: 100vh;
    height: 100svh;
    position: sticky;
    top: 0;
    z-index: 0;
    overflow: hidden;
    background: #1a1a1a;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform-origin: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* --- INTRO --------------------------------- */
.intro {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    background-color: var(--cream);
    text-align: center;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.15);
}

.intro-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.intro-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}

.intro-flag {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- TEXTURE DIVIDER ----------------------- */
.texture-divider {
    position: sticky;
    top: 0;
    height: 130vh;
    z-index: 0;
    overflow: hidden;
}

.texture-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    will-change: transform;
    transform-origin: center center;
}

.texture-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    object-position: center center;
}

.texture-layer:nth-child(2),
.texture-layer:nth-child(3) {
    clip-path: inset(0 100% 0 0);
}

/* Scrolling words overlay — viewport height only */
.scrolling-words {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    pointer-events: none;
}

.scrolling-words span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Tanker', Georgia, serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    line-height: 1;
    white-space: nowrap;
    will-change: transform, opacity;
}

/* --- PRODUCTS ------------------------------ */
.products {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background-color: var(--white);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.15);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 56px;
    color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.product-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--cream);
}

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

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* --- BANNER -------------------------------- */
.banner {
    position: relative;
    z-index: 1;
    height: 35vh;
    background: url('img/banner-aronia.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 80%;
    max-width: 1000px;
}

.banner-text {
    font-family: 'Tanker', Georgia, serif;
    font-size: clamp(3.75rem, 15vw, 10rem);
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    will-change: transform;
}

/* --- FOOTER -------------------------------- */
.footer {
    position: relative;
    z-index: 1;
    padding: 64px 0 40px;
    background-color: var(--white);
    text-align: center;
}

.footer-logo {
    width: 180px;
    margin: 0 auto 24px;
}

.footer-tagline {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 28px;
    font-weight: 300;
}

.footer-social {
    margin-bottom: 28px;
}

.footer-social p {
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.25);
}

/* --- RESPONSIVE ---------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .products-grid {
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .intro {
        padding: 28px 0;
        border-radius: 20px 20px 0 0;
    }

    .intro-title {
        font-size: 1rem;
    }

    .texture-divider {
        height: 125vh;
    }

    .scrolling-words span {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .products {
        border-radius: 20px 20px 0 0;
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.625rem;
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 24px;
    }

    .product-image {
        aspect-ratio: 1 / 1;
    }

    .banner {
        height: 25vh;
    }

    .footer {
        padding: 48px 0 32px;
    }

    .footer-logo {
        width: 140px;
    }

    .footer-tagline {
        font-size: 0.9375rem;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .banner-text {
        font-size: 1.75rem;
    }
}
