/* =============================================
   HOW IT WORKS SECTION - Modern Value Props
   ============================================== */

.how-it-works-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg,
    var(--neutral-50) 0%,
    rgba(255, 255, 255, 1) 100%);
  overflow: hidden;
}

/* Background decorative elements */
.how-it-works-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(21, 183, 159, 0.06) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.how-it-works-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
    rgba(99, 91, 255, 0.04) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.how-it-works-inner {
  position: relative;
  z-index: 2;
}

/* Section Header Wrapper - Flex container for title + buttons */
.how-it-works-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}

/* Section Header - Left side */
.how-it-works-header {
  text-align: left;
  max-width: 700px;
  flex: 1;
}

.how-it-works-subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kepple-700);
  background: linear-gradient(135deg,
    var(--kepple-100) 0%,
    var(--kepple-200) 100%);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--kepple-200);
}

.how-it-works-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--neutral-950);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.how-it-works-title .accent {
  background: linear-gradient(135deg,
    var(--kepple-700) 0%,
    var(--kepple-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.how-it-works-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0;
  text-align: left;
}

/* Value Props Grid */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* Individual Value Prop Card - Guesty Style with Disconnected Look */
.value-prop-card {
  position: relative;
  background: transparent; /* No background - disconnected look */
  min-height: 520px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 24px; /* Space between image and text */
}

/* Image container - rounded corners, looks separate from text */
.value-prop-image {
  position: relative;
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 20px; /* Rounded on all corners including bottom */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Background images for each card */
.value-prop-card:nth-child(1) .value-prop-image {
  background-image: url('../images/how-it-works/card1.svg');
  background-color: #f0f9f8; /* Fallback */
}

.value-prop-card:nth-child(2) .value-prop-image {
  background-image: url('../images/how-it-works/card2.svg');
  background-color: #a8dfd4; /* Fallback */
}

.value-prop-card:nth-child(3) .value-prop-image {
  background-image: url('../images/how-it-works/card3.svg');
  background-color: #f5f0ea; /* Fallback */
}

.value-prop-card:hover .value-prop-image {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Card Content - Transparent background, minimal padding */
.value-prop-content {
  padding: 0; /* No padding for maximum text space */
  background: transparent; /* Transparent - disconnected from image */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.value-prop-heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--neutral-950);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.value-prop-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--neutral-700);
  margin: 0;
}

/* CTA Section - Right side, aligned with main title (not badge) */
.how-it-works-cta {
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 56px; /* Align with h2 title, accounting for badge + spacing */
}

.how-it-works-cta .button-group {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Primary Button - EXACT copy from #theme-banner-four */
.how-it-works-cta .button-group .more-button {
  display: inline-block;
  width: 185px;
  line-height: 50px;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0px 10px 40px 0px rgba(16, 117, 105, 0.25);
  background: var(--kepple-gradient-primary);
  margin-right: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  text-decoration: none;
}

.how-it-works-cta .button-group .more-button::after {
  content: '→';
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.how-it-works-cta .button-group .more-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0px 15px 50px rgba(16, 117, 105, 0.35);
  color: #fff;
  text-decoration: none;
  padding-left: 10px;
  padding-right: 40px;
}

.how-it-works-cta .button-group .more-button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Secondary Button - video-button-one style */
.how-it-works-cta .button-group .video-button {
  line-height: 50px;
  color: var(--kepple-800);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  vertical-align: middle;
  border: 1px solid var(--kepple-800);
  border-radius: 6px;
  padding: 0 35px;
  display: inline-block;
  background: transparent;
}

.how-it-works-cta .button-group .video-button {
  text-align: center;
  position: relative;
}
.how-it-works-cta .button-group .video-button::after {
  content: '→';
  position: absolute;
  right: 25px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.how-it-works-cta .button-group .video-button:hover {
  transform: translateY(-2px);
  border-color: var(--kepple-700);
  text-decoration: none;
  padding-left: 20px;
  padding-right: 50px;
}
.how-it-works-cta .button-group .video-button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .how-it-works-section {
    padding: 90px 0;
  }

  .how-it-works-title {
    font-size: 42px;
  }

  .how-it-works-description {
    font-size: 18px;
  }

  .value-props-grid {
    gap: 30px;
  }

  .value-prop-card {
    padding: 40px 30px;
  }

  .value-prop-number {
    font-size: 60px;
    top: 24px;
    right: 28px;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 70px 0;
  }

  .how-it-works-header-wrapper {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }

  .how-it-works-header {
    max-width: 100%;
  }

  .how-it-works-cta {
    width: 100%;
    padding-top: 0;
  }

  .how-it-works-subtitle {
    font-size: 12px;
    padding: 6px 16px;
  }

  .how-it-works-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .how-it-works-description {
    font-size: 17px;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
    gap: 40px; /* Increase gap for better separation on mobile */
  }

  .value-prop-card {
    gap: 20px; /* Space between image and text on mobile */
  }

  .value-prop-image {
    height: 280px; /* Slightly smaller on mobile */
    border-radius: 16px;
  }

  .value-prop-heading {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .value-prop-text {
    font-size: 16px;
  }

  .how-it-works-cta .button-group {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }

  .how-it-works-cta .button-group li {
    width: 100%;
  }

  .how-it-works-cta .button-group .more-button,
  .how-it-works-cta .button-group .video-button {
    width: 100%;
    text-align: center;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .how-it-works-section {
    padding: 60px 0;
  }

  .how-it-works-title {
    font-size: 32px;
  }

  .how-it-works-description {
    font-size: 16px;
  }

  .value-prop-card {
    gap: 16px; /* Tighter gap on small screens */
  }

  .value-prop-image {
    height: 240px; /* Smaller image on tiny screens */
    border-radius: 14px;
  }

  .value-prop-heading {
    font-size: 22px;
  }

  .value-prop-text {
    font-size: 15px;
  }
}

/* Animation Classes (for wow.js integration) */
/* Removed visibility hidden to ensure cards are always visible */
.value-prop-card.wow {
  /* visibility: hidden; */
}

.value-prop-card.wow.animated {
  visibility: visible;
}

/* Floating animations removed - they were distracting */
/* Cards now have static position with only hover effects */

/* Staggered WOW animation delays */
.value-prop-card.wow {
  animation-delay: 0s !important; /* Override for WOW */
}

.value-prop-card:nth-child(1).wow {
  --wow-delay: 0.1s;
}

.value-prop-card:nth-child(2).wow {
  --wow-delay: 0.2s;
}

.value-prop-card:nth-child(3).wow {
  --wow-delay: 0.3s;
}
