/**
 * Estilos principais
 * Ben Seg Segurança Patrimonial
 */

/* Variáveis de cores */
:root {
    --primary: #a62b0c;     /* Cor principal da marca - vermelho queimado */
    --dark: #2e2e2e;       /* Cinza escuro */
    --light: #f5f0eb;      /* Bege claro */
    --dark-soft: #1c1c1c;  /* Preto suave */
    --white: #ffffff;      /* Branco puro */
    --secondary: #e74c3c;  /* Cor secundária */
    --gray: #6c757d;       /* Cinza médio */
}

/* Estilos gerais */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary);
    transition: all 0.3s ease;
}

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

/* Botões */
.btn {
    border-radius: 0;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #8a2409 !important;
    border-color: #8a2409 !important;
    box-shadow: 0 0 0 0.2rem rgba(166, 43, 12, 0.25) !important;
}

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

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

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .active .nav-link:after {
    width: 70%;
}

.navbar-light .navbar-nav .active .nav-link {
    color: var(--primary);
}

/* Top bar */
.top-bar {
    font-size: 0.85rem;
}

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

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Banner/Hero */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem 0;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p.lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    max-width: 80%;
}

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

/* Carousel */
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    bottom: 30%;
    z-index: 10;
}

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

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

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

.card-img-top {
    border-radius: 0;
}

.service-card {
    text-align: center;
    padding: 30px;
}

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

/* Contadores */
.counter-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.counter-box {
    text-align: center;
}

.counter-box .counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Depoimentos */
.testimonial-card {
    padding: 30px;
    margin: 15px;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
}

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

/* Formulários */
.form-control {
    border-radius: 0;
    padding: 12px 15px;
    height: auto;
    border: 1px solid #ddd;
}

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

.form-group label {
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark-soft);
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer a.text-muted:hover {
    color: var(--white) !important;
    text-decoration: none;
}

/* Animações */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

/* Breadcrumb Personalizado */
.breadcrumb-area {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-item a i {
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.8rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.7);
    padding-right: 0.8rem;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    
    .navbar-light .navbar-nav .nav-link:after {
        display: none;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .breadcrumb-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .counter-box .counter {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .hero-banner {
        min-height: 400px;
    }
    
    .top-bar {
        display: none;
    }
}