@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* Reset CSS */

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

a {
    color: inherit;
    text-decoration: none;
}

a[disabled] {
    color: gray;
    pointer-events: none;
}

ul {
    list-style-type: none;
}

h3 {
    font-weight: 900;
    font-size: 24px;
    color: var(--clr);
}

p {
    font-size: 16px;
    font-weight: 300;
}

input, textarea, input::placeholder, textarea::placeholder, select {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: 16px;
}

/* Generic */

html,
body {
    scroll-behavior: smooth;
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}

:root {
    --clr: #ce3236
}

.btn {
    display: block;
    width: fit-content;
    cursor: pointer;
    font-weight: 700;
    background-color: #f1f1f1;
    border-bottom: 2px solid var(--clr);
    color: var(--clr);
    padding: 10px 30px;
    border-radius: 5px;
    transition: .1s ease-in-out;
}

.btn:hover,
.btn:focus-visible {
    border-bottom: 0px solid var(--clr);
    padding-top: 12px;
}

.btn span {
    font-weight: 800;
}

.btn.v2 {
    position: relative;
    background-color: var(--clr);
    color: white;
    border: 2px solid var(--clr);
    padding-top: 10px;
    width: fit-content;
    z-index: 0;
    overflow: hidden;
}

.btn.v2::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .1), transparent);
    transition: .1s ease-in-out;
}

.btn.v2:hover,
.btn.v2:focus-visible {
    background-color: transparent;
    color: var(--clr);
}

.btn.v2:hover::before,
.btn.v2:focus-visible::before {
    opacity: 0;
}

.btn.v3 {
    background-color: white;
    border: 2px solid white;
    color: var(--clr);
    padding-top: 10px;
}

.btn.v3:hover,
.btn.v3:focus-visible {
    background-color: transparent;
    color: white;
}

section {
    padding: 80px 0;
}

/* Header */

body {
    background-color: var(--clr);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 99;
    display: grid;
    place-items: center;
}
#preloader img {
    width: 120px;
}

header {
    background-color: white;
    position: relative;
    z-index: 10;
}

header .container:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

header .logo {
    width: 120px;
}

header #menu {
    height: 100%;
    font-weight: 600;
    display: flex;
}

header #menu>li {
    height: 100%;

    display: flex;
}

header #menu>li>a {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0 15px;
}

header #menu>li>a:has(+ ul) {
    display: flex;
    align-items: center;
    gap: 7.5px;
    transition: .3s ease-in-out;
}

header #menu>li>a:has(+ ul)::after {
    content: '⌄';
    color: var(--clr);
    top: 50%;
    right: 0;
    transform: scaleX(1.3) translateY(-3px);
}

header #menu>li:hover>a:has(+ ul),
header #menu>li:focus-visible>a:has(+ ul) {
    background-color: #f1f1f1;
}

header #menu>li:hover>a:has(+ ul)+ul,
header #menu>li:focus-visible>a:has(+ ul)+ul {
    transform: scaleY(1);
}

header #menu>li:has(ul) {
    position: relative;
}

header #menu>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    text-align: left;
    background-color: #f1f1f1;
    border-radius: 0 0 5px 5px;
    transform-origin: top;
    transform: scaleY(0);
    transition: .3s ease-in-out;
    overflow: hidden;
}

header #menu>li>ul>li>a {
    display: block;
    padding: 15px;
    transition: .1s ease-in-out;
}
header #menu>li>ul>li>a:hover, header #menu>li>ul>li>a:focus-visible {
    background-color: var(--clr);
    color: white;
}

header #menu-toggle {
    border: none;
    outline: none;
    font-size:31px;
    color: var(--clr);
    background: none;
    cursor: pointer;
    display: none;
}

