/* ===== ROOT VARIABLES & GLOBAL RESETS ===== */
:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-primary: #c09f58; /* Matte Gold */
    --color-primary-dark: #a98c4c;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a9a9a9;
    --color-border: #333;

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img, svg {
    max-width: 100%;
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 4rem;
}

section {
    padding: 6rem 0;
}

/* ===== UTILITY & BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(192, 159, 88, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}


/* ===== HEADER ===== */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}
.logo-icon {
    color: var(--color-primary);
    height: 32px;
    width: 32px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.btn-header {
    padding: 0.6rem 1.5rem;
}


/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-text-primary);
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.7) 0%, rgba(18, 18, 18, 0.4) 50%, rgba(18, 18, 18, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* ===== BENEFITS SECTION ===== */
.benefits-section { background-color: var(--color-surface); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}


/* ===== PROPERTIES SECTION ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.property-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.property-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.property-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.property-info h3 { font-size: 1.3rem; color: var(--color-text-primary); }
.property-info .location { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0.25rem 0 1rem 0; }
.property-info .price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1.5rem; margin-top: auto; }
.btn-details {
    width: 100%;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-details:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}


/* ===== PLANS SECTION ===== */
.plans-section { background-color: var(--color-surface); }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}
.plan-card {
    background: var(--color-background);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.plan-card h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--color-text-primary); }
.plan-price { font-size: 1.1rem; color: var(--color-text-secondary); margin-bottom: 2rem; }
.plan-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}
.plan-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.plan-features li span { color: var(--color-primary); }
.plan-card.highlighted {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(192, 159, 88, 0.15);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-background);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== NEW LOCATION SECTION STYLES ===== */
.location-section {
    background-color: var(--color-background);
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.location-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}
.location-content h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}
.location-content p {
    margin-bottom: 2rem;
}
.location-map-mockup {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-pin {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.map-pin:hover {
    transform: translate(250px, 200px) scale(1.1);
}
.map-pulse {
    animation: pulse 2.5s infinite ease-out;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    70% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}


/* ===== CONTACT SECTION ===== */
.contact-section { background-color: var(--color-surface); }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.contact-text h2.section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.contact-form input, .contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192, 159, 88, 0.2);
}
.btn-submit { width: 100%; position: relative; overflow: hidden; }
.btn-submit:active { transform: scale(0.98); }


/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-background);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}
.footer-container {
    text-align: center;
}
.footer-info {
    margin-bottom: 2rem;
}
.footer-info h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.footer-info p { font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.footer-social a {
    color: var(--color-text-secondary);
}
.footer-social a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}
.footer-social svg {
    width: 24px;
    height: 24px;
}
.footer-copy p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}


/* ===== ANIMATIONS ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation */
.benefits-grid .animate-on-scroll,
.properties-grid .animate-on-scroll,
.plans-grid .animate-on-scroll {
    transition-delay: calc(0.1s * var(--animation-order, 1));
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    
    .location-grid,
    .contact-container {
         grid-template-columns: 1fr;
         gap: 3rem;
    }
    .location-content,
    .contact-text { text-align: center; }
    
    .location-content .section-title,
    .contact-text h2.section-title { text-align: center; }

    .location-grid {
        grid-template-rows: auto auto;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .nav-menu {
        display: none; /* Em um projeto real, aqui entraria um menu hamburger */
    }
    .btn-header { display: none; }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; align-items: center; }

    section { padding: 4rem 0; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card.highlighted { transform: scale(1); }
    .plan-card {
      max-width: 400px;
      margin: 0 auto;
    }
}