/* =========================================================
   3MAIS TAPETES - CSS RESPONSIVO & ORGANIZADO
   ========================================================= */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f7f8f9;
    color: #1f1f1f;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-color: #e30613;
    --primary-hover: #b8040f;
    --dark-color: #1c1c1c;
    --light-color: #f7f8f9;
    --white: #ffffff;
    --gray-text: #666666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- HEADER --- */
.header-site {
    width: 100%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    max-width: 180px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-header-wa:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    width: 100%;
    min-height: 480px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("imagens/faixadaT.jpeg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

.hero-container {
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-hero:hover {
    background: #1eb956;
    transform: scale(1.05);
}

/* --- PRODUTOS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-product {
    text-align: center;
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-product:hover {
    background: var(--primary-color);
}

/* --- DIFERENCIAIS --- */
.about-bg {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--light-color);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* --- FOOTER --- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-col p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col i {
    margin-right: 8px;
    color: var(--primary-color);
}

.copyright {
    background: #111111;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #888888;
}

/* --- VOLTAR AO TOPO --- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
}

/* =========================================================
   RESPONSIVIDADE & MENU MOBILE (HAMBÚRGUER)
   ========================================================= */
@media (max-width: 868px) {
    .header-site {
        position: relative;
    }

    .navbar {
        position: relative;
    }

    /* O esqueleto do menu suspenso no celular */
    .nav-menu {
        display: none; /* Escondido por padrão */
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    /* Classe ativada via JS quando clica no hambúrguer */
    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .btn-header-wa span {
        display: none; /* Mantém apenas o ícone no header mobile para economizar espaço */
    }

    .btn-header-wa {
        padding: 10px;
        border-radius: 50%;
    }
}
/* =========================================================
   GRID DE PRODUTOS (2 COLUNAS CENTRALIZADAS)
   ========================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas iguais */
    gap: 30px;
    max-width: 950px; /* Mantém uma largura proporcional perfeita */
    margin: 30px auto 0 auto; /* Centraliza a grade na tela */
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 280px; /* Altura ideal para 2 cards maiores */
    object-fit: cover;
}

.product-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* No celular fica um embaixo do outro */
        gap: 20px;
    }

    .product-img {
        height: 220px;
    }
}

/* =========================================================
   AJUSTES FINOS DO CARROSSEL BOOTSTRAP
   ========================================================= */

#carouselExample {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
}

/* Deixa as setas do Bootstrap um pouco mais escuras e visíveis */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    background-color: rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Responsive para celular */
@media (max-width: 768px) {
    .carousel-item img {
        height: 280px;
    }
}