/* PALETA DE CORES CLARA & VIVA (3MAIS TAPETES) */
:root {
    --primary-red: #e61c24;          /* Vermelho vibrante da logo */
    --primary-red-hover: #c4141b;
    --bg-light: #f4f5f7;             /* Fundo cinza claro principal */
    --card-white: #ffffff;           /* Fundo branco para os cards */
    --text-black: #18181b;           /* Preto principal para textos */
    --text-muted: #4b5563;           /* Cinza escuro para subtextos */
    --border-light: #e4e4e7;         /* Bordas sutis claras */
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-black);
    line-height: 1.6;
}

/* HEADER & NAVBAR DESKTOP */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-bottom: 3px solid var(--primary-red);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-whatsapp {
    background-color: var(--primary-red);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(230, 28, 36, 0.25);
}

.nav-btn-whatsapp:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

/* BOTÃO DE MENU HAMBÚRGUER (CELULAR) */
.mobile-menu-toggle {
    display: none; /* Escondido em telas grandes */
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-black);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: var(--primary-red);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(20, 20, 20, 0.85)), 
                url('imagens/tapete3mais.jpeg') center/cover;
    color: white;
    padding: 170px 20px 100px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 19px;
    margin-bottom: 30px;
    color: #e4e4e7;
    font-weight: 500;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-red);
    color: white;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(230, 28, 36, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.btn-whatsapp-large:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

/* SEÇÃO DIFERENCIAIS */
.about {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    scroll-margin-top: 90px;
}

.about h2 {
    font-size: 32px;
    color: var(--text-black);
    margin-bottom: 20px;
    font-weight: 800;
}

.about p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--card-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-red);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.feature-card i {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-black);
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* CARROSSEL DE PRODUTOS */
.products-section {
    background-color: #ffffff;
    padding: 80px 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--text-black);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 20px;
}

.product-card {
    min-width: calc(33.333% - 14px);
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-black);
    font-weight: 700;
}

.product-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-card {
    background-color: var(--primary-red);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-card:hover {
    background-color: var(--primary-red-hover);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 2px solid var(--border-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 18px;
    color: var(--text-black);
    z-index: 10;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* SEÇÃO POR QUE NÓS */
.why-choose {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    scroll-margin-top: 90px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reason-card {
    background: var(--card-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 5px solid var(--primary-red);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.reason-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-black);
    font-weight: 700;
}

.reason-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* RODAPÉ E CONTATO */
footer {
    background: #111113;
    color: white;
    padding: 60px 20px 30px;
    border-top: 3px solid var(--primary-red);
    scroll-margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-red);
    font-weight: 700;
}

.footer-col p, .footer-col a {
    font-size: 14px;
    color: #a1a1aa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #27272a;
    font-size: 13px;
    color: #71717a;
}

/* BOTÃO VOLTAR AO TOPO */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(230, 28, 36, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background-color 0.2s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
}

/* RESPONSIVIDADE PARA CELULARES E TABLETS */
@media (max-width: 850px) {
    .mobile-menu-toggle {
        display: block; /* Revela o botão hambúrguer no celular */
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-bottom: 3px solid var(--primary-red);
        display: none; /* Escondido por padrão, aberto via JS */
    }

    .nav-menu.active {
        display: flex; /* Exibe o menu quando ativo */
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        font-size: 16px;
    }

    .nav-btn-whatsapp {
        font-size: 13px;
        padding: 8px 14px;
    }

    .hero {
        padding: 130px 15px 70px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-whatsapp-large {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }

    .about h2, .section-title {
        font-size: 24px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .product-card { 
        min-width: 100%; 
    }

    .carousel-btn { 
        display: none; /* No celular desliza nativamente com o dedo */
    }

    .carousel-track { 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 10px;
    }

    .product-card { 
        scroll-snap-align: start; 
    }
}