/* ============================================ */
/* FITMETRICS BENEFITS SECTION - 4 CARDS VERSION */
/* ============================================ */

.wave-cream-transition {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.benefits-section {
  background: linear-gradient(135deg, #F5E6D3 0%, #E8D5B7 50%, #DCC9A8 100%);
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(139,111,71,0.05)"/></svg>');
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.benefits-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* SECTION HEADER */
/* ============================================ */

.benefits-header {
  text-align: center;
  margin-bottom: 80px;
}

.benefits-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #4A3C2A;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-subtitle {
  font-size: 1.25rem;
  color: #6B5744;
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================ */
/* BENEFITS GRID - 4 CARDS (2x2) */
/* ============================================ */

.benefits-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #FFFFFF;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
  border: 2px solid transparent;
  overflow: hidden;
  height: 450px;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6DE75D 0%, #8B6F47 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(139, 111, 71, 0.25);
  border-color: #6DE75D;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

/* ============================================ */
/* CARD IMAGE */
/* ============================================ */

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #E8D5B7;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .card-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(109, 231, 93, 0.1) 0%, rgba(139, 111, 71, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.benefit-card:hover .card-overlay {
  opacity: 1;
}

/* ============================================ */
/* CARD CONTENT */
/* ============================================ */

.card-content-wrapper {
  padding: 35px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2C2416;
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-description {
  font-size: 1.05rem;
  color: #6B5744;
  line-height: 1.6;
  margin: 0;
}

.card-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(109, 231, 93, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 1.6rem;
  color: #6DE75D;
  font-weight: 700;
}

.benefit-card:hover .card-arrow {
  background: #6DE75D;
  color: #FFFFFF;
  transform: translate(6px, -6px) rotate(45deg);
}

/* ============================================ */
/* SCROLL REVEAL ANIMATIONS */
/* ============================================ */

.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay for 4 cards */
.reveal-card[data-index="0"] { transition-delay: 0.1s; }
.reveal-card[data-index="1"] { transition-delay: 0.2s; }
.reveal-card[data-index="2"] { transition-delay: 0.3s; }
.reveal-card[data-index="3"] { transition-delay: 0.4s; }

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media screen and (max-width: 1200px) {
  .benefits-title {
    font-size: 3rem;
  }
  
  .benefits-grid-4 {
    gap: 35px;
  }
  
  .benefit-card {
    height: 420px;
  }
  
  .card-image-wrapper {
    height: 230px;
  }
}

@media screen and (max-width: 968px) {
  .benefits-section {
    padding: 80px 5%;
  }
  
  .benefits-header {
    margin-bottom: 60px;
  }
  
  .benefits-title {
    font-size: 2.5rem;
  }
  
  .benefits-subtitle {
    font-size: 1.1rem;
  }
  
  .benefits-grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
  }
  
  .benefit-card {
    height: 400px;
  }
}

@media screen and (max-width: 640px) {
  .benefits-section {
    padding: 60px 5%;
  }
  
  .benefits-header {
    margin-bottom: 50px;
  }
  
  .benefits-title {
    font-size: 2rem;
  }
  
  .benefits-subtitle {
    font-size: 1rem;
  }
  
  .benefits-grid-4 {
    gap: 25px;
  }
  
  .benefit-card {
    height: 380px;
  }
  
  .card-image-wrapper {
    height: 200px;
  }
  
  .card-content-wrapper {
    padding: 28px 24px;
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  .card-description {
    font-size: 0.95rem;
  }
  
  .card-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    bottom: 24px;
    right: 24px;
  }
}

@media screen and (max-width: 480px) {
  .benefits-section {
    padding: 50px 5%;
  }
  
  .benefits-title {
    font-size: 1.75rem;
  }
  
  .benefit-card {
    height: 360px;
  }
  
  .card-image-wrapper {
    height: 180px;
  }
  
  .card-content-wrapper {
    padding: 24px 20px;
  }
  
  .card-title {
    font-size: 1.35rem;
  }
}

/* ============================================ */
/* ACCESSIBILITY */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
  .benefit-card,
  .reveal-fade,
  .reveal-card {
    transition: none;
  }
  
  .benefit-card:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.benefit-card:focus {
  outline: 3px solid #6DE75D;
  outline-offset: 4px;
}

.benefit-card:focus-visible {
  outline: 3px solid #6DE75D;
  outline-offset: 4px;
}