/*
Theme Name: XR Participações
Theme URI: https://xrparticipacao.lovable.app
Author: Awtech
Author URI: https://awtech.so/
Description: Tema institucional da XR Participações - Holding familiar de investimentos estratégicos. Compatível com Elementor.
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: xr-participacoes
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   DESIGN SYSTEM - XR Participações
   ============================================ */

:root {
  /* Core Colors (HSL) */
  --xr-background: hsl(220, 20%, 7%);
  --xr-foreground: hsl(40, 20%, 92%);
  --xr-card: hsl(220, 20%, 10%);
  --xr-card-foreground: hsl(40, 20%, 92%);
  --xr-primary: hsl(42, 75%, 55%);
  --xr-primary-foreground: hsl(220, 30%, 8%);
  --xr-secondary: hsl(220, 15%, 16%);
  --xr-secondary-foreground: hsl(40, 20%, 85%);
  --xr-muted: hsl(220, 15%, 14%);
  --xr-muted-foreground: hsl(220, 10%, 55%);
  --xr-border: hsl(220, 15%, 16%);
  --xr-accent: hsl(42, 75%, 55%);

  /* Gold palette */
  --xr-gold: hsl(42, 75%, 55%);
  --xr-gold-light: hsl(42, 65%, 68%);
  --xr-gold-dark: hsl(42, 60%, 42%);

  /* Navy palette */
  --xr-navy: hsl(220, 30%, 8%);
  --xr-navy-deep: hsl(220, 25%, 5%);
  --xr-navy-light: hsl(220, 20%, 14%);

  /* Radius */
  --xr-radius: 0.75rem;

  /* Shadows */
  --xr-shadow-gold: 0 4px 30px -4px hsla(42, 75%, 55%, 0.25);
  --xr-shadow-navy: 0 10px 40px -10px hsla(220, 30%, 8%, 0.6);
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--xr-border);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--xr-background);
  color: var(--xr-foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--xr-gold-light), var(--xr-gold), var(--xr-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */

.xr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.xr-section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .xr-section {
    padding: 8rem 0;
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

.xr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--xr-border);
  background: hsla(220, 15%, 16%, 0.5);
  color: var(--xr-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--xr-radius);
  background: var(--xr-primary);
  color: var(--xr-primary-foreground);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.xr-btn-primary:hover {
  box-shadow: var(--xr-shadow-gold);
  opacity: 0.9;
}

.xr-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--xr-radius);
  border: 1px solid var(--xr-border);
  color: var(--xr-foreground);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.xr-btn-outline:hover {
  border-color: hsla(42, 75%, 55%, 0.4);
  background: hsla(220, 15%, 16%, 0.5);
}

.xr-card {
  background: var(--xr-card);
  border: 1px solid var(--xr-border);
  border-radius: var(--xr-radius);
  padding: 2rem;
  transition: all 0.5s ease;
}

.xr-card:hover {
  border-color: hsla(42, 75%, 55%, 0.2);
}

.xr-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsla(42, 75%, 55%, 0.1);
  color: hsla(42, 75%, 55%, 0.8);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-glow {
  animation: glowPulse 4s ease-in-out infinite;
}

/* ============================================
   GRID HELPERS
   ============================================ */

.xr-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.xr-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .xr-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .xr-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-card { background-color: var(--xr-card); }
.bg-background { background-color: var(--xr-background); }
.text-primary { color: var(--xr-primary); }
.text-muted { color: var(--xr-muted-foreground); }
.text-foreground { color: var(--xr-foreground); }
