:root {
    --color-background: #FFF9E3;
    --color-surface: #FFFFFF;
    --color-text: #3f2e25;
    --color-primary: #804400;
    --color-secondary: #ac7000;
    --color-accent: #c88c00;
    --color-header-background: #181d31;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #FFF9E3;
    color: var(--color-text);
    font-size: 16px;
}

@media (max-width: 880px) {
    body {
        font-size: 11px;
    }
}

hr {
    border: none;
    border-top: 1px solid hsl(from var(--color-secondary) h s l / 0.25);
    margin: 2em 0;
}

p {
    margin: 0.5em 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat Alternates', sans-serif;
    color: #804400;
    font-weight: 800;
    margin: 0.25em 0;
}

h1 {
    font-size: clamp(2rem, calc(1rem + 3vw), 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, calc(1rem + 2vw), 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, calc(0.75rem + 2vw), 1.75rem);
    color: #ac7000;
}

h4 {
    font-size: clamp(1rem, calc(0.5rem + 2vw), 1.25rem);
    color: #ac7000;
}

h1 span {
    color: #c88c00;
}

.hero h1+p {
    font-size: 1.5em;
    width: 90%;
}

.home section h2+p {
    font-size: 1.125em;
    width: 75%;
}

p:empty {
    display: none;
    position: absolute;
}

ul:not(:empty)+h3,
p:not(:empty)+h3,
ul:not(:empty)+h2,
p:not(:empty)+h2 {
    margin-top: 1.5em;
}

