/* --- RESET & GLOBAL STYLES --- */
:root {
    --bg-color: #020202;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --border-color: #1a1a1a;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--sans-font);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--serif-font);
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Ajuste fino para o "&" ficar elegante */
.ampersand { font-family: var(--serif-font); font-style: italic; font-weight: 400; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 30px 5%; display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(2,2,2,0.9) 0%, rgba(2,2,2,0) 100%);
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(2, 2, 2, 0.98);
    padding: 15px 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo img { height: 45px; filter: brightness(0) invert(1); }
nav ul { display: flex; gap: 40px; }
nav a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2.5px; opacity: 0.7; }
nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* --- HERO --- */
.hero {
    height: 100vh; width: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; position: relative; overflow: hidden;
}

#bg-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    z-index: -2; transform: translate(-50%, -50%); object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center; z-index: 1; max-width: 900px; padding: 0 20px;
    animation: fadeUp 1.5s ease-out;
}

.hero-subtitle {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 4px;
    color: #ccc; margin-bottom: 15px; display: block;
}

.hero-content h1 {
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px;
    text-transform: uppercase; letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.1rem; font-weight: 300; letter-spacing: 1px; color: #ddd; max-width: 600px; margin: 0 auto;
}

/* --- SECTIONS GENERAL --- */
section { padding: 120px 8%; border-bottom: 1px solid var(--border-color); }
.section-header { margin-bottom: 70px; text-align: center; }
.subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: #888; display: block; margin-bottom: 15px; font-family: var(--sans-font); }
.section-title { font-size: 2.8rem; }

/* --- FILOSOFIA --- */
.philosophy-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.philosophy-text p {
    margin-bottom: 25px; font-size: 1.05rem; color: #bbb; text-align: justify; line-height: 1.8;
}

.philosophy-quote {
    margin-top: 30px;
    border-left: 2px solid #fff;
    padding-left: 20px;
}

.philosophy-quote blockquote {
    color: #fff;
    font-family: var(--serif-font);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.4;
}

.philosophy-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 2px;
}

.values-list { 
    border-left: 1px solid #222; 
    padding-left: 40px; 
}

.value-item { margin-bottom: 40px; position: relative; }
.value-item:last-child { margin-bottom: 0; }

.value-item h4 { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    color: #fff; 
    position: relative;
}

.value-item h4::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 50%;
    width: 11px;
    height: 1px;
    background: #fff;
}

.btn-outline {
    border: 1px solid #fff; color: #fff; padding: 15px 30px; 
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
    transition: 0.3s; display: inline-block;
}
.btn-outline:hover { background: #fff; color: #000; }

.value-item p { font-size: 0.95rem; color: #888; line-height: 1.6; }

/* --- EIXOS --- */
.eixos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: #222; border: 1px solid #222; }
.eixo-card { background: #050505; padding: 50px 30px; text-align: center; transition: 0.3s; }
.eixo-card:hover { background: #0a0a0a; }
.eixo-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.eixo-card p { font-size: 0.9rem; color: #888; }

/* --- NOTÍCIAS GERAIS (Ajuste Dinâmico Home) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

/* --- ESTILO ESPECÍFICO PARA noticias.html (Lista Vertical) --- */
#all-news-grid {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

/* --- ESTILO DOS CARDS (Comum para os dois) --- */
.news-card {
    background: #080808;
    border: 1px solid #1a1a1a;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.news-card:hover {
    border-color: #444;
    transform: translateY(-5px);
}

.news-meta {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    border-left: 2px solid #fff;
    padding-left: 10px;
}

.news-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.read-btn {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
    color: #888;
    transition: 0.3s;
}

.news-card:hover .read-btn {
    color: #fff;
    border-bottom-color: #fff;
}

/* --- CONTATO --- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 60px; justify-content: space-between; }
.contact-info h3 { font-size: 2rem; margin-bottom: 30px; }
.info-row { margin-bottom: 20px; }
.info-row span { display: block; font-size: 0.8rem; color: #666; text-transform: uppercase; }
.info-row p { font-size: 1.1rem; color: #fff; }

form input, form textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #333;
    padding: 15px 0; color: #fff; font-family: var(--sans-font); font-size: 1rem; margin-bottom: 20px;
}
form input:focus, form textarea:focus { border-bottom-color: #fff; outline: none; }

button { background: #fff; color: #000; border: none; padding: 15px 40px; text-transform: uppercase; font-weight: 600; cursor: pointer; letter-spacing: 2px; transition: 0.3s; }
button:hover { background: #ccc; }
button:disabled { background: #444; color: #888; cursor: not-allowed; }

.form-status { margin-top: 15px; font-size: 0.9rem; display: none; }
.form-status.success { color: #4caf50; display: block; }
.form-status.error { color: #f44336; display: block; }

/* --- FOOTER --- */
footer { padding: 50px; text-align: center; border-top: 1px solid #111; font-size: 0.8rem; color: #444; text-transform: uppercase; letter-spacing: 2px; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; opacity: 0; visibility: hidden;
    display: flex; justify-content: center; align-items: center; transition: 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #0a0a0a; border: 1px solid #333; width: 90%; max-width: 700px;
    padding: 50px; position: relative; max-height: 90vh; overflow-y: auto;
}
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; color: #666; }
.close-modal:hover { color: #fff; }
#modal-body { white-space: pre-line; color: #ccc; line-height: 1.8; margin-top: 20px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .hero-content h1 { font-size: 2.8rem; } .philosophy-grid { grid-template-columns: 1fr; } nav { display: none; } }

/* --- EMPRESAS DO GRUPO --- */
.companies-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-item {
    text-align: center;
    width: 190px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.company-logo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f0f0f, #050505);
    border: 1px solid #1a1a1a;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.company-item:hover { transform: translateY(-5px); }
.company-item:hover .company-logo { border-color: #444; box-shadow: 0 10px 25px rgba(0,0,0,0.6); }

.company-logo img {
    max-width: 90%;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.company-item:hover .company-logo img { filter: grayscale(0%) brightness(1); opacity: 1; }

.company-item h3 {
    font-size: 0.75rem;
    color: #555;
    font-family: var(--sans-font);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.company-item:hover h3 { color: #fff; }

/* ESTILO DO CARD DE CONTINUIDADE (+) */
.company-plus-card .plus-symbol {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    color: #222; 
    font-weight: 300;
    transition: all 0.5s ease;
}

.company-plus-card:hover .plus-symbol {
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.company-plus-card .company-logo { border: 1px dashed #222; background: transparent; }
.company-plus-card:hover .company-logo { border: 1px solid #fff; background: linear-gradient(145deg, #111, #050505); }

.companies-wrapper a.company-item { text-decoration: none; color: inherit; display: block; }
.companies-wrapper a.company-item:hover { cursor: pointer; }