/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    /* Paleta: Azul Acadêmico, Dourado Institucional, Branco */
    --primary-blue: #1a3c6e;
    /* Azul Marinho Nobre */
    --dark-blue: #0f2545;
    /* Azul Escuro Profundo */
    --gold: #d4af37;
    /* Dourado Clássico */
    --light-bg: #f4f6f9;
    /* Fundo Cinza Azulado Claro */
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #606d7a;

    --shadow: 0 10px 30px rgba(26, 60, 110, 0.1);
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --radius: 6px;
    --gradient: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary-blue);
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.text-center {
    text-align: center;
}

/* Títulos de Seção */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gold);
    color: var(--dark-blue);
    font-weight: 700;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: #b5952f;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--gold);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo span {
    font-size: 0.8rem;
    color: var(--gold);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 37, 69, 0.8), rgba(15, 37, 69, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 90px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1.2s ease-out;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* --- DESTAQUES (Cards Flutuantes) --- */
.highlights {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--gold);
    transition: transform 0.3s;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* --- SOBRE (Institucional) --- */
.about {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* Filtro sépia leve para ar histórico */
    filter: sepia(10%);
}

/* Moldura Dupla */
.about-img::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

.history-tag {
    display: inline-block;
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* --- ATIVIDADES (CNAE) --- */
.activities {
    background-color: var(--light-bg);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-img {
    height: 200px;
    background-color: #ddd;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    padding: 25px;
    flex-grow: 1;
}

.activity-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.activity-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* --- CONTATO & LOCALIZAÇÃO --- */
.contact {
    background: var(--primary-blue);
    color: var(--white);
    position: relative;
}

.contact h2 {
    color: var(--white);
}

.contact p {
    color: #d0dbe8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    padding: 20px 0;
}

.info-box {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 20px;
    margin-top: 5px;
}

.info-box h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
}

.map-box {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: var(--dark-blue);
    color: #8da2b5;
    padding: 50px 0 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--gold);
}

.footer-logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-cnpj {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    color: #aebccc;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- BOTÃO FLUTUANTE --- */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: var(--dark-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s;
}

.contact-float:hover {
    transform: scale(1.1);
    color: var(--primary-blue);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .highlights {
        margin-top: 0;
        padding-top: 50px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 3px solid var(--gold);
    }

    .navbar .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}