/* ============================================
   BARBEARIA JS — Design System
   Theme: Dark Premium com Dourado
   ============================================ */

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

:root {
  /* === COLORS === */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-surface: #16161f;
  --bg-surface-elevated: #1c1c2e;
  --bg-surface-hover: #22223a;
  
  /* Gold / Accent */
  --accent-primary: #c9a84c;
  --accent-light: #f0d78c;
  --accent-dark: #9a7b2e;
  --accent-gradient: linear-gradient(135deg, #c9a84c 0%, #f0d78c 50%, #c9a84c 100%);
  --accent-gradient-hover: linear-gradient(135deg, #f0d78c 0%, #c9a84c 50%, #f0d78c 100%);
  --accent-glow: 0 0 20px rgba(201, 168, 76, 0.3);
  --accent-glow-strong: 0 0 40px rgba(201, 168, 76, 0.4);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;
  --text-accent: #f0d78c;
  --text-on-accent: #0a0a0f;
  
  /* Status */
  --status-success: #2ecc71;
  --status-success-bg: rgba(46, 204, 113, 0.12);
  --status-warning: #f39c12;
  --status-warning-bg: rgba(243, 156, 18, 0.12);
  --status-danger: #e74c3c;
  --status-danger-bg: rgba(231, 76, 60, 0.12);
  --status-info: #3498db;
  --status-info-bg: rgba(52, 152, 219, 0.12);
  
  /* Borders */
  --border-subtle: rgba(201, 168, 76, 0.1);
  --border-default: rgba(201, 168, 76, 0.2);
  --border-strong: rgba(201, 168, 76, 0.4);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* === TYPOGRAPHY === */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* === SPACING === */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* === SHADOWS === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);
  --shadow-gold-lg: 0 8px 40px rgba(201, 168, 76, 0.3);

  /* === GLASSMORPHISM === */
  --glass-bg: rgba(22, 22, 31, 0.7);
  --glass-bg-light: rgba(28, 28, 46, 0.6);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(201, 168, 76, 0.12);

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Z-INDEX === */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  border: none;
}

/* === FORM INPUT STYLING === */
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--text-tertiary) !important;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--accent-light) !important;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.25) !important;
}

input[type="time"].form-input,
input[type="date"].form-input {
  color-scheme: dark;
}

/* === UTILITY CLASSES === */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === GLASS CARD === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--status-danger);
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--status-success);
  color: white;
}

.btn-success:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--border-radius-lg);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === INPUTS === */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.input-field:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes progressFill {
  from { width: 0%; }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease both;
}

.animate-fade-in-down {
  animation: fadeInDown var(--transition-slow) ease both;
}

.animate-slide-in-right {
  animation: slideInRight var(--transition-slow) ease both;
}

.animate-scale-in {
  animation: scaleIn var(--transition-spring) both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger animation delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-hover);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* === RESPONSIVE BREAKPOINTS === */
/* Mobile: default (< 640px) */
/* Tablet: 640px+ */
/* Desktop: 1024px+ */
/* Wide: 1280px+ */
