/*
===============================
Real Estate Dark Theme - Main Stylesheet
===============================
*/

/* ===========================
   CSS Variables (Dark Theme)
   =========================== */
:root {
    /* Figma Colors */
    --primary-bg: #141414;           /* Background - Grey/10 */
    --secondary-bg: #1A1A1A;         /* Grey/15 */
    --card-bg: #1F1F1F;              /* Grey/20 */
    --accent-purple: #703BF7;        /* Purple/60 - Primary button */
    --accent-purple-hover: #8254F8;  /* Purple/65 - Hover */
    --grey-08: rgba(255, 255, 255, 0.08); /* Active menu background */
    --grey-15: rgba(255, 255, 255, 0.15);
    --text-light: #FFFFFF;
    --text-gray: #999999;            /* Grey/60 */
    --border-color: rgba(255, 255, 255, 0.10);
    
    /* Typography - Urbanist */
    --font-primary: 'Urbanist', sans-serif;
    --font-heading: 'Urbanist', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 59, 247, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--accent-purple);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--accent-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    padding: 10px 20px;
    display: block;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-menu a:hover {
    background-color: var(--grey-08);
    color: var(--text-light);
}

/* Active Menu Item - Grey/08 background */
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a,
.nav-menu .current_page_parent a {
    background-color: var(--grey-08);
    color: var(--text-light);
}

/* Header CTA Button */
.header-cta {
    flex-shrink: 0;
}

.header-cta .btn {
    padding: 12px 24px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.mobile-navigation {
    display: none;
}

/* ===========================
   Main Content
   =========================== */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Section Styles
   =========================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-dark {
    background-color: var(--secondary-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Property Cards
   =========================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-md);
}

.property-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 25px;
}

.property-price {
    color: var(--accent-gold);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.property-title a {
    color: var(--text-light);
}

.property-title a:hover {
    color: var(--accent-gold);
}

.property-location {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.property-feature i {
    color: var(--accent-gold);
}

/* ===========================
   Features Section
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-md);
}

.feature-box {
    text-align: center;
    padding: 40px 25px;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-gray);
    font-size: 15px;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-bg);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--primary-bg);
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-secondary {
    background-color: var(--primary-bg);
    color: var(--text-light);
    border-color: var(--primary-bg);
}

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

/* ===========================
   Footer Styles
   =========================== */
.site-footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-widget {
    color: var(--text-gray);
}

.widget-title {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-menu {
    list-style: none;
}

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

.footer-menu a {
    color: var(--text-gray);
    transition: var(--transition);
}

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

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--accent-gold);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright,
.credits {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 992px) {
    .main-navigation,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        gap: 4px;
    }

    .mobile-menu-toggle .bar {
        width: 24px;
        height: 2px;
        background-color: var(--text-light);
        transition: var(--transition);
        border-radius: 2px;
    }

    .mobile-navigation {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        max-height: calc(100vh - 73px);
        overflow-y: auto;
    }

    .mobile-navigation.active {
        display: block;
    }
    
    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav-menu li {
        margin-bottom: 8px;
    }
    
    .mobile-nav-menu a {
        color: var(--text-light);
        font-size: 16px;
        display: block;
        padding: 14px 16px;
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .mobile-nav-menu a:hover,
    .mobile-nav-menu .current-menu-item a {
        background-color: var(--grey-08);
    }
    
    .mobile-nav-cta {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }

/* ===========================
   JavaScript Enhancement Styles
   =========================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.scroll-to-top:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
}

/* Form Error Styles */
input.error,
textarea.error,
select.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* Accordion */
.accordion-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.accordion-item.active .accordion-header {
    color: var(--accent-gold);
}

.accordion-content {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-gray);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scrolled State */
.site-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}