/*
Theme Name: Hello Child Treinador David
Theme URI: https://treinadordavid.site
Description: Child theme LIMPO - TRD App System - WCAG 2.2 AAA Compliant
Author: Treinador David + Corporal Claude Code
Template: hello-elementor
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: hello-child-td
*/

/* =============================================================================
   SISTEMA GLOBAL DE CORES - WCAG AAA COMPLIANT
   Atualizado: 26 Dezembro 2025
   ============================================================================= */

:root {
    /* === CORES PRINCIPAIS (WCAG AAA - Contraste 7:1+) === */
    --td-blue: #004D73;           /* Links, CTAs - Contraste 8.5:1 */
    --td-blue-light: #0EA5E9;     /* Destaques visuais (nao para texto pequeno) */
    --td-text: #0F172A;           /* Texto principal - Contraste 16:1 */
    --td-white: #FFFFFF;          /* Fundo principal */
    --td-black: #0B1220;          /* Fundo escuro (header/footer) */
    
    /* === CORES AUXILIARES === */
    --td-bg-alt: #F8FAFC;         /* Fundo alternativo (secoes) */
    --td-gray: #64748b;           /* Texto secundario */
    --td-light-bg: #f8fafc;       /* Background claro */
    --td-border: #E2E8F0;         /* Bordas sutis */
    --td-text-muted: #475569;     /* Texto muted - Contraste 7:1 */
    
    /* === ESTADOS === */
    --td-blue-hover: #003D5C;     /* Blue hover (10% mais escuro) */
    --td-success: #166534;        /* Sucesso - AAA */
    --td-error: #991B1B;          /* Erro - AAA */
    
    /* === SOMBRAS === */
    --td-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --td-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --td-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   ACESSIBILIDADE - WCAG 2.2 COMPLIANT
   ============================================================================= */

/* Focus visible para navegacao por teclado (WCAG 2.4.11) */
:focus-visible {
    outline: 3px solid var(--td-blue);
    outline-offset: 2px;
}

/* Target size minimo 24x24px (WCAG 2.5.8) */
button, 
a, 
input[type="checkbox"],
input[type="radio"],
.btn-td {
    min-height: 24px;
    min-width: 24px;
}

/* Skip link para screen readers (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 1rem;
    background: var(--td-blue);
    color: var(--td-white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* Reduced motion para usuarios sensiveis (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--td-text);
    line-height: 1.7;
    font-size: 16px;
    background: var(--td-white);
}

/* =============================================================================
   TIPOGRAFIA
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--td-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--td-blue); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--td-blue); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--td-text);
}

/* =============================================================================
   LINKS - WCAG AAA
   ============================================================================= */

a {
    color: var(--td-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--td-blue-hover);
}

a:focus-visible {
    outline: 3px solid var(--td-blue);
    outline-offset: 2px;
}

/* =============================================================================
   BOTOES ESTILO TD
   ============================================================================= */

.btn-td,
.wp-block-button__link {
    display: inline-block;
    background: var(--td-blue);
    color: var(--td-white) !important;
    padding: 15px 40px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    min-height: 48px; /* Touch target WCAG */
}

.btn-td:hover,
.wp-block-button__link:hover {
    background: var(--td-blue-hover);
    transform: translateY(-3px);
    box-shadow: var(--td-shadow-lg);
    color: var(--td-white) !important;
}

.btn-td:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 3px solid var(--td-text);
    outline-offset: 2px;
}

.btn-td-outline {
    background: transparent;
    border: 3px solid var(--td-blue);
    color: var(--td-blue) !important;
}

.btn-td-outline:hover {
    background: var(--td-blue);
    color: var(--td-white) !important;
}

/* =============================================================================
   CONTAINER
   ============================================================================= */

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

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header-td {
    background: var(--td-black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--td-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo-td img {
    max-height: 50px;
    width: auto;
}

/* Esconder header padrao na homepage */
.home .site-header,
.home #site-header {
    display: none !important;
}

/* Esconder header em archives de exercicios/programas */
.post-type-archive-td_program .site-header,
.post-type-archive-exercise .site-header,
.tax-program_goal .site-header,
.tax-program_level .site-header,
.tax-program_equipment .site-header,
.tax-muscle_group .site-header {
    display: none !important;
}

/* =============================================================================
   NAVEGACAO
   ============================================================================= */

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

.nav-td a {
    color: var(--td-white);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    text-decoration: none;
}

.nav-td a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--td-blue-light);
    transition: width 0.3s ease;
}

.nav-td a:hover::after {
    width: 100%;
}

.nav-td a:focus-visible {
    outline: 2px solid var(--td-blue-light);
    outline-offset: 4px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--td-white);
    font-size: 1.5rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-td {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--td-black);
        transition: left 0.3s ease;
        padding: 20px;
    }

    .nav-td.active {
        left: 0;
    }

    .nav-td ul {
        flex-direction: column;
        gap: 20px;
    }
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer-td {
    background: var(--td-black);
    color: var(--td-white);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-widget h3 {
    color: var(--td-blue-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget a {
    color: var(--td-white);
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-widget a:hover {
    color: var(--td-blue-light);
}

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

.footer-signature {
    font-style: italic;
    color: var(--td-blue-light);
    font-size: 1.3rem;
    margin-top: 20px;
    font-family: 'Oswald', sans-serif;
}

/* =============================================================================
   WHATSAPP FLOAT BUTTON
   ============================================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--td-shadow-lg);
    z-index: 9998;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white !important;
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--td-text);
    outline-offset: 2px;
}

/* =============================================================================
   BACK TO TOP
   ============================================================================= */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--td-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.2s ease;
    border: none;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--td-blue-hover);
    transform: translateY(-5px);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--td-text);
    outline-offset: 2px;
}

/* =============================================================================
   ELEMENTOR COMPATIBILITY
   ============================================================================= */

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
    font-family: 'Oswald', sans-serif;
}

.elementor-widget-text-editor {
    font-family: 'Inter', sans-serif;
}

/* =============================================================================
   UTILITARIOS CSS
   ============================================================================= */

/* Backgrounds */
.bg-white { background-color: var(--td-white) !important; }
.bg-alt { background-color: var(--td-bg-alt) !important; }
.bg-blue { background-color: var(--td-blue) !important; }
.bg-dark { background-color: var(--td-black) !important; }

/* Text colors */
.text-blue { color: var(--td-blue) !important; }
.text-dark { color: var(--td-text) !important; }
.text-muted { color: var(--td-text-muted) !important; }
.text-white { color: var(--td-white) !important; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .container-td {
        padding: 0 15px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .whatsapp-float,
    .back-to-top,
    .site-header-td,
    .site-footer-td,
    .elementor-location-header,
    .elementor-location-footer,
    nav {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
        font-size: 12pt;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* =============================================================================
   FIM DO STYLE.CSS - TREINADORDAVID.SITE v2.0.0
   WCAG 2.2 AAA Compliant | GDPR/LGPD Compliant
   Atualizado: 26 Dezembro 2025 por Corporal Claude Code
   ============================================================================= */
