/* =========================================
   1. VARIABLES & RESET (Golden Master Config)
   ========================================= */
:root {
    /* Colors - Brand */
    --primary-color: #1a253a;   /* Navy Blue */
    --accent-color: #c5a059;    /* Gold */
    --accent-hover: #b08d4b;
    
    /* Colors - Neutrals */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --dark-bg: #111111;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.bg-light { background-color: var(--off-white); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

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

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-align: center;
}

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

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

/* =========================================
   3. HEADER
   ========================================= */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sub-logo {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 5px;
}

.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 700; color: var(--primary-color); }
.nav-link:hover { color: var(--accent-color); }

/* Mobile Menu Utils */
.nav-toggle, .nav-close { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Default fallback image */
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 37, 58, 0.5); /* Navy overlay */
}

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

.hero-title { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-title-carousel { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; color: #FFFFFF;}
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; font-weight: 300; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper { position: relative; }
.about-img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow); }

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.exp-number { display: block; font-size: 2rem; font-weight: 700; line-height: 1; font-family: var(--font-heading); }
.exp-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.lead-text { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; font-style: italic; border-left: 3px solid var(--accent-color); padding-left: 1rem; }
.about-list { margin: 1.5rem 0; }
.about-list li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.about-list i { color: var(--accent-color); }

/* =========================================
   6. LISTINGS GRID
   ========================================= */
.section-header { margin-bottom: 3rem; }
.section-subtitle { color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 700; }

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

.listing-img-box { position: relative; height: 250px; }
.listing-img { width: 100%; height: 100%; object-fit: cover; }

.listing-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 2px;
}

.listing-tag.sold { background: #e74c3c; }

.listing-details { padding: 1.5rem; }
.listing-price { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.listing-address { color: var(--text-light); margin-bottom: 1rem; }
.listing-features { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: var(--text-dark); font-size: 0.9rem; }
.listing-features i { color: var(--accent-color); margin-right: 5px; }

/* =========================================
   7. TESTIMONIALS & CONTACT
   ========================================= */
.testimonials { background-color: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
}
.stars { color: var(--accent-color); margin-bottom: 1rem; }
.testimonial-text { font-style: italic; margin-bottom: 1rem; }
cite { font-weight: 700; color: var(--primary-color); }

/* Contact */
.contact { background-color: var(--primary-color); }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-details { margin-top: 2rem; color: rgba(255,255,255,0.8); }
.contact-details p { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.contact-details i { color: var(--accent-color); width: 20px; }

.contact-form-wrapper { background: var(--white); padding: 2.5rem; border-radius: var(--border-radius); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }

/* Footer */
.footer { background: var(--dark-bg); color: var(--white); padding: 3rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-links a { color: var(--white); margin-left: 1.5rem; font-size: 1.2rem; }
.footer-links a:hover { color: var(--accent-color); }
.footer-legal { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; font-size: 0.8rem; color: var(--text-light); }
.footer-text { color: #FFFFFF;}

/* =========================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 968px) {
    .hero-title { font-size: 2.5rem; }
    .about-grid, .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .about-experience-badge { right: 0; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        background-color: var(--white);
        width: 80%; height: 100%;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 4rem 2rem;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
    }
    
    .show-menu { right: 0; }
    
    .nav-list { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .nav-toggle, .nav-close { display: block; }
    .nav-close { position: absolute; top: 1.5rem; right: 1.5rem; }
    
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}