@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-bg-color: #000;
    --primary-text-color: #F8F8F8;
    --highlights: #992A3B;
    --gold: #ff9500;
    --gold-highlight: #F1D6AB;
    --muted-text: #5b5b66;
    --depth-05: rgba(255, 255, 255, 0.05);
    --depth-08: rgba(255, 255, 255, 0.08);
    --depth-10: rgba(255, 255, 255, 0.1);
    --depth-13: rgba(255, 255, 255, 0.13);
    --depth-20: rgba(255, 255, 255, 0.2);
    --fs-sm: clamp(0.8rem, 0.17vi + 0.76rem, 0.89rem);
    --fs-base: clamp(1rem, 0.34vi + 0.91rem, 1.19rem);
    --fs-md: clamp(1.25rem, 0.61vi + 1.1rem, 1.58rem);
    --fs-lg: clamp(1.56rem, 1vi + 1.31rem, 2.11rem);
    --fs-xl: clamp(1.95rem, 1.56vi + 1.56rem, 2.81rem);
    --fs-xxl: clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem);
    --fs-xxxl: clamp(3.05rem, 3.54vi + 2.17rem, 5rem);

}

.page-wrapper {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.bg {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;

    background-image: url("Assets/Imgs/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
    }
}

#container {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

header {
    padding: 10px 6%;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: transparent;
    transition: background-color .3s ease, backdrop-filter .3s ease;

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .logo {
            width: clamp(165px, 15vw, 200px)
        }

        .logo img {
            display: block;
            width: 100%;
            height: auto;
        }

        ul {
            display: none;
            list-style: none;
            flex-direction: column;
            gap: 40px;
            width: 100%;
            position: absolute;
            top: 80px;
            left: 0;
            padding: 1rem;

            &.show {
                display: flex;
            }
        }

        li {
            text-align: center;

            a {
                color: var(--primary-text-color);
                text-decoration: none;
                font-size: clamp(0.8rem, 1vw, 1.2rem);
                font-weight: 500;
                transition: all 0.3s ease;

                &:hover {
                    color: var(--gold);

                }
            }
        }
    }
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

body {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
}


#home {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4%;
    min-height: calc(100vh - 96px);

    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        width: 100%;
        align-items: center;

        h1 {
            color: var(--primary-text-color);
            font-size: var(--fs-xxxl);
            font-weight: 600;
            text-wrap: balance;
            line-height: 1.1;
            text-align: center;
        }

        p {
            line-height: 1.1;
            font-size: clamp(0.7rem, 2vw, 2rem);
            opacity: .9;
            font-weight: 300;
            text-align: center;
        }

    }

    .home-actions {
        margin-top: 1.5%;
    }
}


.home-whatsapp {
    position: fixed;
    right: clamp(1rem, 4vw, 2rem);
    bottom: calc(clamp(1rem, 4vw, 2rem) + env(safe-area-inset-bottom));
    z-index: 3;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--depth-20);
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.home-whatsapp:hover { background-color: #1da851; }
.home-whatsapp:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

#trail {
    padding: 6% 6%;
    color: var(--primary-text-color);
    background-color: var(--primary-bg-color);

    .trail-title {
        justify-self: center;
        padding: 4% 6%;

        h1 {
            font-size: clamp(2.3rem, 8vw, 5rem);
            text-align: center;
        }
    }

    .trail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(16px, 5vw, 24px);
    }

    .trail-content {
        display: grid;
        align-items: center;
        justify-items: center;
        padding: 20px 6%;
        border-radius: 32px;
        grid-template-columns: 0.5fr 1fr;
        grid-template-areas: " icon text";
        min-height: clamp(160px, 20vw, 280px);
        background-image: linear-gradient(to bottom left, rgba(128, 128, 128, 0.2), #000);
        border: solid 2px rgba(128, 128, 128, 0.2);

        i {
            grid-area: icon;
            font-size: clamp(2rem, 6vw, 4rem);
        }

        p {
            grid-area: text;
            font-size: clamp(1rem, 2vw, 1.5rem);
            text-align: center;
        }

    }
}


