@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

:root {
    --global-max-width: 1100px;
}

p {
    color: rgb(61, 61, 61);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 23px;
}

nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: all 300ms;
    background-color: white;
}

nav .icon {
    font-size: 1.3rem;
    color: black;
    display: none;
    cursor: pointer;
}

.nav-container {
    display: flex;
    max-width: var(--global-max-width);
    justify-content: space-between;
    margin: 0 auto;
    padding: 1.5em 2em;
    transition: padding 500ms;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    column-gap: 2em;
}

.nav-container .logo {
    color: black;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-list a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 150ms;
}

.nav-list a::after {
    display: block;
    content: '';
    border-bottom: 2px solid rgb(55, 107, 82);
    transform: scaleX(0);
    transition: transform 300ms;
}
.nav-list a:hover {
    color: rgb(55, 107, 82);
}
.nav-list a:hover::after {
    transform: scaleX(100%);
}

header h2 {
    font-size: 3rem;
    color: black;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2em;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    max-width: var(--global-max-width);
    margin: 0 auto;
    padding: 8em 2em 8em 2em;
    position: relative;
    align-items: center;
}

.socials {
    position: absolute;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 1rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.social-icons a {
    display: inline-block;
    font-size: 1.2rem;
    color: rgb(61, 61, 61);
    transition: transform 300ms;
}
.social-icons a:hover {
    transform: translateX(3px);
}

.socials p {
    font-weight: 600;
    writing-mode: vertical-rl;
    margin-bottom: 0;
}

.btn-green {
    display: inline-block;
    color: white;
    text-decoration: none;
    background-color: rgb(55, 107, 82);
    padding: 1em 2em;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    font-size: 1rem;
    transition: background-color 250ms, transform 300ms;
}

.btn-green:hover {
    transform: translateX(10px);
    background-color: rgb(35, 75, 55);
}

.link-green {
    display: inline-block;
    color: rgb(55, 107, 82);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
}

.link-green i {
    transition: transform 300ms;
}

.link-green:hover i {
    transform: translateX(10px);
}

header img {
    max-width: min(100%, 500px);
    display: block;
    margin: 0 auto;
}

.container {
    max-width: var(--global-max-width);
    margin: 0 auto;
    padding: 2rem;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cards .element {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 3rem 2rem;
    box-sizing: border-box;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    transition: transform 300ms;
}

.cards .element:hover {
    transform: translateY(-5px);
}

.cards h4 {
    margin-bottom: 0.5rem;
}

.cards p {
    margin-bottom: 0;
}

.cards img {
    display: block;
    margin: 0 auto;
    max-height: 200px;
    margin-bottom: 2rem;
    transition: transform 300ms;
}

.cards .text {
    position: relative;
}

.gift {
    padding: 1rem !important;
    position: relative;
    overflow: hidden;
}

.gift-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.gift h4, .gift p {
    text-align: left;
    margin-bottom: 0;
}

.widget {
    color: white;
    background-color: rgb(55, 107, 82);
    padding: 0.8rem;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(120%);
    transition: all 300ms;
    border-radius: 5px 0px 0px 5px;
}

.widget:hover {
    background-color: rgb(35, 75, 55);
}

.cards .element:hover .widget {
    transform: translateX(0);
}

.img-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.img-text h3 {
    margin-bottom: 1.5rem;
}

.img-text p {
    margin-bottom: 2rem;
}

.img-text img {
    max-width: min(100%, 450px);
}

.grid-autofill {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.newsletter h3 {
    color: white;
    font-weight: 600;
    font-size: 2rem;
    margin: 2rem 0 3rem 0;
    line-height: 125%;
    text-align: center;
}

.faq-title {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.faq-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.faq-grid .element {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    max-height: min-content;
}

.faq-grid p {
    margin: 1.5rem;
    display: none;
    color: white;
    font-weight: 400;
}

.faq-grid .element.opened {
    background-color: rgb(55, 107, 82);
    color: white;
}

.faq-grid .element.opened i {
    transform: rotate(45deg);
}

.faq-grid .element.opened p {
    display: block;
}

.flex-contact {
    display: flex;
    gap: 2rem;
    margin-block: 4rem;
}

footer a:visited {
    color: white;
}

.flex-contact .left {
    flex: 1;
}

form {
    flex: 1;
}

form input {
    display: block;
    width: 100%;
    padding: 1rem 0;
    outline: none;
    border: none;
    border-bottom: 1px solid black;
    margin-bottom: 2rem;
}

@media screen and (max-width: 1000px) {
    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .img-text {
        grid-template-columns: 1fr;
    }

    .img-text p {
        font-size: 0.9rem;
        text-align: center;
    }

    .img-text h3 {
        text-align: center;
    }

    .img-text img {
        display: block;
        margin: 0 auto;
        max-height: 400px;
    }

    .img-text a {
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: fit-content;
    }

    .img-text.reverse .right {
        order: 0;
    }
    .img-text.reverse .left {
        order: 1;
    }

    .newsletter h2 {
        text-align: center;
    }

    .btn-black {
        display: block;
        margin: 0 auto;
    }

    .newsletter .right {
        display: none;
    }

    .faq-title {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 850px) {
    .header-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 3rem;
    }
    .socials {
        display: none;
    }

    .header-container img {
        max-width: min(350px, 100%);
    }

    header .btn-container {
        flex-direction: column;
    }

    header .btn-container a {
        display: block;
        margin: 0 auto;
    }
    
    nav .icon {
        display: block;
    }
    
    .nav-list {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(-40%);
        z-index: 500;
        transition: transform 300ms;
    }

    nav.responsive .nav-list {
        bottom: 0;
        transform: translateY(100%);
        box-shadow: 0px 10px 10px -10px rgba(0,0,0,0.2);
    }

    nav .nav-list a {
        display: block;
        padding: 1rem 2rem;
        background-color: white;
        transition: all 150ms;
    }

    .nav-list a:hover, .nav-list a:active {
        background-color: rgb(55, 107, 82);
        color: white;
    }
    .nav-list a::after {
        display: none;
    }

    .container {
        padding-inline: 1rem;
    }

    .flex {
        flex-direction: column;
        gap: 1rem;
    }

    footer h4 {
        text-align: left;
    }

    .faq-title {
        text-align: center;
    }
}

@media screen and (max-width: 684px) {
    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    form > div {
        flex-direction: column;
    }

    .cards:not(.gift-container) {
        grid-template-columns: 1fr;
    }

    .grid-autofill {
        text-align: center;
    }

    footer h4 {
        text-align: center;
    }

    footer p {
        margin-inline: auto;
    }

    .flex-contact {
        flex-direction: column;
    }
}