/* --- VARIÁVEIS & RESET --- */
:root {
    /* Identidade Visual: Tradição e Excelência (Azul Real e Vermelho/Bordô) */
    --primary-color: #00274c;
    /* Azul Profundo */
    --secondary-color: #8a1538;
    /* Vermelho/Bordô Acadêmico */
    --accent-gold: #c5a059;
    /* Dourado para detalhes */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f4f6f8;
    --white: #ffffff;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 39, 76, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel', serif;
    /* Fonte serifada para ar de tradição */
    font-weight: 700;
    color: var(--primary-color);
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    /* Bordas mais quadradas para seriedade */
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
}

.btn-primary:hover {
    background-color: #6d0f2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 0.8rem;
    font-family: 'Lato', sans-serif;
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 39, 76, 0.8), rgba(0, 39, 76, 0.6)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?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);
    margin-top: 0;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Elemento decorativo */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

/* --- CARDS DIFERENCIAIS (Floating) --- */
.features {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: var(--transition);
    border-top: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* --- SOBRE (Grid Assimétrico) --- */
.about {
    background-color: var(--white);
    position: relative;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h4 {
    color: var(--secondary-color);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
}

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--bg-light);
}

/* --- ENSINO (Cards Grandes) --- */
.education {
    background-color: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* Sem gap para estilo contínuo */
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    overflow: hidden;
}

.edu-card {
    background: var(--white);
    padding: 60px 40px;
    border-right: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.edu-card:last-child {
    border-right: none;
}

.edu-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.edu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.edu-card:hover h3 {
    color: var(--white);
}

.edu-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    transition: color 0.3s;
}

.edu-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.edu-link {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-card:hover .edu-link {
    color: var(--accent-gold);
}

/* --- GALERIA MASONRY --- */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-box:hover img {
    transform: scale(1.1);
}

.gallery-box:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-box:nth-child(2) {
    grid-column: span 1;
}

.gallery-box:nth-child(3) {
    grid-column: span 1;
}

.gallery-box:nth-child(4) {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    opacity: 0;
    transition: 0.3s;
}

.gallery-box:hover .gallery-overlay {
    opacity: 1;
}

/* --- CONTATO (Estilo Dark) --- */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Padrão de fundo sutil */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(5px);
}

.info-card h4 {
    color: var(--accent-gold);
    font-family: 'Lato', sans-serif;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--white);
    margin: 0;
    font-size: 1rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
footer {
    background-color: #0d1b2a;
    color: #888;
    padding: 80px 0 30px;
    border-top: 5px solid var(--secondary-color);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-title {
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 400px;
        margin-top: 40px;
        box-shadow: none;
    }

    .education-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .edu-card {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .gallery-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .gallery-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }

    .gallery-box {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}