/* --- CORES PERSONALIZADAS (REDE RABI) --- */
:root {
    --color-rabi-primary: #FF0000;      /* Vermelho (Botões, Títulos) */
    --color-rabi-secondary: #FFC700;    /* Amarelo (Destaque, Fundo Secundário) */
    --color-rabi-dark: #222222;         /* Preto (Fundo Principal, Textos) */
    --color-rabi-light: #ffffff;        /* Branco */
    --color-rabi-gray: #f5f5f5;         /* Cinza Claro */
}

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

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-rabi-dark);
    background-color: var(--color-rabi-light);
}

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

a {
    text-decoration: none;
    color: var(--color-rabi-primary);
}

/* --- CABEÇALHO (FIXO) --- */
#main-header {
    background-color: var(--color-rabi-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: 70px; /* Altura fixa do header */
}

.logo img {
    height: 50px; 
}

#main-nav ul {
    list-style: none;
    display: flex;
}

#main-nav li a {
    color: var(--color-rabi-light);
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
}

#main-nav li a:hover {
    color: var(--color-rabi-secondary); 
}

.btn-contato-menu {
    background-color: var(--color-rabi-primary); 
    color: var(--color-rabi-light) !important;
    border-radius: 4px;
    margin-left: 10px;
    padding: 8px 15px;
    transition: background-color 0.3s;
}

.btn-contato-menu:hover {
    background-color: #cc0000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-rabi-secondary);
    font-size: 28px;
    cursor: pointer;
}

/* --- BOTÕES PRINCIPAIS (CTA) --- */
.btn-main-cta, .btn-submit, .btn-unidade {
    display: inline-block;
    background-color: var(--color-rabi-primary);
    color: var(--color-rabi-light) !important;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-main-cta:hover, .btn-submit:hover, .btn-unidade:hover {
    background-color: var(--color-rabi-dark);
    transform: translateY(-2px);
}

.btn-secondary-cta {
    display: inline-block;
    background-color: var(--color-rabi-dark);
    color: var(--color-rabi-light) !important;
    border: 2px solid var(--color-rabi-light);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-secondary-cta:hover {
    background-color: var(--color-rabi-primary);
    border-color: var(--color-rabi-primary);
}

/* --- SEÇÕES DE CONTEÚDO --- */
.content-section {
    padding: 80px 0;
    overflow: hidden; 
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.tagline {
    color: var(--color-rabi-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5em;
    color: var(--color-rabi-dark);
    text-transform: uppercase;
}

.dark-bg {
    background-color: var(--color-rabi-dark);
    color: var(--color-rabi-light);
}

.dark-bg h2, .dark-bg .tagline {
    color: var(--color-rabi-light);
}

.yellow-bg {
    background-color: var(--color-rabi-secondary);
}

/* --- HERO SECTION COM CARROSSEL (CORREÇÃO FINAL DE LÓGICA) --- */
.hero-section {
    position: relative;
    /* Altura ajustada: 70% da altura da tela, similar ao site Ceará */
    height: 70vh; 
    min-height: 450px; 
    padding: 0; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    /* Empurra a seção para baixo do header fixo */
    margin-top: 70px; 
}

.carousel-track {
    display: flex;
    /* CORREÇÃO CHAVE: O track precisa ter 100% da largura, não 300% */
    width: 100%; 
    height: 100%;
    transition: transform 0.6s ease-in-out; 
}

.carousel-slide {
    /* CORREÇÃO CHAVE: Cada slide deve ter a largura igual à largura do track */
    min-width: 100%;
    height: 100%;
    
    /* Preenchimento da Imagem */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    position: relative;
}

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

.carousel-slide-content {
    z-index: 10;
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%; 
    height: 100%;
}


/* Pontos de Navegação (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ffffff99; 
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--color-rabi-primary); 
    transform: scale(1.2);
}

/* --- INFO CARDS DE DESTAQUE --- */
.info-cards-section {
    background-color: var(--color-rabi-primary);
    padding: 40px 0;
}

.info-cards-section .container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.card {
    flex: 1;
    background-color: var(--color-rabi-light);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 3em;
    color: var(--color-rabi-primary);
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--color-rabi-dark);
}

/* --- QUEM SOMOS --- */
.quemsomos-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.quemsomos-content img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quemsomos-content .text-content {
    flex: 1;
    max-width: 50%;
}

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

/* --- NOSSAS UNIDADES --- */
.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.unidade-card {
    background-color: var(--color-rabi-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0; 
}

.unidade-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.unidade-card h3 {
    padding: 15px 20px 5px;
    color: var(--color-rabi-primary);
    text-transform: uppercase;
}

.unidade-card p {
    padding: 2px 20px;
    font-size: 0.9em;
}

.unidade-card .btn-unidade {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    border-radius: 0 0 8px 8px;
}

/* --- CTA SECTION (Serviços) --- */
.cta-section {
    background-color: var(--color-rabi-primary);
    color: var(--color-rabi-light);
    text-align: center;
    padding: 60px 0;
    transition: background-color 0.5s;
}

.cta-section h2 {
    color: var(--color-rabi-light);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- FROTISTA --- */
.frotista-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: left;
}

.check-list li {
    padding: 10px 0;
    font-size: 1.1em;
}

.check-list i {
    color: var(--color-rabi-primary);
    margin-right: 10px;
}

/* --- TRABALHE CONOSCO (FORMULÁRIO) --- */
.trabalhe-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#form-trabalhe-conosco input[type="text"],
#form-trabalhe-conosco input[type="email"],
#form-trabalhe-conosco input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: var(--color-rabi-light);
    font-size: 1em;
}

#form-trabalhe-conosco label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    text-align: left;
}

.btn-submit {
    width: 100%;
    margin-top: 15px;
}

/* --- CONTATO FOOTER --- */
.contact-footer {
    padding: 40px 0;
    background-color: var(--color-rabi-gray);
    border-top: 3px solid var(--color-rabi-primary);
    display: flex;
    justify-content: space-between;
}

.contact-info h3 {
    color: var(--color-rabi-primary);
    margin-bottom: 10px;
}

.contact-info p i {
    color: var(--color-rabi-primary);
    margin-right: 8px;
}

.social-links a {
    font-size: 24px;
    margin-left: 20px;
    color: var(--color-rabi-dark);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-rabi-primary);
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--color-rabi-dark);
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85em;
}

