/* ========== General Layout ========== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #fffbf3;
    font-family: "Times New Roman", Arial, sans-serif;
}

main {
    flex: 1;
    padding: 2rem;
}

.profile-section,
.contact-section,
.services-section {
    box-sizing: border-box;
    padding: 2rem;
}

/* Add borders to divide the sections visually */
.services-section {
    border-right: 1px solid #082736;
}

.contact-section {
    border-right: 1px solid #082736;
}

/* ========== Header ========== */

header {
    background: linear-gradient(to top, #fffbf3, #abd7cc);
    padding: 2rem;
    padding-left: 3rem;
    text-align: left;
}

/* ========== Typography ========== */

h2 {
    font-family: "Times New Roman", "Georgia", serif;
    font-weight: 700;
    color: #203630;
    text-align: center;
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    border-bottom: 1px solid #082736;
    margin: 0 1rem 1.5rem;
    padding-bottom: 1rem;
    letter-spacing: 2px;
}

p {
    color: #082736;
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}

a {
    color: #4c8072;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

header p {
    font-size: 1.3rem;
}

/* ========== Footer ========== */

footer {
    background-color: #082736;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: "Georgia", serif;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

/* ========== Layout Containers ========== */

.main-layout,
.about-services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 2rem;
}

.main-layout .left-column {
    flex: 0 0 66%;
    box-sizing: border-box;
}

.main-layout .right-column {
    flex: 0 0 32%;
    box-sizing: border-box;
}

.about-services-container {
    justify-content: space-between;
    align-items: flex-start;
}

.about-services-container > section {
    flex: 1 1 45%;
    box-sizing: border-box;
}

/* ========== Three Column Section ========== */

.three-column-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0rem;
    padding: 2rem;
    padding-bottom: 0rem;
    padding-top: 0rem;
}

.profile-section,
.contact-section,
.services-section {
    box-sizing: border-box;
}

.profile-section {
    flex: 1;
    max-width: 25%;
    padding-bottom: 4rem;
}

.contact-section {
    flex: 2;
    max-width: 50%;
}

.services-section {
    flex: 1;
    max-width: 25%;
}

/* ========== Profile Section ========== */

.profile-text {
    flex: 1 1 50%;
    padding: 0 2rem;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 350px;
}

/* ========== Location Info ========== */

.location-info {
    flex: 1;
    text-align: center;
}

.location-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========== Contact Form ========== */

.contact-container {
    flex: 1;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form .form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form label {
    font-weight: bold;
    color: #082736;
    font-size: 1.1rem;
    min-width: 150px;
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    flex-grow: 1;
    padding: 0.8rem;
    border: 2px solid rgba(8, 39, 54, 0.7);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: "Times New Roman", Arial, sans-serif;
}

/* ========== Submit Button ========== */

.submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: rgba(97, 180, 159, 0.7);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: "Times New Roman", Arial, sans-serif;
    text-align: center;
}

.submit-btn:hover {
    background-color: #082736;
    transform: scale(1.05);
}

/* ========== Images ========== */

img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    width: 400px;
    height: auto;
    box-shadow: none;
}

.image-block {
    flex: 1 1 30%;
    text-align: center;
    margin-bottom: 1rem;
}

.image-block img,
.profile-image img,
.location-info img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
    .three-column-layout {
        flex-direction: column;
        padding: 1rem;
    }

    .profile-section,
    .contact-section,
    .services-section {
        max-width: 100%;
        padding: 1rem 0;
        border-right: none;
    }

    .services-section {
        order: 2;
        margin-bottom: 0rem;
    }

    .contact-section {
        order: 3;
    }

    .profile-section {
        order: 1;
    }

    .profile-image img {
        max-width: 70%;
    }

    .contact-form .form-group {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .contact-form label {
        text-align: left;
        min-width: auto;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }

    .location-info img {
        width: 100%;
    }

    .logo {
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.2rem;
    }

    body {
        padding: 0 0rem;
    }

    header {
        background: linear-gradient(to top, #fffbf3, #abd7cc);
        padding: 2rem;
        padding-left: 0rem;
        text-align: center;
    }

    .profile-section,
    .contact-section {
        margin-bottom: 2rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    .services-section img {
        max-width: 70%;
    }
}
