/* Global Styles & Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --neutral-dark: #343a40;
    --neutral-medium: #adb5bd;
    --neutral-light: #f8f9fa;
    --white: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    color: var(--white);
}

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

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

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
    font-weight: 700;
}

.btn-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

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

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--neutral-dark);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--neutral-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%); /* Darken image slightly */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.4); /* Slight background for content */
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--neutral-light);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Featured Properties */
.featured-properties {
    background-color: var(--neutral-light);
}

.featured-properties h2 {
    margin-bottom: 2.5rem;
    color: var(--neutral-dark);
}

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

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .card-content {
    padding: 1.5rem;
}

.property-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.property-card h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.property-card p {
    font-size: 0.95rem;
    color: var(--neutral-medium);
    margin-bottom: 1rem;
}

.property-card .btn-details {
    margin-top: 1rem;
    display: block; /* Make button take full width */
    width: fit-content; /* Adjust width to content */
}

/* How We Help Section */
.how-we-help {
    background-color: var(--white);
}

.how-we-help h2 {
    margin-bottom: 2.5rem;
    color: var(--neutral-dark);
}

.help-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.help-block {
    padding: 1.5rem;
    background-color: var(--neutral-light);
    border-radius: 8px;
}

.help-block img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    /* Placeholder styling, actual icons would need specific styles */
    filter: invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%);
}

.help-block h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.help-block p {
    font-size: 0.95rem;
    color: var(--neutral-medium);
}

/* Meet Agents Snippet */
.meet-agents-snippet {
    background-color: var(--white);
}

.meet-agents-snippet h2 {
    margin-bottom: 2.5rem;
    color: var(--neutral-dark);
}

.agent-snippet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.agent-card-snippet {
    background-color: var(--neutral-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.agent-card-snippet img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.agent-card-snippet h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
}

.agent-card-snippet p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
    background-color: var(--neutral-light);
}

.testimonials h2 {
    margin-bottom: 2.5rem;
    color: var(--neutral-dark);
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-item p {
    font-style: italic;
    color: var(--neutral-medium);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.testimonial-item p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author span {
    font-weight: 700;
    color: var(--neutral-dark);
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding: 3rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-content h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

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

.footer-links a {
    color: var(--neutral-medium);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p, .footer-social p {
    color: var(--neutral-medium);
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%);
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
    color: var(--neutral-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh; /* Adjust to be below the header */
        top: 8vh; 
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
        margin: 1rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .property-grid, .help-blocks, .agent-snippet-grid, .testimonial-container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}
