body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background-color: #FFFFFF;
}

header {
    padding: 1rem;
}

.header-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.logo-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
}

.logo img {
    height: 3rem;
    width: auto;
}

.title {
    text-align: center;
}

.title h1 {
    font-size: 2rem;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1.3rem;
}

@media (max-width: 821px) {
    .header-content {
        justify-content: space-around;
    }
    nav {
        margin-top: 0.5rem;
        justify-content: center;
    }

    header {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .logo-title {
        justify-content: center;
    }

    main div {
        text-align: center;
    }
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;

    display: block;
    height: 3rem;
    line-height: 3rem;
    margin-left: 1rem;
    font-weight: 700;

    color: #000000;

    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 2px; /* start at 0% width */
    transition: background-size 0.3s ease;
}

.nav-link:hover, .active-link {
    background-size: 100% 2px; /* animate to full width */
}

#hero {
    display: flex;
    align-items: center;
    position: relative;
    height: 30rem;
    overflow: hidden;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay using ::before */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.6;
    z-index: 1;
}

#hero.mini-hero {
    height: 10rem;
}

.hero-content {
    padding: 1rem;
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    margin-left: 50%;
}

@media only screen and (max-width: 1600px) {
    .hero-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

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

.hero-content h2 {
    font-size: 2rem;
}

main {
    padding: 1rem;
    max-width: 1500px;
    margin: 0 auto;
}

main div {
    margin-top: 2rem;
}

main div p {
    font-size: 1.3rem;
    line-height: 3rem;
    text-align: justify;
    text-align-last: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.service-card {
    background-color: #464466;
    color: #FFFFFF;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    font-weight: 500;
}

.service-card .fa {
    margin-right: 1rem;
}

#contact-form {
    max-width: 40rem;
}

#contact-form p {
    margin: 1rem 0 1rem 0;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
}

#contact-form textarea {
    width: 100%;
    height: 10rem;
}

#contact-form form {
    text-align: left;
}

#contact-result {
    padding: 1rem;
    font-weight: bold;
    color: #FFFFFF;
}

#contact-result.success {
    background-color: #297029;
}

#contact-result.error {
    background-color: #842323;
}

.required-asterisk {
    color: #FF0000;
    font-weight: bold;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 10rem;
    background-color: #464466;
    color: #FFFFFF;
    text-align: center;
}

footer #contact-info .fa {
    margin-right: 1rem;
}

footer #contact-info a {
    color: #FFFFFF;
}

footer #copyright {
    margin-top: 1rem;
}
