:root {
    --bs-dark-rgb: 18, 18, 18;
    --bs-secondary-rgb: 33, 37, 41;
    --primary-accent: #007bff;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(var(--bs-dark-rgb));
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary-accent);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    color: var(--text-secondary);
}

.section-padding {
    padding: 80px 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background-color: rgb(var(--bs-secondary-rgb));
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero .img-fluid {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

/* Cards de Soluções */
.card {
    background-color: rgb(var(--bs-secondary-rgb));
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.icon-feature {
    font-size: 3rem;
    color: var(--primary-accent);
}

/* Carrossel */
.carousel-item {
    height: 500px;
    max-height: 80vh; /* Altura máxima para evitar que fique muito grande em telas altas */
    background-color: #222;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cobre o espaço sem distorcer */
    object-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 1rem;
}

/* Seção de Normas */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.norm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgb(var(--bs-secondary-rgb));
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 1 1 280px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: 320px;
}

.norm-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
}

.norm-card .icon {
    color: var(--primary-accent);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.norm-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.norm-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1DA851;
    color: #FFF;
}

/* Media Queries para Responsividade */

/* Telas de tablets e menores */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        text-align: center;
    }
}

/* Telas de celulares */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .carousel-item {
        max-height: 50vh;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}