#clientes {
    box-sizing: border-box;
    padding: 6%;
    min-width: 0;

    .clientes-title {
        justify-self: center;
        padding: 4% 6%;

        h1 {
            font-size: clamp(2.3rem, 8vw, 5rem);
            text-align: center;
        }
    }

}


#perguntas-frequentes {
    padding: 6%;
    scroll-margin-top: 96px;
}

.faq-header, .faq-list {
    width: min(100%, 960px);
    margin-inline: auto;
}

.faq-header {
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.faq-header h2 { font-size: var(--fs-xl); line-height: 1.2; text-wrap: balance; }
.faq-header p { margin-top: 1rem; font-size: var(--fs-base); line-height: 1.6; opacity: 0.8; }
.faq-list { display: grid; gap: 0.85rem; }
.faq-item { border: 1px solid var(--depth-10); border-radius: 18px; background: var(--depth-05); }
.faq-item[open] { border-color: var(--gold); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 18px;
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 1.75rem; height: 1.75rem; color: var(--primary-text-color); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--depth-05); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq-answer { padding: 0 clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem); }
.faq-answer p { max-width: 75ch; font-size: var(--fs-sm); line-height: 1.8; color: var(--primary-text-color); margin-left: 8px; }
.faq-answer a { color: var(--gold-highlight); text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--gold); }

a.btn {
    text-decoration: none;
    text-align: center;
}

.btn {
    padding: 10px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.btn-mobile {
    font-size: 1.5rem;
    color: #fff;
    margin-left: auto;
}

.btn-default {
    display: flex;
    align-items: center;
    background-color: #911136;
    color: var(--primary-text-color);
    font-weight: bold;
    border: 1px solid #230605;
    box-shadow: 0 8px 16px 0 #230605;
    border-radius: 50px;
    font-size: clamp(1rem, 2vw, 1.8rem);
    padding: 3%;

    &:hover {
        background-color: #640b26;
    }
}

.btn-filled {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    background-color: var(--primary-text-color);
    color: var(--primary-bg-color);
    font-size: var(--fs-sm);
    border-radius: 10px;

    padding: .5rem 1rem;
    text-decoration: none;
    transition: all ease 0.3s;

    &:hover{
        background-color: var(--highlights);
        padding: .5rem 1.5rem;
        color: var(--primary-text-color);
    }
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--depth-20);
    border-radius: 50%;
    background-color: var(--depth-10);
    color: var(--primary-text-color);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: var(--depth-20);
    }

    &:focus-visible {
        outline: 2px solid var(--primary-text-color);
        outline-offset: 3px;
    }
}

.product-cards .product-card .btn-cart i {
    font-size: 1.25rem;
    line-height: 1;
}

.products-wrapper {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
}

#sidebar-toggle {
    display: none;
}

#sidebar {
    position: sticky;
    top: 96px;

    height: calc(100vh - 96px);
    box-sizing: border-box;

     padding: clamp(1.5rem, 4vh, 2.5rem)
             clamp(1rem, 5vw, 7rem);

    background-image: linear-gradient(
        135deg,
        rgba(0,0,0,0.1) 50%,
        var(--depth-10)
    );

    display: flex;
    align-items: center;
}

.side-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 0;
    margin: 0;
}

.side-item{
    padding: 0.5rem 1rem;
}

.side-item a {
    text-decoration: none;
    font-size: clamp(1rem, 1.2vw, 5rem);
    color: var(--primary-text-color);
}

.products-content section {
    min-height: calc(100vh - 96px);
    scroll-margin-top: 96px;
    padding: 4% 6%;
    gap: 32px;
    display: flex;
    flex-direction: column;
    text-wrap: balance;
    h1{
        font-size: var(--fs-xl);
    }
}

.products-header{
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 1rem;
    margin-bottom: 2rem;


    p{
        max-width: 60%;
        opacity: .8;
    }
}

