/* 
 * Action Offers Section Styles for Jan Gessenhardt Website
 * Enhanced for conversion optimization and visual appeal
 */

:root {
  --primary-color: #1A365D;     /* Deep blue */
  --secondary-color: #3182CE;   /* Medium blue */
  --accent-color: #D69E2E;      /* Gold */
  --text-dark: #2D3748;         /* Dark gray for text */
  --text-light: #FFFFFF;        /* White for text on dark backgrounds */
  --background-light: #FFFFFF;  /* White background */
  --background-gray: #F7FAFC;   /* Light gray background */
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-standard: all 0.3s ease-in-out;
}

/* Action Offers Section */
.action-offers {
  padding: 100px 0;
  background-color: var(--background-gray);
  position: relative;
  overflow: hidden;
}

.action-offers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(26, 54, 93, 0.02) 100%);
  z-index: 1;
}

.action-offers .container {
  position: relative;
  z-index: 2;
}

.action-offers .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.offer-card {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-standard);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.offer-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.offer-icon i {
  font-size: 28px;
  color: var(--primary-color);
}

.offer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.offer-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 30px;
  flex-grow: 1;
}

.offer-tag {
  display: inline-block;
  background-color: rgba(214, 158, 46, 0.15);
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  margin-bottom: 25px;
}

.offer-card .cta-button {
  align-self: flex-start;
}

/* Animation for offer cards */
.offer-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.offer-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.offer-card:nth-child(1) { transition-delay: 0.1s; }
.offer-card:nth-child(2) { transition-delay: 0.2s; }
.offer-card:nth-child(3) { transition-delay: 0.3s; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .offer-card {
    padding: 30px 20px;
  }
  
  .offer-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 992px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .action-offers {
    padding: 80px 0;
  }
  
  .offers-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .offer-card {
    padding: 30px 25px;
  }
}

@media (max-width: 576px) {
  .action-offers {
    padding: 60px 0;
  }
  
  .offer-icon {
    width: 60px;
    height: 60px;
  }
  
  .offer-icon i {
    font-size: 24px;
  }
  
  .offer-card h3 {
    font-size: 1.25rem;
  }
  
  .offer-card p {
    font-size: 0.9rem;
  }
  
  .offer-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* High-contrast mode for accessibility */
@media (prefers-contrast: high) {
  .offer-card {
    border: 1px solid #000;
  }
  
  .offer-icon {
    background-color: #000;
  }
  
  .offer-icon i {
    color: #fff;
  }
  
  .offer-tag {
    background-color: #000;
    color: #fff;
  }
}
