:root {
    --bg: #fff;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #2C2D2D;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

#site {
    position: relative;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    padding: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 999;
}

main .wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .5s;
    transition-delay: .2s;
}

main .wrapper.inView {
    transform: translateY(0);
    opacity: 1;
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    z-index: 1;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #3A3E42;
    text-decoration: none;
}

.logo img {
    width: auto;
    height: 3.1875rem;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button a {
    display: block;
    background-color: #fff;
    padding: 0.75rem 1.6875rem;
    color: #000;
    transition: opacity .3s;
    border: 1px #D0D8DB solid;
    border-radius: 1.8125rem;
}

.header-button a:hover {
    opacity: .7;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    transform: translateY(5rem);
    opacity: 0.1;
    transition: transform .8s, opacity .8s;
    transition-delay: .3s;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2.625rem;
}

.inView .hero-image {
    transform: translateY(0);
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    padding: 8.9375rem 7.75rem;
}

.hero-content h1 {
    text-transform: uppercase;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .4s, opacity .4s;
    transition-delay: .3s;
    font-weight: 500;
    font-size: 5.625rem;
    line-height: 6.125rem;
    text-align: center;
    color: #fff;
    margin: 0 0 4.25rem;
}

.inView .hero-content h1 {
    transform: translateX(0);
    opacity: 1;
}

.hero-description {
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 3rem;
    text-align: center;
    color: #fff;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .6s;
    margin-bottom: 2.125rem;
}

.inView .hero-description {
    transform: translateX(0);
    opacity: 1;
}

.image-separator {
    margin-top: 82px;
    width: 100%;
    height: 30.3125rem;
    border-radius: 2rem;
    overflow: hidden;
}

.image-separator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

section {
    margin-bottom: 18.75rem;
}

section h2 {
    font-weight: 500;
    font-size: 3.875rem;
    line-height: 4.375rem;
    margin: 0 0 1.5rem;
    transform: translateX(-3rem);
    opacity: 0.1;
    transition: transform .3s, opacity .3s;
    transition-delay: .3s;
}

section .inView h2 {
    transform: translateX(0);
    opacity: 1;
}

section h3 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 2.5rem;
    color: var(--header);
    margin: 0 0 1.875rem;
}

section p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
    color: var(--header);
}

.section-header {
    margin-bottom: 5.125rem;
}

.section-header p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
}

.about-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category,
.about-tiles-item {
    padding: 1.5rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 21.875rem;
    background-color: #D0D8DB;
}

.about-tiles-item:first-child {
    grid-column: span 2;
}

.category h5,
.about-tiles-item h5 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 100%;
    margin: 0;
}

.category p,
.about-tiles-item p {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.625rem;
    max-width: 28rem;
}

#divisions .image-separator {
    height: 38.25rem;
}

.divisions-header {
    display: flex;
    gap: 9.0625rem;
    margin-bottom: 9.375rem;
}

.divisions-header h2 {
    width: 41%;
    flex-shrink: 0;
}

.divisions-header p {
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
}

.divisions-categories-header {
    font-weight: 500;
    font-size: 3rem;
    line-height: 3.5rem;
    margin-bottom: 5.125rem;
}

.about-content {
    display: flex;
    gap: 9.125rem;
    margin-bottom: 10.25rem;
}

.about-content-item {
    width: 41%;
    flex-shrink: 0;
}

.about-content-item p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.about-content-item-right {
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;

}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.625rem 1.25rem;
}

.industries-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3.875rem 1.25rem;
}

.industries-content-item {
    font-weight: 500;
    font-size: 2rem;
    line-height: 100%;
    text-align: center;
    grid-column: span 2;
}

.industries-content-item:nth-child(1),
.industries-content-item:nth-child(2) {
    grid-column: span 3;
}

.industries-content-item-img {
    height: 18.3125rem;
    overflow: hidden;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.industries-content-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tai {
    display: flex;
    gap: 8.8125rem;
}

.tai-text h3 {
    font-weight: 500;
    font-size: 3.875rem;
    line-height: 4.375rem;
    margin: 0 0 1.5rem;
}

.tai-text span {
    display: block;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 2.625rem;
}

.tai-text p {
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin: 0;
}

.tai-img {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2rem;
}

.tai-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sustainability-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 9.375rem;
}

.sustainability-card {
    font-weight: 500;
    font-size: 2rem;
    line-height: 100%;
    text-align: center;
}

