/* ============================================
   VIRIO LIFT TYPOGRAPHY SYSTEM
   Plus Jakarta Sans + Lora
   ============================================ */

/* Google Fonts Import */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --color-background: #F7F8FA;
  --color-background-alt: #F5F6F8;
  --color-surface: #FFFFFF;
  --color-border: #E5E7EB;
  --color-border-secondary: #D1D5DB;
  --color-border-subtle: #F3F4F6;
  --color-text-primary: #1F2937;
  --color-text-secondary: #374151;
  --color-text-tertiary: #4B5563;
  --color-text-muted: #6B7280;
  --color-text-disabled: #9CA3AF;
  --color-brand-primary: #3B82F6;
  --color-brand-hover: #2563EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.08);
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 18px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 44px;
  --text-5xl: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADINGS
   ============================================ */

h1, .h1 {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 200;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h5, .h5 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h6, .h6 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* ============================================
   BODY TEXT
   ============================================ */

p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-tertiary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.text-sans {
  font-family: var(--font-sans);
}

.text-serif {
  font-family: var(--font-serif);
}

/* Small text */

small, .text-small {
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav a, .nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover, .nav-link:hover {
  color: var(--color-text-primary);
}

nav a.active, .nav-link.active {
  color: var(--color-brand-primary);
  font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-border-secondary);
  background-color: var(--color-background);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border: none;
  padding: 8px 16px;
}

.btn-ghost:hover {
  background-color: var(--color-background);
  color: var(--color-text-primary);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-primary {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-success {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-warning {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge-neutral {
  background-color: var(--color-border-subtle);
  color: var(--color-text-muted);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.card-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.card-footer {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

/* ============================================
   TABLES
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}

thead th {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  text-align: left;
  padding: 12px 8px;
  border-bottom: 2px solid var(--color-border);
}

tbody td {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 16px 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}

tbody tr:hover {
  background-color: var(--color-background);
}

/* Table cell variants */

.table-cell-bold {
  font-weight: 800;
}

.table-cell-medium {
  font-weight: 500;
}

.table-cell-muted {
  color: var(--color-text-muted);
}

/* ============================================
   FORMS
   ============================================ */

label, .form-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], select, textarea, .form-control {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  padding: 12px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
  font-family: var(--font-serif);
  line-height: 1.6;
  resize: vertical;
}

::placeholder {
  color: var(--color-text-disabled);
  font-weight: 400;
}

.form-help {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-error {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #DC2626;
  margin-top: 6px;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.modal-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.modal-body {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-tertiary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  font-style: italic;
}

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

/* Font Weights */

.font-extralight {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

/* Text Sizes */

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.text-5xl {
  font-size: var(--text-5xl);
}

/* Text Colors */

.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

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

.text-muted {
  color: var(--color-text-muted);
}

.text-brand {
  color: var(--color-brand-primary);
}

/* Background Colors */

.bg-surface {
  background-color: var(--color-surface);
}

.bg-background {
  background-color: var(--color-background);
}

.bg-brand {
  background-color: var(--color-brand-primary);
}

/* Borders */

.border {
  border: 1px solid var(--color-border);
}

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

.border-secondary {
  border: 1px solid var(--color-border-secondary);
}

/* Border Radius */

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

/* Shadows */

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Text Transform */

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.lowercase {
  text-transform: lowercase;
}

/* Letter Spacing */

.tracking-tight {
  letter-spacing: -0.02em;
}

.tracking-normal {
  letter-spacing: 0;
}

.tracking-wide {
  letter-spacing: 0.5px;
}

/* Line Height */

.leading-tight {
  line-height: 1.1;
}

.leading-snug {
  line-height: 1.3;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  :root {
    --text-5xl: 48px;
    --text-4xl: 36px;
    --text-3xl: 24px;
  }
}

@media (max-width: 768px) {
  h1, .h1 {
    font-size: var(--text-5xl);
  }
}

@media (max-width: 768px) {
  h2, .h2 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 768px) {
  h3, .h3 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 24px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles */

a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.bg-success {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important;
  color: #d1fae5;
}

.bg-warning {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important;
  color: var(--bs-highlight-bg);
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important;
  color: #e2eeff;
}

.btn-group-sm > .btn, .btn-sm {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.575rem;
  --bs-btn-border-radius: var(--bs-border-radius-sm);
}

