:root {
    --primary-color: #00897b; /* Verde do Logo */
    --secondary-color: #00a19a; /* Tom Esmeralda do Logo */
    --accent-color: #f1c40f; /* Amarelo Maçã/Energia */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f9fbfd;
    --white: #ffffff;
    --muted: #f1f4f6;
    --shadow-strong: 0 18px 40px rgba(2,48,36,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Logo */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

/* Aumenta o tamanho do logo (sobrescreve estilos inline se necessário) */
.logo img {
    height: 73px !important;
    max-height: 73px;
    display: inline-block;
    margin-right: 12px;
}

/* mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-wrapper nav { display: flex; gap: 18px; align-items: center; }

@media (max-width: 768px) {
    .logo img {
        height: 46px !important;
        max-height: 46px;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

/* Hero CTA (centered buttons) */
.hero-cta { display: flex; gap: 15px; justify-content: center; align-items: center; margin-top: 20px; }
.hero-cta .btn { min-width: 160px; }

@media (max-width: 600px) {
    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-cta .btn { width: 90%; max-width: 360px; }
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
    transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
}

/* subtle floating for hero image */
.hero-image.is-float img { transform: translateY(-6px); }

/* Entrance animations */
.animate { opacity: 0; transform: translateY(18px); transition: transform 650ms cubic-bezier(.2,.9,.2,1), opacity 650ms ease; will-change: transform, opacity; }
.in-view { opacity: 1; transform: translateY(0); }

/* Buttons: modern gradient and micro-interactions */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(0);
}
.btn-primary:active { transform: translateY(2px) scale(0.995); }
.btn-primary:hover { box-shadow: var(--shadow-strong); }

/* Cards and sections refinement */
.container-card { background: var(--white); border-radius: 18px; padding: 28px; box-shadow: 0 8px 30px rgba(47,79,79,0.04); }

/* Game area styling adjustments to match new layout */
#game-container { border-radius: 18px; padding: 12px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Game Section */
#game-container {
    width: 100%;
    height: 400px;
    background: #e0f7fa;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 50px 0;
    border: 3px solid var(--primary-color);
}

.player {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 20px;
    transition: left 0.1s linear;
}

.falling-item {
    position: absolute;
    width: 40px;
    height: 40px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.game-btn {
    padding: 15px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero { text-align: center; }
    .hero-image { margin-top: 40px; }

    .nav-toggle { display: inline-flex; }
    .nav-wrapper nav { display: none; position: absolute; top: 72px; right: 20px; background: var(--white); padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); flex-direction: column; min-width: 180px; }
    .nav-wrapper nav.open { display: flex; }
    .hero { padding: 40px 0; }
    .hero-image { margin-top: 30px; }
}

/* Hide hero metrics on small screens */
@media (max-width: 600px) {
    .hero-metric, .hero-metric-divider { display: none !important; }
}

/* Game watermark branding */
#game-watermark {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 16px;
    font-weight: 800;
    pointer-events: none;
    z-index: 60;
    opacity: 0.12;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.4px;
    text-transform: none;
}
#game-watermark .wm-main {
    color: var(--primary-color);
}
#game-watermark .wm-accent {
    color: var(--secondary-color);
    margin-left: 6px;
}

@media (max-width: 768px) {
    #game-watermark { font-size: 13px; top: 6px; left: 8px; }
}

/* Partners carousel */
.partners-carousel { width: 100%; }
.partners-track { display: flex; gap: 24px; align-items: center; width: max-content; animation: scrollPartners 18s linear infinite; }
.partner-item { flex: 0 0 auto; display:flex; align-items:center; justify-content:center; padding:8px 16px; border-radius:12px; background:var(--white); box-shadow:0 6px 20px rgba(0,0,0,0.04); }
.partner-item img { height:38px; display:block; }
.partner-text { font-weight:700; color:var(--text-dark); padding:6px 10px; font-size:14px; }
.partners-carousel:hover .partners-track, .partners-track:focus { animation-play-state: paused; }

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* small screen adjustments */
@media (max-width: 600px) {
    .partners-track { gap: 14px; animation-duration: 22s; }
    .partner-item img { height:28px; }
}

/* Mobile header adjustments: center and enlarge logo, position nav toggle */
@media (max-width: 600px) {
    .nav-wrapper { position: relative; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1010; }
    .logo { height: 70px; overflow: hidden; }
    .logo img { height: 100% !important; max-height: 70px; display: block; object-fit: contain; object-position: center top !important; }
    .nav-toggle { display: inline-flex; position: relative; z-index: 1020; }
    .nav-wrapper nav { display: none; position: absolute; right: 12px; top: 68px; background: var(--white); padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); flex-direction: column; min-width: 180px; }
    .nav-wrapper nav.open { display:flex; }
}

/* Reduce partner images to prevent visual overlap */
.partner-item img { height: 30px; }
@media (max-width: 600px) {
    .partner-item { padding: 16px 24px !important; }
    .partner-item img { height: 42px; }
    .partner-text { font-size: 16px; font-weight: 700; padding: 10px 14px; }
    
    /* Reduce spacing on mobile */
    #sobre, #parceiros, #depoimentos, #jogo { padding: 30px 0 !important; }
    .testimonials { gap: 12px !important; }
    .metric-card { min-width: 160px !important; padding: 14px !important; }
    .container-card { padding: 16px !important; }
}

