/**
 * Modern Design Enhancements
 * Retail Lease Trac - Homepage Improvements
 */

/* ================================
   CSS VARIABLES
   ================================ */
:root {
  /* Primary Colors */
  --primary: #248ccc;
  --primary-dark: #1a6ea0;
  --primary-light: #4ea8dc;
  --primary-subtle: #e8f4fb;

  /* Secondary/Accent Colors */
  --secondary: #ff6b6b;
  --secondary-dark: #e84545;

  /* Neutral Grays */
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-900: #212529;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #248ccc 0%, #1a6ea0 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --section-padding: 5rem;
  --card-padding: 2rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

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

/* Apply Inter font to everything */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Headings use Inter with tighter letter spacing */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Display headings get extra bold */
.display-1, .display-2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Lead text (larger body text) */
.lead {
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.125rem;
}

/* Bold text */
.fw-bold, strong {
  font-weight: 700;
}

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

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

/* Mobile base sizes (default) */
h1, .display-1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2, .display-2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.display-4 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.display-5 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* Tablet sizes (576px and up) */
@media (min-width: 576px) {
  h1, .display-1 { font-size: 2.5rem; }
  h2, .display-2 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 2rem; }
  h4 { font-size: 1.25rem; }
}

/* Desktop sizes (992px and up) */
@media (min-width: 992px) {
  h1, .display-1 { font-size: 3.5rem; }
  h2, .display-2 { font-size: 3.5rem; }
  .display-4 { font-size: 2.5rem; }
  .display-5 { font-size: 2.5rem; }
  h4 { font-size: 1.5rem; }
}

/* ================================
   TEXT IMPROVEMENTS
   ================================ */

/* Better paragraph spacing */
p {
  margin-bottom: 1rem;
}

.lead {
  margin-bottom: 1.5rem;
}

/* Section headings */
.section-heading {
  margin-bottom: 3rem;
}

/* Better text colors */
.text-muted {
  color: var(--gray-600) !important;
}

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

/* ================================
   CARD ENHANCEMENTS
   ================================ */

/* Shadow utility classes */
.depth-1 {
  box-shadow: var(--shadow-sm);
}

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

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

.depth-4 {
  box-shadow: var(--shadow-xl);
}

/* Enhanced card hover effects for ALL cards */
.card,
.border.shadow.rounded,
.bg-white.rounded.shadow-lg,
.p-4.border.shadow.rounded {
  transition: var(--transition-base);
  border-radius: var(--radius-md) !important;
}

.card:hover,
.border.shadow.rounded:hover,
.p-4.border.shadow.rounded:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl) !important;
}

/* Feature grid cards (6 white cards on blue background) */
.features-home-section .bg-white.rounded.shadow-lg {
  border-radius: var(--radius-lg) !important;
  transition: var(--transition-base);
}

.features-home-section .bg-white.rounded.shadow-lg:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(36, 140, 204, 0.2) !important;
}

/* ================================
   BUTTON ENHANCEMENTS
   ================================ */

/* Primary buttons (Get Started, etc.) */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 16px rgba(36, 140, 204, 0.3) !important;
  transition: var(--transition-base) !important;
  position: relative;
  overflow: hidden;
  color: white !important;
}

/* Hover effect - lift up */
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px rgba(36, 140, 204, 0.4) !important;
  color: white !important;
}

/* Active/click effect */
.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 6px 12px rgba(36, 140, 204, 0.3) !important;
}

/* Outline primary buttons (like "Get Started Free" on other pages) */
.btn-outline-primary {
  background: white !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  border-radius: 8px !important;
  transition: var(--transition-base) !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(36, 140, 204, 0.2);
}

/* Secondary buttons (See Demo, etc.) */
.btn-secondary {
  background: white !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  padding: 0.875rem 1.75rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  transition: var(--transition-base) !important;
}

.btn-secondary:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(36, 140, 204, 0.2);
}

/* Make all buttons smoother */
.btn {
  transition: var(--transition-base);
}
