@import "~@fortawesome/fontawesome-free/css/all.min.css";

:root {
    /* COLORS */
    --dark: #211C1C;
    --secondary: #7A4A12;
    --ligth: #D9D9D9;
    --primary: #B57625;
    
    /* FONTS */
    --fonttitles: 'Limelight', sans-serif;
    --fontothers: Arial, sans-serif;
    --fontlogo: 'Fredericka the Great', serif;
    --fontp:  'Roboto', sans-serif;

    /* FONTSIZE */
    --48px: 3rem;
    --36px: 2.25rem;
    --24px: 1.5rem;
    --16px: 1rem;
    --8px: 0.5rem;

}

html {
    scroll-behavior: smooth;
}

/* Estilo geral da página */
body {
    background: var(--dark);
    color: var(--ligth);
    font-family: var(--fontp);
    margin: 0;
    min-width: 300px;
    padding: 0;
    scroll-behavior: smooth;
    text-align: center;
}

/* MENU DE NAVEGAÇÃO */

header {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100px;
    justify-content: space-between;
    margin: 0 auto;
}

.logo {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.logo a:hover {
    background-color: var(--dark);
}

.logo img {
    height: 64px;
    margin: 8px;
    width: 64px;
}

.logo p {
    font-family: var(--fontlogo);
    font-size: var(--24px);
}

nav {
    align-items: center;
    display: flex;
    gap: 0.2rem;
    margin: auto;
}

nav a {
    color: var(--ligth);
    font-size: 12px;
    padding: 4px 4px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a::after {
    background-color: var(--secondary);
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
    width: 100%;
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    margin: 16px 8px;
}

.content h1 {
    color: var(--primary);
    font-family: var(--fonttitles);
    font-size: 24px;
    margin: 0px;
    margin-bottom: 8px;
}

.content p {
    font-size: 18px;
    margin: 0px 21px;
}

p {
    font-size: 18px;
}

.buttons button {
    border: 1px solid white;
    border-radius: 30px;
    font-size: var(--16px);
    margin: 0.2rem;
    margin-top: 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buttons button:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.buttons button:nth-child(2) {
    border: 1px solid var(--primary);
}

.buttons button:nth-child(2):hover {
    box-shadow: 0 0 15px var(--primary);
}

.primary {
    background-color: var(--secondary);
    color: var(--ligth);
}

.secondary {
    background-color: var(--ligth);
    color: var(--secondary);
}

/* Container */
.container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 50vh;
    justify-content: center;
    margin: auto;
    max-width: 1200px;
    width: 100%;
}

/* Seção de conteúdo */
.content {
    max-width: 600px;
    width: 100%;
}

/* Botões */
.buttons {
    margin-top: 20px;
}

.primary, .secondary {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
}

.image-section {
    gap: 05px;
    margin: 41px auto;
    max-width: 500px;
    width: calc(100% - 16px);
}

.image-section p {
    color: var(--primary);
    margin-bottom: 48px;
}

.image-box {
    align-items: center;
    border: 1px solid white;
    border-radius: 10px;
    display: flex;
    height: 250px;
    justify-content: center;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.image-box img {
    border-radius: 05px;
    height: 90%;
    object-fit: cover;
    width: 90%;
}

/* Estilo inicial das imagens */
.scroll-image {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

/* Quando a classe 'visible' for adicionada */
.scroll-image.visible {
    opacity: 1;
    transform: translateY(0);
}

main {
    max-width: 1200px;
    margin: auto;
}

/* POR QUE ESCOLHER */

.porque {
    background-color: var(--secondary);
    background-image: 
        linear-gradient(#7a49128c, rgba(0, 0, 0, 0.6)), 
        url(images/retro-motor-bike-wheel-vector-illustration-vintage-motorcycle-part.png);
    background-position: center;
    background-size: cover;
    overflow: hidden;
    padding: 34px 8px;
    position: relative;
    text-align: left;
}

h2 {
    font-family: var(--fonttitles);
    font-size: var(--24px);
}

article {
    background-color: var(--ligth);
    border-radius: 5px;
    color: var(--dark);
    margin: 1rem auto;
}

article h3 {
    color: var(--primary);
    font-size: 18px;
    margin: 8px 0;
    padding: 1rem 1rem 0 1rem;
}

article p {
    margin: 0;
    padding: 0 1rem 1rem 1rem;
}

#galeria-title {
    color: var(--primary);
    margin: 36px 8px 16px 8px;
    text-align: left;
}

.carousel-container {
    align-items: center;
    border-radius: 20px;
    display: flex;
    height: 80vh;
    margin: auto;
    margin-bottom: 36px;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    width: calc(100% - 16px);
}

.carousel {
    align-items: center;
    border-radius: 20px;
    height: 100%;
    margin: auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slides .slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
    width: 100%;
}

.carousel-slides img {
    display: block;
    height: 100%;
    margin: auto;
    object-fit: cover;
    width: 100%;
}

.carousel-slides .caption {
    background-color: #7a4912c5;
    border: 1px solid white;
    border-radius: 15px;
    bottom: 01%;
    color: white;
    font-size: 1rem;
    padding: 10px;
    position: absolute;
    text-align: center;
    transform: translate(-50%);
    left: 50%;
    z-index: 3;
}

button.prev, button.next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/* SOBRE NÓS */
#sobrenos {
    background-color: white;
    color: var(--dark);
    font-size: var(--16px);
    padding: 36px 8px 30px 8px;
    text-align: left;
}

#sobrenos h2 {
    color: var(--secondary);
}

#sobrenos p {
    margin-bottom: 30px;
}

.sobre-img {
    display: none;
}

.sobre {
    align-items: center;
    display: flex;
    gap: 10px;
    height: 100%;
    justify-content: center;
}

.sobre button {
    background-color: var(--primary);
    border-radius: 10px;
    color: var(--ligth);
    margin: 0 auto;
    padding: 4px 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sobre button:hover {
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--primary);
    cursor: pointer;
    transform: scale(1.1);
}

.gif img {
    height: 50px;
    width: 50px;
}

.texto-desktop {
    display: none;
}

/* CONTATO */

#contato {
    padding: 36px 8px;
    text-align: left;
}

