/* ========================================
   Atacado 68 Soluções - Styles
   ======================================== */

:root {
    --primary-color: #044445;
    --secondary-color: #EE7D37;
    --accent-color: #2D3E50;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ========================================
   Main Header
   ======================================== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 70px;
    object-fit: contain;
}



.search-btn:hover {
    background-color: var(--secondary-color);
}

.contact-info {
    text-align: right;
}

.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.spacer {
    height: 3px;
    background-color: var(--secondary-color);
    width: 50px;
    margin-left: auto;
    margin-bottom: 8px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.phone-link i {
    color: var(--secondary-color);
}

.phone-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   Navigation
   ======================================== */
.main-nav{
    height:20px;
    width: auto;
    background-color: #044445;
}

/* ========================================
   Hero Carousel
   ======================================== */
.hero-section {
    background-color: var(--dark-color);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-pagination .dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-top: 20px;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin: 0 auto 20px;
    
}

.service-icon img {
    width: 100%;
    height: 100%;

}

.service-card h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   Details Section
   ======================================== */
.details-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.detail-card {
    text-align: center;
    padding: 30px 20px;
    color: var(--white);
}

.detail-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.detail-card p {
    font-size: 14px;
    opacity: 0.9;
}





/* ========================================
   Products Section
   ======================================== */
/* --- Estilos Gerais da Seção --- */
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* --- Estrutura do Carrossel (Controle de Movimento) --- */

/* Container que centraliza botões e carrossel */
.carousel-main-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza a "janela" do carrossel */
    width: 100%;
}

/* A "janela" por onde os cards passam - Controla o Overflow */
.products-carousel-wrapper {
    position: relative;
    overflow: hidden; /* Corta os cards que saem da área lateral */
    width: 100%; /* Ocupa o container disponível */
    max-width: 1200px; /* Ou a largura total desejada */
    margin: 0; /* Removi as margens laterais para usar padding no container principal */
}

/* A linha que desliza - Adiciona Gap e Suavidade */
.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out; /* Controla a animação */
    will-change: transform; /* Dica para o navegador otimizar */
    padding: 15px 0; /* Espaço para a sombra do hover não cortar */
}

/* --- Estilo Original do Card --- */
.product-card {
    min-width: 220px; /* Garante tamanho mínimo */
    max-width: 220px; /* Garante tamanho máximo */
    flex: 0 0 220px;  /* CRUCIAL: Impede o card de esticar e força o tamanho fixo */
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition); /* Mantém sua transição original */
    display: flex;
    flex-direction: column; /* Organiza o conteúdo verticalmente */
    height: 100%; /* Opcional: Garante que todos os cards tenham a mesma altura */
}

/* Sombra e Efeito de Escala Original no Hover */
.product-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 150px;
    padding: 20px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card h4 {
    font-size: 16px;
    color: var(--accent-color);
    margin: 15px 10px 5px; /* Ajustei a margem para espaçar melhor */
}

.product-card p {
    font-size: 13px;
    color: var(--gray);
    margin: 0 10px 15px; /* Ajustei a margem para espaçar melhor */
    flex-grow: 1; /* Faz o texto ocupar o espaço e empurrar o link para baixo */
}

/* --- Estilo Original do Link "Ver mais" --- */
.product-link {
    display: block;
    padding: 10px;
    background-color: var(--primary-color); /* Fundo verde original */
    color: var(--white); /* Texto branco original */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase; /* Exemplo de estilização adicional, opcional */
    margin-top: auto; /* Empurra o link para o final do card */
}

.product-link:hover {
    background-color: var(--secondary-color); /* Cor de hover original */
    color: var(--white);
}

/* --- Estilo dos Botões - Posicionados Fora do Overflow --- */
.products-carousel-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0; /* Impede o botão de diminuir */
}

.products-carousel-btn:hover {
    background-color: var(--secondary-color);
}

/* Botões posicionados em relação ao .carousel-main-container */
.products-carousel-btn.prev {
    position: absolute;
    left: -20px; /* Mantive a posição negativa para ficar fora */
}

.products-carousel-btn.next {
    position: absolute;
    right: -20px; /* Mantive a posição negativa para ficar fora */
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display:flex;
    /*display: grid;*/
    /*grid-template-columns: 2fr 1fr 1fr 1.5fr;*/
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    border-radius:10px;
}

.footer-col > p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a,
.footer-links li {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-links li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   WhatsApp Float Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }

    .main-header {
        position: relative;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .contact-info {
        order: 2;
    }

    .search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .carousel-container {
        height: 300px;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .services-section,
    .blog-section,
    .products-section,
    .contact-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 28px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .phone-link {
        font-size: 14px;
    }

    .contact-title {
        font-size: 12px;
    }

    .carousel-container {
        height: 200px;
    }

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

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

    .product-card {
        min-width: 180px;
    }
}
