/* ===== CSS VARIABLES ===== */
:root {
    --primary-blue: #1e3a5f;
    --secondary-blue: #4a90e2;
    --accent-orange: #ff5722;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --white: #ffffff;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 20px rgba(0,0,0,0.2);
    --shadow-heavy: 0 15px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: #f5f6fa !important; /* Cinza claro fixo */
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #223b5a !important; /* Azul escuro */
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: #223b5a !important; /* Azul escuro */
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:active {
    color: var(--accent-orange) !important;
    background: rgba(34, 59, 90, 0.05);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-hero {
    background: var(--accent-orange);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-medium);
}

.btn-hero:hover {
    background: #e64a19;
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
}

.btn-hero:active {
    transform: translateY(-1px);
}

/* ===== SECTION STYLES ===== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRODUCTS SECTION ===== */
/* ===== PRODUCTS SECTION ===== */
.products-carousel-container {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 40px 15px;
    box-shadow: var(--shadow-light);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.carousel {
    overflow: hidden;
}

.carousel-inner {
    padding: 0 50px;
}

.carousel-item .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0 -8px;
    gap: 0;
}

.carousel-item .col-xl-2-5,
.carousel-item .col-lg-3 {
    display: flex;
    justify-content: center;
    padding: 0 8px;
    flex: 0 0 auto;
}

/* Classe customizada para 4 produtos por linha em telas grandes */
@media (min-width: 1200px) {
    .carousel-item .col-xl-2-5 {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

/* 4 produtos em telas médias-grandes */
@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-item .col-lg-3 {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

/* Tablets - 2 produtos por linha */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-item .col-md-6 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

.carousel {
    overflow: hidden;
}

.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--secondary-blue);
    opacity: 0.5;
    margin: 0 8px;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background: var(--accent-orange);
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--secondary-blue);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: var(--transition);
    z-index: 10;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-blue);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
    filter: invert(1);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

.carousel-product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 20px;
    margin: 0 auto;
    text-align: center;
    height: 450px;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.carousel-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--secondary-blue));
    transform: scaleX(0);
    transition: var(--transition);
}

.carousel-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.carousel-product-card:hover::before {
    transform: scaleX(1);
}

.carousel-product-image {
    margin-bottom: 18px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-product-image i {
    font-size: 3.2rem;
    color: var(--accent-orange);
    transition: var(--transition);
}

.carousel-product-card:hover .carousel-product-image i {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.carousel-product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carousel-product-content h4 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.carousel-product-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.carousel-product-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-product-content ul li {
    padding: 5px 0;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.carousel-product-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Animation for carousel items */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: flex;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Responsive adjustments for carousel */
@media (max-width: 1199px) {
    .carousel-inner {
        padding: 0 40px;
    }
    
    .carousel-product-card {
        max-width: 260px;
    }
}

@media (max-width: 991px) {
    .carousel-inner {
        padding: 0 30px;
    }
    
    .carousel-product-card {
        max-width: 100%;
        height: 380px;
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .carousel-product-image {
        height: 80px;
        margin-bottom: 15px;
    }
    
    .carousel-product-image i {
        font-size: 3rem;
    }
    
    .carousel-product-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .carousel-product-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-product-content ul li {
        font-size: 0.8rem;
        padding: 3px 0;
    }
}

@media (max-width: 768px) {
    .carousel-inner {
        padding: 0 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .products-carousel-container {
        padding: 30px 15px;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        padding: 0 10px;
    }
    
    .carousel-item .row {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-item .col-sm-10 {
        flex: 0 0 100%;
        max-width: 90%;
        margin-bottom: 20px;
    }
    
    .carousel-product-card {
        height: auto;
        min-height: 320px;
        max-width: 300px;
        margin: 0 auto;
        padding: 20px 15px;
    }
    
    .carousel-product-image {
        height: 70px;
        margin-bottom: 12px;
    }
    
    .carousel-product-image i {
        font-size: 2.5rem;
    }
    
    .carousel-product-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .carousel-product-content p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .carousel-product-content ul li {
        font-size: 0.75rem;
        padding: 2px 0;
    }
}

/* ===== ESTILOS PARA IMAGENS DOS PRODUTOS (CARROSSEL) ===== */
.carousel-product-image .product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.carousel-product-card:hover .product-img {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border-color: var(--accent-orange);
}

/* Versão circular das imagens (opcional) */
.carousel-product-image .product-img.circular {
    border-radius: 50%;
}

/* Efeito de gradiente sobreposto (opcional) */
.carousel-product-image .product-img.with-gradient {
    position: relative;
}

.carousel-product-image .product-img.with-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,87,34,0.2), rgba(74,144,226,0.2));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-product-card:hover .product-img.with-gradient::after {
    opacity: 1;
}

/* Ajustes responsivos para as imagens do carrossel */
@media (max-width: 991px) {
    .carousel-product-image .product-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .carousel-product-image .product-img {
        width: 70px;
        height: 70px;
    }
}

/* Fallback para quando a imagem não carrega */
.carousel-product-image .product-img:not([src]),
.carousel-product-image .product-img[src=""] {
    display: none;
}

.carousel-product-image .product-img:not([src]) + .fas,
.carousel-product-image .product-img[src=""] + .fas {
    display: inline-block;
}

/* Lazy loading effect */
.carousel-product-image .product-img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-product-image .product-img[data-src].loaded {
    opacity: 1;
}

/* ===== ORIGINAL PRODUCT CARDS (mantido caso seja usado em outra seção) ===== */
.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--secondary-blue));
    transition: var(--transition);
}

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

.product-card:hover::before {
    left: 0;
}

.product-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
    color: var(--secondary-blue);
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: var(--transition);
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--light-gray);
    position: relative;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-content p {
    margin-bottom: 20px;
}

.stats-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 10px;
    display: block;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.contact-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
    border: 3px solid var(--white);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: scale(1.1);
    color: var(--white);
    box-shadow: var(--shadow-heavy);
}

.whatsapp-btn:active {
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer i {
    color: var(--accent-orange);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for WhatsApp button */
@keyframes pulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .product-card,
    .contact-card {
        margin-bottom: 30px;
    }
    
    .stats-card {
        margin: 15px 0;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card,
    .contact-card {
        padding: 30px 20px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-custom {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--accent-orange);
    color: var(--white);
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}