/* 
   GTrack-On - Estilos Globais e Padronização
   Este arquivo centraliza as cores, fontes e resets para todo o site.
*/

:root {
    --gto-primary: #DC143C;
    --gto-secondary: #22C55E;
    --gto-dark: #1A1A1A;
    --gto-light: #FFFFFF;
    --gto-gray: #F5F5F5;
    --gto-text: #333333;
    --gto-border: #E0E0E0;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gto-text);
    background-color: var(--gto-light);
}

.gto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== GTO HEADER ===== */
.gto-header {
    background-color: var(--gto-light) !important;
    border-bottom: 1px solid var(--gto-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    width: 100% !important;
}

.gto-header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
}

.gto-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.gto-logo-img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
}

.gto-logo-text {
    display: flex !important;
    gap: 2px !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

.gto-logo-g { color: var(--gto-dark) !important; }
.gto-logo-track { color: var(--gto-primary) !important; }
.gto-logo-on { color: var(--gto-secondary) !important; }

.gto-nav {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
}

.gto-nav a {
    text-decoration: none !important;
    color: var(--gto-text) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
}

.gto-nav a:hover {
    color: var(--gto-primary) !important;
}

.gto-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    color: var(--gto-dark) !important;
}

/* ===== GTO FOOTER ===== */
.gto-footer {
    background-color: var(--gto-dark) !important;
    color: var(--gto-light) !important;
    padding: 60px 0 20px 0 !important;
    width: 100% !important;
    margin-top: 40px !important;
}

.gto-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

.gto-footer-section h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: var(--gto-secondary) !important;
    text-transform: uppercase !important;
}

.gto-footer-section p, 
.gto-footer-section a {
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    margin-bottom: 12px !important;
    display: block !important;
    line-height: 1.5 !important;
}

.gto-footer-section a:hover {
    color: var(--gto-primary) !important;
}

.gto-social-box {
    display: flex !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.gto-social-btn {
    width: 38px !important;
    height: 38px !important;
    background-color: #333 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
}

.gto-social-btn:hover {
    background-color: var(--gto-secondary) !important;
    transform: translateY(-3px) !important;
}

.gto-social-btn img {
    width: 18px !important;
    height: 18px !important;
}

.gto-footer-bottom {
    border-top: 1px solid #333 !important;
    padding-top: 25px !important;
    text-align: center !important;
    color: #888 !important;
    font-size: 0.85rem !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .gto-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .gto-menu-toggle { display: block !important; }
    .gto-nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 20px !important;
        border-bottom: 2px solid var(--gto-border) !important;
    }
    .gto-nav.active { display: flex !important; }
    .gto-footer-grid { grid-template-columns: 1fr !important; text-align: center !important; }
    .gto-social-box { justify-content: center !important; }
}

/* ===== GTO NEWSLETTER V3 ===== */
.gto-news-v3-box {
    background: #f9f9f9;
    border: 1px solid var(--gto-border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    box-sizing: border-box;
}

.gto-news-v3-title { color: var(--gto-dark); font-size: 22px; font-weight: 800; margin: 0 0 10px 0; }
.gto-news-v3-subtitle { color: #666; font-size: 15px; margin-bottom: 25px; display: block; }

.gto-news-v3-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.gto-news-v3-input { 
    flex: 1; min-width: 220px; padding: 14px 18px; border: 1px solid #ccc; 
    border-radius: 6px; font-size: 15px; outline: none; transition: 0.3s;
}
.gto-news-v3-input:focus { border-color: var(--gto-secondary); }
.gto-news-v3-btn { 
    background: var(--gto-secondary); color: white; border: none; padding: 14px 30px; 
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.gto-news-v3-btn:hover { background: #16a34a; }

.gto-news-v3-divider {
    height: 1px; background: #eee; margin: 30px 0; position: relative;
}
.gto-news-v3-divider::after {
    content: "OU"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #f9f9f9; padding: 0 15px; color: #999; font-size: 12px; font-weight: bold;
}
.gto-news-v3-cta-text { color: var(--gto-dark); font-size: 18px; font-weight: 700; margin-bottom: 20px; display: block; }
.gto-news-v3-cta-btn {
    display: inline-block; background: var(--gto-primary); color: white !important; text-decoration: none !important;
    padding: 16px 35px; border-radius: 6px; font-weight: 800; font-size: 16px; transition: 0.3s;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.2);
}
.gto-news-v3-cta-btn:hover { background: #b01030; transform: translateY(-2px); }

/* Pop-up de Sucesso */
#gto-success-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2147483647; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
#gto-success-overlay.active { display: flex; opacity: 1; }
.gto-success-modal {
    background: white; width: 90%; max-width: 450px; padding: 40px 30px;
    border-radius: 15px; position: relative; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: scale(0.8); transition: 0.3s ease;
}
#gto-success-overlay.active .gto-success-modal { transform: scale(1); }
.gto-success-close { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #999; cursor: pointer; }
.gto-success-icon { width: 60px; height: 60px; background: var(--gto-secondary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 30px; }
.gto-success-badge { background: var(--gto-primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.gto-success-title { color: #111; font-size: 24px; font-weight: 800; margin: 0 0 15px 0; }
.gto-success-cta { background: var(--gto-primary); color: white !important; padding: 18px; border-radius: 8px; font-weight: 800; display: block; text-decoration: none !important; }

/* ===== GTO POP-UP CONVERSÃO ===== */
#gto-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gto-popup-content {
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#gto-popup-overlay.active { display: flex; opacity: 1; }
#gto-popup-overlay.active #gto-popup-content { transform: scale(1); }

.gto-popup-badge {
    background: var(--gto-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gto-popup-title {
    color: var(--gto-dark);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.gto-popup-description {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.gto-popup-cta {
    background: var(--gto-secondary);
    color: white !important;
    text-decoration: none !important;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    display: block;
    transition: background 0.2s;
}

.gto-popup-cta:hover { background: #16a34a; }

.gto-popup-close-link {
    display: inline-block;
    margin-top: 20px;
    color: #9ca3af;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

.gto-popup-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}
