/* ── Tokens de design ───────────────────────────────── */
:root {
    --cream: #FAF7F2;
    --cream-dark: #F0EAE0;
    --bamboo: #48c350;
    --bamboo-deep: #329d39;
    --forest: #3A5241;
    --forest-light: #4E6E58;
    --charcoal: #2A2820;
    --warm-gray: #686868;
    --white: #FFFFFF;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1200px;
    --section-py: 6rem;
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

/* ── Utilitários ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--bamboo);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--bamboo-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 99, 57, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-forest {
    background: var(--forest);
    color: var(--white);
}

.btn-forest:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 82, 65, 0.35);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bamboo);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 0.9;
}

/* ── Animações de entrada ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ════════════════════════════════════════════════════════
       HEADER / NAV
    ════════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(250, 247, 242, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logotipo */
.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--transition);
}

#header.scrolled .logo {
    color: var(--charcoal);
}

.logo_welf {
    width: 11pc;
    height: auto;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bamboo);
    transition: width var(--transition);
}

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

#header.scrolled .nav-links a {
    color: var(--warm-gray);
}

#header.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    background: var(--bamboo);
    color: var(--white);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--bamboo-deep);
}

/* Hambúrguer mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

#header.scrolled .menu-toggle span {
    background: var(--charcoal);
}

/* ════════════════════════════════════════════════════════
       HERO / BANNER
    ════════════════════════════════════════════════════════ */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Fundo: gradiente evocando bambu e natureza */
    background:
        linear-gradient(135deg,
            rgba(42, 40, 32, 0.82) 0%,
            rgba(58, 82, 65, 0.60) 60%,
            rgba(42, 40, 32, 0.40) 100%),
        url('../img/banner_welf_home.jpg') center/cover no-repeat;
}

/* Textura de grão sutil */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bamboo);
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -1px;
    color: var(--white);
    max-width: 16ch;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--bamboo);
    font-weight: 400;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42ch;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 2.5s ease-in-out infinite;
    z-index: 1;
}

.scroll-hint::before {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(6px);
    }
}

/* ════════════════════════════════════════════════════════
       SOBRE A MARCA
    ════════════════════════════════════════════════════════ */
#sobre {
    padding: var(--section-py) 0;
    background: var(--cream);
}

#sobre .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sobre-visual {
    position: relative;
}

.sobre-visual-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 24px 24px 0 var(--cream-dark);
}

.sobre-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 140px;
    height: 140px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

.sobre-badge strong {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.sobre-badge span {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.sobre-content .section-title {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-weight: 500;
    font-weight: 600;
}

.sobre-content p {
    font-size: 1rem;
    color: var(--warm-gray);
    margin-bottom: 1.25rem;
}

/* ════════════════════════════════════════════════════════
       CATEGORIAS DE PRODUTOS
    ════════════════════════════════════════════════════════ */
#categorias {
    padding: var(--section-py) 0;
    background: var(--cream-dark);
}

#categorias .container>.section-label,
#categorias .container>.section-title {
    text-align: center;
}

#categorias .container>.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 3.5rem;
    font-weight: 600;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.categoria-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 3/4;
    cursor: pointer;
    border-radius: 10px;
}

.categoria-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 40, 32, 0.75) 30%, transparent 70%);
    z-index: 1;
    transition: opacity var(--transition);
}

.categoria-card:hover::before {
    opacity: 0.9;
}

.categoria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.categoria-card:hover .categoria-img {
    transform: scale(1.06);
}

.categoria-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.categoria-num {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bamboo);
    margin-bottom: 0.35rem;
}

.categoria-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
}

/* ════════════════════════════════════════════════════════
       COMPRE WELF (CTA Mercado Livre)
    ════════════════════════════════════════════════════════ */
#compre {
    padding: var(--section-py) 0;
    background:
        url('../img/banner_mercado_livre.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

#compre .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

#compre .section-label {
    color: var(--bamboo);
}

.ml-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.ml-box-img {
    width: 180px;
    height: auto;
}

#compre .ml-title-wrapper .section-title {
    margin-bottom: 0;
}

#compre .section-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #000;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

#compre p {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.05rem;
    color: #000;
    max-width: 48ch;
    margin: 0 auto 2.5rem;
}

