/*
Theme Name: CAVI Dashboard
Theme URI: https://cavi.com.br
Author: CAVI
Author URI: https://cavi.com.br
Description: Tema WordPress inspirado em aviação para Business Intelligence - Painel de Voo Gerencial™
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: cavi
*/

/* CAVI Design System - Aviation-Inspired Business Intelligence */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables - Core palette */
:root {
  /* Core palette - Deep Navy & Amber Gold */
  --background: hsl(222, 47%, 6%);
  --foreground: hsl(210, 40%, 98%);
  
  --card: hsl(222, 47%, 9%);
  --card-foreground: hsl(210, 40%, 98%);
  
  --popover: hsl(222, 47%, 9%);
  --popover-foreground: hsl(210, 40%, 98%);
  
  /* Navy Blue - Primary */
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(222, 47%, 6%);
  
  /* Amber Gold - Accent for highlights */
  --secondary: hsl(38, 92%, 50%);
  --secondary-foreground: hsl(222, 47%, 6%);
  
  --muted: hsl(222, 30%, 15%);
  --muted-foreground: hsl(215, 20%, 65%);
  
  --accent: hsl(38, 92%, 50%);
  --accent-foreground: hsl(222, 47%, 6%);
  
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(210, 40%, 98%);
  
  --border: hsl(222, 30%, 18%);
  --input: hsl(222, 30%, 18%);
  --ring: hsl(217, 91%, 60%);
  
  --radius: 0.75rem;
  
  /* Custom CAVI tokens */
  --cavi-navy: hsl(222, 47%, 11%);
  --cavi-navy-deep: hsl(222, 47%, 6%);
  --cavi-navy-light: hsl(217, 33%, 17%);
  --cavi-gold: hsl(38, 92%, 50%);
  --cavi-gold-light: hsl(43, 96%, 65%);
  --cavi-blue: hsl(217, 91%, 60%);
  --cavi-blue-light: hsl(210, 100%, 80%);
  --cavi-teal: hsl(180, 70%, 45%);
  --cavi-green: hsl(150, 80%, 45%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Utility Classes */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--cavi-gold) 0%, var(--cavi-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--cavi-blue) 0%, var(--cavi-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-grid-pattern {
  background-image: 
    linear-gradient(hsla(222, 30%, 18%, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsla(222, 30%, 18%, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.card-glass {
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, hsla(222, 47%, 11%, 0.8) 0%, hsla(222, 47%, 9%, 0.9) 100%);
  border: 1px solid hsla(222, 30%, 20%, 0.5);
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 0;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(222, 47%, 6%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(222, 30%, 18%, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsla(38, 92%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cavi-gold);
}

.site-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.main-navigation {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-navigation {
    display: flex;
  }
}

.main-navigation a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--foreground);
}

.header-cta {
  padding: 0.5rem 1rem;
  background: var(--cavi-gold);
  color: var(--cavi-navy-deep);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--cavi-gold-light);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(217, 33%, 17%, 0.5);
  border: 1px solid hsla(217, 91%, 60%, 0.3);
  margin-bottom: 2rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--cavi-gold);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--cavi-gold);
  color: var(--cavi-navy-deep);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--cavi-gold-light);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(0.25rem);
}

/* Section Styles */
.section {
  position: relative;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card-glass {
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, hsla(222, 47%, 11%, 0.8) 0%, hsla(222, 47%, 9%, 0.9) 100%);
  border: 1px solid hsla(222, 30%, 20%, 0.5);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .card-glass {
    padding: 3rem;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-md-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid hsla(222, 30%, 18%, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 4s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--cavi-blue);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--cavi-blue-light);
}

.btn-gold {
  background: var(--cavi-gold);
  color: var(--cavi-navy-deep);
}

.btn-gold:hover {
  background: var(--cavi-gold-light);
}

/* Content Areas */
.editable-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.editable-content p {
  margin-bottom: 1rem;
}

.editable-content strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Responsive Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

/* WordPress Specific */
.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-group {
  margin-bottom: 2rem;
}