.chatbot-chat {
    display: flex;
    flex-direction: column;
    min-height: clamp(340px, 42vw, 390px);

    background-color: var(--depth-05);
    border-radius: 30px;
    border: solid 1px var(--depth-20);

    .chat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem;
        flex-shrink: 0;

        h2 {
            font-size: var(--fs-base);
        }

        span {
            font-size: var(--fs-sm);
            color: #3aef0d;
            background-color: rgba(58, 239, 13, 0.15);
            padding: 0.3rem 0.75rem;
            border-radius: 50px;
        }
    }

    .chat-conversation {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 1.25rem;

        .chat-message {
            display: flex;

            p {
                display: inline-flex;
                max-width: 85%;
                font-size: var(--fs-sm);
                line-height: 1.5;
                background-color: var(--depth-08);
                color: var(--primary-text-color);
                padding: 0.75rem 1rem;
                border-radius: 20px;
            }

            &:nth-child(even) {
                justify-content: flex-end;

                p {
                    background-color: var(--highlights);
                }
            }
        }
    }

    .chat-footer {
        min-height: 20px;
    }
}


.product-cards {
    display: grid;
   grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 250px), 1fr)
    );
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);

    &.product-cards-shop{
        grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 250px), 300px)
        );
        justify-content: center;
    } 

        .product-card {
        background-color: var(--depth-05);
        padding: clamp(1rem, 2.5vw, 2rem);
        border-radius: 30px;
        border: solid 1px var(--depth-10);

        display: grid;
        grid-template-rows:
            clamp(2rem, 3vw, 2.5rem)
            2.4em
            3em;
        justify-items: center;
        align-content: center;
        text-align: center;
        gap: clamp(.6rem, 1.5vw, 1rem);

        i {
            font-size: clamp(1.5rem, 4vw, 2rem);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        h1 {
            font-size: var(--fs-md);
            line-height: 1.2;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        p {
            font-size: var(--fs-sm);
            line-height: 1.5;
            opacity: .8;
        }

        img {
            max-width: 100%;
            display: block;
        }

        &.product-card--image {
            grid-template-rows: auto 3.5rem 3rem;


            .loja-action{
                justify-content: space-around;
                display: flex;
                min-width: 100%;
                align-items: center;
            }

            .card-valor {
                display: inline-flex;
                align-items: baseline;
                gap: 0.35rem;
                font-size: var(--fs-lg);
                font-weight: 700;
                line-height: 1;
                color: var(--primary-text-color);
                white-space: nowrap;

                .card-moeda {
                    font-size: var(--fs-sm);
                    font-weight: 500;
                    color: var(--primary-text-color);
                }
            }
        }
    }
}


.sites-img{
    display: flex;
    justify-content: center;
    align-items: center;
    .img-responsive{
        display: block;
        width: min(1100px, calc(100% - 2rem));
    }
}

#section-display{
    font-size: var(--fs-base);
}

.active{
    box-shadow: 0 0 0 10px var(--depth-13);
    background-color: var(--depth-13);
    border-radius: 65px;
}

.consultoria-subheader{
    display: flex;
    justify-content: center;
    font-size: var(--fs-md);
    opacity: .9;
    text-align: center;
    margin-bottom: 16px;
}

#consultoria {
    container: consultoria / inline-size;
}

#consultoria .consultoria-grid {
    --link-gap: 3rem;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--link-gap);
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

#consultoria .product-card {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    justify-self: stretch;
}

#consultoria .product-card h1 {
    font-size: var(--fs-md);
    min-height: 2.4em;
}

#consultoria .product-card i {
    font-size: 1.6rem;
}

#consultoria .product-card .consultoria-link {
    position: absolute;
    left: 50%;
    top: calc(100% + var(--link-gap) / 2);
    transform: translate(-50%, -50%) rotate(90deg);
    width: var(--link-gap);
    height: var(--link-gap);
    color: var(--primary-text-color);
    font-size: 1.6rem;
    pointer-events: none;
    z-index: 1;
}

@container consultoria (min-width: 60rem) {
    #consultoria .consultoria-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: none;
    }

    #consultoria .product-card .consultoria-link {
        left: calc(100% + var(--link-gap) / 2);
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

#loja-wrapper{
    padding: 6%;
}

#loja-wrapper .product-card--image {
    grid-template-rows: clamp(10rem, 20vw, 13rem) 3.8rem minmax(3.6rem, 1fr) 3rem;
    align-content: stretch;

    > img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
    }

    .loja-action {
        align-self: end;
        width: 100%;
    }
}


