/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #5D4037;
    background-color: #F3E5AB;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #8D6E63 0%, #5D4037 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Navegação */
.navigation {
    background-color: #6D4C41;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu de navegação */
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
    display: block;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Menu mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #6D4C41;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        gap: 30px;
        padding: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 15px 25px;
        border-radius: 10px;
        background-color: rgba(255,255,255,0.1);
        min-width: 200px;
        text-align: center;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Seções */
.section {
    padding: 60px 0;
}

.alt-bg {
    background-color: #EFEBE9;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #3E2723;
    border-bottom: 3px solid #8D6E63;
    padding-bottom: 15px;
}

.section h3 {
    font-size: 1.8rem;
    margin: 25px 0 15px 0;
    color: #4E342E;
}

.section h4 {
    font-size: 1.4rem;
    margin: 20px 0 10px 0;
    color: #5D4037;
}

/* Grid de conteúdo */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

/* Contêineres de fotos */
.photo-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.photo-container.large {
    margin: 30px 0;
}

.section-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Imagem da castanheira maior */
#introducao .section-photo {
    height: 350px;
}

.photo-container.large .section-photo {
    height: 300px;
}

.photo-caption {
    background: linear-gradient(135deg, #8D6E63 0%, #5D4037 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin: 0;
    font-size: 1.1rem;
}

/* Galeria */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    background: linear-gradient(135deg, #8D6E63 0%, #5D4037 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    margin: 0;
    font-size: 1rem;
}

/* Conteúdo de texto */
.text-content {
    font-size: 1.1rem;
}

.text-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.text-content strong {
    color: #3E2723;
}

.text-content em {
    color: #8D6E63;
    font-style: italic;
}

/* Listas */
.activity-list {
    list-style: none;
    padding-left: 0;
}

.activity-list li {
    margin-bottom: 12px;
    padding: 10px;
    background-color: rgba(139, 110, 99, 0.1);
    border-radius: 8px;
    border-left: 4px solid #8D6E63;
}

.cotia-process ol {
    margin-left: 20px;
}

.cotia-process li {
    margin-bottom: 10px;
    padding: 5px 0;
}

/* Curiosidades */
.fun-fact {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid #FFC107;
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.fun-fact h3 {
    color: #E65100;
    margin-bottom: 10px;
}

/* Cards de desafios */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.challenge-card {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 2px solid #E57373;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(229, 115, 115, 0.2);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(229, 115, 115, 0.3);
}

.challenge-card h3 {
    color: #C62828;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.challenge-card p {
    color: #5D4037;
    line-height: 1.5;
}

/* Seção de esperança */
.hope-section {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.hope-section h3 {
    color: #2E7D32;
    margin-bottom: 15px;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: #3E2723;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 10px;
}

.footer small {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-grid.reverse {
        direction: ltr;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 20px;
        min-width: 180px;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    .photo-placeholder {
        padding: 20px;
        min-height: 200px;
    }
    
    .photo-icon {
        font-size: 2rem;
    }
}
