/* ============================================ */
/* JOIN FITMETRICS SECTION - PROFESSIONAL CTA */
/* Premium Call-to-Action with Floating Elements */
/* ============================================ */

/* ============================================ */
/* MAIN SECTION */
/* ============================================ */

.join-section {
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b7 50%, #dcc9a8 100%);
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

/* Background Decorative Circles */
.join-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(109, 231, 93, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.join-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 111, 71, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

/* ============================================ */
/* CONTAINER & CARD */
/* ============================================ */

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

.join-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(139, 111, 71, 0.15),
    0 0 0 1px rgba(139, 111, 71, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.join-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(109, 231, 93, 0.02) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* ============================================ */
/* LEFT CONTENT */
/* ============================================ */

.join-content {
  position: relative;
  z-index: 2;
}

/* Badge */
.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6de75d 0%, #5bc44d 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(109, 231, 93, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

.badge-icon {
  font-size: 1.1rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(109, 231, 93, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(109, 231, 93, 0.4);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-15deg) scale(1.1);
  }
  75% {
    transform: rotate(15deg) scale(1.1);
  }
}

/* Title */
.join-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c2416;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.join-title .highlight {
  background: linear-gradient(135deg, #6de75d 0%, #5bc44d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Description */
.join-description {
  font-size: 1.25rem;
  color: #6b5744;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.join-description strong {
  color: #2c2416;
  font-weight: 700;
}

/* Features List */
.join-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #4a3c2a;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(109, 231, 93, 0.1) 0%,
    rgba(109, 231, 93, 0.05) 100%
  );
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
}

.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, #6de75d 0%, #5bc44d 100%);
  transform: scale(1.1) rotate(5deg);
}

/* CTA Buttons */
.join-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #6de75d 0%, #5bc44d 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(109, 231, 93, 0.35);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(109, 231, 93, 0.5);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(6px);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: #6b5744;
  border: 2px solid #dcc9a8;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #6de75d;
  color: #ffffff;
  border-color: #6de75d;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(109, 231, 93, 0.25);
}

.btn-secondary:active {
  transform: translateY(-2px);
}

/* ============================================ */
/* RIGHT VISUAL */
/* ============================================ */

.join-visual {
  position: relative;
  height: 600px;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(109, 231, 93, 0.15));
  animation: float-image 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float-image {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Floating Stat Cards */
.floating-element {
  position: absolute;
  animation: float-card 4s ease-in-out infinite;
  z-index: 3;
}

.floating-element.element-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.floating-element.element-2 {
  top: 50%;
  right: -10%;
  animation-delay: 1s;
}

.floating-element.element-3 {
  bottom: 15%;
  left: 5%;
  animation-delay: 2s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.stat-card {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(139, 111, 71, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
  transition: all 0.3s ease;
  border: 2px solid rgba(109, 231, 93, 0.2);
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(109, 231, 93, 0.25);
  border-color: #6de75d;
}

.stat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(109, 231, 93, 0.1) 0%,
    rgba(109, 231, 93, 0.05) 100%
  );
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #725e3b;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #8b6f47;
  font-weight: 500;
}

/* ============================================ */
/* SCROLL REVEAL ANIMATION */
/* ============================================ */

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

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

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

@media screen and (max-width: 1200px) {
  .join-card {
    padding: 60px;
    gap: 60px;
  }

  .join-title {
    font-size: 3rem;
  }

  .join-visual {
    height: 500px;
  }

  .join-image {
    max-width: 380px;
  }
}

@media screen and (max-width: 968px) {
  .join-section {
    padding: 80px 5%;
  }

  .join-card {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 40px;
  }

  .join-title {
    font-size: 2.5rem;
  }

  .join-description {
    font-size: 1.1rem;
  }

  .join-visual {
    height: 400px;
    order: -1;
  }

  .join-image {
    max-width: 320px;
  }

  .floating-element.element-1 {
    top: 5%;
    left: 0%;
  }

  .floating-element.element-2 {
    top: 45%;
    right: -5%;
  }

  .floating-element.element-3 {
    bottom: 10%;
    left: 0%;
  }

  .stat-card {
    min-width: 180px;
    padding: 16px 20px;
  }

  .stat-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
  }

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

@media screen and (max-width: 640px) {
  .join-section {
    padding: 60px 4%;
  }

  .join-card {
    padding: 40px 28px;
    border-radius: 24px;
  }

  .join-title {
    font-size: 2rem;
  }

  .join-description {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .join-features {
    gap: 12px;
    margin-bottom: 32px;
  }

  .feature-item {
    font-size: 0.95rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .join-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
  }

  .join-visual {
    display: none;
  }

  .floating-element {
    display: none;
  }

  .visual-wrapper {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .join-title {
    font-size: 1.75rem;
  }

  .join-badge {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

  .join-image {
    max-width: 240px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .join-section::before,
  .join-section::after,
  .join-image,
  .floating-element,
  .badge-icon {
    animation: none !important;
  }

  .join-card,
  .btn-primary,
  .btn-secondary,
  .feature-item,
  .stat-card {
    transition: none !important;
  }
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid #6de75d;
  outline-offset: 4px;
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */

@media print {
  .join-section::before,
  .join-section::after,
  .floating-element {
    display: none;
  }

  .join-card {
    box-shadow: none;
    border: 1px solid #dcc9a8;
  }
}
