body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #222;
}

.header {
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.header strong {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

nav a {
    margin-left: 28px;
    font-size: 0.95rem;
    color: #222;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a.active {
    background-color: #1f1f1f;
    color: #ffffff;
    font-weight: 600;
}

main section {
    max-width: 860px;
    margin: 80px auto;
    padding: 0 20px;
}

.footer {
    border-top: 1px solid #eaeaea;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
    margin-top: 12px;
}

.footer-links a {
    margin-left: 0;
    padding: 6px 4px;
    border-radius: 0;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a.active {
    background-color: transparent;
    color: #1f1f1f;
    font-weight: 600;
}

.footer-cookies-btn {
    margin: 0;
    padding: 6px 4px;
    border: none;
    background: none;
    color: #333;
    font: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.footer-cookies-btn:hover,
.footer-links a:hover {
    color: #1f1f1f;
}

.footer-cookies-btn:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 3px;
}


.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    border: 1px solid #222;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #222;
    color: #fff;
}

.btn-primary {
    background: #1f1f1f;
    color: white;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
}
.btn-secondary
{
    border: 1px solid #1f1f1f;
    color: #1f1f1f;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

p {
    line-height: 1.6;
    color: #444;
}
.hero {
    text-align: center;
    padding-top: 40px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
}
.hero-actions {
    margin-top: 30px;
}
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}
{  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
    Arial, sans-serif;  
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 38px; /* ajuste fino aqui */
    width: auto;
    aspect-ratio: 137 / 38;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

@media (max-width: 600px) {
    .logo span {
        display: none;
    }
}

@media (max-width: 768px) {

    .header {
        padding: 10px 0;
    }

    .header .container {
        align-items: center;
    }

    .logo img {
        height: 32px;
    }

    nav {
        white-space: nowrap;
    }

    nav a {
        margin-left: 16px;
        font-size: 0.9rem;
    }

    main section {
        margin: 48px auto;
        padding: 0 18px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    ul li {
        margin-bottom: 12px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn-primary {
        margin-right: 0;
    }
}

/* BottomNav: oculto por padrão (desktop) */
.bottom-nav {
    display: none;
}

/* BottomNav: visível em mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #eaeaea;
        padding: 8px 0;
        z-index: 200;
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #666;
        text-decoration: none;
        font-size: 0.7rem;
        transition: color 0.15s ease;
        padding: 4px 8px;
    }

    .bottom-nav a.active {
        background-color: transparent;
        color: #1f1f1f;
    }

    .bottom-nav a svg {
        display: block;
    }

    /* Ocultar DesktopNav em mobile */
    .header nav {
        display: none;
    }

    /* Padding para evitar sobreposição com BottomNav */
    main {
        padding-bottom: 64px;
    }
}

/* ==========================================================================
   Tela de boot (pré-runtime Blazor) — loading-experience
   HTML/CSS estático, sem dependência do runtime. Requisitos 1.2, 1.4, 3.1,
   3.4, 5.1, 5.4.
   ========================================================================== */

.boot-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
    font-family: system-ui, sans-serif;
    text-align: center;
    z-index: 1000;
}

.boot-screen__logo {
    height: 56px;
    width: auto;
}

.boot-screen__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #eaeaea;
    border-top-color: #ff9900;
    border-radius: 50%;
    animation: boot-spin 0.8s linear infinite;
}

@keyframes boot-spin {
    to {
        transform: rotate(360deg);
    }
}

.boot-screen__message {
    max-width: 320px;
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    font-weight: 400;
}

.boot-screen[hidden] {
    display: none !important;
}

.boot-screen__error {
    max-width: 360px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.boot-screen__error[hidden] {
    display: none;
}

.boot-screen__error p {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

.boot-screen__error button {
    padding: 12px 24px;
    border: 1px solid #222;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 0.95rem;
    font-family: system-ui, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.boot-screen__error button:hover {
    background: #222;
    color: #fff;
}

/* Transição de opacidade do conteúdo da aplicação ao substituir a tela de
   boot (Requisito 3.1) — duração dentro do intervalo 200–500ms. */
#app {
    transition: opacity 0.3s ease;
}

/* Movimento reduzido: desativa a animação do spinner (Requisito 5.1) e a
   transição de opacidade (Requisito 5.4/3.4). */
@media (prefers-reduced-motion: reduce) {
    .boot-screen__spinner {
        animation: none;
    }

    #app {
        transition: none;
    }
}

/* Contato — embed Microsoft Forms */
.forms-section .forms-open-btn {
    display: inline-block;
    margin: 8px 0 20px;
}

.forms-embed-wrapper {
    width: 100%;
}

.forms-embed {
    display: block;
    width: 100%;
    min-height: 960px;
    border: none;
}

@media (max-width: 768px) {
    .forms-embed {
        min-height: 800px;
    }

    .forms-section .forms-open-btn {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-right: 0;
    }
}

/* Fallback de rastreio: visível só com JS desligado (<noscript> em index.html).
   Não altera a tela de boot para quem tem JavaScript. */
.seo-fallback {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, sans-serif;
    color: #222;
    line-height: 1.5;
}

.seo-fallback nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 16px 0;
}

.seo-fallback nav a {
    margin-left: 0;
}

/* Cookie consent — below boot-screen (z-index 1000), above BottomNav (200). */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    box-sizing: border-box;
    padding: 16px 20px;
    background: #1f1f1f;
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.cookie-banner p {
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner__title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.cookie-banner__copy {
    flex: 1 1 280px;
    max-width: 640px;
}

.cookie-banner__copy p + p {
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner a:focus-visible,
.cookie-banner__btn:focus-visible {
    outline: 2px solid #ff9900;
    outline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner__btn {
    min-height: 44px;
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner__btn--accept {
    background: #fff;
    color: #1f1f1f;
    border: 2px solid #fff;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cookie-banner__btn--accept:hover {
    background: #f3f3f3;
}

.cookie-banner__btn--reject:hover {
    background: #333;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 64px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1 1 140px;
    }
}

.privacy-page code {
    font-size: 0.9em;
}