#mobile-menu {
    display: flex;
    flex-direction: column;
    padding-block: 20px;
}
#mobile-menu ul {
    display: flex;
    flex-direction: column;
}
#mobile-menu ul li a {
    padding: 5px 0;
    font-weight: 600;
    display: inline-block;
    width: 100%;
}
#mobile-menu ul li a:has(+ ul) {
    display: flex;
    align-items: center;
    gap: 7.5px;
    transition: .3s ease-in-out;
}
#mobile-menu ul li a:has(+ ul)::after {
    content: '+';
    color: var(--clr);
    top: 50%;
    right: 0;
    transform: scale(1.3);
}
#mobile-menu ul li a+ul {
    margin-left: 20px;
}

@media (max-width: 991px) {
    header #menu-toggle {
        display: inline-block;
    }
    header #menu {
        display: none;
    }
    header .container:nth-child(1) > a {
        display: none;
    }
}

#banner {
    position: relative;
    color: white;
    height: calc(100vh - 80px);
    background-color: var(--clr);
    z-index: 0;
    background-image: url('./img/banner.jpeg');
    background-size: cover;
    background-position: center 20%;
    transform: scaleX(-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#banner>* {
    transform: scaleX(-1);
}

#banner::before {
    z-index: -2;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7) 66%);
}

#banner h1 {
    font-weight: 900;
    font-size: 48px;
    letter-spacing: 1px;
    line-height: 1;
}

@media (max-width: 991px) {
    #banner h1 {
        font-size: 42px;
    }
}

#banner p {
    margin-top: 20px;
    font-size: 21px;
    font-weight: 300;
}

#banner .btn {
    margin-top: 20px;
}

#parcerias {
    background-color: #f1f1f1;
}

#parcerias .inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 80px;
    background-color: #fff;
    border-radius: 20px;
    /* box-shadow: 0 0 6px rgba(0,0,0,.1); */
    justify-content: space-between;
}

@media (min-width: 992px) {
    #parcerias .inner {
        margin-top: -120px;
        padding-block: 40px;
    }
}

@media (max-width: 991px) {
    #parcerias {
        text-align: center;
    }

    #parcerias .btn {
        margin: 0 auto;
    }
    
    #parcerias .inner {
        padding-inline: 20px;
    }
}

#parcerias p {
    margin-top: 10px;
}

#parcerias .btn {
    margin-top: 20px;
}

#parcerias h4 {
    margin-bottom: 10px;
}

#sobre {
    /* background-color: #f1f1f1; */
    background-color: #f1f1f1;
    padding-top: 0;
    /* --clr: #393974 */
}

#sobre .sobre-img {
    width: 100%;
    position: relative;
}

#sobre .sobre-img .desc {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateX(40px) translateY(-50%);
    background-color: white;
    padding: 30px 50px;
    padding-bottom: 10px;
    color: #393974;
    border: 10px solid #f1f1f1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    font-size: 13px;
}

@media (max-width: 991px) {
    #sobre .sobre-img .desc {
        transform: none;
        right: 40px;
        bottom: 40px;
        top: auto;
    }
}

#sobre .sobre-img .desc i {
    font-size: 34px;
}

#sobre .sobre-img .desc span {
    font-weight: 900;
}

#sobre .sobre-img > img {
    width: 100%;
    border-radius: 20px;
}

#sobre h3 {
    margin-top: 10px;
}

#sobre p {
    margin-top: 10px;
}

#sobre .btn {
    margin-top: 20px;
}

#produtos {
    background: white;
}

#produtos .title {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 40px;
    max-width: 1000px;
}

#produtos .title h4 {
    margin-bottom: 10px;
}

#produtos .title p {
    margin-top: 10px;
}

@media (max-width: 991px) {
    #produtos .title {
        text-align: left;
        max-width: none;
    }
}

.produto {
    height: 100%;
    background-color: var(--clr);
    color: white;
    padding: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: .3s ease-in-out;
    display: block;
}


#produtos .col-lg-4:nth-child(2n) .produto {
    background-color: white;
    color: var(--clr);
    border: 2px solid var(--clr);
}

#produtos .col-lg-4:nth-child(2n) .produto p {
    color: black;
}

