/* ============================================
   PROVEN - ESTILOS GLOBAIS
   ============================================ */

:root {
    --verde-escuro: #0A2E1F;
    --verde-musgo: #4A6B5D;
    --verde-claro: #6B8F7F;
    --verde-destaque: #10B981;

    --cinza-claro: #F8FAFB;
    --cinza-medio: #D1D5DB;
    --cinza-escuro: #6B7280;
    --branco: #FFFFFF;
    --texto-escuro: #1F2937;
    --texto-suave: #4B5563;

    --sombra-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --sombra-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sombra-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;

    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--texto-escuro);
    line-height: 1.65;
    background-color: var(--branco);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transicao); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--verde-escuro);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p { color: var(--texto-suave); line-height: 1.7; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background-color: var(--verde-escuro);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transicao);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(10, 46, 31, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

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

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transicao);
}

.logo img:hover { transform: scale(1.05); }

nav ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

nav a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-destaque);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:not(.btn-cta):hover,
nav a.active {
    color: var(--branco);
}

nav a:not(.btn-cta):hover::after,
nav a.active::after {
    width: 100%;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--verde-musgo);
    color: var(--branco);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--verde-musgo);
    transition: var(--transicao);
    box-shadow: 0 4px 14px rgba(74, 107, 93, 0.35);
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: var(--verde-destaque);
    border-color: var(--verde-destaque);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--branco);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: var(--transicao);
}

.btn-outline:hover {
    background-color: var(--branco);
    color: var(--verde-escuro);
    border-color: var(--branco);
    transform: translateY(-2px);
}

/* ============================================
   TÍTULOS DE SEÇÃO
   ============================================ */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 3.5rem;
    position: relative;
    display: block;
    color: var(--verde-escuro);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-musgo), var(--verde-destaque));
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

/* ============================================
   SEÇÕES GENÉRICAS
   ============================================ */
.secao {
    padding: 6rem 0;
    background-color: var(--branco);
}

.secao-cinza {
    background-color: var(--cinza-claro);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, #051a12 0%, #03120c 100%);
    color: var(--cinza-medio);
    padding: 4rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--verde-musgo), var(--verde-destaque), var(--verde-musgo));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: var(--branco);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--verde-destaque);
    border-radius: var(--radius-full);
}

.footer-col p,
.footer-col a {
    color: rgba(209, 213, 219, 0.85);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--verde-destaque);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.dev-credit {
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.dev-credit a {
    color: var(--branco);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background-color: rgba(74, 107, 93, 0.3);
    border: 1px solid rgba(74, 107, 93, 0.5);
    transition: var(--transicao);
    margin: 0;
}

.dev-credit a:hover {
    background-color: var(--verde-destaque);
    border-color: var(--verde-destaque);
    transform: translateY(-2px);
}

/* ============================================
   MENU MOBILE (HAMBÚRGUER)
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--branco);
    border-radius: var(--radius-full);
    transition: var(--transicao);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--verde-musgo);
    color: var(--branco);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(74, 107, 93, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) rotate(90deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.btn-topo.visivel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(90deg);
}

.btn-topo:hover {
    background-color: var(--verde-destaque);
    transform: translateY(-5px) rotate(90deg);
}

/* ============================================
   SCROLLBAR + SELEÇÃO
   ============================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cinza-claro); }
::-webkit-scrollbar-thumb { background: var(--verde-musgo); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--verde-escuro); }

::selection { background-color: var(--verde-destaque); color: var(--branco); }

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    .container { padding: 0 18px; }

    .logo img { height: 55px; width: 55px; }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-content { position: relative; }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--verde-escuro);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    nav ul.active { right: 0; }

    nav ul li { width: 100%; }

    nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a:not(.btn-cta)::after { display: none; }

    nav a.btn-cta {
        margin-top: 10px;
        text-align: center;
        border-bottom: none;
    }

    body.menu-aberto { overflow: hidden; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }

    .btn-topo { width: 45px; height: 45px; bottom: 20px; right: 20px; }
}