/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS */
:root {
    --verde-profundo: #2d4a2b;
    --verde-terra: #3a5f3a;
    --ocre-argila: #c19a6b;
    --off-white: #faf8f5;
    --preto-suave: #2c2c2c;
    --dourado-fosco: #d4af37;
    --cinza-claro: #f5f5f5;
    --sombra: rgba(0, 0, 0, 0.1);
}

/* Tipografia */
body {
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--preto-suave);
    background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--verde-profundo);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

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

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* Header */
header {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-profundo);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover {
    color: var(--verde-terra);
    transform: translateY(-2px);
}

/* Navegação */
nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav a {
    color: var(--preto-suave);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 154, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

nav a:hover {
    color: var(--verde-terra);
    background: rgba(193, 154, 107, 0.05);
    transform: translateY(-1px);
}

nav a:hover::before {
    left: 100%;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 0.5rem;
    border: 1px solid rgba(193, 154, 107, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Mega panel (1 coluna, usado em todas as opções do navbar) */
.dropdown-content.mega-panel {
    width: min(420px, calc(100vw - 2rem));
    padding: 0.75rem;
    margin-top: 0;
}

.dropdown-content.mega-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.mega-panel-header {
    padding: 0.75rem 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(193, 154, 107, 0.12);
}

.dropdown-content.mega-panel .mega-title {
    margin-bottom: 0.25rem;
}

.dropdown-content.mega-panel .mega-desc {
    margin-bottom: 0;
}

.mega-panel-item {
    padding: 0.75rem 0.75rem;
    border-radius: 10px;
    color: rgba(44, 44, 44, 0.8);
    font-size: 0.95rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mega-panel-item:hover {
    background: rgba(193, 154, 107, 0.08);
    color: var(--preto-suave);
}

/* Mega menu */
.dropdown-content.mega-menu {
    margin-top: 0;
    left: 50%;
    transform: translate(-50%, -10px);
    width: min(860px, calc(100vw - 3rem));
    padding: 1rem;
    border-radius: 16px;
}

.dropdown-content.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown:hover .dropdown-content.mega-menu {
    transform: translate(-50%, 0);
}

.dropdown-content.mega-menu {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.dropdown:hover .dropdown-content.mega-menu {
    display: grid;
    opacity: 1;
}

.dropdown-content.mega-menu li {
    margin: 0;
}

.dropdown-content.mega-menu a.mega-link {
    display: block;
    padding: 1rem 1rem;
    border-radius: 12px;
    border-bottom: none;
    background: transparent;
    transform: none;
}

.dropdown-content.mega-menu a.mega-link:hover {
    background: rgba(193, 154, 107, 0.08);
    transform: none;
}

.mega-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--preto-suave);
    margin-bottom: 0.25rem;
}

.mega-desc {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(44, 44, 44, 0.7);
}

.mega-subpages {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.3;
    color: rgba(44, 44, 44, 0.55);
}

.mega-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(45, 74, 43, 0.08);
    color: var(--verde-terra);
}

.dropdown:hover .dropdown-content:not(.mega-menu) {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(193, 154, 107, 0.08);
    margin: 0;
    font-size: 0.9rem;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(193, 154, 107, 0.08);
    color: var(--verde-profundo);
    transform: translateX(5px);
}

/* Menu separator */
nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--ocre-argila), transparent);
    opacity: 0.3;
}

/* CTA Button */
nav .btn-primary {
    background: linear-gradient(135deg, var(--ocre-argila), #a67c52);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(193, 154, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

nav .btn-primary:hover {
    background: linear-gradient(135deg, #a67c52, var(--ocre-argila));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 154, 107, 0.4);
}

nav .btn-primary:hover::before {
    left: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--verde-profundo);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(193, 154, 107, 0.1);
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
        align-items: stretch;
    }
    
    nav ul.active {
        display: flex;
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    nav a {
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: rgba(193, 154, 107, 0.05);
        margin-top: 0.5rem;
        border-radius: 8px;
        border: none;
    }

    .dropdown-content.mega-panel {
        width: 100%;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .mega-panel-header {
        padding: 0.75rem;
    }

    .mega-panel-item {
        padding: 0.75rem;
    }
    
    .dropdown:hover .dropdown-content:not(.mega-menu) {
        display: none;
    }
    
    .dropdown.active .dropdown-content:not(.mega-menu) {
        display: block;
    }
    
    .dropdown-content.mega-menu {
        width: 100%;
        padding: 0.75rem;
        border-radius: 12px;
        display: none;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        transform: none;
        left: auto;
    }

    .dropdown.active .dropdown-content.mega-menu {
        display: grid;
    }
    
    .dropdown-content a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(193, 154, 107, 0.1);
    }
    
    nav .btn-primary {
        margin-top: 1rem;
        padding: 1rem 2rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Remove separators on mobile */
    nav ul li:not(:last-child)::after {
        display: none;
    }
    
    /* Mobile menu overlay */
    nav ul.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .mobile-menu-toggle.active {
        background: var(--ocre-argila);
        color: white;
    }
}

/* Header scroll effect */
header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Active state for current page */
nav a.active {
    color: var(--verde-terra);
    background: rgba(193, 154, 107, 0.08);
    font-weight: 600;
}

/* Mega menu indicator */
.dropdown > a::after {
    content: '▾';
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-terra) 100%);
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--ocre-argila);
    color: white;
}

.btn-primary:hover {
    background: #a67c52;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--verde-profundo);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--sombra);
}

.card h3 {
    color: var(--verde-profundo);
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--verde-terra);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

/* Seções */
section {
    padding: 4rem 0;
}

.section-gray {
    background: var(--cinza-claro);
}

/* Footer */
footer {
    background: var(--preto-suave);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--ocre-argila);
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--verde-profundo);
}

/* Responsividade */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--off-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px var(--sombra);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .col-6, .col-4, .col-3 {
        width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--dourado-fosco);
    outline-offset: 2px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