#produtos .col-lg-4:nth-child(2n) .produto i {
    background-color: white;
    border-color: var(--clr);
    color: var(--clr);
}

#produtos .col-lg-4:nth-child(2n) .produto:hover i {
    background-color: var(--clr);
    color: white;
}


.produto:hover,
.produto:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .4);
}

.produto i {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    transition: .1s ease-in-out;
}

.produto:hover i {
    background-color: white;
    color: var(--clr);
    transform: scale(1.1);
}

.produto h3 {
    color: inherit;
    margin-bottom: 10px;
}

#alternativos {
    position: relative;
    z-index: 0;
    background-color: var(--clr);
    --clr: #393974
}

#alternativos::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent);
}

#alternativos .produto {
    height: 100%;
    background-color: white;
    color: var(--clr);
}

#alternativos .produto p {
    color: black;
}

#alternativos .produto i {
    border: none;
    color: var(--clr);
    transform: none;
    width: fit-content;
    height: auto;
    font-size: 24px;
}

#alternativos .produto+.produto {
    margin-top: 1.5rem;
}

#alternativos .title {
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#alternativos .title h3 {
    color: inherit;
    margin-top: 10px;
}

#alternativos .title p {
    margin-top: 10px;
}

#alternativos .btn {
    margin-top: 20px;
}

#contato {
    background-color: #fff;
}

#contato .tel {
    display: block;
    margin-top: 20px;
    font-size: 42px;
    font-weight: 800;
    color: var(--clr);
    font-style: italic;
}

#contato .container:nth-child(1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#contato .container:nth-child(1) > div:nth-child(1) {
    max-width: 66%;
}

#contato .container:nth-child(1) h3 {
    margin: 10px 0;
}

@media (max-width: 991px) {
    #contato .container:nth-child(1) {
        flex-direction: column;
        align-items: start;
        gap: 80px;
    }
    #contato .tel {
        font-size: 34px;
    }
    #contato .whats {
        margin-bottom: 40px;
        margin-left: 80px;
    }
}

#contato .whats {
    height: 100px;
    width: 100px;
    background-color: rgb(37, 211, 102);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    color: white;
    animation: pulse 1s linear infinite;
    margin-right: 80px;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0.2),
            0 0 0 10px rgba(37, 211, 102, 0.2),
            0 0 0 30px rgba(37, 211, 102, 0.2),
            0 0 0 60px rgba(37, 211, 102, 0.2);
    }

    100% {
        box-shadow:
            0 0 0 10px rgba(37, 211, 102, 0.2), 
            0 0 0 30px rgba(37, 211, 102, 0.2), 
            0 0 0 60px rgba(37, 211, 102, 0.2), 
            0 0 0 80px rgba(37, 211, 102, 0);
    }
}

#contato .inner {
    margin: 0 auto;
    margin-top: 40px;
    background-color: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
}

#contato .inner > div > div {
    padding: 40px;
}

#contato .inner > div > div h3 {
    text-transform: uppercase;
    margin-bottom: 10px;
}

#fale-conosco {
    background-color: var(--clr);
}
#fale-conosco h3 {
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
form > input, form > textarea, form > select {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 5px;
}
form > input::placeholder, form > textarea::placeholder {
    font-style: italic;
    color: gray;
}

form > .btn {
    margin-top: 20px;
}

#seja-parceiro input, #seja-parceiro select, #seja-parceiro textarea {
    background-color: #fff;
}

footer {
    padding-top: 40px;
    background-color: black;
    color: white;
    text-align: center;
}

footer img {
    margin-bottom: 20px;
    width: 100%;
    max-width: 130px;
    filter: brightness(0) invert(1);
}

footer p {
    max-width: 1000px;
    margin: 0 auto;
}

footer .socials {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .socials i {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: white;
    color: black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

footer .copyright {
    margin-top: 20px;
    padding: 40px 0 40px;
}

@media (max-width: 991px) {
    footer p {
        max-width: none;
    }
}