/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #f0f0f0;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #fafafa;
}

/* ===== NAVBAR ===== */
.navbar {
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
    margin: 2rem 0;
    position: relative;
    z-index: 10;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-form .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.search-form .form-control::placeholder {
    color: #999;
}

.search-form .btn-light {
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .btn-light:hover {
    background-color: #e8e8e8;
    transform: translateY(-1px);
}

/* ===== QUICK FILTERS ===== */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.quick-filters .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-filters .badge:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-color: white;
    transform: translateY(-2px);
}

/* ===== CARDS DE SERVIÇOS ===== */
.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.service-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.service-location {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-location i {
    color: var(--primary-color);
}

.service-rating {
    color: #ffc107;
    font-weight: 600;
}

.service-rating i {
    margin-right: 0.25rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.service-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

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

.service-btn-primary:hover {
    background-color: #0052a3;
    transform: scale(1.05);
}

.service-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* ===== SIDEBAR FILTROS ===== */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0;
    border: none;
}

.form-select,
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

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

.form-check-input {
    border-color: var(--border-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #999;
    cursor: not-allowed;
}

/* ===== CTA SECTION ===== */
.bg-light {
    background-color: #f8f9fa !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

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

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

footer h5 {
    color: white;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .text-white-50 {
    color: #999 !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .search-form {
        max-width: 100%;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .form-control,
    .search-form .btn-light {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .quick-filters {
        justify-content: center;
    }

    .service-card-image {
        height: 150px;
    }

    .service-card-body {
        padding: 1rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-price {
        font-size: 1.1rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .row > .col-md-3,
    .row > .col-md-9 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .search-form .input-group-lg > .form-control {
        font-size: 0.9rem;
    }

    .quick-filters .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .service-price {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== UTILITÁRIOS ===== */
.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow {
    box-shadow: var(--shadow-lg) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ===== SCROLL SMOOTH ===== */
.sticky-top {
    top: 0;
    z-index: 1020;
}
