/* 
 * Financing Page Styles 
 * Clean, Light, Professional Contractor Design
 */

/* Base resets & layout */
.fin-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
  color: #1F2937;
  position: relative;
}

.fin-section.bg-light {
  background-color: #F9FAFB;
}

/* Hero Section */
.fin-hero {
  position: relative;
  padding: 6rem 0;
  background: 
    linear-gradient(rgba(28, 18, 8, 0.75), rgba(28, 18, 8, 0.75)),
    url('https://res.cloudinary.com/diptffkzh/image/upload/v1775653421/Empty-car-business-warehouse-floor_tfzox0.jpg') center/cover no-repeat;
  text-align: center;
  color: #FFFFFF;
}

.fin-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.fin-hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: var(--color-cta, #FF6B35);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.fin-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.fin-hero p {
  font-size: 1.125rem;
  color: #E5E7EB;
  line-height: 1.6;
}

/* Plans Section */
.fin-plans-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.fin-plans-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #111827;
  margin-bottom: 1rem;
}

.fin-plans-header p {
  color: #4B5563;
  font-size: 1.125rem;
}

.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.fin-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.fin-card.highlight {
  border: 2px solid var(--color-cta, #FF6B35);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.fin-card.highlight::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-cta, #FF6B35);
  color: #FFFFFF;
  padding: 0.25rem 1rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fin-plan-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.fin-plan-desc {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  min-height: 48px;
}

.fin-plan-apr {
  font-size: 0.875rem;
  color: var(--color-cta, #FF6B35);
  font-weight: 700;
  margin-bottom: 1rem;
}

.fin-plan-divider {
  height: 1px;
  background: #E5E7EB;
  margin-bottom: 1rem;
}

.fin-examples-title {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.fin-examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fin-examples-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #E5E7EB;
  color: #4B5563;
  font-size: 0.9rem;
}

.fin-examples-list li:last-child {
  border-bottom: none;
}

.fin-examples-list li strong {
  color: #111827;
  font-weight: 700;
}

.fin-actions {
  text-align: center;
  margin-top: 2rem;
}

.fin-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--color-cta, #FF6B35) 0%, var(--color-primary, #B84500) 100%);
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(255, 107, 53, 0.3), 0 2px 4px -1px rgba(255, 107, 53, 0.2);
}

.fin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.4), 0 4px 6px -2px rgba(255, 107, 53, 0.2);
  filter: brightness(1.1);
}

.fin-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  color: #111827;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fin-btn-secondary:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fin-disclaimer {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.5;
}

/* Benefits Section */
.fin-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.fin-benefit-item {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  text-align: left;
}

.fin-benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-cta, #FF6B35);
}

.fin-benefit-title {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.fin-benefit-text {
  color: #4B5563;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* CTA Section */
.fin-cta-section {
  padding: 5rem 0;
  background-color: var(--color-navy, #1C1208);
  text-align: center;
}

.fin-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.fin-cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.fin-cta-text {
  font-size: 1.125rem;
  color: #D1D5DB;
  margin-bottom: 2rem;
}

.fin-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.fin-cta-actions .btn-white {
  background: var(--color-cta, #FF6B35);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-cta, #FF6B35);
  transition: all 0.2s ease;
}

.fin-cta-actions .btn-white:hover {
  background: var(--color-primary, #B84500);
  border-color: var(--color-primary, #B84500);
}

.fin-cta-actions .btn-outline {
  background: transparent;
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #6B7280;
  transition: all 0.2s ease;
}

.fin-cta-actions .btn-outline:hover {
  border-color: #D1D5DB;
  background: rgba(255, 255, 255, 0.05);
}

/* Utilities */
.fin-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Split Layout for Homepage */
.fin-desktop-split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.fin-split-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fin-split-header {
  margin-bottom: 2rem;
}

.fin-split-header .fin-hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.fin-split-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 800;
}

.fin-split-header p {
  font-size: 1.125rem;
  color: #4B5563;
  line-height: 1.6;
}

.fin-split-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.fin-split-actions a {
  width: auto;
  padding: 0.875rem 1.5rem;
  flex: 0 1 auto;
}

.fin-split-disclaimer {
  text-align: left;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .desktop-disclaimer { display: none !important; }
}

@media (min-width: 1024px) {
  .mobile-disclaimer { display: none !important; }
}

@media (min-width: 1024px) {
  .fin-desktop-split {
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
  }
  .fin-split-left {
    flex: 0 0 40%;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
  .fin-split-right {
    flex: 1;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .fin-section { padding: 2rem 0; }
  .fin-hero { padding: 2.5rem 0; }
  .fin-cta-section { padding: 2.5rem 0; }
  
  .fin-split-header { text-align: center; margin-bottom: 1.5rem; }
  .fin-split-header h2 { font-size: 1.75rem !important; }
  .fin-split-header p { font-size: 1rem; }
  
  /* Horizontal scroll for cards */
  .fin-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem; /* Break out of container padding */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .fin-card { 
    padding: 1.25rem 1rem; 
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: center;
  }
  
  .fin-card.highlight::before {
    display: none;
  }
  
  .fin-plan-title { font-size: 1.5rem; }
  .fin-plan-apr { margin-bottom: 0.75rem; font-size: 0.8rem; }
  
  .fin-cta-actions { flex-direction: column; }
  .fin-examples-list li { font-size: 0.85rem; padding: 0.35rem 0; }
  
  .fin-btn-primary, .fin-btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .fin-desktop-split { gap: 1.5rem; }
  .fin-split-actions { flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
  .fin-split-actions a { width: 100%; text-align: center; justify-content: center; }
  
  .mobile-disclaimer { margin-top: 1rem !important; padding-top: 0; font-size: 0.7rem; }
}
