/* =========================================
   Variáveis e reset
   ========================================= */
:root {
    --acbb-blue:      #1a4d8f;
    --acbb-blue-dark: #123970;
    --acbb-sky:       #5ba3d9;
    --acbb-light:     #f4f7fb;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #fff;
    color: #222;
}

/* =========================================
   Navbar
   ========================================= */
.navbar.bg-primary {
    background-color: var(--acbb-blue) !important;
}

.navbar-brand span {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    border-bottom: 2px solid #fff;
}

/* =========================================
   Hero (página inicial)
   ========================================= */
.hero {
    position: relative;
    height: 92vh;
    min-height: 520px;
    max-height: 780px;
    overflow: hidden;
    background: var(--acbb-blue-dark);
}

.hero img.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.55;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

.hero-eyebrow {
    font-size: .875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: .5rem;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0,0,0,.7);
    margin-bottom: .75rem;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    opacity: .9;
    max-width: 520px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: 1.4rem;
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   Barra de números / stats
   ========================================= */
.stats-bar {
    background: var(--acbb-blue) !important;
}

.stat-number {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: .8rem;
    opacity: .8;
    margin-top: .25rem;
}

/* =========================================
   Cards de notícias
   ========================================= */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.news-card-img-wrap img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,.4);
}

.news-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.news-date {
    font-size: .78rem;
    color: #6c757d;
}

/* =========================================
   Cards de destaque (home)
   ========================================= */
.highlight-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    color: #222;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    color: #222;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.highlight-card h5 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.highlight-card p {
    font-size: .9rem;
    color: #555;
    margin-bottom: 1rem;
}

.highlight-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--acbb-blue);
}

/* =========================================
   Títulos de seção
   ========================================= */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--acbb-blue);
    border-left: 4px solid var(--acbb-sky);
    padding-left: .75rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   Páginas internas — banner topo
   ========================================= */
.page-banner {
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
}

.page-banner h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
}

/* =========================================
   Footer
   ========================================= */
footer.bg-primary {
    background-color: var(--acbb-blue-dark) !important;
}

/* =========================================
   Links Úteis
   ========================================= */
.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: #333;
    transition: border-color .15s, background .15s, transform .15s;
}

.link-card:hover {
    border-color: var(--acbb-sky);
    background: var(--acbb-light);
    color: var(--acbb-blue);
    transform: translateX(3px);
}

.link-card-body { flex-grow: 1; }

.link-card-nome {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.link-card-desc {
    font-size: .78rem;
    color: #6c757d;
    line-height: 1.3;
}

.link-card:hover .link-card-desc { color: #5ba3d9; }

.link-card-icon {
    font-size: 1rem;
    color: #adb5bd;
    flex-shrink: 0;
    transition: color .15s;
}

.link-card:hover .link-card-icon { color: var(--acbb-sky); }

/* =========================================
   Como Chegar
   ========================================= */
.info-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    align-items: flex-start;
}

.info-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--acbb-blue), var(--acbb-sky));
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--acbb-sky);
    margin-bottom: .2rem;
}

.info-card-value {
    font-weight: 600;
    font-size: .95rem;
    color: #1a1a1a;
}

.info-card-detail {
    font-size: .8rem;
    color: #6c757d;
    margin-top: .15rem;
}

.mapa-wrapper {
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.mapa-wrapper iframe {
    border-radius: 14px;
}

.rota-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.rota-origem {
    font-weight: 800;
    color: var(--acbb-blue);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--acbb-light);
}

.rota-passos {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    font-size: .85rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.rota-distancia {
    font-size: .8rem;
    font-weight: 600;
    color: var(--acbb-sky);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.piloto-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* =========================================
   Biblioteca
   ========================================= */
.biblioteca-indice {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.biblioteca-indice-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 20px;
    background: var(--acbb-light);
    color: var(--acbb-blue);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s, color .15s;
}

.biblioteca-indice-item:hover {
    background: var(--acbb-blue);
    color: #fff;
}

.biblioteca-cat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 3px solid var(--cat-cor, var(--acbb-blue));
    margin-bottom: .25rem;
}

.biblioteca-cat-header i {
    font-size: 1.4rem;
    color: var(--cat-cor, var(--acbb-blue));
}

.biblioteca-cat-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex-grow: 1;
}

.biblioteca-cat-count {
    background: var(--cat-cor, var(--acbb-blue));
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
}

.biblioteca-doc-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    padding: .85rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .15s, background .15s, transform .15s;
}

.biblioteca-doc-card:hover {
    border-color: var(--acbb-sky);
    background: var(--acbb-light);
    color: var(--acbb-blue);
    transform: translateX(3px);
}

