/* =========================
   QIDEIA DESIGN SYSTEM
========================= */

:root {

    /* Cores principais */
    --color-dark: #203433;
    --color-teal: #036C81;
    --color-purple: #9B72A5;
    --color-indigo: #585EAA;

    /* Fundos */
    --bg-pink: #F5E6F1;
    --bg-lilac: #E6E8F5;
    --bg-blue: #E6F3F4;
    --bg-green: #EDF2EF;

    --white: #FFFFFF;
    --black: #111111;

    /* Layout */
    --container-width: 1440px;
    --page-padding: 32px;
}


/* =========================
   RESET BÁSICO
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: "Manrope", sans-serif;

    color: var(--black);
    background: var(--white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================
   CONTAINER GLOBAL
========================= */

.container {
    width: min(calc(100% - (var(--page-padding) * 2)),
            var(--container-width));

    margin-inline: auto;
}


/* =========================
   TIPOGRAFIA
========================= */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 700;
}

h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
}

h3 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

p {
    font-size: 18px;
    line-height: 1.6;
}


/* =========================
   BOTÕES
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border: 0;
    border-radius: 0;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.button-primary {
    background: var(--color-dark);
    color: var(--white);
}

.button-primary:hover {
    background: var(--color-teal);
}


/* =========================
   HEADER GLOBAL
========================= */

.site-header {
    width: 100%;

    background: var(--white);
}

.header-inner {
    min-height: 90px;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;

    align-items: center;
}


/* LOGÓTIPO */

.logo {
    display: block;

    grid-column: 1 / span 3;

    justify-self: start;
}

.logo img {
    display: block;

    width: 150px;
    height: auto;
}


/* NAVEGAÇÃO DESKTOP */

.main-nav {
    grid-column: 7 / span 6;

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

    gap: 40px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;

    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--color-teal);
}


/* =========================
   MENU RESPONSIVO /
   MENU FLUTUANTE
========================= */

.menu-toggle {
    position: fixed;

    top: 24px;
    right: 32px;

    z-index: 1001;

    width: 48px;
    height: 48px;

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

    gap: 5px;

    padding: 0;

    border: 0;

    background: var(--color-dark);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease,
        visibility 0.3s ease;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--white);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* BOTÃO VISÍVEL */

.menu-toggle.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* HAMBÚRGUER → X */

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* PAINEL */

.site-menu {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;
    justify-content: flex-end;

    background: rgba(32, 52, 51, 0.18);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.site-menu.is-open {
    opacity: 1;
    visibility: visible;
}


/* INTERIOR DO MENU */

.site-menu-inner {
    width: min(440px, 100%);
    height: 100%;

    display: flex;
    align-items: center;

    padding: 80px 64px;

    background: var(--white);

    transform: translateX(100%);

    transition: transform 0.4s ease;
}

.site-menu.is-open .site-menu-inner {
    transform: translateX(0);
}


/* LINKS */

.site-menu-nav {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 28px;
}

.site-menu-nav a {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;

    color: var(--color-dark);

    transition: color 0.25s ease;
}

.site-menu-nav a:hover {
    color: var(--color-teal);
}

/* =========================
   SELECTOR DE IDIOMA
========================= */

.language-switcher {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-left: 12px;

    font-size: 15px;
    line-height: 1;
    font-weight: 700;

    white-space: nowrap;
}

.language-current {
    color: var(--color-teal);
}

.language-separator {
    color: rgba(32, 52, 51, 0.35);
}

.language-option {
    color: var(--color-dark);
}

.language-option-disabled {
    opacity: 0.55;
}


/* CONTEÚDO DO MENU RESPONSIVO */

.site-menu-content {
    width: 100%;
}

.language-switcher-mobile {
    display: none;
}

/* =========================
   BOTÃO VOLTAR AO TOPO
========================= */

.back-to-top {
    position: fixed;

    right: 32px;
    bottom: 170px;

    z-index: 900;

    width: 48px;
    height: 48px;

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

    padding: 0;

    border: 0;

    background: var(--color-dark);
    color: var(--white);

    font-family: "Manrope", sans-serif;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease,
        visibility 0.3s ease;
}

.back-to-top:hover {
    background: var(--color-teal);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================
   FOOTER GLOBAL
========================= */

.site-footer {
    width: 100%;

    padding: 32px 0;

    background: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGÓTIPO */

.footer-logo {
    display: block;
}

.footer-logo img {
    display: block;

    width: 140px;
    height: auto;
}


/* REDES SOCIAIS */

.footer-social {
    display: flex;
    align-items: center;

    gap: 14px;
}

.footer-social a {
    width: 28px;
    height: 28px;

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

.footer-social img {
    display: block;

    width: 20px;
    height: 20px;

    object-fit: contain;

    transition: opacity 0.25s ease;
}

.footer-social a:hover img {
    opacity: 0.65;
}

/* INFORMAÇÃO INFERIOR DO FOOTER */

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

    margin-top: 52px;
    padding-top: 14px;

    border-top: 1px solid rgba(32, 52, 51, 0.10);
}

.footer-bottom p {
    margin: 0;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;

    color: rgba(32, 52, 51, 0.62);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1199px) {

    :root {
        --page-padding: 28px;
    }


    /* TIPOGRAFIA */

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 28px;
    }


    /* HEADER */

    .main-nav {
        display: none;
    }

    .menu-toggle {
        top: 21px;
        right: 28px;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    /* IDIOMA */

    .language-switcher-mobile {
        display: flex;

        margin-top: 36px;
        margin-left: 0;

        font-size: 16px;
    }

    /* VOLTAR AO TOPO */

    .back-to-top {
        right: 28px;
        bottom: 160px;
    }


    /* FOOTER */

    .site-footer {
        padding: 28px 0;
    }

    .footer-logo img {
        width: 130px;
    }

    /* INFORMAÇÃO INFERIOR DO FOOTER */

    .footer-bottom {
        margin-top: 44px;
        padding-top: 14px;
    }

    .footer-bottom p {
        font-size: 10px;
        line-height: 1.3;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    :root {
        --page-padding: 20px;
    }


    /* TIPOGRAFIA */

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }


    /* HEADER */

    .header-inner {
        min-height: 96px;

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

        position: relative;
    }

    .logo {
        display: block;

        width: auto;
        max-width: calc(100% - 84px);

        flex-shrink: 0;
    }

    .logo img {
        display: block;

        width: 175px;
        max-width: 100%;
        height: auto;
    }
 
    .main-nav {
        display: none;
    }


    /* MENU */

    .menu-toggle {
        top: 24px;
        right: 20px;

        width: 48px;
        height: 48px;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .site-menu-inner {
        width: 100%;

        padding: 80px 32px 48px;
    }

    .site-menu-nav {
        gap: 24px;
    }

    .site-menu-nav a {
        font-size: 26px;
    }


    /* VOLTAR AO TOPO */

    .back-to-top {
        right: 20px;
        bottom: 180px;

        width: 44px;
        height: 44px;

        font-size: 20px;
    }


    /* FOOTER */

    .site-footer {
        padding: 28px 0 32px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-social {
        gap: 16px;
    }

    /* INFORMAÇÃO INFERIOR DO FOOTER */

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        margin-top: 36px;
        padding-top: 12px;
    }

    .footer-bottom p {
        font-size: 9px;
        line-height: 1.2;

        white-space: nowrap;
    }

}