:root {
    --color-primary: #5c4b37;
    --color-secondary: #8d7866;
    --color-accent: #a9927e;
    --color-background: #f8f7f4;
    --color-text: #3a3a3a;
    --color-light: #ffffff;
    --color-dark: #2e2c2a;
    --color-border: #d6d2cb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    padding: 0;
    margin: 0;
}

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

/* Header e Navegação */
header {
    background-color: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

nav a:hover:after {
    width: 100%;
}

/* Seção Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 1rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #6d5945;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn i {
    margin-left: 8px;
}

/* Container de botões */
.button-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Seção de Conteúdo */
.content-section {
    margin: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--color-secondary);
}

.content-text {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.highlight {
    background: rgba(92, 75, 55, 0.08);
    border-left: 4px solid var(--color-primary);
    padding: 1.8rem;
    margin: 2.2rem 0;
    font-style: italic;
    border-radius: 6px;
    font-size: 1.15rem;
    color: var(--color-primary);
    text-align: center;
}

/* Seção de Pesquisa Genealógica */
.research-section {
    background: url('../images/Eytzinger_-_Thesaurus_principum.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 5rem 0;
    margin: 5rem 0;
    position: relative;
}

.research-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8); /* 50% de transparência */
    z-index: 1;
}

.research-content {
    position: relative;
    z-index: 2; /* Garante que o conteúdo fique acima da camada escura */
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.research-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.research-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Seção do Livro */
.book-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin: 5rem 0;
}

.book-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.book-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.book-content {
    flex: 2;
    min-width: 300px;
}

.book-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.book-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.book-features {
    margin: 2rem 0;
}

.book-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.book-feature i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
}

/* Seção de Contribuições */
.contributions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
    margin: 3.5rem 0;
}

.contribution-item {
    background: var(--color-light);
    padding: 2.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.contribution-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    background: rgba(92, 75, 55, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.contribution-item h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.contribution-item p {
    color: #555;
    flex-grow: 1;
}

/* Seção de Formulário */
.form-section {
    background: var(--color-light);
    padding: 3.5rem 2.8rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 4rem 0;
    border: 1px solid var(--color-border);
}

.form-section h2 {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfbfa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(92, 75, 55, 0.2);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 3.5rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-section p, .footer-section li {
    margin-bottom: 0.9rem;
    opacity: 0.85;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--color-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--color-primary);
}

.copyright {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 1rem;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    nav li {
        margin-bottom: 0.5rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .content-text {
        padding: 1.8rem 1.5rem;
    }
    
    .research-section {
        padding: 3rem 0;
        background-attachment: scroll;
    }
    
    .research-content h2 {
        font-size: 1.8rem;
    }
    
    .book-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .form-section {
        padding: 2.5rem 1.8rem;
    }
    
    .contributions {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .button-container .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    nav {
        display: block !important;
    }
    
    .button-container {
        justify-content: flex-start;
    }
}