/* Consider lightskyblue for navbar color */
:root {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: grid;
    grid: auto 1fr auto;
    grid-template-areas:
        "header"
        "content"
        "footer";
    gap: 10px;
}

header {
    grid-area: header;
}

main {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 0.5rem;
    grid-area: content;
}

section {
    display: none;
}

section.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

h1 {
    display: inline-block;
    font-style: italic;
}

h3 {
    margin: 0;
}

ol {
    padding-left: 1rem;
}

footer {
    grid-area: footer;
}

footer.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem
}

footer p {
    margin: 0;
}

#logo {
    height: 4rem;
}

.title {
    margin-bottom: 0rem;
    font-weight: bold;
}

.card {
    background-color: rgba(161, 233, 255, 0.384);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: solid 1px rgb(218, 217, 217);
    border-radius: 5px;
}

.black {
    background-color: rgb(122, 207, 235);
    font-style: italic;
    /* color: white; */
}

.card ul {
    display: inline-block;
    list-style-type: none;
    padding-left: 0;
}

.card ol {
    display: inline-block;
    list-style-type: disc;
}

/* Navbar */
nav {
    display: flex;
    align-content: center;
    justify-content: space-around;
    background-color: rgb(122, 207, 235);
    border-radius: 20px;
}

menu {
    display: flex;
    flex-grow: 1;
    justify-content: space-evenly;
    border-radius: 15px;
    margin: 0;
    padding: 0;
}

menu li {
    flex-grow: 1;
    list-style-type: none;
    border-radius: 15px;
    padding-block: 0.25rem;
    margin: 0.25rem;
    text-align: center;
    font-weight: bold;
}

menu li:hover {
    cursor: pointer;
    animation: navItemColor 0.5s;
    background-color: white;
    transition: ease-in;
}

menu li.active {
    animation: navItemColor 0.5s;
    background-color: white;
    transition: ease-in;
}

/* About Me */
figure {
    margin: 0;
}

#portrait {
    width: 75%;
    max-width: 430px;
    border-radius: 5px;
    object-fit: contain;
    filter: drop-shadow(5px 5px 5px);
    margin-bottom: 1rem;
}

figcaption h2, figcaption p {
    margin-top: 0;
}

#services-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#services-overview ul {
    padding: 0;
}

#services-overview ol {
    margin: 0;
    padding-bottom: 1rem;
}

#services-overview div {
    flex: 1 1 45%;
}

#about-me ol {
    list-style-type:disc;
}

/* Services */
.service-category {
    display: flex;
    justify-content: space-between;
}

#services .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card-container .card {
    flex: 1 1 100%;
}

ul.services {
    width: 100%;
}

.services li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    width: 100%;
}

.service {
    flex-grow: 1;
    margin-right: 1rem;
}

.price {
    text-align: right;
    font-weight: bold;
}

/* Contact Me */
#contact-me.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-info {
    display: inline-block;
}

.contact-info p {
    margin-block: 0.25rem;
}

#hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: left;
}

#hours p, #contacts p {
    margin: 0.25rem;
}

#hours > div {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid lightgray;
    padding-bottom: 0.5rem;
}

/* SVG Icons */
svg {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.email-icon {
    background-image: url("/img/envelope.svg");
}

.phone-icon {
    background-image: url("/img/telephone.svg");
}

.clock-icon {
    background-image: url("/img/clock.svg");
}

/* Animations */
/* Navbar Animation */
@keyframes navItemColor {
    0% {background-color: rgb(122, 207, 235);}
    100% {background-color: white;}
}

/* Media Queries (Mobile is default */
/* Tablet */
@media screen and (min-width: 738px) {
    body {
        width: 80%;
        justify-self: center;
    }

    /* Services */
    #services-overview {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card-container .card {
        max-width: 50%;
        flex: 1 1 45%;
    }

    /* Contact Me */
    #contact-me.active {
        flex-direction: row;
        height: auto;
        align-items: stretch;
    }

    #contact-me h2 {
        margin-top: 0;
    }

    #contacts, #hours {
        max-width: 45%;
        flex: 1 1 50%;
    }
}

@media screen and (min-width: 1100px) {
    main {
        flex-direction: row;
        gap: 2rem;
    }

    section.active {
        flex-direction: row;
        gap: 2rem;
    }

    /* About Me */
    #professional-details {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #professional-details > div {
        flex: 35%;
    }

    figure {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }

    figure > * {
        align-content: center;
    }

    #portrait {
        width: 100%;
    }

    #services-overview {
        margin: 0;
    }

    /* Services */
    #services.active {
        display: flex;
        flex-direction: column;
    }
}
