/* ===========================
   JARDIM AMÉRICA - LUXURY REAL ESTATE
   Premium Real Estate Website
   =========================== */

/* =========================== 
   RESET & BASE STYLES 
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #8b7355;
    --color-accent: #c9a96e;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-dark: #0a0a0a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-overlay: rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* =========================== 
   TYPOGRAPHY 
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* =========================== 
   PRELOADER 
   =========================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================== 
   HEADER & NAVIGATION 
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--color-white);
    margin: 0;
    transition: var(--transition-smooth);
}

.header.scrolled .logo h1 {
    color: var(--color-primary);
}

.logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

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

.nav-link:hover {
    color: var(--color-accent);
}

.btn-contact {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--color-white);
    border-radius: 0;
    background: transparent;
}

.header.scrolled .btn-contact {
    border-color: var(--color-primary);
}

.btn-contact:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-smooth);
}

.header.scrolled .menu-toggle span {
    background: var(--color-primary);
}

/* =========================== 
   HERO SECTION 
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    max-width: 1200px;
    padding: 2rem;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.price-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.price-value {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================== 
   ANIMATIONS 
   =========================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================== 
   BUTTONS 
   =========================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================== 
   SECTIONS 
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* =========================== 
   ABOUT SECTION 
   =========================== */
.about {
    background: var(--color-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--color-white);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.about-card p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* =========================== 
   STATISTICS SECTION 
   =========================== */
.statistics {
    background: var(--color-primary);
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-block;
}

.stat-unit {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-left: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* =========================== 
   LOCATION SECTION 
   =========================== */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.location-image {
    position: relative;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.location-image:hover img {
    transform: scale(1.05);
}

.location-details h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.location-feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-feature i {
    font-size: 1.5rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.location-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.location-feature p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =========================== 
   DETAILS SECTION 
   =========================== */
.details {
    background: var(--color-light);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.details-column {
    background: var(--color-white);
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.details-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--color-text);
}

.detail-value {
    color: var(--color-text-light);
    text-align: right;
}

.special-item {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-accent);
}

.detail-value.highlight {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.zoning-info {
    margin-top: 3rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem;
}

.zoning-info h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zoning-info h3 i {
    color: var(--color-accent);
}

.zoning-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* =========================== 
   GALLERY SECTION 
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item.large {
    grid-column: span 2;
    height: 500px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--color-accent);
}

/* =========================== 
   CONTACT SECTION 
   =========================== */
.contact {
    background: var(--color-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info > p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-item p {
    color: var(--color-text-light);
}

/* Contact Form */
.contact-form-container {
    background: var(--color-white);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    background: transparent;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-text-light);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.7rem;
    left: 0.5rem;
    font-size: 0.85rem;
    background: var(--color-white);
    padding: 0 0.5rem;
    color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* =========================== 
   FOOTER 
   =========================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* =========================== 
   BACK TO TOP BUTTON 
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
}

/* =========================== 
   RESPONSIVE DESIGN 
   =========================== */
@media (max-width: 1024px) {
    .location-content,
    .details-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: var(--transition-smooth);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--color-white) !important;
        font-size: 1.2rem;
    }
    
    .btn-contact {
        border-color: var(--color-white) !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .location-image {
        height: 400px;
    }
    
    .details-column {
        padding: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container,
    .container-nav {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .details-column {
        padding: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .zoning-info {
        padding: 2rem;
    }
}
