/* ==========================================================================
   WHY CHOOSE US STYLES — AURALIX MEDIA (PREMIUM REDESIGN)
   ========================================================================== */

.why-us-section {
  padding: 3.5rem 0 5rem 0; /* Reduced top padding */
  background-color: #FFF8F6; /* Premium warm peach background */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(17, 19, 24, 0.05);
  border-bottom: 1px solid rgba(17, 19, 24, 0.05);
}

/* Split transparent watermark text in the background */
.why-us-watermark-left,
.why-us-watermark-right {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 14vw;
  font-weight: 900;
  color: rgba(212, 58, 47, 0.022); /* Faint crimson watermark */
  letter-spacing: 0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.why-us-watermark-left {
  top: 45%;
  left: -2%;
  transform: translateY(-50%);
}

.why-us-watermark-right {
  top: 55%;
  right: -2%;
  transform: translateY(-50%);
}

/* Floating diamond on the left */
.floating-diamond {
  position: absolute;
  top: 25%;
  left: 8%;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(212, 58, 47, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

/* Floating dots block on the right */
.floating-dots {
  position: absolute;
  top: 22%;
  right: 8%;
  width: 36px;
  height: 60px;
  background-image: radial-gradient(rgba(212, 58, 47, 0.12) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
  z-index: 1;
}

/* Header elements precisely matching the screenshot */
.why-us-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: #555864;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-red, #D43A2F);
  border-radius: 50%;
  display: inline-block;
}

.why-us-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111318;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.why-us-subtitle {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #555864;
  line-height: 1.6;
  font-weight: 400;
}

/* 5-column grid for cards and connectors */
.why-us-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

/* Card base styling */
.why-us-step-card {
  background: #ffffff;
  border: 1px solid rgba(17, 19, 24, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem 2.2rem 2rem;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.015);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s ease, 
              border-color 0.3s ease;
}

/* Specific tilts for left and right cards (with .is-visible handling to prevent animation override) */
.step-left {
  transform: rotate(-4.5deg); /* Increased tilt */
}
.why-us-step-card.step-left.is-visible {
  transform: translateY(0) rotate(-4.5deg); /* Increased tilt */
}

.step-right {
  transform: rotate(4.5deg); /* Increased tilt */
}
.why-us-step-card.step-right.is-visible {
  transform: translateY(0) rotate(4.5deg); /* Increased tilt */
}

/* Hover effects: straighten back to 0deg and elevate */
.why-us-step-card.is-visible:hover {
  transform: translateY(-8px) rotate(0deg);
  border-color: rgba(212, 58, 47, 0.25);
  box-shadow: 0 20px 45px rgba(212, 58, 47, 0.06);
  z-index: 10;
}

.step-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.header-number-group {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-red, #D43A2F);
  line-height: 1;
}

.step-category-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-red, #D43A2F);
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111318;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* Small horizontal line below title matching screenshot */
.step-divider-line {
  width: 22px;
  height: 2px;
  background-color: var(--brand-red, #D43A2F);
  margin-bottom: 1.2rem;
}

.step-desc {
  font-size: 0.85rem;
  color: #555864;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Card footer details separating bullets */
.step-card-footer {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(17, 19, 24, 0.4);
  letter-spacing: 0.02em;
  border-top: 1px dashed rgba(17, 19, 24, 0.08);
  padding-top: 1rem;
  margin-top: auto;
  width: 100%;
}

/* Connector Arrow */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red, #D43A2F);
  font-size: 1.4rem;
  opacity: 0.6;
  padding: 0 0.5rem;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .why-us-steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-left, 
  .step-right {
    transform: none; /* Disable tilts on mobile */
  }

  .why-us-step-card:hover {
    transform: translateY(-8px);
  }

  .step-connector {
    transform: rotate(90deg); /* Point arrows down on mobile */
    padding: 0.5rem 0;
  }

  .floating-diamond, 
  .floating-dots,
  .why-us-watermark-text {
    display: none; /* Clean up backgrounds on mobile */
  }
}

@media (max-width: 576px) {
  .why-us-section {
    padding: 4rem 0;
  }

  .why-us-step-card {
    padding: 2rem 1.5rem 1.8rem 1.5rem;
    min-height: auto;
  }
  
  .step-number {
    font-size: 1.6rem;
  }
}
