/* =========================
   SISTEMA DE DESIGN @styles
   HR Sistemas - 2026
   ========================= */

:root {
  /* Cores da Marca */
  --azul-escuro: #00478A;
  --azul-claro: #42BDFF;
  --azul-suave: #A2C8EB;
  --cinza: #7A7A7A;
  --branco: #FFFFFF;

  /* Cores de Interface */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-dark: #003366;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --accent: var(--azul-claro);

  /* Tipografia */
  --font-main: 'Arimo', sans-serif;
  --font-title: 'Arimo SemiBold', 'Arimo', sans-serif;

  /* Sombras e Efeitos */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--azul-escuro);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--azul-claro);
  color: var(--azul-escuro);
  box-shadow: 0 4px 14px 0 rgba(66, 189, 255, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 189, 255, 0.5);
  background-color: #35b3f5;
}

.btn-outline {
  border: 2px solid var(--azul-claro);
  color: var(--azul-escuro);
}

.btn-outline:hover {
  background-color: var(--azul-claro);
  color: var(--azul-escuro);
}

/* Efeitos Especiais e Animações */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Animação de Entrada (Fade Up) */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para Staggered Animations */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Pulse Animation para WhatsApp */
.whatsapp-pulse {
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Header Hide/Show logic */
header {
  transition: transform 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

header.hide {
  transform: translateY(-100%);
}

header.scrolled {
  background: var(--branco);
  box-shadow: var(--shadow-md);
}

/* Slider Grid (usado para planos no hr-web) */
.plan-slider {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 24px;
  margin-top: 48px;
  /* padding-top deixa espaço para o badge "Mais Popular" não ser cortado */
  padding: 24px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Quando os cards cabem na tela, centraliza */
.plan-slider.centered {
  justify-content: center;
  overflow-x: visible;
}

/* Esconde a scrollbar no Chrome/Safari mas mantém a funcionalidade */
.plan-slider::-webkit-scrollbar {
  height: 6px;
}
.plan-slider::-webkit-scrollbar-track {
  background: transparent;
}
.plan-slider::-webkit-scrollbar-thumb {
  background: var(--azul-suave);
  border-radius: 10px;
}

.plan-slider .premium-card {
  /* Largura fixa igual para todos no slider */
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 40px 32px;
}

/* Grid original (usado no index e contato) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card-grid.centered {
  justify-content: center;
}

.premium-card {
  background: var(--branco);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--azul-suave);
}

/* Responsividade Geral */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  padding: 56px;
  border-radius: 40px;
  max-width: 580px;
  width: 92%;
  position: relative;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 71, 138, 0.05);
  transform: translateY(30px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--azul-escuro);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: var(--azul-escuro);
  color: var(--branco);
  transform: rotate(90deg) scale(1.1);
}

.step-indicator {
  background: var(--azul-claro);
  color: var(--azul-escuro);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(66, 189, 255, 0.3);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 40px 24px;
    border-radius: 32px;
  }

  .modal-close {
    top: 20px;
    right: 20px;
  }
}