body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    background-color: #f6f4ef;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.branding .logo {
    height: 100px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0rem;
    gap: 0rem;
    flex-wrap: wrap;
}

.intro {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.divider-container {
    display: flex;
    align-items: stretch;
    height: 100%;
    padding: 0 0rem;
}

.vertical-divider {
    width: 1px;
    background-color: #333;
    height: 100%;
    min-height: 220px;
}

.intro .headline {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.services {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services li {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Initially hide the group meant for small screens */
.services-below-group {
    display: none;
    flex-direction: column;
    /* It will stack its children */
    align-items: center;
    /* Center its children (divider and services list) */
    width: 100%;
    /* Take full width when it appears */
}

.horizontal-divider-container {
    width: 80%;
    /* Or a specific max-width */
    margin: 1rem 0;
    /* Add some space around the divider */
    display: flex;
    /* To center the divider line itself if it has a fixed width */
    justify-content: center;
}

.horizontal-divider {
    height: 1px;
    width: 100%;
    /* Makes the line take the width of its container */
    background-color: #333;
}

/* Ensure the right-side group is shown by default (though it is by flex properties) */
.services-right-group {
    display: flex;
    /* This is the default state from .intro's children */
    align-items: center;
    gap: 2rem;
    /* Maintain the gap from the original .intro styling */
}

.contact-button {
    background-color: #c7a86f;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    align-self: center;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.contact-button:hover {
    background-color: #b69a5f;
}

.image-box img {
    width: 300px;
    border-radius: 10px;
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
    font-weight: 400;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin-top: 1rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.7rem;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .intro {
        flex-direction: column;
        /* Stack main-content and the services groups */
        gap: 1rem;
        /* Adjust gap for vertical stacking */
    }

    .services-right-group {
        display: none;
        /* Hide the vertical divider and right-side services */
    }

    .services-below-group {
        display: flex;
        /* Show this group */
    }

    .intro .headline {
        font-size: 2rem;
        /* Slightly smaller headline on mobile */
    }

    .main-content {
        align-items: center;
        /* Center headline and button */
    }

    .services ul {
        text-align: center;
        /* Center the list items if they wrap */
    }
}

/* Media Query for VERY narrow screens (e.g., small mobile) */
@media (max-width: 600px) {
    .image-box {
        display: none;
        /* Hide the image box entirely */
    }

    .intro .headline {
        font-size: 1.8rem;
        /* Further adjust headline for very small screens */
    }

    .container {
        padding: 1rem;
        /* Reduce padding on very small screens */
    }
}