/*
Theme Name: Hello Child Treinador David
Theme URI: https://treinadordavid.com
Description: Child theme para Treinador David - 30 anos experiência + USMC Sergeant
Author: Treinador David
Author URI: https://treinadordavid.site
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hello-child-td
*/

/* FONTES LOCAIS (GDPR Compliant) ✅ */
@import url('fonts/fonts.css');

/* SISTEMA DE CORES AAA (10 cores) */
:root {
  /* Brand Colors */
  --td-blue: #0EA5E9;           /* Azul Display */
  --td-blue-aa: #0369A1;        /* Azul Texto AA */
  --td-blue-aaa: #004D73;       /* Azul Texto AAA (ainda mais escuro) */
  --td-black: #0B1220;          /* Azul-Escuro */
  
  /* Text Colors */
  --td-text: #0F172A;           /* Texto Principal */
  --td-text-2: #475569;         /* Texto Secundário */
  
  /* Background Colors */
  --td-bg: #FFFFFF;             /* Branco */
  --td-bg-2: #F8FAFC;           /* Fundo Secundário */
  
  /* Action Colors */
  --td-cta-orange: #C2410C;     /* CTA Laranja */
  --td-success: #15803D;        /* Sucesso Verde */
  --td-error: #B91C1C;          /* Erro Vermelho */
  
  /* Legacy (manter compatibilidade) */
  --td-white: #FFFFFF;
  --td-gray: #64748b;
  --td-light-bg: #f8fafc;
}

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

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

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

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

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

/* LINKS */
a {
  color: var(--td-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* BOTÕES 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;
}

.btn-td:hover,
.wp-block-button__link:hover {
  background: var(--td-black);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.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 CUSTOMIZADO */
.site-header-td {
  background: var(--td-black);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.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;
}

/* NAVEGAÇÃO */
.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;
}

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

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

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--td-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@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);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

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

.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);
  font-size: 1.3rem;
  margin-top: 20px;
  font-family: 'Oswald', sans-serif;
}

/* ASSINATURA POSTS */
.post-signature-td {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 4px solid var(--td-blue);
  text-align: center;
}

.post-signature-td p {
  font-style: italic;
  color: var(--td-blue);
  font-size: 1.3rem;
  font-family: 'Oswald', sans-serif;
  margin: 0;
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 9998;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* 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.3s ease;
}

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

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

/* 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;
}

/* 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;
  }
}
