/* ========================================
   VARIÁVEIS DE CORES - BRASECOM
   ======================================== */
:root {
    --primary-color: #318CE7;
    --secondary-color: #afcdea;
    --accent-color: #318CE7;
    --success-color: #318CE7;
    --text-dark: #0F1111;
    --text-light: #565959;
    --bg-light: #F7F8FA;
    --bg-white: #FFFFFF;
    --border-color: #D5D9D9;
    --amazon-orange: #318CE7;
    --brasecom-blue: #318CE7;
    --brasecom-light: #afcdea;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo responsivo */
@media (max-width: 640px) {
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
}

.nav-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--amazon-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amazon-orange);
    transition: width 0.3s ease;
}

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

#mobileMenuBtn {
    color: white;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: auto; /* Altura ajusta à imagem */
}

.hero-slide {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: auto; /* Altura proporcional à largura */
    display: block;
    object-fit: contain;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.btn-primary {
    background: var(--amazon-orange);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-primary:hover {
    background: #2070c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    min-height: 50px;
    line-height: 1.4;
}

.product-card .btn-quote {
    margin-top: auto;
}

/* ========================================
   PRODUCTS CAROUSEL
   ======================================== */
.product-card-small {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.product-card-small:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card-small img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    aspect-ratio: 1/1;
}

.product-card-small h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    min-height: 45px;
}

.text-primary {
    color: var(--primary-color);
}

.btn-quote {
    background: var(--amazon-orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(49, 140, 231, 0.3);
    white-space: nowrap;
    font-size: 14px;
}

.btn-quote:hover {
    background: #2070c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 140, 231, 0.4);
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

/* ========================================
   SWIPER - CENTRALIZAÇÃO PARA POUCOS ITENS
   ======================================== */
/* Quando tiver poucos itens (1-5), centraliza */
.swiper-centered {
    margin: 0 auto !important;
}

/* Esconde navegação quando não necessário */
.swiper-no-navigation .swiper-button-next,
.swiper-no-navigation .swiper-button-prev {
    display: none !important;
}

/* Container do Swiper com padding para setas */
.produtosSwiper,
.marcasSwiper,
.depoimentosSwiper {
    padding: 0 60px 50px 60px;
}

/* Mobile - reduz padding */
@media (max-width: 768px) {
    .produtosSwiper,
    .marcasSwiper,
    .depoimentosSwiper {
        padding: 0 40px 40px 40px;
    }
}

/* Quando não tem navegação, remove padding extra */
.swiper-no-navigation {
    padding: 0 20px 50px 20px !important;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(49, 140, 231, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-right: 20px;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */
#ctaSection {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

#ctaSection .cta-icon {
    background: var(--primary-color);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(49, 140, 231, 0.3);
}

#ctaSection h2 {
    color: var(--text-dark);
}

#ctaSection p {
    color: var(--text-light);
}

#ctaSection .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 18px;
}

#ctaSection .btn-primary:hover {
    background: #2070c0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(49, 140, 231, 0.4);
}

/* Mobile CTA */
@media (max-width: 768px) {
    #ctaSection .cta-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    #ctaSection .btn-primary {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ========================================
   CATEGORY BUTTONS
   ======================================== */
.category-btn {
    background: white;
    color: var(--text-dark);
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-btn.active:hover {
    background: #2070c0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .heroSwiper {
        width: 100%;
        height: auto; /* Altura ajusta à imagem */
    }
    
    .hero-slide {
        height: auto;
    }
    
    .hero-slide img {
        width: 100%;
        height: auto;
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-card img {
        height: 220px;
    }
    
    .product-card h3 {
        font-size: 15px;
        min-height: 40px;
    }
    
    /* Cards de produtos - proporções mobile */
    .product-card-small {
        padding: 12px;
    }
    
    .product-card-small img {
        height: 180px; /* Imagem mais quadrada */
        aspect-ratio: 1/1;
    }
    
    .product-card-small h3 {
        font-size: 14px;
        min-height: 38px;
        margin-bottom: 12px;
    }
    
    .btn-quote {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    /* Setas menores no mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px !important;
    }
    
    /* Grid de produtos - 2 colunas no mobile */
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .heroSwiper {
        width: 100%;
        height: auto; /* Altura ajusta à imagem */
    }
    
    .hero-slide {
        height: auto;
    }
    
    .hero-slide img {
        width: 100%;
        height: auto;
    }
    
    .category-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Manter 2 colunas mesmo em telas pequenas */
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .product-card h3 {
        font-size: 13px;
        min-height: 36px;
        line-height: 1.3;
    }
    
    /* Cards de produtos em telas pequenas */
    .product-card-small {
        padding: 10px;
    }
    
    .product-card-small img {
        height: 160px;
    }
    
    .product-card-small h3 {
        font-size: 13px;
        min-height: 36px;
    }
    
    .btn-quote {
        padding: 8px 10px;
        font-size: 11px;
        gap: 3px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

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

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}