.sustainability-card-img {
    width: 100%;
    height: 18.3125rem;
    overflow: hidden;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.sustainability-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-text {
    font-weight: 400;
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 5.125rem;
}

.contact-content-item {
    margin-bottom: 3.875rem;
}

.contact-content-item h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 0 0 1.25rem;
}

.contact-content-item span {
    display: block;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 1rem;
}

.contact-content-item p,
.contact-content-item a {
    display: block;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 2rem;
}

.contact-content-item a {
    color: #E66554;
}

.contact-content-item a:hover {
    text-decoration: underline;
}

footer {
    padding: 0 0 3.125rem;
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.footer-bottom {
    padding: 6.5625rem 0 0;
}

.footer-bottom a {
    color: #424E58;
}

.footer-top a:hover,
.footer-bottom a:hover {
    text-decoration: underline;
}

.copyright {
    color: #424E58;
    font-size: 0.875rem;
}

#to-top {
    position: fixed;
    right: 1rem;
    bottom: -50rem;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 2px solid #DDE1E6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: .5;
    transition: all .3s;
    z-index: 999;
}

#to-top.show {
    bottom: 1rem;
}

#to-top:hover {
    opacity: 1;
}

#to-top svg {
    fill: var(--header);
    width: 80%;
}

@media (max-width: 1470px) {
    .wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1320px) {
    .hero-content {
        width: 100%;
    }

    .hero-image {
        right: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 1240px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 4.5rem;
        line-height: 5rem;
    }

    .hero-description {
        font-size: 2rem;
        line-height: 2.2rem;
    }

    section {
        margin-bottom: 10rem;
    }

    .about-content {
        flex-direction: column;
        gap: 4rem
    }

    .about-content-item {
        width: 100%;
    }

    .about-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .divisions-header {
        flex-direction: column;
        gap: 3rem;
    }

    .divisions-header h2 {
        width: 100%;
    }

    .industries-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-content-item,
    .industries-content-item:nth-child(1),
    .industries-content-item:nth-child(2) {
        grid-column: span 1;
    }

    .industries-content-item:nth-child(3) {
        grid-column: span 2;
    }

    .tai {
        gap: 3rem;
    }
}

@media(max-width:920px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {

    .header-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        padding: 0;
        border-radius: 0.5rem;
    }

    .header-menu-button span,
    .header-menu-button span:before,
    .header-menu-button span:after {
        display: block;
        width: 24px;
        height: 4px;
        border-radius: 2px;
        background: #000;
        transition: 0.3s;
    }

    .header-menu-button span {
        position: relative;
    }

    .header-menu-button span:before {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
    }

    .header-menu-button span:after {
        content: "";
        position: absolute;
        top: 8px;
        left: 0;
    }

    .header-menu-button.active span {
        background: transparent;
    }

    .header-menu-button.active span::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    .header-menu-button.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #header-menu {
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 1rem;
        opacity: 0;
        overflow: hidden;
        height: 0;
        width: auto;
        min-width: 30vw;
        z-index: 9;
        background-color: #fff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1em;
        border-radius: .5rem;
        transition: opacity .6s, height .3s;
    }

    #header-menu.active {
        opacity: 1;
        height: 80vh;
    }

    .mobile-nav-item {
        display: block;
    }

    .hero-content {
        padding: 6rem 2rem;
    }

    .hero-content h1 br {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .hero-description {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    section h2 {
        font-size: 2rem;
        line-height: 3rem;
    }

    .about-content-item p {
        font-size: 1rem;
        line-height: 1.2rem;
    }

    .about-content-item-right {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .about-tiles {
        grid-template-columns: 1fr;
    }

    .about-tiles-item:first-child {
        grid-column: span 1;
    }

    .category,
    .about-tiles-item {
        min-height: 2rem;
    }

    .category h5,
    .about-tiles-item h5 {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .industries-content {
        grid-template-columns: 1fr;
    }

    .industries-content-item {
        grid-column: span 1 !important;
    }

    .tai {
        flex-direction: column;
    }

    .tai-text {
        order: 2;
    }

    .tai-text h3 {
        font-size: 2.4rem;
        line-height: 3rem;
    }

    .tai-text span {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .tai-text p {
        font-size: 1rem;
        line-height: 1.2rem;
    }

    .tai-img {
        order: 1;
        width: 100%;
        height: 15rem;
    }

    .sustainability-cards {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {

    #header-menu {
        min-width: 45vw;
    }

    footer {
        text-align: center;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .industries-content-item{
        font-size: 1.5rem;
    }

    .sustainability-card {
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }
}

@media (max-width: 360px) {
    html{
        font-size: 12px;
    }
}