@font-face {
    font-family: "Fraunces";
    src: url(assets/fonts/fraunces/Fraunces-VariableFont_SOFT\,WONK\,opsz\,wght.ttf);
}

@font-face {
    font-family: "Manrope";
    src: url(assets/fonts/manrope/Manrope-VariableFont_wght.ttf);
}


:root {
    /* CORES */
    --color-fundo: #24053E;
    --color-text-roxo: hwb(274 31% 27%);
    --color-buttons: #44FFA1;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F2F2F2;

    /* TIPOGRAFIA */
    --font-title: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;
    --font-size-h1: 3.125rem;
    /* 50px */
    --font-size-h2: 2rem;
    /* 32px */
    --font-size-body: 1.125rem;
    /* 18px */

    /* ESPAÇAMENTO */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* BREAKPOINTS */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;

}

/* ============================================
1. RESET UNIVERSAL — Remove padrões do browser
   ============================================ */
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
3. BASE — Estilos padrão dos elementos
   ============================================ */


html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    margin: auto;

}

.hero img,
.fundador img {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;

}

header a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-style: inherit;
    cursor: pointer;
    border: none;
    background: var(--color-buttons);
    padding: 0.5rem;
    text-align: center;

}

.fundador a,
.hero a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-style: inherit;
    cursor: pointer;
    border: none;
    background: var(--color-buttons);
    padding: 1rem;
    align-self: center;
    color: var(--color-fundo);

}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    line-height: 1.2;
    margin: 0;
}

/* ============================================
5. UTILITY CLASSES — Atalhos reutilizáveis
   ============================================ */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;

}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    max-width: 15ch;
    /* Força quebra em 15 caracteres */
    margin: 0 auto;
    /* Centraliza */
    line-height: 1.1;
    color: white;
}

h1 em {
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: var(--color-green-400);
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    margin: auto;



}

header {
    padding-bottom: 4rem;
    background-color: var(--color-fundo);

}

header .container {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.hero {
    background-color: var(--color-fundo);
    clip-path: ellipse(100% 70% at 50% 30%);
}

.hero .container {
    text-align: center;
    gap: 2rem;
    display: flex;
    align-items: center;


}

.cards .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
    color: var(--color-fundo);
    text-align: center;
    width: 99%;

}

.num {
    border: 1px solid var(--color-fundo);
    border-radius: 100px;
    padding: 0.5rem 1rem;
}

.cards h2 {
    padding: 1rem;
}

.fundador .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-flow: row;
}

.fundador {
    padding: 0 2rem;
    align-items: center;
}

.card-fundador {
    background-color: var(--color-fundo);
    aspect-ratio: 1/1;
    width: 100%;
    margin-top: -3rem;


    color: var(--color-bg-light);

    p {
        margin: 0 1rem;
        padding: 1rem;
    }
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;

}



@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
        /* 80px desktop */
        max-width: 15ch;
        /* Quebra como no design */
    }

    .card-fundador {
        height: 15rem;
        margin: auto;
        margin-left: -3rem;
        margin-bottom: 3rem;
    }

    @media (min-width: 768px) {
        h1 {
            font-size: 5rem;
            max-width: 15ch;
        }

    }

    .hero {
        background-color: var(--color-fundo);
        padding: 3rem 0;
        position: relative;
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 200px;
        height: 200px;
        background-image: url('assets/images/bg-pattern-1.svg');
        background-repeat: no-repeat;
        background-size: contain;
        pointer-events: none;
        display: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background-image: url('assets/images/bg-pattern-2.svg');
        background-repeat: no-repeat;
        background-size: contain;
        pointer-events: none;
        display: none;
    }

    .fundador {
        position: relative;
        overflow: hidden;
    }

    .fundador::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background-image: url('assets/images/bg-pattern-3.svg');
        background-repeat: no-repeat;
        background-size: contain;
        pointer-events: none;
        display: none;
    }

    @media (min-width: 768px) {

        .hero::before,
        .hero::after,
        .fundador::after {
            display: block;
        }
    }
}
