@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&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');

:root {
    --primary-color: #d9ebe8;
    --primary-color-dark: #f7901b;
    --text-dark: #333333;
    --text-light: #5a5750;
    --extra-light: #f1f1f1;
    --black: #000000;
}

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

body {
    font-family: "Poppins", sans-serif;
}

section{
    padding: 1rem 1rem;
    margin: 0 auto;
}

/* ///////////////////// navbar /////////////////////// */

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

nav {
    background-color: #d9ebe8;
    width: 100%;
    left: 0;
}

.btn {
    padding: 1rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

nav {
    position: fixed;
    isolation: isolate;
    width: 100%;
    left: 0;
    z-index: 9;
}

.nav__header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #d9ebe8;
}

.nav__logo .logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

.nav__logo .logo span {
    color: #f7901b;
    font-size: 1.3rem;
}

.nav__menu__btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav__links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background-color: #d9ebe8;
    transition: transform 0.5s;
    z-index: -1;
    color: #000000;
}

.nav__links.open {
    transform: translateY(100%);
}

.nav__links a {
    font-weight: 500;
    color: rgb(61, 61, 61);
    white-space: nowrap;
    font-size: 1.2rem;
}

.nav__links a:hover {
    color: var(--text-dark);
}

.nav__btns {
    display: none;
}

.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.socials a {
    display: inline-block;
    padding: 5px 9px;
    font-size: 1.125rem;
    color: var(--white);
    background-color: var(--text-dark);
    border-radius: 100%;
}

.socials a:hover {
    background-color: var(--primary-color);
}

.nav__btns .btn:hover i{
    color: var(--text-dark);
}

.nav__links a:hover {
    color: #f7901b;
}

/* /////////////////////// header content /////////////////////// */

header{
    padding-top: 5rem;
    display: grid;
}

.header-img img{
    position: relative;
    isolation: isolate;
    margin: 0 auto;
    margin-top: 5rem;
}

.header-img::before {
    position: absolute;
    content: "";
    height: 85%;
    aspect-ratio: 1;
    background-color: var(--primary-color);
    border-radius: 100%;
    z-index: -1;
    max-width: 600px;
}

.header-img img {
    width: 100%; 
    height: auto; 
}

.header-img::before {
    width: 100%; 
    height: auto;
}

.header-content{
    padding-block: 2rem 5rem;
    padding-inline: 1rem;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 5.5rem;
}

.header-content h1 span {
    color: #f7901b;
}

.header-btn {
    margin-block: 2rem;
    text-align: center;
    font-family: "Poppins";
}

