/* Estilos gerais para o website da Ribeiro Tecnologias & Serviços */

/* Variáveis de cores */
:root {
    --primary-color: #b40000;    /* Vermelho do logotipo */
    --secondary-color: #000000;  /* Preto */
    --accent-color: #ffc107;     /* Amarelo (pode manter para destaques) */
    --dark-color: #212121;       /* Preto suave */
    --light-color: #f8f9fa;      /* Cinza claro */
    --text-color: #212529;       /* Texto principal */
    --text-muted: #6c757d;       /* Texto secundário */
    --white: #ffffff;            /* Branco */
    --success: #28a745;          /* Verde (sucesso) */
    --danger: #dc3545;           /* Vermelho alerta */
}

/* Estilos gerais */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Espaçamento para o header fixo */
.header-spacer {
    height: 80px;
}

/* Estilos para links */
a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Botões personalizados */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Seções */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

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

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Formulários */
.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Alertas */
.alert {
    border-radius: 5px;
    padding: 15px 20px;
}

/* Ícones */
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Serviços */
.service-card {
    text-align: center;
    padding: 30px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Equipe */
.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--light-color);
}

/* Testemunhos */
.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Contador de estatísticas */
.counter-box {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    margin-bottom: 30px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding-top: 70px;
    padding-bottom: 20px;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }

}
/* outras regras que já tens no style.css... */

/* === Forçar botões com as cores do logotipo === */
.btn-primary {
    background-color: #b40000 !important; /* Vermelho principal */
    border-color: #b40000 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #8b0000 !important; /* Vermelho mais escuro */
    border-color: #8b0000 !important;
    color: #fff !important;
}

.btn-secondary {
    background-color: #000000 !important; /* Preto */
    border-color: #000000 !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #333333 !important; /* Preto claro */
    border-color: #333333 !important;
    color: #fff !important;
}
/* Corrigir fundo e textos primários para a cor do logotipo */
.bg-primary {
    background-color: #b40000 !important; /* vermelho */
}

.text-primary {
    color: #b40000 !important;
}
/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    background: url('../img/hero.jpg') center center/cover no-repeat;
    height: 100vh;              /* ocupa a altura total da tela */
    color: #fff;                /* texto branco */
    display: flex;
    align-items: center;        /* centraliza verticalmente */
    text-align: center;         /* centraliza o texto */
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* overlay escuro para dar contraste */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* garante que o texto fique acima do overlay */
}
