:root {
    --font-principal: "Staatliches", sans-serif;
    --font-realce: "DM Sans", sans-serif;
    --roxo-principal: #4b2e83;
    --roxo-destaque: #b678ff;
    --roxo-evidente: #9d00ff;
    --roxo-claro: #ede9fe;
    --branco: #fff;
    --cinza: #6b7280;
    --preto: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-realce)
}

body {
    background: #f9fafb;
    color: var(--preto)
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--roxo-principal);
    transition: box-shadow 0.3s ease;
    max-width: 100vw;
    z-index: 10;
    /* normal */
}



.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 2000;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s ease;
}

.header.scrolled {
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


.logo span {
    font-family: var(--font-principal);
    font-size: 30px;
    color: var(--branco);
}

.nav a {
    margin-left: 40px;
    text-decoration: none;
    font-family: var(--font-principal);
    color: var(--branco);
    letter-spacing: 1px;
    transition: color 0.3s;
    margin-left: 40px;
    font-size: 23px;
    margin-left: 0;
    /* Reseta a margem anterior se necessário */
    text-decoration: none;
}



.btn-contato {
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}


.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a:hover {
    color: var(--roxo-destaque);
}

/*Menu MOBILE*/

@media (max-width: 768px) {
    .btn-contato {
        border: none;
    }

    .header {
        justify-content: space-between;
        /* 🔥 aqui */
        padding: 16px 20px;
        /* padding menor no mobile */
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--roxo-principal);
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        padding-bottom: 30px !important;
    }

    .nav a {
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.active {
        display: flex;
    }
}

/*Animação menu*/

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--roxo-principal);

        display: flex;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);

        transition: all 0.4s ease;
    }

    .nav a {
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.active {
        max-height: 300px;
        /* suficiente pros links */
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO */
.hero {
    position: relative;
    color: #fff;
    padding: 120px 20px;
    text-align: center;

    background:
        linear-gradient(rgba(93, 63, 211, 0.75),
            rgba(93, 63, 211, 0.75)),
        url("../img/tranças/hero.svg");

    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: var(--font-principal);
    font-size: 3rem;
    font-weight: 400;
}

.hero p {
    max-width: 600px;
    margin: 15px auto 30px;
    font-size: 1.1rem
}

.hero a {
    background: #fff;
    color: var(--roxo-principal);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600
}

footer a {
    color: var(--roxo-evidente) !important;
}

/* SEÇÕES */
section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px
}

section h2 {
    font-family: var(--font-principal);
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--roxo-principal);
}

.subtitle {
    color: var(--roxo-destaque);
    margin-bottom: 40px
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .3s
}

.card:hover {
    transform: translateY(-6px)
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover
}

.card-content {
    text-align: center;
    padding: 18px
}

.card-content span {
    color: var(--cinza);
    font-size: .9rem
}

.contact {
    background: var(--roxo-claro);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
}

.contact h2 {
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 25px;
    /* espaço antes do botão */
}

.contact a {
    display: inline-block;
    /* ESSENCIAL */
    background: var(--roxo-principal);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    transform: scale(1.05);
    transition: 0.2s;
}

/* FOOTER */
.footer-minimal {
    background: #111;
    padding: 30px 20px;
    color: #aaa;
    text-align: center
}

.footer-minimal a {
    color: #fff;
    text-decoration: none
}

.footer-minimal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px
}

.footer-minimal svg {
    width: 22px;
    fill: #fff
}

/* MOBILE */
@media(max-width:768px) {
    .header {
        padding: 16px 20px
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--roxo-principal);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: .4s
    }

    .nav.active {
        max-height: 300px;
        opacity: 1
    }

    .menu-toggle {
        display: flex
    }
}

.footer-minimal {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    font-size: 0.875rem;
    border-top: 1px solid #e7e7e7;
}

.footer-minimal__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;

    /* Mobile-first: stack items vertically and center them */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-minimal__copyright {
    margin: 0;
    text-align: center;
}

.footer-minimal__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
    /* Space between icons */
}

.footer-minimal__nav a {
    color: var(--footer-text-color);
    transition: color 0.2s ease-in-out;
}

.footer-minimal__nav a:hover {
    color: var(--footer-link-hover-color);
}

.footer-minimal__nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    /* Inherits the color of the parent link */
}

/* Media query for medium screens and up (tablets, desktops) */
@media (min-width: 576px) {
    .footer-minimal__container {
        /* On these screens, arrange items in a row */
        flex-direction: row;
        justify-content: space-between;
    }
}