/* --- Variáveis e Reset --- */
:root {
    --primary-color: #012d5a;      /* Azul Guardião */
    --accent-color: #f5a623;       /* Destaque Ouro */
    --accent-hover: #d88e1a;
    --text-color: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--primary-color);
}

/* --- Navegação --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-logo img {
    height: 60px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 2rem;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

/* --- Menu Hambúrguer (Mobile) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.4s;
}

/* --- Hero e Carrossel --- */
.carousel-section {
    position: relative;
    height: 550px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.static-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.static-hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* --- Portfólio / Galeria --- */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(1, 45, 90, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: capitalize;
}

/* --- Lightbox (Modal) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 85%;
    border: 4px solid white;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* --- Contato --- */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card:hover {
    transform: translateY(-10px);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

/* --- Mobile Responsivo --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 75px);
        transition: 0.4s;
        padding-top: 50px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-link {
        margin: 0;
        font-size: 1.4rem;
    }

    .static-hero-content h1 {
        font-size: 2.2rem;
    }

    .carousel-section {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item {
        height: 200px;
    }
}