/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C; /* A nice blue, Vicksburg-ish */
    --secondary-color: #D4A017; /* A gold accent, could also be a green */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #555;
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --container-width: 1100px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 { font-size: 2.8rem; line-height: 1.4; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

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

ul {
    list-style: none;
}

section {
    padding: 60px 0;
}

/* --- Navigation --- */
nav {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

nav .logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav .nav-links {
    display: flex;
}

nav .nav-links li {
    margin-left: 25px;
}

nav .nav-links a {
    font-family: var(--font-headings);
    font-weight: 500;
    color: var(--dark-gray);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--primary-color);
}
nav .nav-links a:hover::after,
nav .nav-links a.active::after {
    width: 100%;
}


.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/modern-home-1.jpg') no-repeat center center/cover; /* Fallback background */
    /* You can use one of your modern home images as a default background */
    color: var(--white);
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Account for fixed nav */
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-headings);
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: var(--white);
    transform: translateY(-2px);
}


/* --- About Section --- */
.about-section {
    background-color: var(--light-gray);
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-image {
    flex: 1;
    max-width: 350px; /* Adjust as needed */
}
.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.about-text {
    flex: 2;
}

/* --- Services Section --- */
.services-section h2, .homes-section h2, .contact-page-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.service-item i { /* Font Awesome Icons */
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Homes Section / Inspiration --- */
.homes-section {
    background-color: var(--light-gray);
}
.homes-section p:first-of-type { /* The paragraph below H2 */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}
.home-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
}
.gallery-item p {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
}

/* --- Contact Page Section --- */
.contact-page-section {
    padding-top: 100px; /* Account for fixed nav */
}
.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.contact-form-container {
    flex: 2;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}
.contact-details {
    flex: 1;
    padding: 20px;
}
.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px; /* Ensure alignment */
    text-align: center;
}
.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-gray);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.2);
}

.map-section {
    background-color: var(--light-gray);
}
.map-section h3 {
    text-align: center;
    margin-bottom: 20px;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    text-align: center;
    padding: 30px 0;
}
footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
footer a {
    color: var(--secondary-color);
}
footer a:hover {
    color: var(--white);
}
.social-links a {
    color: var(--light-gray);
    margin: 0 10px;
    font-size: 1.5rem;
}
.social-links a:hover {
    color: var(--secondary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-links {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the nav bar */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding-bottom: 10px;
    }
    .nav-links.active { /* Class to show menu */
        display: flex;
    }
    nav .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }
    /* Hamburger animation for 'X' */
    .nav-toggle.active .hamburger {
        background-color: transparent; /* Middle line disappears */
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero {
        height: auto;
        padding-top: 100px; /* More space for nav */
        padding-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .contact-content {
        flex-direction: column;
    }
    .contact-form-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 10px 20px; }

    .service-grid, .home-gallery {
        grid-template-columns: 1fr; /* Stack items on very small screens */
    }
}