/* GLOBAL VARIABLES - The "Royal" Palette */
:root {
    --primary: #0f172a;    /* Deep Navy Blue */
    --secondary: #cca43b;  /* Muted Gold */
    --light: #f8fafc;      /* Ice White/Blueish Grey */
    --dark: #334155;       /* Slate Grey */
    --white: #ffffff;
    --font-head: 'Montserrat', sans-serif; /* Modern, Bold */
    --font-body: 'Open Sans', sans-serif;  /* Readable, Professional */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide hamburger by default (Desktop) */
.menu-toggle {
    display: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* CONTAINER UTILITY */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky; /* Sticks to top */
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary); /* The "Gold" Accent */
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--secondary);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--secondary);
}

/* FOOTER (Since we need it on all 8 pages) */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

footer a:hover {
    color: var(--secondary);
    padding-left: 5px; /* Slight movement effect */
}
/* === HOME PAGE STYLES === */

/* UTILITIES */
.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f1f5f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

/* HERO SECTION */
.hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex; /* Centers content */
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dark overlay so text pops */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.home-hero {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.hero-content {
    position: relative; /* Puts it above the overlay */
    z-index: 2;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* SEARCH BOX */
.search-box {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px); /* The "Glass" effect */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
}

.search-box input, 
.search-box select {
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input { flex: 2; } /* Input takes more space */
.search-box select { flex: 1; }
.search-box button {
    flex: 1;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.service-card {
    padding: 2rem;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px); /* Float up effect */
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; }
.service-card p { margin-bottom: 1.5rem; color: #666; }
.text-link {
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--secondary);
}

/* PROPERTY CARDS */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.prop-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 4px;
}

.prop-info { padding: 1.5rem; }

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.prop-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.address { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }

.prop-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: #555;
    font-size: 0.9rem;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column; /* Stack search inputs on phone */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
}
/* === SUB-PAGE STYLES === */

/* PAGE HEADER (Shorter than Home Hero) */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Reusing the dark overlay trick */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Dark Blue overlay */
}

.header-overlay {
    position: relative;
    z-index: 2;
    color: white;
}

.header-overlay h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.header-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* FILTER BAR SECTION */
.filter-section {
    background-color: var(--primary); /* Dark Navy strip */
    padding: 20px 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap; /* Wraps on small screens */
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: var(--secondary); /* Gold text */
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
}

.btn-filter {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 25px;
    height: 44px; /* Matches height of inputs roughly */
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.btn-filter:hover {
    background-color: #b08d33; /* Darker gold */
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary);
    transition: 0.3s;
}

.page-link:hover, 
.page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Wider button for "Next" */
.page-link:last-child {
    width: auto;
    padding: 0 20px;
}
/* === AGENTS PAGE STYLES === */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.agent-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px); /* Gentle lift on hover */
}

.agent-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    /* Optional: Add a subtle filter to make photos look uniform */
    filter: sepia(10%); 
}

.agent-info {
    padding: 2rem;
}

.agent-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
}

.agent-title {
    display: block;
    color: var(--secondary); /* Gold */
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.agent-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Social Icons Row */
.agent-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.agent-socials a {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Circles */
    background-color: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.agent-socials a:hover {
    background-color: var(--primary);
    color: white;
}

/* Simple text-center utility if not already added */
.text-center {
    text-align: center;
}
/* === CONTENT PAGE STYLES (Buyers/Sellers) === */

/* The Row Wrapper */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
}

/* If we want the image on the right, we reverse the row */
.feature-row.reverse {
    flex-direction: row-reverse;
}

/* The Content Half */
.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* The Image Half */
.feature-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--secondary); /* That cool gold block behind the image */
}

/* NEIGHBORHOOD CARDS */
.hood-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.hood-card:hover {
    transform: scale(1.02);
}

.hood-bg {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.hood-card:hover .hood-bg {
    transform: scale(1.1); /* Zoom effect on background only */
}

.hood-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); /* Fade up from black */
    color: white;
}

.hood-content h3 { color: white; margin-bottom: 0.5rem; font-size: 1.5rem; }

/* MOBILE FIX */
@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column; /* Always stack on phone */
        gap: 2rem;
    }
    .feature-image {
        width: 100%;
        height: 300px;
        box-shadow: 10px 10px 0px var(--secondary);
    }
}
/* === ABOUT & CONTACT STYLES === */

/* STATS SECTION */
.stats-section {
    background-color: var(--primary); /* Navy Blue */
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 2rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary); /* Gold Numbers */
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTACT PAGE LAYOUT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Form is wider than info */
    gap: 4rem;
}

/* Form Styles */
.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: white;
}

.form-row-split {
    display: flex;
    gap: 15px;
}

/* Contact Info Styles */
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.map-placeholder {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack them */
    }
    
    .form-row-split {
        flex-direction: column; /* Stack name inputs */
        gap: 0;
    }
    
    .stats-grid {
        flex-direction: column;
    }
}
/* --- NEW MOBILE NAVIGATION --- */
/* --- MOBILE NAVIGATION (Hamburger Logic) --- */
@media screen and (max-width: 768px) {
    
    /* Show the hamburger icon on mobile */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
    }

    /* Hide the links by default */
    .nav-links {
        display: none; /* Hidden until clicked */
        position: absolute;
        top: 80px; /* Pushes it exactly below the header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* This is the class Javascript will add when you click! */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid #f1f1f1;
        width: 100%;
        display: block;
    }
}
}
