/* --- Reset Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante que o rodapé fique no fim da página */
}

main {
    flex: 1; /* Faz o conteúdo principal empurrar o rodapé para baixo */
}

/* --- Tipografia --- */
h1, h3, h4 { font-weight: 500; }
h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-weight: 400; font-size: 1.7rem; margin-bottom: 1.5rem;}
p { 
    font-weight: 300; 
    font-size: 1.1rem; 
    margin-bottom: 1rem; 
    text-align: justify; /* Texto justificado */
}

/* --- Cabeçalho e Menu --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky; /* Fixa o menu no topo */
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #000000;
    font-weight: 200;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

nav a:hover { opacity: 0.6; }

/* --- Dropdown de Projetos (Horizontal) --- */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    width: 600px; /* Largura maior para acomodar as colunas */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centraliza o menu em relação ao botão */
    padding: 20px;
    border: 1px solid #e0e0e0;
    grid-template-columns: 1fr 1fr; /* Divide em 2 colunas */
    column-gap: 30px;
    row-gap: 10px;
}

.dropdown:hover .dropdown-content {
    display: grid; /* Exibe como Grid quando o mouse passa por cima */
}

.dropdown-content a {
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: none;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:hover {
    color: #555555;
    background-color: transparent;
    padding-left: 5px; /* Pequeno efeito de movimento ao passar o mouse */
}

/* --- Imagem de Destaque e Conteúdo --- */
.hero-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.project-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.project-gallery img {
    width: calc(33.333% - 14px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* --- Rodapé --- */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    text-align: center; /* Mantém o rodapé centralizado por design */
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-weight: 300;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.instagram-link:hover { opacity: 0.6; }

/* --- Mobile / Menu Escondido --- */
.menu-checkbox { display: none; }
.menu-icon { 
    display: none; 
    font-size: 28px; 
    cursor: pointer; 
    user-select: none;
}

@media (max-width: 900px) {
    header {
        padding: 15px 20px;
    }
    
    /* Configurações do Menu Hambúrguer */
    .menu-icon { 
        display: block; 
    }
    
    nav {
        display: none; /* Esconde o menu por padrão */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.05);
    }
    
    /* Quando a checkbox é clicada, exibe o menu */
    .menu-checkbox:checked ~ nav { 
        display: block; 
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f4f4f4;
    }

    nav a {
        display: block;
        padding: 15px 20px;
    }

    /* Ajuste do dropdown no celular (vira uma lista simples) */
    .dropdown-content {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        grid-template-columns: 1fr; /* Volta a ter uma coluna só no celular */
        padding: 0 20px 10px 20px;
        display: none; /* Esconde até o hover (ou toque) */
    }
    
    .dropdown-content a {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .project-gallery {
        flex-direction: column;
    }

    .project-gallery img {
        width: 100%;
    }
}
:root {
    --espessura-linha: 1px; /* Tente 2px ou 0.5px conforme sua preferência */
    --cor-linha: #000000;
}

/* --- Estilo da Grade de Projetos --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.project-card {
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.square-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Garante que seja sempre um quadrado perfeito */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.square-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

/* --- Estilo do Blog --- */
.blog-post {
    margin-bottom: 40px;
}

.post-date {
    font-weight: 200;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.read-more {
    text-decoration: underline;
    font-weight: 300;
    color: #000000;
    font-size: 0.9rem;
}

/* --- A Linha Divisória com Marcador --- */
.divider {
    width: 100%;
    height: var(--espessura-linha); /* Usa a variável definida no topo */
    background-color: var(--cor-linha);
    margin: 40px 0;
}

/* --- Responsividade para a Grade --- */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr; /* No celular vira uma coluna só */
    }
}

p {
    white-space: pre-line; /* Reconhece o 'Enter' como quebra de linha */
    text-align: justify;
}

.project-subtitle {
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.logo-dynamic {
    width: 60px;
    height: auto;
    display: block;
}

.publications-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.publication-item {
    margin-bottom: 25px;
}

.pub-title {
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.1rem;
    text-decoration: none;
    color: #000;
    margin-bottom: 5px;
}

.pub-meta {
    display: block;
    font-weight: 200;
    font-size: 0.95rem;
    text-decoration: none;
    color: #000;
}

.pub-title:hover, .pub-meta:hover {
    opacity: 0.6;
}