/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   VARIÁVEIS
========================= */
:root {
    --purple-200: #9a7bd1;
    --purple-500: #6b36c8;
    --purple-800: #441f88;

    --black-800: #171717;
    --gray-page: #cccccc;
    --gray-card: #e6e6e6;
    --white: #ffffff;
}

/* =========================
   BASE
========================= */
html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: var(--gray-page);
    color: var(--black-800);
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   HEADER
========================= */
header {
    background: var(--purple-800);
    padding: 1rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--white);
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* =========================
   MAIN
========================= */
main {
    flex: 1;
}

/* =========================
   INDEX (HOME)
========================= */

/* seções do index */
main section {
    width: 90%;
    margin: 2rem auto;
}

/* SOBRE */
#about .about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#about .about-container img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid var(--white);
}

#about .about-text {
    flex: 1;
}

#about .about-text p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* TECNOLOGIAS */
#tech .tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#tech .tech-list li {
    background: var(--gray-card);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

/* VÍDEO */
#video .video-box {
    background: var(--gray-card);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
}

#video .video-box iframe {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.5rem;
}

/* =========================
   CONTATO
========================= */
main.main_contato {
    width: 90%;
    margin: 2rem auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* cards do contato */
main.main_contato .card {
    background: var(--gray-card);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

form label {
    font-weight: 600;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;

    border: none;
    border-radius: 0.75rem;
    background: var(--white);

    font-size: 1rem;
}

form textarea {
    resize: none;
    height: 7rem;
}

form button {
    margin-top: 0.75rem;
    padding: 0.75rem;

    background: var(--purple-800);
    color: var(--white);

    border: none;
    border-radius: 0.75rem;

    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: var(--purple-500);
}

/* mapa */
.article_mapa {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article_mapa address p {
    font-weight: 600;
}

.mapa {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.mapa iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--purple-500);
    color: var(--white);
    text-align: center;

    padding: 1rem;
    margin-top: auto;
}

footer section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

footer img {
    width: 2rem;
    filter: invert(100%);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 900px) {
    main.main_contato {
        grid-template-columns: 1fr;
    }

    #about .about-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #about .about-container img {
        width: 160px;
        height: 160px;
    }
}