.biblioteca-pdf-icon {
    font-size: 1.4rem;
    color: #dc2626;
    flex-shrink: 0;
}

/* =========================================
   Segurança
   ========================================= */
.seguranca-destaque {
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #fff;
    text-align: center;
}

.seguranca-destaque-icon {
    font-size: 3.5rem;
    opacity: .85;
    display: block;
    margin-bottom: 1.25rem;
}

.seguranca-destaque blockquote p {
    font-size: 1.15rem;
    line-height: 1.5;
}

.seguranca-destaque footer {
    color: rgba(255,255,255,.65) !important;
}

.principio-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}

.principio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.principio-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--acbb-light);
    color: var(--acbb-blue);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.principio-card h5 {
    font-weight: 700;
    color: var(--acbb-blue);
    font-size: .95rem;
    margin-bottom: .4rem;
}

.principio-card p {
    font-size: .85rem;
    color: #555;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.doc-seg-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-decoration: none;
    color: #222;
    transition: transform .2s, box-shadow .2s;
}

.doc-seg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    color: var(--acbb-blue);
}

.doc-seg-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--acbb-blue), var(--acbb-sky));
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seguranca-emergencia {
    background: #fff8f8;
    border: 1.5px solid #f5c6c6;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

/* =========================================
   Galeria de fotos
   ========================================= */
.gallery-grid {
    columns: 3;
    column-gap: .75rem;
}

@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }

.gallery-item {
    break-inside: avoid;
    margin-bottom: .75rem;
}

.gallery-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-btn img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform .35s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
    gap: .4rem;
    font-size: .82rem;
    padding: .75rem;
    text-align: center;
}

.gallery-overlay .bi-zoom-in {
    font-size: 1.8rem;
    opacity: .9;
}

.gallery-btn:hover img           { transform: scale(1.04); }
.gallery-btn:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    object-fit: contain;
}

/* =========================================
   PPL — passo a passo
   ========================================= */
.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    height: 100%;
    position: relative;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acbb-blue), var(--acbb-sky));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-card h5 {
    font-weight: 700;
    color: var(--acbb-blue);
    margin-bottom: .5rem;
}

.step-card p {
    font-size: .88rem;
    color: #555;
    margin: 0;
}

/* =========================================
   PPL — cards de requisitos
   ========================================= */
.req-card {
    border: 2px solid var(--acbb-light);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.req-card-header {
    background: var(--acbb-blue);
    color: #fff;
    padding: .9rem 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
}

.req-list {
    list-style: none;
    padding: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.req-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    color: #333;
}

.req-list li .bi-check2-circle {
    color: var(--acbb-sky);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* =========================================
   PPL — cards de download
   ========================================= */
.download-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    padding: .85rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, border-color .15s, transform .15s;
}

.download-card:hover {
    background: var(--acbb-light);
    border-color: var(--acbb-sky);
    color: var(--acbb-blue);
    transform: translateX(3px);
}

.download-card-icon {
    font-size: 1.3rem;
    color: var(--acbb-blue);
    flex-shrink: 0;
}

/* =========================================
   Aeronaves
   ========================================= */
.aeronave-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,.09);
    background: #fff;
}

.aeronave-foto-col {
    min-height: 260px;
}

.aeronave-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 260px;
}

.aeronave-foto-placeholder {
    height: 100%;
    min-height: 260px;
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    font-size: 2.5rem;
}

.aeronave-body {
    padding: 2rem;
    height: 100%;
}

.aeronave-tipo {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--acbb-sky);
    margin-bottom: .4rem;
}

.aeronave-modelo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--acbb-blue);
    margin-bottom: .25rem;
    line-height: 1.2;
}

.aeronave-prefixo {
    font-size: .9rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: .4rem;
}

.aeronave-desc {
    font-size: .92rem;
    color: #444;
    margin-bottom: 1rem;
}

.aeronave-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
    background: var(--acbb-light);
    border-radius: 8px;
    padding: .85rem 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
}

.spec-valor {
    font-size: .9rem;
    font-weight: 600;
    color: var(--acbb-blue);
}

/* =========================================
   Diretoria — cards de membros
   ========================================= */
.membro-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.membro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.membro-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acbb-blue) 0%, var(--acbb-sky) 100%);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.membro-cargo {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--acbb-sky);
    margin-bottom: .35rem;
}

.membro-nome {
    font-size: .95rem;
    font-weight: 600;
    color: #222;
}

/* =========================================
   Admin
   ========================================= */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--acbb-blue);
    color: #fff;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.8);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
}
