﻿/* ======================================== */
/* ROOT E CORES                            */
/* ======================================== */
:root {
    --nav-bg-start: #000000;
    --nav-bg-end: #000000;
    --footer-bg-start: #000000;
    --footer-bg-end: #000000;
    --brand-red: #E31E24;
    --text-primary: #FFFFFF;
    --text-muted: #FFFFFF;
    --text-light: #FFFFFF;
    --edge-line: rgba(255,255,255,0.12);
    --panel: #000000;
    --halo: rgba(255,255,255,0.03);
    --glow: rgba(0,0,0,0.35);
    /* preto um pouco mais claro para cards */
    --card-bg: #111318;
    --card-hover: #191D24;
}

/* ======================================== */
/* TIPOGRAFIA GLOBAL                       */
/* ======================================== */
html,
body {
    font-family: "Ebrima", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background-color: #000000;
    margin: 0;
    min-width: 320px;
}

a {
    color: var(--brand-red);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ======================================== */
/* HERO DO HEADER                          */
/* ======================================== */
.news-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid var(--edge-line);
}

/* camada de preenchimento desfocada */
.news-hero-bg-fill {
    position: absolute;
    inset: 0;
    background: url('https://media.aircraft-technics.com/image/mainimage.webp') center/cover no-repeat;
    background-attachment: fixed;
    filter: blur(18px) brightness(0.7);
    transform: scale(1.08);
    z-index: 0;
}

/* imagem principal */
.news-hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://media.aircraft-technics.com/image/mainimage.webp') center/contain no-repeat;
    background-attachment: fixed;
    z-index: 1;
    filter: brightness(0.98) contrast(1.02);
}

@media (min-width: 1400px) {
    .news-hero-bg-image {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media (min-width: 1800px) {
    .news-hero {
        min-height: 120vh;
    }
}

/* gradientes pretos com leve vermelho */
.news-hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 70% -50%, rgba(227, 30, 36, 0.18), transparent 60%), radial-gradient(600px 250px at 30% 100%, rgba(227, 30, 36, 0.15), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 75%);
    z-index: 2;
    animation: subtlePulse 10s ease-in-out infinite;
}

/* overlay preto */
.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3;
}

/* partículas */
.particles-container,
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/* conteúdo */
.news-hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* centralização */
.index-hero-center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* animação leve */
@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.92;
    }

    50% {
        opacity: 1;
    }
}

/* ======================================== */
/* TEXTO DO HEADER                         */
/* ======================================== */
.news-hero-text {
    max-width: 100%;
}

/* sem fundo no título */
.hero-title-band {
    display: inline-block;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* não precisa override diferente no desktop */
@media (min-width: 1400px) {
    .hero-title-band {
        padding: 0;
        width: auto;
        text-align: center;
    }
}

/* uma linha só no header em telas amplas */
.hero-title-band-text {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ======================================== */
/* CORPO PRINCIPAL                         */
/* ======================================== */
.index-main {
    background-color: #000000;
    margin-top: 0;
}

.index-section {
    padding: 5rem 0;
}

.index-section-inner {
    max-width: 900px;
    margin: 0 auto;
    background-color: #000000;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 3rem 3.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.9);
}

.index-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient( 90deg, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.5) 80%, transparent 100% );
    opacity: 0.9;
}

.index-section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.index-section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.index-welcome-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================== */
/* SERVIÇOS COM IMAGEM                     */
/* ======================================== */
.index-services-inner {
    max-width: 1100px;
}

.index-services-text {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.index-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* cards com preto mais claro */
.index-service-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,0.85);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.index-service-image {
    position: relative;
    overflow: hidden;
    height: 190px;
}

    .index-service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.index-service-body {
    padding: 1.75rem 1.85rem 2rem 1.85rem;
}

.index-service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.index-service-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.index-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 60px rgba(0,0,0,1);
    background-color: var(--card-hover);
}

    .index-service-card:hover .index-service-image img {
        transform: scale(1.06);
    }

/* ======================================== */
/* CTA FINAL                               */
/* ======================================== */
.index-cta {
    background-color: #000000;
    border-top: 1px solid var(--edge-line);
}

.index-cta-content {
    max-width: 980px;
    margin: 0 auto;
    background-color: rgba(0,0,0,0.96);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    backdrop-filter: blur(10px);
}

.index-cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.index-cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.index-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: "Ebrima", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

    .btn i {
        font-size: 1rem;
    }

.btn-primary {
    background: var(--brand-red);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(227,30,36,0.35);
}

    .btn-primary:hover {
        background: #C41A20;
        transform: translateY(2px);
        box-shadow: 0 8px 24px rgba(227,30,36,0.45);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--edge-line);
    color: var(--text-primary);
}

    .btn-outline:hover {
        border-color: rgba(255,255,255,0.6);
        color: var(--brand-red);
        box-shadow: 0 5px 18px rgba(227,30,36,0.2);
    }

/* ======================================== */
/* RESPONSIVO                              */
/* ======================================== */
@media (max-width: 1200px) {
    .index-section-inner {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .news-hero {
        padding: 0;
        min-height: 100vh;
    }

    .news-hero-content {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .news-hero-bg-fill,
    .news-hero-bg-image {
        background-attachment: scroll;
    }

    .hero-title-band {
        padding: 0;
    }

    .index-section-inner {
        padding: 2.5rem 2.25rem;
        margin: 0 1.25rem;
    }

    .index-cta-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .index-cta-actions {
        width: 100%;
    }

    .index-cta-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 90vh;
        padding: 0;
    }

    .hero-title-band-text {
        font-size: 1.5rem;
        letter-spacing: 0.06em;
        white-space: normal;
    }

    .index-section-inner {
        padding: 2.2rem 1.75rem;
        margin: 0 1rem;
    }

    .index-cta-content {
        padding: 2.5rem 1.75rem;
        margin: 0 1rem;
    }

    .index-section-title {
        font-size: 1.7rem;
    }

    .index-section-description,
    .index-cta-subtitle {
        font-size: 1rem;
    }

    .index-service-image {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .hero-title-band-text {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
        white-space: normal;
    }

    .index-section-inner {
        padding: 2rem 1.25rem;
        margin: 0 0.75rem;
    }

    .index-cta-content {
        padding: 2rem 1.25rem;
        margin: 0 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .index-cta-actions {
        flex-direction: column;
    }

    .index-service-image {
        height: 160px;
    }
}

@media (max-width: 360px) {
    .index-section-inner,
    .index-cta-content {
        margin: 0 0.5rem;
        padding: 1.75rem 1rem;
    }

    .hero-title-band-text {
        font-size: 1.2rem;
    }
}