.socials{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.socials a{
    display: inline-block;
    padding: 5px 9px;
    font-size: 1.125rem;
    color: white;
    background-color: var(--text-dark);
    border-radius: 100%;
}

.socials a:hover{
    color: var(--text-dark);
}

.section-description{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.75rem;
}

/* ///////////////////////////// sorvetes ///////////////////////////////// */

.popular-grid{
    margin-top: 4rem;
    display: grid;
    gap: 4rem 1rem;
}

.popular-card{
    position: relative;
    isolation: isolate;
}

.popular-card::before{
    position: absolute;
    content: "";
    bottom: 5rem;
    left: 0;
    height: 60%;
    width: 100%;
    transition: .5s;
    z-index: -1;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

.popular-card:hover::before{
    height: 90%;
}

.popular-card:nth-child(1)::before{
    background-color: #f0dbc3;
}

.popular-card:nth-child(2)::before{
    background-color: #fffad1;
}

.popular-card:nth-child(3)::before{
    background-color: #ffe3f6;
}

.popular-card img{
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
    display: flex;
    margin-inline: auto;
}

.popular-card-content{
    padding: 1rem;
    background: white;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

.section-container h2{
    text-align: center;
    margin-top: 4rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.section-container h2 span{
    color: var(--primary-color-dark);
}

.popular-card-content h4{
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.popular-card-content h3{
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color-dark);
    text-align: center;
}

.popular-card-content p{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin: 10px;
}

/* /////////////////////////// categorias ///////////////////////////// */

.discover-container .section-description{
    margin-block: 1rem;
    margin: 10px;
}

.discover-grid{
    display: grid;
    gap: 4rem;
    margin-top: 4rem;
}

.discover-card{
    display: grid;
    gap: 2rem;
    overflow: hidden;
}

.discover-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: .5s;
    border-radius: 10px;
    margin: 10px;
}

.discover-card h4{
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 10px;
}

.discover-card h3{
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 10px;
}

.discover-card h3 span{
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 10px;
}

.discover-card-content h3 s{
    text-decoration: line-through;
}

.discover-card-btn{
    text-align: center;
    margin: 10px;
}

/* //////////////////////// banner ///////////////////////// */

.banner {
    background-image: url(imagens/banner1.jpg);
    background-size: cover;
    height: auto; 
    background-position: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
    margin-top: 3rem;
}

.banner-content p{
    margin: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
    text-align: center;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

.banner-content h2{
    font-size: 1.8rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    text-align: center;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

.section-header span{
    color: #ffab2e;
}

/* /////////////////////// Parallax /////////////////////// */

.conteudo {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 2rem;
}

section.module {
    padding: 0;
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

section.module p {
    margin-bottom: 40px;
}

section.module:last-child {
    margin-bottom: 0;
}

section.module h2 {
    margin-bottom: 40px;
    font-size: 30px;
}

section.module.content {
    padding: 40px 0;
}

section.module.parallax {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 30rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

section.module.parallax:after {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    background: -moz-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, #000 110%);
    background: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, #000 110%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, #000 110%);
}


section.module.parallax-1 {
    background-image: url(imagens/parallax-img.jpg);
    z-index: -2;
}

section.module.parallax h1 {
    color: #FFF;
    text-align: center;
    font-size: 68px;
    text-transform: uppercase;
}

.adress p{
    font-weight: 600;
    font-size: 1rem;
}
.adress h3{
    margin: 10px;
}
.adress i{
    margin: 10px;
    font-size: 1.5rem;
}

@media all and (max-width: 820px) {
    section.module h2 {
        font-size: 32px;
    }

    .module h2,
    p {
        padding: 0 8px;
    }

    .container {
        margin: 0;
        padding: 0;
    }

    section.module.parallax h1 {
        font-size: 36px;
    }
}

/* /////////////////////////////// scrool to top /////////////////////////////// */

.top-link {
    transition: all .25s ease-in-out;
    position: fixed;
    bottom: 0;
    right: 0;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin: 0 3em 3em 0;
    border-radius: 50%;
    padding: .25em;
    width: 45px;
    height: 45px;
    background-color: rgb(69, 187, 255);
}

.show {
    visibility: visible;
    opacity: 1;
}

.hide {
    visibility: hidden;
    opacity: 0;
}

.top-link i {
    font-size: 20px; 
    text-decoration: none;
    color: #000; 
}

.top-link {
    text-decoration: none;
}

.screen-reader-text {
    position: absolute;
    clip-path: inset(50%);
    margin: -1px;
    border: 0;
    padding: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
    clip: rect(1px, 1px, 1px, 1px);
}

&:focus {
    display: block;
    top: 5px;
    left: 5px;
    z-index: 100000;
    clip-path: none;
    background-color: #eee;
    padding: 15px 23px 14px;
    width: auto;
    height: auto;
    text-decoration: none;
    line-height: normal;
    color: #444;
    font-size: 1em;
    clip: auto !important;
}

/* /////////////// mediaqueries scroll /////////////// */

@media (max-width: 600px) {
    .top-link {
        width: 40px; 
        height: 40px;
        bottom: -1em; 
        right: -1.5em;  
    }

    .top-link i {
        font-size: 18px; 
    }
}

@media (max-width: 400px) {
    .top-link {
        width: 35px; 
        height: 35px; 
        bottom: -1em; 
        right: -1.5em;  
    }

    .top-link i {
        font-size: 16px; 
    }
}

@media (max-width: 300px) {
    .top-link {
        width: 30px; 
        height: 30px; 
        bottom: -1em; 
        right: -1.5em; 
    }

    .top-link i {
        font-size: 14px; 
    }
}

/* /////////////////////// footer /////////////////////// */

* {
    font-family: "poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
}

*::selection {
    background-color: #bef1fa;
    color: #fff;
}

html {
    overflow-x: hidden;
}

.footer{
    padding: 2rem;
    background-color: #f9f9f9;
    background-size: cover;
    background-position: center;
}

.footer .box-container{
    display: flex;
    flex-wrap: wrap;
}

.footer .box-container .box{
    flex: 1 1 2.5rem;
    margin: 2rem;
}

.footer .box-container .box h3{
    font-size: 1.4rem;
    padding: 1rem 0;
    text-decoration: underline;
    text-underline-offset: 1rem;
    font-family: "bebas neue";
}

.footer .box-container .box p{
    font-size: 1rem;
    padding: .5rem 0;
    text-underline-offset: 1rem;
}

.footer .box-container .box a{
    display: block;
    font-size: 1.2rem;
    padding: .5rem 0;
    text-underline-offset: 1rem;
    color: black;
    font-family: "Poppins";
}

.footer .box-container .box a:hover{
    text-decoration: underline;
    color: #f7901b;
    transition: .3s ease;
}

.footer .box-container .box i{
    margin: .5rem 0;
    margin-right: 1rem;
    border-radius: 50%;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
    line-height: 0.2rem;
}

.credit {
    font-size: 1rem;
    letter-spacing: .1rem;
    color: #000000;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--primary-color);
    justify-content: center;
    align-items: center;
    display: flex;
    font-weight: 600;
    height: auto;
}

/* /////////////////////// media queries navbar /////////////////////// */

@media (width > 798px) {

    nav {
        position: static;
        padding: 2rem 1rem;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background-color: #d9ebe8;
        width: 100%;
        left: 0;
        z-index: 1000;
    }

    .nav__header {
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    .nav__logo .logo {
        font-size: 1.4rem;
    }

    .nav__logo .logo span {
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    .nav__menu__btn {
        display: none;
    }

    .nav__links a{
        color: #000000;
    }

    .nav__links {
        position: static;
        width: fit-content;
        padding: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none !important;
        color: #000000;
    }

    .nav__links a:hover {
        color: #f7901b;
    }

    .nav__btns {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
    }

    .nav__btns .btn {
        padding: 0.5rem;
        font-size: 1.5rem;
        color: var(--text-dark);
        background-color: transparent;
    }

    .nav__btns .btn:hover {
        color: var(--primary-color);
    }

    .header__content .socials {
        justify-content: flex-start;
    }

    .footer__container {
        flex-direction: row;
        align-items: center;
    }

    .footer__col:nth-child(1),
    .footer__col:nth-child(3) {
        flex: 1;
        text-align: left;
    }

    .footer__links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer__col .socials {
        justify-content: flex-end;
    }
}

/* /////////////////////// media queries header content /////////////////////// */

@media (width > 768px) {

    header {
        padding-top: 0;
        grid-template-columns: 
        minmax(0,1fr)
        minmax(0, calc(1200px / 2))
        minmax(0, calc(1200px / 2))
        minmax(0,1fr);
        align-items: center;
    }

    .header-img {
        grid-column: 3/5;
    }

    .header-content {
        grid-area: 1/2/2/3;
        padding-block: 5rem;
    }

    .header-content :is(h1, .section-description, .header-btn) {
        text-align: left;
    }

    .header-content .socials {
        justify-content: flex-start;
    }

}

@media (max-width: 458px) {
    .header-img::before {
        max-width: 400px;
    }
}

/* /////////////////////// media queries sorvete /////////////////////// */

@media (width > 668px) {
    
    .popular-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-card{
        width: 100%;
    }

    .popular-container .section-header{
        text-align: center;
    }

}

@media (max-width: 440px) {
    .popular-container{
        margin: 0 auto;
        padding: 0rem 3.5rem;
    }
}

/* /////////////////////// media queries sorvete /////////////////////// */

@media (width > 768px) {
    
    .discover-container :is(.section-header, .section-description) {
        text-align: center;
        max-width: 800px;
        margin-inline: auto;
    }

    .discover-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover-card img {
        height: 350px;
    }

    .discover-card:nth-child(2) .discover-card-content {
        order: -1;
    }

    .discover-card-content :is(h4, .section-description, h3, .discover-card-btn) {
        text-align: left;
    }

}

@media (width > 540) {
    .discover-card img {
        height: 300px;
    }

}
