/* =============================================================
   SECTION 5 — WHY CHOOSE OUR LAB
   All rules scoped under .why-choose-our-lab
   ============================================================= */

.why-choose-our-lab {
  --wcl-navy-900: #071B31;
  --wcl-navy-800: #0A2F52;
  --wcl-navy-700: #0F3D68;
  --wcl-teal-500: #14B8A6;
  --wcl-teal-300: #5EEAD4;
  --wcl-teal-050: #EEFBF9;
  --wcl-cyan-300: #67E8F9;
  --wcl-ink: #0A2F52;
  --wcl-ink-soft: #5B7186;
  --wcl-border: #E7EEF2;
  --wcl-white: #FFFFFF;
  --wcl-bg: #F5F8FA;
  --wcl-font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --wcl-font-body: 'Inter', sans-serif;

  position: relative;
  background: var(--wcl-bg);
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  font-family: var(--wcl-font-body);
}

/* ---------- Header ---------- */
.why-choose-our-lab-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
}

.why-choose-our-lab-header.is-visible {
  animation: why-choose-our-lab-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes why-choose-our-lab-rise {
  to { opacity: 1; transform: translateY(0); }
}

.why-choose-our-lab-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wcl-teal-500);
  margin-bottom: 0.85rem;
}

.why-choose-our-lab-title {
  font-family: var(--wcl-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: var(--wcl-ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.why-choose-our-lab-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wcl-ink-soft);
}

/* ---------- Large feature panel (left) ---------- */
.why-choose-our-lab-feature {
  position: relative;
  height: 100%;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1.4rem;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, var(--wcl-navy-900) 0%, var(--wcl-navy-800) 55%, var(--wcl-navy-700) 100%);
  opacity: 0;
  transform: translateY(24px);
}

.why-choose-our-lab-feature.is-visible {
  animation: why-choose-our-lab-panel-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes why-choose-our-lab-panel-rise {
  to { opacity: 1; transform: translateY(0); }
}

.why-choose-our-lab-feature-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 80% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 65% at 80% 10%, #000 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.why-choose-our-lab-feature-glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wcl-teal-500) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.why-choose-our-lab-feature-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(140deg, var(--wcl-teal-500), var(--wcl-cyan-300));
  color: var(--wcl-navy-900);
  font-size: 1.5rem;
}

.why-choose-our-lab-feature-title {
  position: relative;
  z-index: 1;
  font-family: var(--wcl-font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--wcl-white);
  margin-bottom: 0.85rem;
}

.why-choose-our-lab-feature-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 26rem;
  margin-bottom: 1.5rem;
}

.why-choose-our-lab-feature-line {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wcl-teal-500), var(--wcl-cyan-300));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-choose-our-lab-feature:hover .why-choose-our-lab-feature-line {
  width: 5rem;
}

/* ---------- Supporting cards (right) ---------- */
.why-choose-our-lab-card {
  position: relative;
  height: 100%;
  background: var(--wcl-white);
  border: 1px solid var(--wcl-border);
  border-radius: 1.1rem;
  padding: 1.6rem 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
}

.why-choose-our-lab-card.is-visible {
  animation: why-choose-our-lab-card-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes why-choose-our-lab-card-rise {
  to { opacity: 1; transform: translateY(0); }
}

.why-choose-our-lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -18px rgba(10, 47, 82, 0.24);
  border-color: rgba(20, 184, 166, 0.35);
}

.why-choose-our-lab-card-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--wcl-teal-050), #E3F6F4);
  color: var(--wcl-navy-800);
  font-size: 1.2rem;
}

.why-choose-our-lab-card-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: var(--wcl-teal-500);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-choose-our-lab-card:hover .why-choose-our-lab-card-icon {
  background: linear-gradient(150deg, var(--wcl-teal-500), #0EA5A0);
  color: var(--wcl-white);
}

.why-choose-our-lab-card:hover .why-choose-our-lab-card-icon::after {
  transform: translateX(-50%) scaleX(1);
}

.why-choose-our-lab-card-title {
  font-family: var(--wcl-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--wcl-ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.why-choose-our-lab-card-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--wcl-ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .why-choose-our-lab {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .why-choose-our-lab-feature {
    min-height: 16rem;
  }
}

@media (max-width: 575.98px) {
  .why-choose-our-lab-title {
    font-size: 1.7rem;
  }

  .why-choose-our-lab-feature {
    padding: 2.1rem 1.6rem;
  }

  .why-choose-our-lab-feature-title {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-choose-our-lab-header,
  .why-choose-our-lab-feature,
  .why-choose-our-lab-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .why-choose-our-lab-feature-line,
  .why-choose-our-lab-card-icon {
    transition: none !important;
  }

  .why-choose-our-lab-card-icon::after {
    transition: none !important;
  }
}