* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    overflow-x: hidden;
    color: #1a1a1a;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
}

main {
    width: 100%;
    min-height: 100vh;
}

nav {
    min-height: 3.75rem;
    padding: 0.9rem clamp(1rem, 5vw, 6.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background-color: rgb(255, 255, 255);
    font-size: 0.8125rem;
}

nav .left,
nav .right {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.8vw, 1.25rem);
    flex-wrap: wrap;
}

nav .left img {
    width: 7.5rem;
    height: auto;
}

nav a {
    text-decoration: none;
    color: #262626;
    white-space: nowrap;
}

.ri-search-line,
.ri-shopping-cart-2-line {
    font-size: 0.9375rem;
}

.profile {
    height: 1.875rem;
    width: 1.875rem;
    border-radius: 50%;
    background-image: url(./images/profile.jpeg);
    background-size: cover;
    background-position: center;
}

section {
    width: 100%;
    min-height: clamp(22rem, 42vw, 37.5rem);
    position: relative;
    overflow: hidden;
}

section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-more {
    width: min(38rem, 38%);
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem);
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: clamp(2rem, 8vw, 4rem);
    left: clamp(1rem, 5vw, 4.5rem);
}

.learn-more h2 {
    margin-top: 0.625rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
}

.learn-more p {
    margin: 1.25rem 0;
    line-height: 1.45;
}

.learn-more button,
.container-4 .lowercontent button,
.container-5 .content5 button,
.cardcontent button,
.container-7 .content7 button {
    width: fit-content;
    padding: 0.75rem 1.25rem;
    border: none;
    background-color: #0067B8;
    border-radius: 0.125rem;
    color: white;
    font-weight: 600;
}

.box img {
    width: 10%;
}

.container-3 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2.625rem);
    margin: clamp(2.25rem, 5vw, 3.125rem) 0;
    padding: 0 1rem;
}

.container-3 .boxes {
    min-width: 9rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
}

.container-3 .boxes img {
    width: 2.375rem;
}

.container-3 .boxes a {
    font-weight: 500;
    color: #0067B8;
}

.container-4 {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.container-4 .card,
.container-6 .business-container .cards {
    min-width: 0;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0.125rem 0.4375rem rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.container-4 .card .topimage img,
.imagecard img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.container-4 .card .lowercontent {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
}

.container-4 .lowercontent h2 {
    font-weight: 500;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.container-4 .lowercontent p {
    line-height: 1.5;
}

.container-4 .lowercontent button,
.cardcontent button {
    margin-top: auto;
}

.container-5 {
    min-height: clamp(23rem, 40vw, 37.5rem);
    width: 90%;
    background-image: url('https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Highlight-Hero-Windows11-GlobalLaunch:VP5-1596x600');
    background-position: center;
    background-size: cover;
    margin: clamp(3.125rem, 6vw, 5rem) auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: clamp(2rem, 8vw, 7.5rem);
    padding-right: 2rem;
    color: white;
}

.container-5 .content5 {
    width: min(35rem, 42%);
    display: flex;
    flex-direction: column;
    gap: 1.5625rem;
}

.container-5 .content5 h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    line-height: 1.25;
    font-weight: 600;
}

.container-5 .content5 button {
    font-size: 0.875rem;
}

.container-6 {
    width: 90%;
    margin: clamp(4rem, 8vw, 6.25rem) auto;
}

.container-6 h1 {
    font-size: clamp(2rem, 3vw, 2.375rem);
    font-weight: 500;
}

.container-6 .business-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 2.3125rem);
    margin-top: 1.25rem;
}

.container-6 .business-container .cards {
    box-shadow: 0.125rem 0.25rem 0.5rem rgba(0, 0, 0, 0.227);
}

.cardcontent {
    flex: 1;
    padding: 0.625rem clamp(1rem, 2vw, 1.5625rem) 1.5625rem;
    display: flex;
    flex-direction: column;
}

.cardcontent .new {
    width: fit-content;
    padding: 0.375rem 0.875rem;
    border: none;
    background-color: #FFB900;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
}

.cardcontent h2 {
    font-size: clamp(1.5rem, 2.3vw, 1.875rem);
    font-weight: 500;
    margin: 0.5rem 0 0.9375rem;
}

.cardcontent p {
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.container-7 {
    min-height: clamp(23rem, 40vw, 37.5rem);
    width: 90%;
    background-image: url('https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/Hero-Desktop-AI-Sustainability-Less-Plastic:VP5-1920x600');
    background-position: center;
    background-size: cover;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(2rem, 8vw, 5rem);
}

.container-7 .content7 {
    width: min(32rem, 40%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5625rem;
}

.container-7 .content7 h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 600;
}

.socials {
    min-height: 7rem;
    width: 90%;
    display: flex;
    margin: auto;
    align-items: center;
    gap: 1.875rem;
    flex-wrap: wrap;
}

.socials a {
    text-decoration: none;
    font-size: 1.5625rem;
    color: #202020;
}

footer {
    width: 100%;
    background-color: #F2F2F2;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

footer .wrapfooter {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 6.25rem);
}

footer .footerbox {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

footer .footerbox h4 {
    font-weight: 500;
    color: #616161;
}

footer .footerbox a {
    text-decoration: none;
    color: #616161;
    font-size: 0.75rem;
}

@media (max-width: 75rem) {
    .container-4,
    .container-6 .business-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learn-more {
        width: min(30rem, 45%);
    }

    .container-5 .content5,
    .container-7 .content7 {
        width: min(32rem, 55%);
    }

    footer .wrapfooter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 56.25rem) {
    nav {
        align-items: flex-start;
    }

    nav .left {
        flex: 1 1 100%;
    }

    nav .right {
        width: 100%;
        justify-content: flex-start;
    }

    section {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    section img {
        height: clamp(18rem, 52vw, 26rem);
    }

    .learn-more {
        width: min(30rem, calc(100% - 2rem));
        top: 1.5rem;
        left: 1rem;
        padding: clamp(1.25rem, 4vw, 2rem);
    }

    .learn-more p br {
        display: none;
    }

    .container-5,
    .container-7 {
        min-height: 32rem;
    }

    .container-5 .content5,
    .container-7 .content7 {
        width: min(32rem, 72%);
    }
}

@media (max-width: 43.75rem) {
    nav {
        padding: 0.75rem 1rem;
    }

    nav .left,
    nav .right {
        gap: 0.625rem 0.875rem;
    }

    nav .left img {
        width: 6.75rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .container-3 {
        display: grid;
        grid-template-columns: repeat(2, minmax(8rem, 1fr));
        justify-items: center;
    }

    .container-4,
    .container-6 .business-container {
        grid-template-columns: 1fr;
    }

    .container-5,
    .container-7 {
        width: calc(100% - 2rem);
        min-height: 31rem;
        padding: 2rem 1.25rem;
    }

    .container-5 {
        justify-content: flex-end;
    }

    .container-5 .content5,
    .container-7 .content7 {
        width: 100%;
    }

    .container-7 {
        align-items: flex-end;
        background-position: center left;
    }

    footer .wrapfooter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 30rem) {
    section img {
        height: 22rem;
    }

    .learn-more {
        padding: 1.5rem 1rem;
    }

    .container-3 {
        grid-template-columns: 1fr;
        margin: 2rem 0;
    }

    .container-4,
    .container-6,
    .socials {
        width: calc(100% - 2rem);
    }

    .container-4 .card .lowercontent,
    .cardcontent {
        padding: 1rem;
    }

    footer .wrapfooter {
        grid-template-columns: 1fr;
    }
}
