/* =========================================
   1. GLOBAL STYLES
   ========================================= */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --text-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--text-font);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER & NAVIGATION UPDATES --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
}

/* Container to group Nav + Icons together on the right */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #888;
}

/* --- SOCIAL ICONS IN HEADER --- */
.header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    border-left: 1px solid #ddd; /* Divider line like the screenshot */
    padding-left: 30px;
}

.header-socials a {
    color: #000;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.header-socials a:hover {
    color: #666;
    transform: scale(1.1);
}

/* Mobile Responsive Fix */
@media (max-width: 900px) {
    header { flex-direction: column; gap: 20px; }
    .nav-wrapper { flex-direction: column; gap: 20px; }
    .header-socials { border-left: none; padding-left: 0; }
}

/* =========================================
   3. HERO SECTION (HOME PAGE)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.video-bg {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(60%);
}

.hero-content { text-align: center; z-index: 1; }
.hero h1 {
    font-family: var(--heading-font);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* =========================================
   4. LISTINGS & GRIDS
   ========================================= */
.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.community-card {
    display: block; 
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}
.community-card.wide { grid-column: span 2; }
.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(80%);
}
.community-card:hover img {
    transform: scale(1.05);
    filter: brightness(100%);
}
.community-name {
    position: absolute;
    bottom: 20px; left: 20px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 1.1rem;
}

.communities-section {
    padding: 80px 20px 150px;
}

/* =========================================
   5. MEET JESSICA & TRANSACTIONS
   ========================================= */
.meet-section {
    display: flex;
    padding: 100px 50px;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}
