/* Layout.css - Grid, containers e estruturas de página */

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Grid system */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    /* Compensação para padding interno */
}

.grid-col {
    padding: 0 15px;
    flex: 1;
    min-width: 0;
    /* Evita que conteúdo force a largura mínima */
}

/* Colunas específicas */
.col-1 {
    flex-basis: 8.333%;
    max-width: 8.333%;
}

.col-2 {
    flex-basis: 16.667%;
    max-width: 16.667%;
}

.col-3 {
    flex-basis: 25%;
    max-width: 25%;
}

.col-4 {
    flex-basis: 33.333%;
    max-width: 33.333%;
}

.col-5 {
    flex-basis: 41.667%;
    max-width: 41.667%;
}

.col-6 {
    flex-basis: 50%;
    max-width: 50%;
}

.col-7 {
    flex-basis: 58.333%;
    max-width: 58.333%;
}

.col-8 {
    flex-basis: 66.667%;
    max-width: 66.667%;
}

.col-9 {
    flex-basis: 75%;
    max-width: 75%;
}

.col-10 {
    flex-basis: 83.333%;
    max-width: 83.333%;
}

.col-11 {
    flex-basis: 91.667%;
    max-width: 91.667%;
}

.col-12 {
    flex-basis: 100%;
    max-width: 100%;
}

/* Seções */
section {
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-md) 0;
}

section:first-of-type {
    margin-top: 0;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alternate {
    background-color: var(--bg-card);
    padding: var(--spacing-xl) 0;
}

/* Header e Navegação */
.site-header {
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    /* Header claro */
    box-shadow: 0 2px 10px rgba(36, 11, 62, 0.05);
    /* Sombra clarinha */
    padding: 0.75rem 0;
}

.site-header .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-header .d-flex {
    align-items: center;
}

/* Header elements wrapper with improved spacing */
.header-elements-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

.header-elements-wrapper>* {
    margin: 0;
    border: none;
    position: relative;
}

.header-elements-wrapper:before,
.header-elements-wrapper:after {
    content: none;
}

/* Remove vertical line in header */
.logo,
.logo a,
.logo img {
    border: none;
    position: relative;
}

.logo:after,
.logo:before,
.logo a:after,
.logo a:before {
    display: none !important;
    content: none !important;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    border: none;
}

.main-nav:before,
.main-nav:after {
    display: none !important;
    content: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    border: none;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    border: none;
}

.nav-menu li:first-child a,
.nav-menu li:first-child a:before,
.nav-menu li:first-child a:after {
    border-left: none;
    border-right: none;
}

.nav-menu a {
    color: var(--text-color);
    /* Roxo escuro Edugital */
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    border-left: none;
    border-right: none;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:before {
    content: none !important;
    display: none !important;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Flex utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

/* Margens e espaçamentos */
.ml-2 {
    margin-left: var(--spacing-sm);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

/* Full-height section */
.full-height {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-white);
}

.feature-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

/* Wrappers */
.content-wrapper {
    padding: var(--spacing-xl) 0;
}