#contato h2 {
    color: var(--primary);
}

.wrapper {
    align-items: center;
    display: flex;
    height: 10vh;
    justify-content: flex-start;
    width: 100%;
}

.wrapper .button {
    background: #fff;
    border-radius: 50px;
    box-shadow: 05px 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: block;
    float: left;
    height: 60px;
    margin: 0 5px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    width: 60px;
}

.wrapper .button:hover {
    width: 200px;
}

.wrapper .button:hover .icon {
    color: #fff;
}

.wrapper .button .icon {
    border-radius: 50px;
    display: inline-block;
    height: 60px;
    line-height: 60px;
    text-align: center;
    transition: all 0.3s ease-out;
    width: 60px;
}

.wrapper .button .icon i {
    color: var(--dark);
    font-size: 25px;
    line-height: 60px;
    transition: all 0.3s ease-out;
}

.wrapper .button span {
    font-size: 20px;
    font-weight: 500;
    line-height: 60px;
    margin-left: 10px;
}

.wrapper a.whats:hover .icon {
    background: #05a354;
}

.wrapper a.whats:hover span {
    color: #05a354;
}

.wrapper a.insta:hover .icon {
    background-image: linear-gradient(45deg, #5652C4, #ff0000);
}

.wrapper a.insta:hover span {
    color: #ff0000;
}

.wrapper a.face:hover .icon {
    background: #4267b2;
}

.wrapper a.face:hover span {
    color: #4267b2;
}

.wrapper > a {
    color: var(--dark);
}

/* FOOTER */
footer {
    align-items: center;
    background-color: var(--secondary);
    color: var(--ligth);
    display: flex;
    flex-direction: column;
    height: 100px;
    justify-content: center;
    text-align: center;
}

footer a {
    color: var(--ligth);
    font-weight: bold;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a::before {
    left: -20px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: blue;
    text-shadow: 0px 0px 10px var(--primary);
}

footer a:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

footer p {
    font-size: 14px;
}

.icon {
    color: white;
    font-size: 8px;
    text-decoration: none;
}

.whatsapp-button {
    align-items: center;
    animation: bounce 2s infinite;
    background-color: #25D366;
    border-radius: 100%;
    bottom: 50px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    height: 60px;
    justify-content: center;
    margin-right: 13px;
    position: fixed;
    right: 12px;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
    width: 60px;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    height: 35px;
    width: 35px;
}

.whatsapp-text {
    bottom: 10px;
    color: var(--ligth);
    font-size: 0.8em;
    font-weight: bold;
    position: fixed;
    right: 10px;
    text-align: center;
    text-shadow:  
        -1px -1px 0px var(--dark),  
         1px -1px 0px var(--dark),  
        -1px  1px 0px var(--dark),  
         1px  1px 0px var(--dark);
    z-index: 1000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.arrow-up img {
    border-radius: 100px;
    bottom: 180px;
    height: 50px;
    position: fixed;
    right: 32px;
    width: 50px;
}

.arrow-text {
    bottom: 140px;
    color: var(--ligth);
    font-size: 0.8em;
    font-weight: bold;
    position: fixed;
    right: 20px;
    text-align: center;
    text-shadow:  
        -1px -1px 0px var(--dark),  
         1px -1px 0px var(--dark),  
        -1px  1px 0px var(--dark),  
         1px  1px 0px var(--dark);
    z-index: 1000;
}

@media screen and (min-width: 768px) { 
    header {
        flex-direction: row;
        height: 80px;
        justify-content: space-between;
        padding: 8px 20px;
    }

    .logo img {
        height: 80px;
        width: 80px;
    }

    nav {
        margin: 0;
        text-align: right;
    }

    nav a {
        color: var(--ligth);
        margin: 0 10px;
        padding: 5px 8px;
        text-decoration: none;
    }

    /* HERO */
    .hero {
        margin: 48px 16px;
    }

    .content h1 {
        font-size: var(--36px);
        margin: 0px;
        margin-bottom: 22px;
    }

    .content p {
        font-size: var(--24px);
        margin: 0px 72px;
    }

    .buttons button {
        border: 1px solid white;
        border-radius: 30px;
        font-size: var(--16px);
        margin: 0.2rem;
        margin-top: 0px;
    }

    /* POR QUE ESCOLHER */
    .porque {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        padding: 0 17px;
    }

    .porque h2 {
        margin-top: 34px;
        width: 100%;
    }

    .porque article:nth-child(2n) {
        margin-right: 0;
    }

    article {
        background-color: var(--ligth);
        border-radius: 5px;
        box-sizing: border-box;
        color: var(--dark);
        flex: 1 1 calc(50% - 10px);
        margin: 0;
    }

    article h3 {
        color: var(--primary);
        font-size: 18px;
        margin: 0;
        padding: 1rem;
    }

    article p {
        margin: 0;
        padding: 0 1rem 1rem 1rem;
    }

    .last {
        margin-bottom: 48px;
    }

    /* GALERIA */
    #galeria-title {
        margin: 48px 16px;
        text-align: left;
    }

    .carousel-container {
        margin-bottom: 56px;
    }

    /* SOBRE NÓS */
    #sobrenos {
        align-items: center;
        background-color: white;
        color: var(--dark);
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 0 auto;
        max-width: 1200px;
        padding: 48px 16px;
    }

    #sobrenos > div:first-child {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    #sobrenos > div:nth-child(2) {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: center;
        margin-right: 16px;
        text-align: left;
    }

    .sobre {
        align-items: center;
        display: flex;
        flex-basis: 100%;
        gap: 10px;
        justify-content: center;
    }

    .sobre button {
        font-size: 18px;
        padding: 5px 8px;
    }

    .sobre-img {
        border: 3px solid var(--primary);
        border-radius: 8px;
        display: block;
        height: 50vh;
        max-width: 100%;
        width: auto;
    }

    .texto-desktop {
        display: block;
    }

    .texto-mobile {
        display: none;
    }

    /* CONTATO */
    #contato {
        padding: 48px 16px;
    }

    #contato h2 {
        margin-bottom: 36px;
    }

    /* SOMBRA APLICADA A VÁRIOS ITENS */
    .image-box, .porque, #sobrenos, .carousel {
        border-radius: 8px;
        box-shadow: 1px 1px 8px rgba(235, 231, 231, 0.15);
    }

@media screen and (min-width: 1200px) {
    header {
        max-width: 1200px;
    }

    nav a {
        font-size: 18px;
    }

    .logo p {
        font-size: 36px;
    }

    .hero {
        height: 50vh;
    }

    .content {
        max-width: 1200px;
        width: 100%;
    }

    .content h1 {
        font-size: 56px;
    }

    .content p {
        font-size: 32px;
    }

    h2 {
        font-size: 32px;
    }

    .last {
        font-size: 24px;
    }

    .buttons {
        margin-top: 20px;
    }

    .primary, .secondary {
        border: none;
        border-radius: 5px;
        cursor: pointer;
        padding: 10px 20px;
    }

    .primary {
        background: white;
        color: black;
    }

    .secondary {
        background: black;
        border: 1px solid white;
        color: white;
    }

    .image-section {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
        margin: 41px auto;
        max-width: 1200px;
        width: calc(100% - 16px);
    }

    .image-section > div {
        align-items: center;
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 250px;
    }

    .carousel-container {
        align-items: center;
        display: flex;
        flex-direction: column;
        height: 80vh;
        justify-content: center;
        margin: 0 auto;
        margin-bottom: 48px;
        max-width: 1200px;
        padding: 20px;
        width: 95%;
    }
}