body {
    max-width: 2500px;
    margin-inline: auto;
    font-family: "Roboto", sans-serif;
    padding-inline: 5%;
}

label {
    color: #333;
    font-weight: 200;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block: 1rem;
}

@media screen and (max-width: 1280px) {
    header > p {
        display: none;
    }
}

header > div.logo {
    display: flex;
    align-items: center;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("/static/images/banner.jpg");
    background-position: center;
    text-align: center;
    border-radius: 1rem;
}

.banner > p {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    padding-block: 3rem;
    padding-inline: 1rem;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 4rem;
    justify-content: space-between;
    margin-top: 4rem;
}

main section {
    margin-inline: auto;
    max-width: 600px;
    flex-basis: max(300px, 25%);
    flex-grow: 1;
}

main section > h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    padding-block: 0.5rem;
}

main section > img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 1;
    object-fit: contain;
    margin-top: 1rem;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    justify-content: space-around;
    margin-top: 8rem;
}

.contact h1 {
    margin: 0;
    padding: 0;
    padding-bottom: 2rem;
}

.contact div {
    padding-inline-end: 2rem;
    max-width: 600px;
    flex-basis: max(600px, 40%);
    flex-shrink: 1;
}

form {
    display: flex;
    flex-direction: column;
}

#formContainer > p {
    font-size: 1.5rem;
    font-weight: semibold;
}

button[type="submit"] {
    background-color: #333;
    font-size: 1rem;
    font-weight: semibold;
    color: #fff;
    text-transform: uppercase;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    width: min-content;
    margin-top: 1rem;
}

/* Base Style for the Link */
a {
    color: #333; /* Dark grey text for a clean look */
    font-size: 1.25rem; /* Font size for readability */
    font-weight: 600; /* Normal weight for subtlety */
    transition:
        color 0.2s ease,
        border-bottom 0.2s ease; /* Smooth transition on hover */
    position: relative; /* For positioning the underline on hover */
}

/* Hover Effect */
a:hover {
    color: #000; /* Changes text color to black on hover */
}

/* Underline Effect on Hover */
a:hover::after {
    content: ""; /* Create a pseudo-element for the underline */
    position: absolute; /* Position it under the text */
    bottom: 0; /* Align it at the bottom */
    left: 0; /* Align it to the left edge of the text */
    width: 100%; /* Make the underline span the whole text */
    height: 2px; /* Set the height of the underline */
    background-color: #000; /* Black underline */
    transition: width 0.3s ease; /* Smooth transition for the underline */
}

/* Active Link Style */
a:active {
    color: #444; /* Slightly lighter color when the link is pressed */
}

/* Focus State (for accessibility) */
a:focus {
    outline: none; /* Removes default outline */
    border-bottom: 2px solid #000; /* Adds a border at the bottom on focus */
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8rem;
}

footer > a {
    font-size: 1rem;
    text-decoration: none;
}
