/*
* Layout Fix for PrecPago WordPress Theme
* Fixes broken layout and ensures Bootstrap grid works
*/

/* Reset e configurações básicas */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container principal - FORÇA A APLICAÇÃO */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Grid System - FORÇA A APLICAÇÃO */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
}

.row > * {
    padding: 0 15px !important;
}

/* Colunas */
.col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

.col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

.col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Responsivo */
@media (max-width: 991px) {
    .col-lg-6,
    .col-lg-4,
    .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
    
    .container {
        padding: 0 10px !important;
    }
}

/* Header */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo */
.site-branding img,
.custom-logo-link img {
    height: 60px;
    max-width: 200px;
    width: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.7) 0%, rgba(0,86,179,0.8) 100%);
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-form {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Seções */
.numeros-section,
.midia-section,
.depoimentos-section,
.processo-section,
.localizacao-section {
    padding: 80px 0;
}

.numeros-section {
    background: #f8f9fa;
}

.depoimentos-section {
    background: #f8f9fa;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* Items */
.numero-item,
.midia-item,
.depoimento-item {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.numero-item,
.depoimento-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.align-items-center {
    align-items: center !important;
}

/* Owl Carousel Basic */
.owl-carousel {
    position: relative;
}

.owl-stage-outer {
    overflow: hidden;
}

.owl-item {
    min-height: 1px;
}

/* Contact Form 7 */
.wpcf7-form {
    margin: 0;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-form {
        margin-top: 30px;
        padding: 20px;
    }
    
    .slide {
        min-height: 400px;
    }
    
    .hero-section {
        min-height: 400px;
    }
}