/* Auth pages responsiveness (login, cadastro) */
.auth-container { 
    max-width: 450px; 
    margin: 60px auto; 
    padding: 40px; 
    background: var(--white); 
    border-radius: 20px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.auth-container h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-container p {
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-group input::placeholder {
    color: #c0c0c0;
}

.error {
    color: #c62828;
    background: #ffebee;
    margin-bottom: 20px;
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #c62828;
}

.success {
    color: #00897b;
    background: #e0f2f1;
    margin-bottom: 20px;
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #00897b;
    text-align: left;
}

@media (max-width: 768px) {
    .auth-container { 
        max-width: 95%; 
        margin: 40px auto; 
        padding: 30px 24px; 
    }
    
    .auth-container h2 { 
        font-size: 1.6rem; 
    }
}

@media (max-width: 600px) {
    .auth-container { 
        max-width: 100%; 
        margin: 20px auto; 
        padding: 24px 20px;
        border-radius: 15px;
    }
    
    .auth-container h2 { 
        font-size: 1.4rem; 
        margin-bottom: 6px;
    }
    
    .auth-container p {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px; /* Evita zoom em inputs no iOS */
    }
    
    .btn {
        font-size: 0.95rem;
    }
}

/* Formulario Header Component - Complete Styling */
.formulario-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 45px 0;
    color: white;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.15);
}

.formulario-header .container {
    padding: 0 20px;
}

.formulario-header h2 {
    color: white !important;
    margin: 0 0 10px 0 !important;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.formulario-header p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 !important;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.formulario-header p i {
    font-size: 1.2rem;
}

.formulario-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 25px;
}

.formulario-header-content > div:first-child {
    flex: 1;
    min-width: 250px;
}

.formulario-header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.formulario-header-buttons a {
    background: white;
    color: var(--primary-color);
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.formulario-header-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

.formulario-header-buttons a:active {
    transform: translateY(-1px);
}

.formulario-header-buttons a i {
    font-size: 0.9rem;
}

/* Mobile and Tablet Responsive */
@media (max-width: 1024px) {
    .formulario-header h2 {
        font-size: 1.9rem;
    }
    
    .formulario-header p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .formulario-header {
        padding: 35px 0;
        margin-bottom: 25px;
    }

    .formulario-header h2 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .formulario-header p {
        font-size: 0.95rem;
    }

    .formulario-header-content {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }

    .formulario-header-content > div:first-child {
        min-width: 100%;
    }

    .formulario-header-buttons {
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }

    .formulario-header-buttons a {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .formulario-header {
        padding: 30px 0;
        margin-bottom: 20px;
    }

    .formulario-header h2 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .formulario-header p {
        font-size: 0.9rem;
    }

    .formulario-header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .formulario-header-buttons a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* PERFIL AVATAR COMPONENT */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.profile-camera-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.profile-camera-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-camera-badge i {
    color: var(--primary-color);
    font-size: 14px;
}
/* ===========================================
   MOBILE-FIRST RESPONSIVE IMPROVEMENTS
   =========================================== */

/* Hero Small Section para Páginas Internas */
.hero-small {
    padding: 40px 0 !important;
}

.hero-small h1 {
    font-size: 1.8rem !important;
}

.hero-small p {
    font-size: 1rem !important;
}

/* Melhorias Mobile Geral (480px e menos) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .nav-wrapper {
        padding: 0;
    }

    .nav-wrapper nav {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-right: 10px;
    }

    .logo img {
        height: 40px !important;
        max-height: 40px;
    }

    /* Hero Section */
    .hero {
        padding: 40px 0;
        flex-direction: column;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 0.95rem !important;
        margin-bottom: 20px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image > div {
        height: 300px !important;
    }

    /* Buttons Mobile */
    .btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-cta {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Grid Responsivo */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Headers */
    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    /* Sections Padding */
    section {
        padding: 30px 0 !important;
    }

    /* Flex Items Mobile */
    [style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* Metrics & Cards */
    .metric-card {
        min-width: 150px !important;
        padding: 15px !important;
        font-size: 0.9rem !important;
    }

    .metric-card > div:first-child {
        font-size: 24px !important;
    }

    /* Testimonials */
    .testimonial-card {
        margin-bottom: 15px !important;
    }

    /* Gap Reduction */
    [style*="gap: 30px"] {
        gap: 15px !important;
    }

    [style*="gap: 20px"] {
        gap: 10px !important;
    }

    /* Footer */
    footer {
        padding: 30px 0 !important;
    }

    footer p {
        font-size: 0.85rem !important;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Lists */
    ul, ol {
        margin-left: 15px;
    }

    /* CTA Sections */
    [style*="text-align: center"] a.btn {
        margin: 0 auto 10px !important;
        max-width: 100%;
    }
}

/* Tablet (481px até 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 0 20px;
    }

    .nav-wrapper nav {
        gap: 12px;
    }

    .hero {
        flex-direction: column;
        padding: 60px 0;
    }

    .hero-image > div {
        height: 350px !important;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    h2 {
        font-size: 2rem;
    }

    [style*="grid-template-columns: repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    section {
        padding: 40px 0;
    }

    .metric-card {
        min-width: 160px;
        padding: 18px;
    }
}

/* Desktop (769px +) */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-wrapper nav {
        display: flex;
        gap: 25px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-image > div {
        height: 500px !important;
    }
}

/* Estilos para Links Ativos */
a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.9;
}

/* Melhor Acessibilidade Touch */
@media (hover: none) and (pointer: coarse) {
    button, a.btn, a {
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        padding: 14px 24px !important;
    }
}

/* Print Styles */
@media print {
    header, footer, .nav-toggle, .btn {
        display: none !important;
    }
}