/* Variáveis CSS */
:root {
    /* Cores */
    --primary-color: #2E7D32; /* Verde escuro */
    --secondary-color: #81D4FA; /* Azul claro */
    --accent-color: #FFC107; /* Amarelo para destaques */
    --dark-color: #263238; /* Cinza escuro para textos */
    --light-color: #f5f5f5; /* Fundo claro */
    --white: #ffffff;
    --black: #212121;
    
    /* Tipografia */
    --font-main: 'Montserrat', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    /* Espaçamentos */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Bordas */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-round: 50%;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

.profile-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Suavização adicional de scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Melhorias de acessibilidade visual */
:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Cabeçalho */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
}

.logo img {
    height: auto;
    transition: var(--transition-normal);
}

/* Estilos para o menu mobile */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 600;
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Adicionar transformação do ícone quando o menu está aberto */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Estilos para transformar o hamburger em X */
.hamburger {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Adicionar transformação do ícone quando o menu está aberto */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section - Versão Final Otimizada */
.hero {
    position: relative;
    min-height: 500px;
    height: 100vh;
    background-color: var(--primary-color); /* Cor de fundo sólida em vez de imagem */
    display: flex;
    align-items: center;
    margin-top: 68px; /* Altura do header */
    overflow: hidden; /* Simplificado */
    padding: var(--space-md) 0;
}

.hero-overlay {
    position: absolute;
    inset: 0; /* Shorthand para top, right, bottom, left */
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, 0.85) 0%, 
        rgba(129, 212, 250, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: var(--space-md);
}

.hero-title {
    font-size: clamp(1.3rem, 5vw, 3rem); /* Responsivo */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, var(--font-size-xl)); /* Responsivo */
    margin-bottom: var(--space-xl);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* Hero Trust Elements */
.hero-trust {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    transition: var(--transition-normal);
    width: 100%;
}

.trust-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Botões */
.cta-button {
    /* Efeito de onda no CTA */
    position: relative;
    overflow: hidden;
    /* -----------------*/
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

/* Media Queries para o primeiro viewport */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .hero-trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .trust-item {
        justify-content: center;
        text-align: center;
        width: auto; /* Ocupar toda a largura disponível */
    }
    
    /* Adicione estas regras na media query para mobile (max-width: 768px) */
    @media (max-width: 768px) {
        .nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            height: 100vh;
            background: #fff;
            transition: all 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .nav.active {
            right: 0;
        }
        
        .nav-list {
            flex-direction: column;
            gap: 2rem;
        }
        
        .nav-link {
            font-size: 1.2rem;
            padding: 0.5rem 1rem;
        }
    }
    
    /* Estilos para o menu-toggle e hamburger icon */
    .menu-toggle {
        display: none; /* Escondido por padrão */
        position: relative;
        width: 40px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }
    
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }
    }

    /* Hero Section - Versão Final Otimizada */
    .hero {
        position: relative;
        min-height: 500px;
        height: 100vh;
        background-color: var(--primary-color); /* Cor de fundo sólida em vez de imagem */
        display: flex;
        align-items: center;
        margin-top: 68px; /* Altura do header */
        overflow: hidden; /* Simplificado */
        padding: var(--space-md) 0;
    }

    .hero-overlay {
        position: absolute;
        inset: 0; /* Shorthand para top, right, bottom, left */
        background: linear-gradient(135deg, 
            rgba(48, 158, 53, 0.712) 0%, 
            rgba(129, 212, 250, 0.75) 100%);
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        color: var(--white);
        width: 100%;
        max-width: 800px;
        text-align: center;
        margin: 0 auto;
        padding: var(--space-md);
    }

    .hero-title {
        font-size: clamp(1.3rem, 5vw, 9rem); /* Responsivo */
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: var(--space-md);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, var(--font-size-xl)); /* Responsivo */
        margin-bottom: var(--space-xl);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }

    /* Hero Trust Elements */
    .hero-trust {
        margin-top: var(--space-lg);
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-item {
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--border-radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        font-size: 0.9rem;
        transition: var(--transition-normal);
        width: 100%;
    }

    .trust-item i {
        color: var(--accent-color);
        font-size: 1.2rem;
    }

    /* Botões */
    .cta-button {
        /* Efeito de onda no CTA */
        position: relative;
        overflow: hidden;
        /* -----------------*/
        display: inline-block;
        background-color: var(--primary-color);
        color: var(--white);
        padding: var(--space-sm) var(--space-lg);
        border-radius: var(--border-radius-lg);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: var(--shadow-sm);
        transition: var(--transition-normal);
        border: 2px solid transparent;
    }

    /* Media Queries para o primeiro viewport */
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }

        .hero-trust {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            flex-direction: column;
            gap: var(--space-sm);
        }
        
        .trust-item {
            justify-content: center;
            text-align: center;
            width: auto; /* Ocupar toda a largura disponível */
        }
        
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: var(--white);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transform: translateX(100%);
            transition: var(--transition-normal);
            z-index: 1000;
        }
        
        .nav.active {
            transform: translateX(0);
        }
        
        .nav-list {
            flex-direction: column;
            align-items: center;
            gap: var(--space-xl);
        }
        
    }
}