/* 
  Styles.css - Marcos Filho Imóveis
  Update: Immersive Hero & Premium Grid
*/

:root {
    --navy-dark: #0A2647;
    --navy-light: #144272;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

.section-gray {
    background-color: var(--gray-50);
}

.section-dark {
    background-color: var(--navy-dark);
    color: var(--white);
}

.mt-8 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--navy-dark);
    color: var(--navy-dark);
    padding: 0.8rem 2.5rem;
}

.btn-secondary:hover {
    background-color: var(--navy-dark);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.header.scrolled {
    background-color: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--navy-dark);
}

.logo-text h1 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
    line-height: 1;
}

.logo-text p {
    font-size: 0.6rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        gap: 2.5rem;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--navy-dark);
    padding-top: var(--header-height);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 1.5rem 2rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

/* --- IMMERSIVE HERO SECTION --- */
.hero-immersive {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background Layers for smooth transition */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out, transform 6s ease;
    opacity: 0;
    transform: scale(1.1);
    /* Subtle zoom effect */
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1);
    /* Reset zoom on active */
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 20, 38, 0.85) 0%, rgba(5, 20, 38, 0.4) 60%, rgba(5, 20, 38, 0.1) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: var(--header-height);
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-main-info {
    max-width: 600px;
    color: var(--white);
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .hero-main-info {
        margin-bottom: 0;
    }
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 400;
    /* Serif lighter */
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-heading {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 480px;
}

.hero-specs {
    display: flex;
    gap: 1rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.hero-specs i {
    width: 18px;
    color: var(--gold);
    margin-right: 0.5rem;
}

.hero-specs .divider {
    color: var(--gold);
}

.btn-hero-action {
    background-color: var(--white);
    color: var(--navy-dark);
    padding: 1rem 2.5rem;
    border-radius: 0;
}

.btn-hero-action:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* Floating Highlights */
.hero-highlights {
    width: 100%;
    max-width: 400px;
}

.highlights-label {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-align: right;
    display: none;
}

@media (min-width: 1024px) {
    .highlights-label {
        display: block;
    }

    .hero-highlights {
        margin-left: auto;
    }
}

.highlights-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Scrollbar space */
}

@media (min-width: 1024px) {
    .highlights-grid {
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
    }
}

.highlight-card {
    min-width: 260px;
    /* Mobile width */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .highlight-card {
        min-width: auto;
        width: 100%;
    }
}

.highlight-card:hover,
.highlight-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    transform: translateX(-10px);
}

.h-card-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 2px;
}

.h-card-info h4 {
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-serif);
    margin-bottom: 0.2rem;
}

.h-card-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Properties Grid Styles */
.properties-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--gold);
}

.card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: var(--gray-200);
    /* Placeholder color */
}

/* Missing Image Placeholder Style */
.card-image-wrapper.missing-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--gray-600);
    background-color: #E5E7EB;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .card-image {
    transform: scale(1.08);
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    background: rgba(10, 38, 71, 0.9);
    color: white;
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.badge.gold {
    background-color: var(--gold);
    color: var(--navy-dark);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    color: var(--navy-dark);
    margin-bottom: 0.3rem;
}

.card-location {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
    /* Center text */
}

.feature {
    display: flex;
    flex-direction: column;
    /* Stack icon and text */
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.feature i {
    width: 16px;
    color: var(--gold-dark);
}

.price-tag {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 1.1rem;
    display: block;
}

.btn-details {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--navy-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.btn-details:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-image {
    width: 100%;
    border-radius: 4px;
}

.experience-badge {
    background: var(--navy-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: absolute;
    bottom: -20px;
    right: -20px;
    border: 4px solid white;
}

.experience-badge .years {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image-wrapper {
    position: relative;
}

.section-tag {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-600);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.client-details p {
    color: var(--gold);
    font-size: 0.75rem;
    margin: 0;
}

/* Footer */
.footer {
    background: #051A30;
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand .logo-name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-contact i {
    color: var(--gold);
    width: 18px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* Load More Area */
#loadMoreContainer {
    text-align: center;
    margin-top: 4rem;
}

/* Animations */
.fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.whatsapp-fab.visible {
    transform: translateY(0);
    opacity: 1;
}

.whatsapp-fab:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-fab i {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Header Hidden State */
.header.header-hidden {
    transform: translateY(-100%);
}

.card-description {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
    padding: 0 0.5rem;
    font-style: italic;
}