/* 1. VARIÁVEIS GLOBAIS E RESET */
:root {
    --color-black: #000000;
    --color-dark-gray: #1a1a1a;
    --color-text-light: #f0f0f0;
    --color-white: #ffffff;
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 70px;
    --transition-fast: all 0.3s ease-in-out;
    --transition-slow: all 0.8s ease-out;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.7;
    background-color: var(--color-white);
    color: var(--color-dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

strong {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 2. CABEÇALHO E NAVEGAÇÃO */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease, color 0.4s ease, border-bottom 0.4s ease;
    color: var(--color-white); /* Cor inicial para o hero */
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-dark-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGOTIPO NO HEADER */
.logo-link {
    display: flex;
    height: 40px; 
    width: auto;
    align-items: center;
    justify-content: center;
}

.logo {
    max-height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

#header.scrolled .logo-white {
    display: none;
}

#header.scrolled .logo-black {
    display: block;
}


.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 3. SEÇÃO HERO */
.hero {
    min-height: 90vh;
    background-color: var(--color-black);
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 4. BOTÕES */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-outline-white {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-outline-black {
    border-color: var(--color-dark-gray);
    color: var(--color-dark-gray);
}

.btn-outline-black:hover,
.btn-outline-black:focus {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
}

/* 5. SEÇÕES DE CONTEÚDO */
section {
    padding: 6rem 0;
    overflow: hidden; /* Importante para as animações */
}

.content-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.section-light {
    background-color: var(--color-white);
    color: var(--color-dark-gray);
}

.section-dark {
    background-color: var(--color-black);
    color: var(--color-text-light);
}

.section-dark strong {
    color: var(--color-white);
    font-weight: 500;
}

/* 6. SEÇÃO DE CONTATO */
.contact-info {
    margin: 2.5rem 0;
}

.contact-info p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.contact-info p strong {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--color-black);
}

.contact-info a {
    text-decoration: none;
    color: var(--color-dark-gray);
    position: relative;
    font-weight: 400;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-dark-gray);
    transition: var(--transition-fast);
}

.contact-info a:hover::after,
.contact-info a:focus::after {
    width: 100%;
}


/* 7. RODAPÉ */
.footer-dark {
    background-color: var(--color-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.footer-logo .logo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-dark p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-dark p strong {
    color: var(--color-white);
    font-weight: 500;
}

.footer-contact {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    opacity: 0.8;
}

/* 8. ANIMAÇÕES (Scroll e Load) */
.hero-content .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMoveUp 1s ease-out 0.3s forwards;
}
/* Atrasos para o Hero */
.hero-content .reveal:nth-child(2) { animation-delay: 0.5s; }
.hero-content .reveal:nth-child(3) { animation-delay: 0.7s; }


@keyframes fadeInMoveUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de Scroll (Staggered) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito escalonado: cada item "reveal" filho aparece um pouco depois do anterior */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }


/* 9. ACESSIBILIDADE */
:focus-visible {
    outline: 2px solid var(--color-dark-gray);
    outline-offset: 3px;
}

.section-dark :focus-visible,
.footer-dark :focus-visible,
.contact-info a:focus-visible {
    outline-color: var(--color-dark-gray);
}

.section-dark a:focus-visible,
.section-dark :focus-visible {
    outline-color: var(--color-white);
}

/* 10. NOVOS ESTILOS DAS SUGESTÕES */

/* Estilos para Lista com Ícones (#atuo) */
.icon-list-container {
    margin-top: 3.5rem;
    display: grid;
    gap: 3rem;
}

.icon-list-item {
    display: flex;
    align-items: flex-start; /* Alinha o ícone no topo do texto */
    gap: 1.5rem;
}

.icon-wrapper {
    /* Cor do ícone é herdada (currentColor) */
    opacity: 0.9;
    margin-top: -2px; /* Ajuste fino de alinhamento */
}

.icon-text-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-white); /* Destaque no fundo escuro */
}

.icon-text-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Estilos para Layout Dividido (#sobre) */
.section-split {
    padding: 8rem 0; /* Mais padding vertical para o efeito */
}

.content-wrapper-split {
    max-width: 1100px; /* Wrapper mais largo para o grid */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Coluna do título 1/3, texto 2/3 */
    gap: 4rem;
}

.split-left h2 {
    font-size: 2.8rem;
    position: sticky; /* Efeito "grudento" */
    top: 150px; /* (header-height + padding) */
}

.split-right p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* 11. RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Ajuste do Header Mobile */
    #header {
        height: 60px;
        --header-height: 60px;
    }
    
    #header:not(.scrolled) {
        color: var(--color-white);
    }
    
    #header.scrolled {
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--color-dark-gray);
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-link {
        height: 35px;
    }

    /* Menu Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-black);
        color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-secondary);
        font-weight: 500;
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-menu.active .nav-link {
        animation: navLinkFade 0.5s ease forwards;
    }

    .nav-menu.active li:nth-child(1) .nav-link { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(2) .nav-link { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(3) .nav-link { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(4) .nav-link { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(5) .nav-link { animation-delay: 0.6s; }
    .nav-menu.active li:nth-child(6) .nav-link { animation-delay: 0.7s; }
    .nav-menu.active li:nth-child(7) .nav-link { animation-delay: 0.8s; }


    @keyframes navLinkFade {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Botão Hamburger */
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span {
        background-color: var(--color-white);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Ajustes de Conteúdo Mobile */
    .hero {
        min-height: 85vh;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }

    section {
        padding: 4.5rem 0;
    }
    
    .content-wrapper {
        padding: 0 1.5rem;
    }

    section h2 {
        font-size: 1.9rem;
    }

    .contact-info p {
        font-size: 1.1rem;
    }

    /* Ajustes Mobile para Novas Seções */
    .icon-list-item {
        gap: 1.25rem;
    }

    .icon-list-item h3 {
        font-size: 1.2rem;
    }

    .section-split {
        padding: 4.5rem 0;
    }

    .content-wrapper-split {
        grid-template-columns: 1fr; /* Coluna única no mobile */
        padding: 0 1.5rem;
        gap: 0.5rem;
    }

    .split-left h2 {
        font-size: 1.9rem;
        position: static; /* Remove o efeito "grudento" */
        margin-bottom: 2rem;
    }

    .split-right p {
        font-size: 1rem;
    }
}