.carousel {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.carousel__track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: clamp(280px, 45vw, 550px);

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, .5),
            transparent 50%
        );
    }
}

.carousel__text {
    position: relative;
    z-index: 1;
    margin-bottom: 10%;

    padding: .5rem 1rem;
    border-radius: 8px;

    color: white;
    background-color: rgba(0, 0, 0, .7);

    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    text-align: center;
}

/* Botões */

.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: clamp(2.5rem, 5vw, 3.25rem);
    height: clamp(2.5rem, 5vw, 3.25rem);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--depth-20);
    border-radius: 50%;

    color: white;
    background-color: rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
    z-index: 2;

    transition: background-color .3s ease;
}

.carousel__button:hover {
    background-color: var(--highlights);
}

.carousel__button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.carousel__button--prev {
    left: 1rem;
}

.carousel__button--next {
    right: 1rem;
}

/* Imagens */

.item1 {
    background-image: url("Assets/Imgs/Carousel/carousel-1.jpg");
}

.item2 {
    background-image: url("Assets/Imgs/bgSites.png");
}

.item3 {
    background-image: url("Assets/Imgs/Carousel/carousel-3.jpg");
}

/* Mobile */

@media (max-width: 600px) {
    .carousel__viewport {
        border-radius: 14px;
    }

    .carousel__slide {
        height: 300px;
    }

    .carousel__button--prev {
        left: .5rem;
    }

    .carousel__button--next {
        right: .5rem;
    }
}

/* Respeita preferência por movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    .carousel__track {
        transition: none;
    }
}


@media (min-width: 769px) {
    header {
        .navbar {
            .btn-mobile {
                display: none;
            }

            ul {
                display: flex;
                flex-direction: row;
                position: static;
                gap: 2rem;
                width: auto;
                padding: 10px 50px;
            }
        }
    }
}

@media (max-width: 768px) {
    .products-content > section:last-child {
        margin-bottom: clamp(3rem, 6vw, 6rem);
    }

    header {
        padding: 0;
        z-index: 110;
    }

    header:has(#nav-links.show) {
        background-color: var(--primary-bg-color);
        backdrop-filter: none;
    }

    header .navbar ul.show {
        top: 100%;
        gap: 0;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        background-color: var(--primary-bg-color);
        border-bottom: 1px solid var(--depth-10);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    }

    header .navbar ul.show a {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    #trail .trail-grid{
        grid-template-columns: 1fr;
    }
    #trail .trail-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "text";
        gap: 16px;
        border-radius: 32px;
        max-width: 260px;
        justify-self: center;

        &:nth-child(odd) {
            grid-template-areas:
                "icon"
                "text";
        }
    }
    
    .products-wrapper {
        display: block;
    }

    #sidebar {
        position: sticky;
        top: var(--header-height, 80px);
        z-index: 100;

        width: 100%;
        height: auto;
        padding: 0.75rem 1rem;
        box-sizing: border-box;

        background: var(--primary-bg-color);
    }

    #sidebar-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;

        width: 100%;
        padding: 1rem;

        border: none;
        border-radius: 8px;

        background: var(--depth-08);
        color: var(--primary-text-color);

        font-family: inherit;
        font-size: 1rem;
        cursor: pointer;
    }

    .side-items {
        display: none;

        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;

        width: auto;
        box-sizing: border-box;

        flex-direction: column;
        gap: 0;

        padding: 0.5rem;
        margin: 0;

        background: var(--primary-bg-color);
        border: 1px solid var(--depth-10);
        border-radius: 8px;

        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    #sidebar.is-open .side-items {
        display: flex;
    }

    .side-item {
        padding: 0;
        width: 100%;
    }

    .side-item a {
        display: block;
        width: auto;
        padding: 1rem;
        white-space: normal;
    }

    .products-content section {
        min-height: calc(100svh - 96px);

        p{
            max-width: 100%;
        }
    }

     .product-cards {
        &.product-cards-shop {
            justify-content: center;
        }
    }
    
    .product-card {
        max-width: 260px;
        justify-self: center;

    }

    #consultoria .consultoria-grid {
        max-width: 260px;
    }
    

    .active{
        box-shadow: 0px 0px 0px 0px;
    }

}
