/* ==========================================================================
   TrynixTech — "Why Choose Us" Section
   ElevenLabs-Style Minimalist Editorial Cards Following Reference Screenshot
   (Typography: Satoshi, Pure CSS Gradients, Film Grain Noise, Topographic Contours)
   ========================================================================== */

.trynix-why-choose-section {
  position: relative;
  background-color: #ffffff;
  padding: 105px 0 125px;
  overflow: hidden;
  scroll-margin-top: 90px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.why-choose-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   1. Section Header: Title on Left + Pill Action Button on Right
   -------------------------------------------------------------------------- */
.why-choose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.why-choose-title {
  font-family: 'SatoshiBold', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0;
}

.why-choose-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  font-family: 'SatoshiMedium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.why-choose-pill-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
  transform: translateY(0px);
}

/* --------------------------------------------------------------------------
   2. 3-Card Grid
   -------------------------------------------------------------------------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.why-choose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

/* --------------------------------------------------------------------------
   3. Card Visual Canvas (Top Media Box with Rounded Corners)
   -------------------------------------------------------------------------- */
.why-choose-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform: translateY(0);
}

.why-choose-card:hover .why-choose-canvas {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 20px 42px -12px rgba(15, 23, 42, 0.15);
}

/* Authentic Film Grain Noise Texture */
.canvas-grain-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('../images/card-noise.svg');
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.45;
  border-radius: inherit;
  z-index: 2;
}

/* Centered Editorial Typography inside the Canvas */
.canvas-centered-title {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  user-select: none;
  pointer-events: none;
}

.canvas-centered-title span {
  display: block;
  font-family: 'SatoshiBold', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(23px, 2.3vw, 29px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------------------------------
   4. Canvas Themes matching Reference Screenshot
   -------------------------------------------------------------------------- */

/* Card 1: Sunset Peach / Coral / Lavender Dusk */
.why-choose-canvas.canvas-sunset {
  background:
    radial-gradient(circle at 84% 16%, rgba(165, 180, 252, 0.95) 0%, rgba(192, 132, 252, 0.72) 32%, transparent 65%),
    radial-gradient(circle at 18% 85%, #f97316 0%, #ea580c 30%, #e11d48 58%, transparent 78%),
    radial-gradient(circle at 55% 52%, #fb7185 0%, #ec4899 35%, transparent 60%),
    linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #f43f5e 60%, #fb923c 100%);
}

/* Card 2: Radiant Amber Glow + Generative Concentric Waves + Obsidian */
.why-choose-canvas.canvas-amber {
  background:
    radial-gradient(circle at 50% 60%, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.88) 30%, rgba(180, 83, 9, 0.55) 55%, transparent 75%),
    radial-gradient(circle at 25% 42%, rgba(234, 88, 12, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 50% 15%, rgba(148, 163, 184, 0.6) 0%, rgba(71, 85, 105, 0.8) 45%, transparent 80%),
    linear-gradient(180deg, #334155 0%, #1e293b 35%, #18181b 75%, #0f172a 100%);
}

/* Concentric Topographic / Soundwave Pattern for Card 2 */
.canvas-wave-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* Card 3: Ethereal Atmospheric Misty Sage & Moss Green */
.why-choose-canvas.canvas-sage {
  background:
    radial-gradient(circle at 50% 18%, rgba(203, 213, 225, 0.9) 0%, rgba(167, 243, 208, 0.72) 25%, rgba(110, 231, 183, 0.4) 45%, transparent 70%),
    radial-gradient(circle at 25% 75%, #14532d 0%, #166534 35%, transparent 70%),
    radial-gradient(circle at 75% 82%, #15803d 0%, #14532d 40%, transparent 75%),
    linear-gradient(180deg, #64748b 0%, #475569 22%, #22543d 50%, #14532d 100%);
}

/* --------------------------------------------------------------------------
   5. Card Information (Headline + Category/Metric)
   -------------------------------------------------------------------------- */
.why-choose-info {
  margin-top: 18px;
}

.why-choose-card-title {
  font-family: 'SatoshiBold', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.018em;
  color: #111827;
  margin: 0 0 7px 0;
  transition: color 0.22s ease;
}

.why-choose-card:hover .why-choose-card-title {
  color: #2563eb;
}

.why-choose-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'SatoshiRegular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
}

.why-choose-meta .meta-tag {
  font-family: 'SatoshiMedium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: #111827;
}

.why-choose-meta .meta-metric {
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   6. Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .trynix-why-choose-section {
    padding: 75px 0 85px;
  }

  .why-choose-container {
    padding: 0 20px;
  }

  .why-choose-header {
    margin-bottom: 32px;
  }

  .why-choose-title {
    font-size: 28px;
  }

  .why-choose-pill-btn {
    padding: 7px 16px;
    font-size: 13px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-choose-canvas {
    aspect-ratio: 1 / 0.92;
    border-radius: 20px;
  }
}