* {
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
}

.img-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px;
    user-select: none;
}

.img-cont img {
    max-width: 600px;
    height: auto;
}

.title-container {
    text-align: center;
    padding: 36px;
    user-select: none;
}

.separate-sections {
    display: flex;
    justify-content: space-evenly;
    margin-top: 36px;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-family: Montserrat, sans-serif;
}

.info p a {
    color: #2C2C2C
}

.info p {
    font-size: 16px;
    font-family: "Nunito Sans", sans-serif;
}

.info h4 {
    color: #2C2C2C;
    font-weight: 800;
    font-size: 12px;
    user-select: none;
}

.map-container {
    max-width: 500px;
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.semi-title {
    color: #7A7268;
    margin-bottom: 4px;
    font-size: 16px;
    letter-spacing: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.semi-title::before,
.semi-title::after {
    content: "";
    height: 1px;
    width: 35px;
    background-color: #7A7268;
}

.title-container h1 {
    color: #2C2C2C;
    font-weight: 700;
    letter-spacing: 0.3rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    padding: 10px 48px;
    margin-bottom: 70px;
}

.portfolio-item {
    margin: 3px;
    text-align: center;
    padding: 0px;
    position: relative;
}

.portfolio-item:hover {
    opacity: 0.8;
}

.overlay-button {
    color: #2C2C2C;
    position: absolute;
    top: 90%;
    background-color: #F2EFE9;
    width: 100%;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition: transform 0.7s ease, opacity 0.7s ease;
    transform: translate(-50%, -70%);
}

.portfolio-item:hover .overlay-button {
    opacity: 0.9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 10px 80px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    max-width: 380px;
    padding: 40px 32px;
    background-color: white;
    border-radius: 20px;
    box-sizing: border-box;
    user-select: none;
}

.service-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.service-card span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #EFEFEF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.aboutus-container {
    display: flex;
    flex-direction: row;
    padding: 48px;
    background-color: #F2EFE9;
    margin: 24px 128px;
    align-items: center;
}

.aboutus-paragraphs {
    display: flex;
    flex-direction: column;
    padding: 36px;
    text-align: justify;
    font-size: large;
    gap: 40px;
}

.aboutus-container img {
    max-width: 400px;
    height: auto;
}

a {
    text-decoration: none;
}

.navbar {
    background-color: #F2EFE9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    user-select: none;
    /* position: static; */
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.navbar a {
    color: #7A7268;
}

.navbar img {
    width: auto;
    height: 48px;
}

.footer {
    background-color: #b9aa87;
    display: flex;
    justify-content: space-evenly;
    padding: 32px;
    user-select: none;
}

.footer a,
p {
    color: #1e2939;
}

.footer-contact {
    display: flex;
    gap: 10px;
}

@media (max-width: 640px) {

    .aboutus-container {
        display: flex;
        flex-direction: column;
        margin: 12px 24px;
        flex-wrap: wrap;
    }

    .aboutus-container img {
        max-width: 200px;
        height: auto;
        min-width: 0;
    }

    .aboutus-paragraphs {
        padding: 8px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        padding: 10px 20px;
    }

    .separate-sections {
        display: flex;
        flex-direction: column;
    }

    .contact-info-container {
        margin-left: 24px;
    }

    .map-container {
        max-width: 500px;
        width: 100%;
        height: 400px;
        flex-wrap: no-wrap;
        padding: 24px;
        margin-top: 16px;
    }

    /* check how to make each photo a line */
    .portfolio-container {
        display: grid;
        grid-template-columns: auto;
        padding: 10px 40px;
        margin-bottom: 70px;
    }

    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .navbar ul {
        gap: 12px;
        justify-content: center;
    }

    .navbar img {
        height: 36px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px 16px;
        text-align: center;
    }

    .footer-contact {
        /* flex-direction: column; */
        align-items: center;
    }
}

/* @theme {
  --color-background: #FFFFFF;
  --color-navbar: #F2EFE9;
  --color-primary: #2C2C2C;
  --color-secondary: #7A7268;
  --color-border: #DDD9D2;
  --color-footer: #b9aa87;
  --color-secondary-background: #f2efe9;
} */