/* --- GERAL E VARIÁVEIS --- */
:root {
    --primary-color: #B89D5D; /* Dourado estratégico */
    --secondary-color: #1a1a1a; /* Preto/Cinza escuro */
    --text-color: #333;
    --background-color: #f4f4f4;
    --white-color: #fff;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-weight: 600;
    color: var(--secondary-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

section {
    padding: 60px 0;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.contact-info a {
    color: var(--white-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.main-nav {
    height: var(--header-height);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 60vh;
    background: url('../imagens/Lugares populares/1 (1).jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0;
}

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

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 10px;
}

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

.search-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    height: 48px; /* Align with inputs */
}

.btn-primary:hover {
    background-color: #a0844c; /* Darker strategic gold */
}

/* --- INFO SECTION (O QUE FAZEMOS) --- */
.info-section {
    background-color: var(--background-color);
}

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

.info-card {
    background: var(--white-color);
    padding: 35px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- PROPERTIES SECTION --- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.property-image {
    position: relative;
    height: 220px;
}

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

.property-image .status {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-image .status.na-planta {
    background-color: #28a745;
}

.property-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.property-content .location {
    color: #777;
    margin-bottom: 15px;
}

.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #555;
}

.property-price {
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works-section {
    background-color: var(--background-color);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.step {
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 3px solid var(--white-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- POPULAR PLACES SECTION --- */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.place-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.place-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.place-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white-color);
    padding: 30px 20px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: padding 0.4s;
}

.place-card:hover .place-name {
    padding-bottom: 30px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 40px 0 20px;
}

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

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column a, .footer-column p {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.social-links a {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- GENERIC PAGE STYLES --- */
.page-title-section {
    height: 40vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0;
    background-size: cover;
    background-position: center;
}

.page-title-section .container {
    position: relative;
    z-index: 2;
}

.page-title-section h1 {
    color: var(--primary-color);
}

.page-title-section p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* --- PAGINATION --- */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pagination {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
}
.pagination li a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}
.pagination li a:hover, .pagination li a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.pagination li a.prev, .pagination li a.next {
    font-weight: 600;
}

/* --- CONSULTORES PAGE --- */
.consultants-section {
    padding: 60px 0;
}
.consultants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.consultant-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.consultant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.consultant-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.consultant-info {
    padding: 25px;
}
.consultant-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.consultant-info .role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}
.consultant-info .creci {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}
.consultant-info .btn-primary {
    display: inline-block;
    text-decoration: none;
}

/* --- FAQ PAGE --- */
.faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--white-color);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}
.accordion-item.active {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-content p {
    padding: 0 25px 20px;
    line-height: 1.7;
    color: #555;
}

/* --- CONTATO PAGE --- */
.contact-section {
    padding: 60px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.contact-form-container h2, .contact-info-container h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
}
.contact-form-container h2::after, .contact-info-container h2::after {
    margin: 10px 0 0;
}
.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.contact-form .form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}
.contact-form .full-width {
    flex: 1 1 100%;
}
.contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .btn-primary {
    width: auto;
    padding: 15px 40px;
}
.info-block {
    margin-bottom: 25px;
}
.info-block h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.info-block h3 i {
    margin-right: 10px;
}
.info-block p, .info-block a {
    color: #555;
    text-decoration: none;
    line-height: 1.6;
}
.info-block a:hover {
    color: var(--primary-color);
}

/* --- 404 ERROR PAGE --- */
.error-section {
    text-align: center;
    padding: 100px 0;
}
.error-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.error-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.error-section p {
    margin-bottom: 40px;
    color: #555;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .steps-container {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-container {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }
    .nav-links.nav-active {
        right: 0;
    }
    .nav-links a {
        color: var(--white-color);
        font-size: 1.2rem;
        margin: 20px 0;
    }
    .hamburger {
        display: block;
        z-index: 1001; /* Above nav-links */
    }
    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .top-bar {
        display: none; /* Opcional: esconder a barra do topo em mobile */
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}