#compre .btn-primary {
    font-family: 'Helvetica', Arial, sans-serif;
    background-color: #2b3277;
    border-radius: 50px;
    text-transform: none;
    font-size: 18px;
    letter-spacing: 1px;
}

#compre .btn-primary:hover {
    background-color: #2b3277;
    opacity: 0.9;
}

.ml-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000;
    margin-top: 1.5rem;
}

.ml-badge::before,
.ml-badge::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #000;
    width: 40px;
}

/* ════════════════════════════════════════════════════════
       POR QUE O BAMBU
    ════════════════════════════════════════════════════════ */
#bambu {
    padding: var(--section-py) 0;
    background: var(--cream);
}

#bambu .bambu-header {
    text-align: center;
    margin-bottom: 4rem;
}

#bambu .bambu-header .section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 600;
}

#bambu .bambu-header p {
    font-size: 1rem;
    color: var(--warm-gray);
    max-width: 52ch;
    margin-inline: auto;
}

.bambu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.bambu-item {
    padding: 2rem 1.5rem;
    background: var(--cream-dark);
    border-radius: 10px;
    border-top: 3px solid transparent;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.bambu-item:hover {
    border-color: var(--bamboo);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bambu-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
    color: var(--forest);
}

.bambu-item h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.6rem;
    line-height: 0.9;
}

.bambu-item p {
    font-size: 0.83rem;
    color: var(--warm-gray);
    line-height: 1.65;
}

/* ════════════════════════════════════════════════════════
       PARA MOMENTOS ESPECIAIS
    ════════════════════════════════════════════════════════ */
#momentos {
    padding: var(--section-py) 0;
    background:
        linear-gradient(to bottom,
            rgba(42, 40, 32, 0.72) 0%,
            rgba(58, 82, 65, 0.55) 100%),
        url('../img/bg_presente.jpg') center/cover no-repeat fixed;
    text-align: center;
}

#momentos .section-label {
    color: var(--bamboo);
}

#momentos .section-title {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

#momentos p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 52ch;
    margin: 0 auto 2.5rem;
}

/* ════════════════════════════════════════════════════════
       FOOTER CTA + CONTATO
    ════════════════════════════════════════════════════════ */
#footer-cta {
    padding: var(--section-py) 0 3rem;
    background: var(--charcoal);
}

#footer-cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Coluna da marca */
.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 38ch;
    margin-bottom: 2rem;
}

.footer-brand .btn {
    margin-bottom: 2.5rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem 0;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.06em;
}

/* Coluna de contato */
.footer-contact h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-contact>p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bamboo);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--bamboo);
}

/* ════════════════════════════════════════════════════════
       PRELOADER
    ════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
}

.preloader.loaded {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    width: 9pc;
    height: auto;
}

.preloader-progress {
    width: 180px;
    height: 1.5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--bamboo);
    transition: width 0.2s ease;
}

/* ════════════════════════════════════════════════════════
       RESPONSIVIDADE
    ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bambu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
    }

    .ml-title-wrapper {
        flex-direction: column;
        gap: 0.8rem;
    }

    .ml-box-img {
        width: 120px;
    }

    .logo_welf {
        width: 7pc;
    }

    #compre .btn-primary {
        font-size: 15px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Nav mobile aberta/fechando */
    .nav-links.open,
    .nav-links.closing {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--charcoal);
        z-index: 200;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .nav-links.open {
        animation: fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .nav-links.closing {
        animation: fadeOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        pointer-events: none;
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeOutRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(100%);
        }
    }

    #header.menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .mobile-menu-logo {
        display: block !important;
    }

    .nav-links.open a,
    .nav-links.closing a {
        font-size: 1.5rem;
        letter-spacing: 0.15em;
        color: #fff;
    }

    #sobre .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sobre-visual {
        order: -1;
    }

    .sobre-badge {
        width: 110px;
        height: 110px;
    }

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

    .categorias-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.25rem;
        padding-bottom: 1rem;
        margin-inline: -2rem;
        padding-inline: 2rem;
        scroll-padding-inline: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categorias-grid::-webkit-scrollbar {
        display: none;
    }

    .btn {
        padding: 0.5rem 1.1rem;
    }

    .categoria-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }

    #footer-cta .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .bambu-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}