/* ====================================
   ANIMAÇÕES (Keyframes)
   ==================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-slide-up.visible {
    animation: slideUp 0.8s ease-out forwards;
}

.image-fade-in.visible {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====================================
   RESPONSIVIDADE (MOBILE)
   ==================================== */
@media (max-width: 900px) {
    
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content .subtitle-hero {
        font-size: 1.2em;
    }

    /* Ajuste para o menu em telas menores */
    #main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; 
        left: 0;
        background-color: var(--color-rabi-dark);
        border-top: 1px solid #444;
    }

    #main-nav.active {
        display: flex;
    }

    #main-nav li a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .btn-contato-menu {
        margin: 10px auto;
    }

    .menu-toggle {
        display: block;
    }

    /* AJUSTE MOBILE DO CARROSSEL */
    .hero-section {
        height: 50vh; 
        min-height: 350px;
        margin-top: 70px;
    }
    
    .info-cards-section .container, .quemsomos-content, .contact-footer {
        flex-direction: column;
    }
    
    .card {
        margin-bottom: 20px;
    }

    .quemsomos-content img, .quemsomos-content .text-content {
        max-width: 100%;
    }

    .quemsomos-content img {
        margin-bottom: 20px;
    }
    
    .contact-footer .contact-info, .contact-footer .social-links {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .social-links a {
        margin: 0 10px;
    }
}/* --- SEÇÃO UNIDADES: ESTILO REDE CEARÁ --- */

.unidades-title {
    color: var(--color-rabi-dark);
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.unidades-destaque {
    color: var(--color-rabi-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-rabi-secondary);
}

.white-bg {
    background-color: var(--color-rabi-light);
}

/* --- BARRA DE FILTROS --- */
.unidades-control-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.unidades-control-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.control-item {
    font-size: 0.9em;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background-color: var(--color-rabi-dark);
    color: var(--color-rabi-light);
}

.control-item:first-child {
    /* Estilo do botão "TODOS" (Amarelo) */
    background-color: var(--color-rabi-secondary); 
    color: var(--color-rabi-dark);
}

.control-item:hover, .control-item.active {
    /* Estilo de hover/ativo */
    background-color: var(--color-rabi-primary);
    color: var(--color-rabi-light);
}

.control-item:first-child:hover {
    background-color: var(--color-rabi-primary);
    color: var(--color-rabi-light);
}

/* --- GRID DOS CARDS --- */
.unidades-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.unidade-card {
    background-color: var(--color-rabi-light);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.unidade-card:hover {
    transform: translateY(-5px);
}

.card-thumbnail-wrap {
    overflow: hidden;
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.unidade-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.card-content-wrap {
    padding: 15px 15px 20px;
}

.card-title {
    font-size: 1.2em;
    color: var(--color-rabi-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.card-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.info-horario {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.card-info i {
    color: var(--color-rabi-primary);
    margin: 0 5px;
    font-size: 1.1em;
}

/* Botão de Rota */
.btn-card-rota {
    display: inline-block;
    background-color: var(--color-rabi-secondary);
    color: var(--color-rabi-dark) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-card-rota:hover {
    background-color: var(--color-rabi-primary);
    color: var(--color-rabi-light) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .unidades-title {
        font-size: 1.8em;
    }
    .unidades-control-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .unidades-grid-container {
        grid-template-columns: 1fr;
    }
}