/* Layout Fixes - Aluguel Pinheira */
/* Arquivo criado para remover CSS inline do base.html */
/* Fase 2: Sprint 2.1.2 - Otimizações de Código */

/* Font Display Swap para Font Awesome - Prevent CLS */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-display: swap;
    font-style: normal;
    font-weight: 900;
    src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2) format('woff2');
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-brands-400.woff2) format('woff2');
}

/* Prevent CLS from Font Awesome icons */
.fa, .fas, .far, .fal, .fab {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* Reset completo */
html, body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Skip link acessível - visível apenas no foco */
.skip-to-main {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-to-main:focus {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 1rem 1.5rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background-color: #3a6fa8 !important;
    color: white !important;
    font-weight: 600 !important;
    z-index: 9999 !important;
    text-decoration: none !important;
}

/* Remover padding-top antigo do body */
body {
    padding-top: 0 !important;
}

/* Header fixo no topo */
.main-header-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* Espaço para o header fixo - OTIMIZADO PARA CLS */
:root {
    --header-height: 140px;
}

.page-content-wrapper {
    padding-top: 0 !important;
    margin-top: var(--header-height) !important;
}

/* Main content sem padding superior */
.main-content-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Container do conteúdo */
.container {
    margin-top: 0 !important;
}

/* Mobile: Espaço menor sem navbar */
@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }
    .page-content-wrapper {
        margin-top: var(--header-height) !important;
    }
}

/* Remover dark-mode toggle gigante */
.dark-mode-toggle,
#dark-mode-toggle,
[id*="dark-mode"] {
    display: none !important;
}

/* Garantir que back-to-top está oculto */
.back-to-top,
#back-to-top,
[class*="back-to-top"] {
    display: none !important;
}
