/* ===============================================
   HOMEPAGE STYLES - Teal Theme
   =============================================== */

/* Hero section */
.hero-main {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.08) 0%, rgba(19, 132, 150, 0.12) 100%);
  padding: 5rem 0 6rem 0;
  border-bottom: 2px solid rgba(23, 162, 184, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-main h1 {
  font-size: 3.75rem;
  font-weight: 800;
  color: #31343d;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-main h1 .highlight {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-main .lead {
  font-size: 1.35rem;
  color: #495057;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Feature cards */
.feature-card {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  padding: 2.5rem 2rem;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-radius: 0.75rem 0.75rem 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(23, 162, 184, 0.15);
  border-color: #17a2b8;
}

.feature-icon {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(19, 132, 150, 0.1) 100%);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

.feature-card:hover .feature-icon i {
  color: white !important;
}

.feature-icon i {
  font-size: 2.5rem !important;
  color: #17a2b8 !important;
  transition: color 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SAQ Logo specific styling */
.feature-icon.saq-logo-icon img {
  width: 35px;
  height: auto;
  filter: grayscale(100%) brightness(0) saturate(100%) invert(53%) sepia(94%) saturate(367%) hue-rotate(143deg) brightness(95%) contrast(89%);
  transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon.saq-logo-icon {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.feature-card:hover .feature-icon.saq-logo-icon img {
  filter: brightness(0) invert(1);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #31343d;
  margin-bottom: 1rem;
}

.feature-description {
  color: #6c757d;
  line-height: 1.7;
  font-size: 1rem;
}

/* CTA buttons */
.cta-buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.25);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.35);
  text-decoration: none;
}

.btn-hero-outline {
  border: 2px solid #17a2b8;
  color: #17a2b8;
  background: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hero-outline:hover {
  background: #17a2b8;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
  text-decoration: none;
}

/* Stats section */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  border-top: 2px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: #dee2e6;
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.stat-label {
  color: #6c757d;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* SAQ integration highlight */
.saq-highlight {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(19, 132, 150, 0.08) 100%);
  border: 2px solid rgba(23, 162, 184, 0.2);
  border-radius: 0.75rem;
  padding: 3rem;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.saq-highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: linear-gradient(90deg, #17a2b8 0%, #138496 50%, #17a2b8 100%);
}

.saq-highlight h3 {
  color: #31343d;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.saq-highlight p {
  color: #495057;
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* Hero illustration */
.hero-illustration {
  position: relative;
  z-index: 1;
}

.hero-icon-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(19, 132, 150, 0.15) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(23, 162, 184, 0.2);
  position: relative;
}

.hero-icon-wrapper::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border: 2px dashed rgba(23, 162, 184, 0.2);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-icon-wrapper i {
  font-size: 10rem !important;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-icon-wrapper img.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(53%) sepia(94%) saturate(367%) hue-rotate(143deg) brightness(95%) contrast(89%);
}

/* Section spacing */
.features-section {
  padding: 5rem 0;
}

.features-section h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #31343d;
  margin-bottom: 1rem;
}

.features-section .lead {
  font-size: 1.25rem;
  color: #6c757d;
}

/* Final CTA section */
.final-cta {
  padding: 4rem 0 5rem 0;
}

.final-cta h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #31343d;
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-icon-wrapper {
    width: 250px;
    height: 250px;
  }

  .hero-icon-wrapper::before {
    width: 300px;
    height: 300px;
  }

  .hero-icon-wrapper i {
    font-size: 8rem !important;
  }
}

@media (max-width: 768px) {
  .hero-main {
    padding: 3rem 0 4rem 0;
  }

  .hero-main h1 {
    font-size: 2.5rem;
  }

  .hero-main .lead {
    font-size: 1.15rem;
  }

  .cta-buttons {
    margin-top: 2rem;
    flex-direction: column;
  }

  .cta-buttons .btn-hero-primary,
  .cta-buttons .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    margin-bottom: 1.5rem;
  }

  .feature-card:hover {
    transform: translateY(-4px);
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-item::after {
    display: none;
  }

  .features-section h2 {
    font-size: 2rem;
  }

  .final-cta h3 {
    font-size: 1.85rem;
  }

  .saq-highlight {
    padding: 2rem 1.5rem;
  }

  .saq-highlight h3 {
    font-size: 1.5rem;
  }

  .saq-highlight p {
    font-size: 1rem;
  }

  .hero-icon-wrapper {
    width: 200px;
    height: 200px;
    margin-top: 2rem;
  }

  .hero-icon-wrapper::before {
    width: 240px;
    height: 240px;
  }

  .hero-icon-wrapper i {
    font-size: 6rem !important;
  }
}