/*
Theme Name: TOTVS Template Theme
Theme URI: https://www.totvs.com
Author: Antigravity AI
Author URI: https://google.github.io
Description: Tema clássico WordPress de alta fidelidade e responsividade baseado no template do site principal da TOTVS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: totvs-theme
Tags: custom-menu, translation-ready, sticky-post, theme-options, full-width-template
*/

/* ==========================================
   Estilos Globais, Fontes, Variáveis e Resets
   ========================================== */

/* Import google font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --font-primary: 'Inter', sans-serif;
  --font-header: 'Outfit', sans-serif;

  /* Color Palette */
  --color-navy: #002233;
  --color-navy-dark: #00121d;
  --color-primary: #00dbff;
  --color-secondary: #00c9eb;
  --color-primary-dark: #00a3be;
  --color-purple: #a44dff;
  --color-purple-dark: #6832a1;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray: #d6d6d6;
  --color-text-dark: #212529;
  --color-text-muted: #6c757d;

  /* Spacing */
  --transition-speed: 0.3s;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --max-width-container: 1140px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-speed) ease;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-purple { color: var(--color-purple); }
.font-weight-bold { font-weight: 700; }
.font-weight-semibold { font-weight: 600; }
.text-uppercase { text-transform: uppercase; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

.btn-lg {
  padding: 0.8rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 4px;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

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

.btn-blue:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 219, 255, 0.4);
}

.btn-white-outline {
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.btn-white-outline:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

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

.btn-outline-purple:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(164, 77, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 219, 255, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 219, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 219, 255, 0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive Grid Helper */
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }
}
