/* ===== RESET & VARIÁVEIS ===== */
:root {
    --color-bg: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-primary: #D4A373;
    --color-primary-light: #F5E6D3;
    --color-text: #2C2C2C;
    --color-text-light: #555555;
    --color-border: #E0E0E0;
    --header-height: 80px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1E1E1E;
        --color-surface: #2D2D2D;
        --color-primary: #C9A87C;
        --color-primary-light: #3A3028;
        --color-text: #EAEAEA;
        --color-text-light: #BBBBBB;
        --color-border: #444444;
    }
}

[data-theme="light"] {
    --color-bg: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-primary: #D4A373;
    --color-primary-light: #F5E6D3;
    --color-text: #2C2C2C;
    --color-text-light: #555555;
    --color-border: #E0E0E0;
}

[data-theme="dark"] {
    --color-bg: #1E1E1E;
    --color-surface: #2D2D2D;
    --color-primary: #C9A87C;
    --color-primary-light: #3A3028;
    --color-text: #EAEAEA;
    --color-text-light: #BBBBBB;
    --color-border: #444444;
}

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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header-left {
    flex: 0 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--color-text);
    white-space: nowrap;
}

.logo h1 span {
    color: var(--color-primary);
    font-weight: 700;
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav a:hover,
.nav a.active {
    border-bottom-color: var(--color-primary);
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

/* ===== BOTÃO DE TEMA ===== */
.theme-toggle {
    background-color: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[data-theme="light"] .theme-toggle:hover,
:root:not([data-theme]) .theme-toggle:hover {
    background-color: #E8E8E8;
    border-color: #CCCCCC;
}

[data-theme="dark"] .theme-toggle {
    background-color: #3A3A3A;
    border-color: #555555;
    color: #FFFFFF;
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: #4A4A4A;
    border-color: #777777;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle {
        background-color: #3A3A3A;
        border-color: #555555;
        color: #FFFFFF;
    }
    :root:not([data-theme]) .theme-toggle:hover {
        background-color: #4A4A4A;
        border-color: #777777;
    }
}

.icon-sun, .icon-moon { transition: opacity 0.2s ease; }
[data-theme="light"] .icon-sun, :root:not([data-theme]) .icon-sun { display: none; }
[data-theme="light"] .icon-moon, :root:not([data-theme]) .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .icon-sun { display: block; }
    :root:not([data-theme]) .icon-moon { display: none; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span {
    color: var(--color-text);
    font-weight: 500;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}

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

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #1A1A1A;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
}

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

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

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

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--color-primary);
    color: #1A1A1A;
    border-radius: 20px;
}

.btn-small:hover {
    background-color: #C4956A;
}

/* ===== SEÇÕES ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--color-text);
}

.how-it-works {
    padding: 80px 0;
    background-color: var(--color-surface);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-bg);
    border-radius: 20px;
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #1A1A1A;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.featured {
    padding: 80px 0;
}

.talent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.talent-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.talent-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.talent-img.placeholder {
    width: 100%;
    height: 160px;
    background-color: var(--color-primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cccccc"><circle cx="12" cy="8" r="4"/><path d="M12 14c-4 0-6 2-6 4h12c0-2-2-4-6-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
    opacity: 0.6;
}

.talent-belt {
    color: var(--color-primary);
    font-weight: 500;
    margin: 5px 0 15px;
}

.progress-bar {
    height: 8px;
    background-color: var(--color-border);
    border-radius: 4px;
    margin: 15px 0 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.goal {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== ANIMAÇÕES FADE-IN ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero, .page-hero {
    animation: fadeIn 0.6s ease-out;
}

.step, .talent-card, .valor-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.talent-card:nth-child(1) { animation-delay: 0.05s; }
.talent-card:nth-child(2) { animation-delay: 0.1s; }
.talent-card:nth-child(3) { animation-delay: 0.15s; }
.talent-card:nth-child(4) { animation-delay: 0.2s; }
.talent-card:nth-child(5) { animation-delay: 0.25s; }
.talent-card:nth-child(6) { animation-delay: 0.3s; }
.talent-card:nth-child(7) { animation-delay: 0.35s; }
.talent-card:nth-child(8) { animation-delay: 0.4s; }

.section-title {
    animation: fadeIn 0.5s ease-out;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #1A1A1A;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    
    .header-left { order: 1; width: auto; }
    .header-right { order: 2; margin-left: auto; }
    .header-center { order: 3; width: 100%; margin-top: 15px; }
    
    .nav ul { gap: 20px; justify-content: center; }
}

@media (max-width: 600px) {
    .logo h1 { font-size: 1.4rem; }
    .nav ul { gap: 15px; flex-wrap: wrap; }
    .hero h2 { font-size: 2rem; }
    .cta-buttons .btn { width: 100%; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}