.meet-image img {
    width: 400px;
    height: 550px;
    object-fit: cover;
    /* REMOVED: filter: grayscale(100%); */
    filter: none; /* This ensures it stays full color */
}
.meet-content h2 {
    font-family: var(--heading-font);
    font-size: 3rem; margin-bottom: 20px;
}
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; margin-top: 40px;
}
.stat-item h3 { font-size: 2.5rem; font-family: var(--heading-font); }
.stat-item p { font-size: 0.8rem; text-transform: uppercase; color: #666; }

.transactions-section {
    background: #f9f9f9; padding: 100px 50px; text-align: center;
}
.transactions-list {
    display: flex; justify-content: center;
    gap: 60px; flex-wrap: wrap; margin-top: 50px;
}
.transaction-item h3 { font-size: 2.5rem; font-family: var(--heading-font); }
.transaction-item p {
    text-transform: uppercase; font-size: 0.8rem; color: #555;
}

/* =========================================
   6. LET'S CONNECT
   ========================================= */
.connect-section {
    background-color: #111; color: #fff;
    padding: 50px 50px 100px;
    display: flex; justify-content: center;
    gap: 100px; align-items: center;
}
.connect-form { flex: 1; max-width: 600px; }
.connect-form h2 {
    font-family: var(--heading-font);
    font-size: 3rem; margin-bottom: 40px; text-transform: uppercase;
}
.form-row input, .form-group textarea {
    width: 100%; background: transparent;
    border: 1px solid #444; padding: 15px;
    color: #fff; font-family: var(--text-font); margin-bottom: 10px;
}
.submit-btn {
    background: #fff; color: #000; border: none;
    padding: 15px 40px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; letter-spacing: 1px; margin-top: 10px;
}
.connect-social { flex: 1; max-width: 400px; text-align: center; }
.iphone-mockup {
    width: 100%; max-width: 250px;
    border: 10px solid #222; border-radius: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); background-color: #000;
}
.social-handle {
    margin-top: 20px; font-family: var(--text-font);
    font-weight: 700; font-size: 1.2rem;
}

/* =========================================
   7. LUXURY CENTERED FOOTER
   ========================================= */
footer {
    background: #111; color: #fff;
    padding: 80px 20px; border-top: 1px solid #222; font-size: 0.85rem;
}
.footer-container {
    display: flex; justify-content: center; gap: 80px;
    max-width: 1200px; margin: 0 auto; flex-wrap: wrap; text-align: center;
}
.footer-block { flex: 1; min-width: 250px; }
.footer-block h4 {
    font-family: var(--text-font); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 15px; font-size: 1rem; color: #fff;
}
.footer-block p { color: #bbb; margin-bottom: 8px; }
.footer-block a { color: #bbb; }
.footer-block a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
    max-width: 1000px; margin: 60px auto 0; padding-top: 30px;
    border-top: 1px solid #222; text-align: center; color: #666; font-size: 0.7rem;
}
.footer-copyright {
    margin-top: 30px; color: #888; text-align: center;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px;
}

/* =========================================
   8. SINGLE PROPERTY PAGE (Split Layout)
   ========================================= */
.property-title-header {
    margin-top: 80px; padding: 40px 50px;
    background: #fff; border-bottom: 1px solid #eee;
}
.property-title-header h1 {
    font-family: var(--text-font); font-weight: 400;
    text-transform: uppercase; font-size: 1.5rem; letter-spacing: 1px;
}
.property-subtitle {
    font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px;
}

.property-container {
    display: flex; align-items: flex-start;
    max-width: 1600px; margin: 0 auto;
    padding: 40px 50px; gap: 50px;
}

/* LEFT COLUMN (65%) */
.property-main { flex: 65%; max-width: 65%; }

/* RIGHT COLUMN (35%) */
.property-sidebar { flex: 35%; max-width: 35%; min-width: 350px; }

.sticky-wrapper { position: sticky; top: 100px; }

/* Carousel */
.carousel-main {
    position: relative; width: 100%; height: 600px;
    margin-bottom: 10px; background: #000;
}
.carousel-main img { width: 100%; height: 100%; object-fit: cover; }
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent; color: #fff; border: none;
    font-size: 40px; cursor: pointer; padding: 20px; z-index: 10;
}
.nav-arrow:hover { color: #ccc; }
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }
.image-overlay-bar {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 10px 20px; text-align: center;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}
.carousel-thumbnails {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 10px; margin-bottom: 40px;
}
.carousel-thumbnails img {
    height: 80px; width: 120px; object-fit: cover;
    cursor: pointer; opacity: 0.6; transition: 0.2s;
}
.carousel-thumbnails img.active-thumb { opacity: 1; border: 2px solid #000; }

/* Sidebar Elements */
.sidebar-header-text {
    font-family: var(--text-font); font-size: 1rem;
    text-transform: uppercase; letter-spacing: 2px;
    border-bottom: 2px solid #000; display: inline-block;
    margin-bottom: 20px; padding-bottom: 5px; color: #333;
}
.sidebar-box {
    background: #fff; border: 1px solid #eee;
    padding: 30px; margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.price-tag {
    background: #ce1126; color: #fff; text-align: center;
    padding: 15px; font-size: 1.8rem; font-weight: 600; margin-bottom: 30px;
}
.detail-row {
    display: flex; justify-content: space-between;
    margin-bottom: 12px; font-size: 0.85rem;
    border-bottom: 1px solid #f9f9f9; padding-bottom: 8px;
}
.detail-label { color: #888; text-transform: uppercase; }
.detail-value { font-weight: 700; }
.black-btn {
    display: block; width: 100%; background: #222; color: #fff;
    text-align: center; padding: 15px; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; margin-top: 20px; border: none; cursor: pointer;
}
.red-btn {
    display: block; width: 100%; background: #ce1126; color: #fff;
    text-align: center; padding: 15px; text-transform: uppercase;
    font-weight: 700; letter-spacing: 1px; margin-top: 20px; border: none; cursor: pointer;
}
.agent-box img {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /* NEW LINE: This ensures the circle focuses on her face */
    object-position: top center; 
    margin-bottom: 15px;
}
.agent-title {
    font-size: 0.8rem; color: #888; text-transform: uppercase;
    margin-bottom: 5px; border-top: 2px solid #000; display: inline-block; padding-top: 5px;
}
.agent-name { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
/* =========================================
   11. NEW SECTIONS (TRUST & SIGNATURE)
   ========================================= */

/* --- SECTION 1: BUILT ON TRUST --- */
.values-section {
    padding: 120px 50px;
    background: #fff;
    border-top: 1px solid #eee;
}

.values-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 100px;
    align-items: flex-start;
}

/* Left Column: Sticky Title */
.values-left {
    flex: 1;
    position: sticky;
    top: 150px; /* Sticks while scrolling */
}

.values-left h2 {
    font-family: var(--text-font);
    font-weight: 400;
    font-size: 2.2rem;
    letter-spacing: 3px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #000;
}

/* Right Column: Content List */
.values-right {
    flex: 2;
}

.value-item {
    margin-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 40px;
}

.value-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.value-item h4 {
    font-family: var(--text-font);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #999;
    font-weight: 600;
}

.value-item p {
    color: #555;
    line-height: 1.9;
    font-size: 1rem;
    max-width: 800px;
}

/* --- SECTION 2: SIGNATURE CTA (BLACK) --- */
.signature-section {
    background: #000;
    color: #fff;
    text-align: center;
    /* REDUCED PADDING: Changed 120px to 60px */
    padding: 60px 20px 60px; 
}

.signature-name {
    font-family: var(--text-font);
    /* REDUCED SIZE: Changed 3rem to 2.2rem */
    font-size: 2.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 400;
}

.signature-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 18px 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.signature-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .values-container { flex-direction: column; gap: 50px; }
    .values-left { position: static; }
    .values-left h2 { font-size: 1.8rem; }
    .signature-name { font-size: 1.8rem; } /* Smaller on mobile too */
}
/* =========================================
   12. NEW SECTIONS (TRANSACTIONS & EXPERTISE)
   ========================================= */

/* --- DARK TRANSACTIONS SECTION --- */
.transactions-dark-section {
    background: #0b0b0b; /* Deep black/gray */
    color: #fff;
    padding: 100px 50px;
    text-align: center;
}

.dark-title {
    font-family: var(--text-font);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 60px;
}

.transactions-dark-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.transaction-dark-box {
    border: 1px solid #333;
    padding: 50px 30px;
    width: 250px;
    transition: 0.3s;
}

.transaction-dark-box:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

.t-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.t-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* --- AREAS OF EXPERTISE SECTION --- */
.expertise-section {
    padding: 120px 50px;
    text-align: center;
    background: #fff;
}

.expertise-header {
    margin-bottom: 80px;
}

.expertise-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.expertise-title {
    font-family: var(--text-font);
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: #000;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.expertise-item {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 60px 20px;
    transition: 0.3s;
}

.expertise-item:hover {
    background: #000; /* Turn box black */
    border-color: #000; /* Makes the light borders disappear into the black */
}

/* Add these new rules to change the text color on hover */
.expertise-item:hover .area-name {
    color: #fff; /* Turn area name white */
}

.expertise-item:hover .area-desc {
    color: #ddd; /* Turn description light gray/white */
}

.area-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 10px;
}

.area-desc {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

/* Responsive Fix */
@media (max-width: 900px) {
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-item { border-left: none; border-right: none; }
}

/* --- UPDATED NOTABLE TRANSACTIONS DESIGN --- */
.transactions-list {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between boxes */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.transaction-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    /* THE NEW BOX LOOK */
    border: 1px solid #ddd;
    padding: 40px 20px;
    transition: 0.3s;
    background: #fff;
}

.transaction-item:hover {
    border-color: #000;
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.transaction-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

.transaction-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}
/* =========================================
   FINAL MOBILE & SPACING FIXES 
   ========================================= */

/* 1. PORTFOLIO PAGE SPACING FIX (Desktop & Mobile) */
.portfolio-header {
    padding-top: 100px !important; /* Reduces the huge top gap */
    padding-bottom: 20px !important; /* Reduces gap below the title */
}
.filter-container {
    margin-top: 20px !important; /* Brings filters closer to title */
    margin-bottom: 40px !important; /* Brings grid closer to filters */
}

/* 2. MOBILE RESPONSIVE OVERRIDES */
@media screen and (max-width: 768px) {
    
    /* Lock the screen width to stop horizontal scrolling */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Fix Header Links from running off screen */
    .nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    /* Fix "Make Your Best Move" Giant Inline Text */
    .hero h1 {
        font-size: 2.5rem !important; /* Overrides the 4.5rem inline style */
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* Fix the Featured Properties Grid (Index) */
    .dina-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Forces exactly 1 column */
        padding: 0 15px !important;
        gap: 25px !important;
    }

    /* Fix the Portfolio Grid (Listings) */
    .listing-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Forces exactly 1 column */
        padding: 0 15px 50px 15px !important;
        gap: 25px !important;
    }

    /* Fix Meet Jessica Section overlapping */
    .meet-section {
        padding: 50px 20px !important;
    }
    .stats-grid {
        flex-direction: column !important; /* Stacks the $8M+ and #1 stats */
        gap: 25px !important;
        align-items: flex-start !important;
    }

    /* Fix Let's Connect / Form Section */
    .connect-section {
        flex-direction: column !important;
        padding: 60px 20px !important;
        gap: 40px !important;
    }

    /* Fix Showcase Communities Grid */
    .community-grid {
        grid-template-columns: 1fr !important;
    }
    .community-card.wide {
        grid-column: auto !important; /* Stops the wide cards from breaking the grid */
    }

    /* Adjust Global Container Padding for Mobile screens */
    .featured-section, 
    .transactions-section, 
    .expertise-section {
        padding: 60px 15px !important;
    }
}