/**
 * Design Tokens & Visual Refresh System
 * Project: BYD Bipo Yasmin Retouch & Companion Plugin
 * Typography: Plus Jakarta Sans (Headings) + Inter (Body)
 * WCAG AA & AAA Compliant Color Architecture
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Core Brand Colors */
  --brand-primary: #e52535;
  --brand-primary-hover: #c81e2e;
  --brand-primary-rgb: 229, 37, 53;
  --brand-secondary: #0f172a;
  --brand-accent: #06b6d4;
  --brand-accent-amber: #f59e0b;
  --brand-green-whatsapp: #22c55e;
  --brand-green-hover: #16a34a;

  /* Surfaces & Backgrounds */
  --brand-surface: #f8fafc;
  --brand-surface-card: #ffffff;
  --brand-surface-dark: #0b0f19;
  --brand-surface-dark-card: #131b2e;
  --brand-surface-dark-elevated: #1e293b;

  /* Typography Colors (WCAG AA & AAA Verified) */
  --brand-text-dark: #0f172a;        /* Contrast: 14.2:1 against #ffffff (AAA) */
  --brand-text-muted: #64748b;       /* Contrast: 4.6:1 against #ffffff (AA) */
  --brand-text-light: #ffffff;       /* Contrast: 17.5:1 against #0b0f19 (AAA) */
  --brand-text-light-muted: #94a3b8; /* Contrast: 7.2:1 against #0b0f19 (AAA) */

  /* Borders & Dividers */
  --brand-border: #e2e8f0;
  --brand-border-dark: rgba(255, 255, 255, 0.12);
  --brand-border-dark-hover: rgba(255, 255, 255, 0.25);

  /* Typography Families */
  --brand-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radii */
  --brand-radius-xs: 6px;
  --brand-radius-sm: 10px;
  --brand-radius-md: 16px;
  --brand-radius-lg: 24px;
  --brand-radius-xl: 32px;
  --brand-radius-full: 9999px;

  /* Elevation & Shadows */
  --brand-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --brand-shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --brand-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --brand-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --brand-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --brand-shadow-glow: 0 10px 30px -5px rgba(229, 37, 53, 0.35);
  --brand-shadow-glow-cyan: 0 10px 30px -5px rgba(6, 182, 212, 0.35);
  --brand-shadow-glow-wa: 0 10px 30px -5px rgba(34, 197, 94, 0.4);

  /* Smooth Transitions */
  --brand-transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --brand-transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --brand-transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Utility Classes for Custom Components */
.byd-elementor-container {
  font-family: var(--brand-font-body);
  color: var(--brand-text-dark);
  box-sizing: border-box;
}

.byd-elementor-container * {
  box-sizing: border-box;
}

.byd-font-heading {
  font-family: var(--brand-font-heading);
  letter-spacing: -0.02em;
}

.byd-font-body {
  font-family: var(--brand-font-body);
}

.byd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--brand-primary);
  color: #ffffff !important;
  font-family: var(--brand-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--brand-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--brand-transition-fast), background-color var(--brand-transition-fast), box-shadow var(--brand-transition-fast);
  box-shadow: var(--brand-shadow-glow);
}

.byd-btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(229, 37, 53, 0.45);
}

.byd-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-family: var(--brand-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--brand-radius-sm);
  border: 1px solid var(--brand-border-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--brand-transition-fast), background-color var(--brand-transition-fast), border-color var(--brand-transition-fast);
}

.byd-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
