:root {
    --primary-blue: #000000;
    --secondary-yellow: #333333;
    --light-blue: #f5f5f5;
    --dark-blue: #000000;
}

* {
    font-family: 'Poppins', sans-serif;
}

.bg-primary-custom {
    background-color: var(--primary-blue);
}

.bg-secondary-custom {
    background-color: var(--secondary-yellow);
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.text-primary-custom {
    color: var(--primary-blue);
}

.text-secondary-custom {
    color: var(--secondary-yellow);
}

/* Ícones dos cards de estatísticas e serviços */
.icon-box i.text-primary-custom {
    color: #580000 !important;
}

.bg-primary-custom.icon-box {
    background-color: #580000 !important;
}

/* Ícones dos cards de serviços em servicos.php */
.card .bg-primary-custom {
    background-color: #580000 !important;
}

/* Títulos dos cards em cinza mediano */
.card h3.text-primary-custom,
.card h5.text-primary-custom {
    color: #666666 !important;
}

.btn-primary-custom {
    background-color: #000000;
    border-color: #000000;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:hover {
    background-color: #333333;
    border-color: #333333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Botão Ver Mais dos cards */
.card .btn-primary-custom {
    background-color: #580000;
    border-color: #580000;
}

.card .btn-primary-custom:hover {
    background-color: #6e0000;
    border-color: #6e0000;
}

.btn-secondary-custom {
    background-color: #580000;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #6e0000;
    border: 2px solid white;
    transform: translateY(-2px);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.hero-carousel {
    height: 600px;
}

.hero-carousel .carousel-item {
    height: 600px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.hero-carousel .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #580000;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 100%;
}

.property-badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.icon-box {
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* Footer social icons */
footer .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .icon-box:hover {
    background-color: white !important;
    color: #580000 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Footer links */
footer a {
    color: white !important;
}

footer a:hover {
    color: #cccccc !important;
}

/* Footer titles */
footer h6 {
    color: white !important;
}

/* Logo do rodapé em branco */
footer img {
    filter: brightness(0) invert(1);
}

/* Footer mobile styles */
@media (max-width: 768px) {
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-md-4 {
        text-align: center !important;
    }
    footer .d-flex {
        justify-content: center !important;
    }
    footer ul {
        text-align: center !important;
    }
}

/* Menu Institucional */
.top-bar {
    background-color: #000000;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #d9d9d9;
}

/* Ícones de redes sociais do top-bar */
.top-bar .d-flex.gap-3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar .d-flex.gap-3 a:hover {
    background-color: white;
    color: #580000;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Menu Principal */
.main-navbar {
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}

.main-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-navbar .navbar-brand h4,
.main-navbar .nav-link {
    color: #333333 !important;
}

.main-navbar .navbar-brand small {
    color: rgba(51, 51, 51, 0.8) !important;
}

.main-navbar .nav-link:hover {
    color: #580000 !important;
}

.main-navbar .nav-link.active {
    color: #580000 !important;
    font-weight: 600;
}

.main-navbar .navbar-brand .bg-primary-custom {
    background-color: white !important;
}

.main-navbar .navbar-brand .bg-primary-custom i {
    color: #333333 !important;
}

/* Offcanvas Menu - Apenas Mobile */
.offcanvas {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.offcanvas-header {
    background-color: #ffffff;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.offcanvas .navbar-nav {
    width: 100%;
    text-align: center;
}

.offcanvas .nav-item {
    margin: 5px 0;
}

.offcanvas .nav-link {
    color: white !important;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.offcanvas .nav-link:hover {
    background: rgba(51, 51, 51, 0.9);
    color: white !important;
    transform: translateX(5px);
}

.offcanvas .nav-link.active {
    background: rgba(51, 51, 51, 0.9);
    color: white !important;
    font-weight: 600;
}

.offcanvas .btn-secondary-custom {
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.offcanvas .btn-close {
    filter: none;
    opacity: 0.8;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

.navbar-toggler {
    border-color: rgba(51, 51, 51, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Modal WhatsApp */
.whatsapp-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-modal.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-modal-header {
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-modal-body {
    padding: 20px;
}

.whatsapp-message {
    background: #E8F5E9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #E8F5E9;
}

.whatsapp-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Banner Hero */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* Filtro sobre o banner */
.search-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    z-index: 3;
}

.search-overlay .form-select,
.search-overlay .form-control {
    height: 48px;
    padding: 12px 16px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-yellow);
    z-index: 99999;
    transition: width 0.1s ease;
}