body>header,
body>main,
body>section,
body>footer {
    padding: 2em clamp(1em, calc(50vw - 600px), 100%);
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

body>header {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: var(--color-header-background);
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 1em;
}

body>footer {
    flex-flow: row wrap;
    gap: 3em;
    align-items: end;
    justify-content: space-between;
}

a {
    font-weight: bolder;
    text-decoration: none;
    color: var(--color-primary);
}

body>header a {
    color: #fff;
}

figure {
    margin: 0;
    padding: 0;
}

header .logo {
    margin-right: auto;
}

.logo img {
    height: 4.2em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.home section,
.home footer {
    text-align: center;
    width: auto;
}

.home ul,
.home ol {
    padding: 0;
}

:not(.home) section li {
    margin: 0.75em 0;
}

section.hero {
    text-align: left;
    background: url('../assets/background-colmeia.svg') no-repeat 100% 0 / contain;
    flex-flow: row nowrap;
}

.hero .part2 {
    flex: 0 0 40%;
    height: 29em;
    position: relative;
}

.hero .part2 img {
    width: 100%;
    position: absolute;
    transition: all 1200ms;
}

@media (max-width: 880px) {
    section.hero {
        flex-flow: column nowrap;
        text-align: center;
    }

    .hero .part2 {
        flex: 0 0 auto;
        margin: 0;
        width: 100%;
        order: -1;
        height: 20em;
    }

    .hero .part2 img {
        top: 0;
        left: 0;
        height: 100%;
        object-fit: contain;
    }
}

/* ============================================================
   UI Helpers (loader, spinner, toast)
   ============================================================ */
.loader-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(24, 29, 49, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.loader-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--color-primary, #804400);
    animation: ui-spin 0.8s linear infinite;
    box-shadow: 0 0 0 1px rgba(24, 29, 49, 0.1);
}

@keyframes ui-spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: min(360px, calc(100vw - 2.5rem));
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: var(--color-surface, #ffffff);
    color: var(--color-text, #3f2e25);
    box-shadow: 0 20px 40px rgba(24, 29, 49, 0.18);
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.sucesso {
    border-left-color: #22c55e;
}

.toast.erro {
    border-left-color: #ef4444;
}

.toast.aviso,
.toast.alerta {
    border-left-color: #f59e0b;
}

@media (max-width: 640px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1.5rem;
        align-items: center;
    }

    .toast {
        width: 100%;
        max-width: none;
    }
}

.itens,
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    list-style: none;
    margin: 2em 0 1em 0;
    padding: 0;
}

.itens li {
    flex: 1 0 20%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.itens li::before {
    content: "";
    display: block;
    width: 8em;
    height: 8em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.itens li.assistente::before {
    background-image: url('../assets/itens-assistente.svg');
}

.itens li.gamificacao::before {
    background-image: url('../assets/itens-gamificacao.svg');
}

.itens li.diagnostico::before {
    background-image: url('../assets/itens-diagnostico.svg');
}

.itens li.exportacao::before {
    background-image: url('../assets/itens-exportacao.svg');
}

.etapas {
    justify-content: center;
}

.etapas li {
    flex: 0 0 15%;
}

@media (max-width: 880px) {
    .etapas li {
        flex: 0 0 35%;
    }
}

.etapas li::before {
    width: 5em;
    height: 5em;
}

.itens.etapas li:nth-child(1)::before {
    background-image: url('../assets/como-funciona-1.svg');
}

.itens.etapas li:nth-child(2)::before {
    background-image: url('../assets/como-funciona-2.svg');
}

.itens.etapas li:nth-child(3)::before {
    background-image: url('../assets/como-funciona-3.svg');
}

.itens.etapas li:nth-child(4)::before {
    background-image: url('../assets/como-funciona-4.svg');
}

.itens.etapas li:nth-child(5)::before {
    background-image: url('../assets/como-funciona-5.svg');
}

.parceiros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    list-style: none;
    margin: 2em 0;
}

.parceiros li {
    flex: 0 0 calc(30% - 1em);
}

@media (max-width: 880px) {
    .parceiros li {
        flex: 0 0 calc(40% - 1em);
    }
}

.parceiros li img {
    max-width: 100%;
    height: auto;
}

ul.depoimentos {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1em;
    list-style: none;
    margin: 2em 0;
    padding: 0 1em;
}

.depoimentos li {
    flex: 0 0 45%;
    display: flex;
    text-align: left;
    flex-flow: row nowrap;
    gap: 1.5em;
}

.depoimentos li::before {
    content: "";
    display: block;
    width: 20em;
    height: 10em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.depoimentos li.beatriz::before {
    background-image: url('../assets/depoimento-beatriz.png');
}

.depoimentos li.leonardo::before {
    background-image: url('../assets/depoimento-leonardo.png');
}

.depoimentos li p em {
    text-indent: -0.25em;
    padding-left: 0.25em;
    color: var(--color-primary);
    font-size: 1.25em;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5em;
}

.depoimentos li p b {
    display: block;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 1 1 250px;
}

.card ul {
    text-align: left;
    list-style: none;
    text-indent: -2em;
    padding-left: 2em;
    margin: 0;
}

.card ul li {
    margin: 0.75em 0;
    vertical-align: middle;
}

.card ul li::before {
    content: "";
    display: inline-block;
    width: 1.125em;
    height: 1.125em;
    background: url('../assets/hexagono-topico.svg') no-repeat center / contain;
    margin-right: 0.85em;
    vertical-align: middle;
}

.card p {
    font-weight: 500;
    text-align: left;
    font-weight: bolder;
    margin: 1.5em 0;
}

.footer-links {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.75em;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0;
    height: 2.5em;
}

.footer-social a img {
    height: 100%;
    width: auto;
}

.logo.colmeia {
    margin: 0 0 0 auto;
}

footer .logo img {
    width: 10em;
    height: auto;
}

.logo.poliniza img {
    width: 7em;
    height: auto;
}

.assinatura {
    flex: 1 0 100%;
    text-align: center;
    font-size: 0.8em;
}

p.edital {
    padding: 0.75em 1em 0.75em 3em;
    background: #fff url('../assets/hexagono-vazado.svg') no-repeat 1em center;
    border-radius: 2em;
    font-weight: 500;
    color: var(--color-primary);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    margin: 2.5em 0;
}

@keyframes transicao-projeto {
    0% {
        opacity: 0;
        filter: blur(10em);
        transform: translateX(10em);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }

}

.projeto>section {
    animation: transicao-projeto 0.25s ease-in forwards;
}

@media (max-width: 880px) {
    body>footer {
        justify-content: center;
        text-align: center;
        gap: 1em 3em;
    }

    .footer-social {
        flex: 1 0 100%;
    }

    .logo.colmeia {
        margin: 0;
    }
}