:root {
    /* Cores controladas pelo Banco de Dados via PHP */
    --text-color: #333;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    text-transform: none;
}

.logo-text span {
    color: var(--gold);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: 0.5s;
    padding: 20px 0;
}

header.scrolled, body:not(.home-page) header {
    background: var(--black);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

/* .logo img removido para dar lugar ao logo-text */

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--gold);
}

/* Dropdown Menu */
nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--black);
    width: 180px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10;
}

nav ul li:hover .dropdown {
    display: flex;
}

nav ul li .dropdown li a {
    padding: 10px 20px;
    font-size: 0.8rem;
}

nav ul li .dropdown li a:hover {
    background: var(--bordeaux);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

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

.hero h1 span {
    color: var(--gold);
}

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

/* Floating Search Bar */
.search-bar {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-field select, .search-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}

.btn-search {
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    padding: 0 40px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-search:hover {
    background: var(--black);
}

/* Sections General */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.asset-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid #eee;
}

.asset-card:hover {
    transform: translateY(-10px);
}

.asset-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.asset-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.asset-card:hover .asset-img img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

.badge.locacao {
    background: var(--gold);
    color: var(--black);

}

.badge.venda {
    background: var(--white);
    color: var(--bordeaux);
    /*border: 1px solid #ff0000;*/
}

.asset-info {
    padding: 20px;
}

.asset-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--black);
}

.asset-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bordeaux);
    margin-bottom: 15px;
}

.asset-location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.asset-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.spec-item {
    text-align: center;
}

.spec-item i {
    color: var(--gold);
    margin-bottom: 5px;
    display: block;
}

.spec-item span {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Categories */
.categories {
    background: var(--black);
    color: var(--white);
}

.categories .section-title h2 {
    color: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: 0.5s;
}

.category-card:hover img {
    opacity: 0.6;
    transform: scale(1.1);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Why Us */
.why-us {
    background: var(--gray-light);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.why-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* CTA Section */
.cta-banner {
    background: linear-gradient(rgba(75, 13, 13, 0.9), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1494412519320-aa613dfb7738?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    margin-top: 20px;
}

.btn-gold:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 100px;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--black);
        z-index: 2000;
        transition: 0.5s;
        padding-top: 100px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li .dropdown {
        position: static;
        width: 100%;
        display: block;
        box-shadow: none;
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .search-bar {
        flex-direction: column;
        margin-top: 20px;
    }
    .btn-search {
        padding: 15px;
    }
    .why-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px; /* Desce o texto para não bater na logo */
        padding-bottom: 80px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .search-bar {
        margin-top: 30px;
    }

    /* Segunda seção (Destaques) */
    #destaques {
        padding-top: 100px; /* Garante que o título não fique embaixo do filtro */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

