/* ============ PÁGINA DE PROJETOS ============ */

/* Hero Section */
.projetos-main {
    padding-top: 60px;
}

.projetos-hero {
    height: 50vh;
    min-height: 350px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(26, 26, 58, 0.95)), url('img/hero-projetos.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    color: var(--white);
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-overlay .destaque {
    color: #8b7355;
}

.hero-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Filtros */
.filtros-section {
    padding: 40px 0;
    background: var(--gray-light);
    position: sticky;
    top: 60px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.container-filtros {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filtros-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filtro-btn {
    padding: 10px 25px;
    border: 2px solid #8b7355;
    background: transparent;
    color: #8b7355;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filtro-btn:hover {
    background: #8b7355;
    border: 2px solid #8b7355;
    color: var(--white);
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: #8b7355;
    color: var(--white);
    box-shadow: var(--shadow);
}

/* Grid Masonry - Mobile First */
.projetos-grid-section {
    padding: 60px 0;
    background: var(--white);
}

.container-projetos-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projetos-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Cards de Projetos */
.projeto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projeto-card:hover .card-img img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.projeto-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.projeto-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.overlay-detalhes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.overlay-detalhes i {
    margin-right: 5px;
}

.btn-detalhes {
    background: #00d4ff;
    color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detalhes:hover {
    background: var(--white);
    transform: scale(1.05);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--gray-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-info p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-detalhes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.detalhe-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalhe-item i {
    width: 25px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-modal-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-modal-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* CTA */
.cta-projetos {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #1a1a3a);
    text-align: center;
}

.container-cta {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-projetos h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-projetos p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background: #00d4ff;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta:hover {
    background: #8b7355;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px #8b7355;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .projetos-hero h1 {
        font-size: 4rem;
    }
    
    .projetos-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .projetos-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-overlay h1 {
        font-size: 4.5rem;
    }
}

/* Desktop Grande (min-width: 1200px) */
@media (min-width: 1200px) {
    .projetos-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes para dispositivos pequenos */
@media (max-width: 767px) {
    .filtros-section {
        top: 40px;
    }
    
    .filtro-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
    }
}
:root {
    --primary-color: #1a365d;
    --secondary-color: #8b7355;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1a365d;
    height: 60px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}



.logo img {
    width: 50px;
    height: 60px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}


/* Menu Mobile */
.nav-links-mobile {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    visibility: hidden;
    transition: 0.5s;
    overflow: hidden;
}

.nav-links-mobile a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 20px 30px;
    font-size: 15pt;
}

.nav-links-mobile a:hover {
    background-color: rgba(200, 214, 239, 0.3);
}

.nav-links-mobile.abrir {
    visibility: visible;
    height: calc(100vh - 60px);
}

.btn-menu {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.5s;
    display: none;
}

.btn-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.linha {
    width: 20px;
    height: 2px;
    background-color: white;
    display: block;
    margin: 5px auto;
    position: relative;
    transform-origin: center;
    transition: 0.3s;
}

.btn-menu.ativar .linha:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
}

.btn-menu.ativar .linha:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
}

.btn-menu.ativar .linha:nth-child(2) {
    width: 0;
}

/* Responsividade */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .btn-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    .btn-menu {
        display: block;
    }
    .navbar {
        height: 60px;
    }
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}