/* =====================================================
   WHY STATS — Premium (Uusarendus)
   HTML: .why-stats / .why-stats-grid / .why-stat-card
===================================================== */

.section.why-stats{
  position:relative;
  padding:110px 0;
  overflow:hidden;
}

/* kerge premium glow taustale */
.section.why-stats::before{
  content:"";
  position:absolute;
  inset:-40px 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(255,220,160,.22), transparent 55%),
    radial-gradient(circle at 75% 40%, rgba(201,161,90,.14), transparent 60%);
  pointer-events:none;
  z-index:0;
}

.section.why-stats > .container{
  position:relative;
  z-index:1;
}

/* Header */
.why-stats .section-header{
  margin:0 auto 42px;
  max-width:860px;
}

.why-stats .section-eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:10px;
}

.why-stats .section-header h2{
  margin:0 0 14px;
  font-size:clamp(30px, 3.2vw, 46px);
  line-height:1.08;
  letter-spacing:-.02em;
  color:#0f172a;
}

.why-stats .section-header p{
  margin:0;
  font-size:16px;
  line-height:1.75;
  color:#475569;
}

/* GRID — see on peamine miks “kaarte ei näe” kui grid puudub */
.why-stats-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

/* CARD */
.why-stat-card{
  position:relative;
  padding:22px 22px 20px;
  border-radius:22px;

  background:rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);

  box-shadow:
    0 20px 55px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.65);

  overflow:hidden;
  min-height:140px;

  /* et kaardid oleks kindlasti “nähtavad” ka siis, kui parentil on weird styles */
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

/* õrn “gold line” ülaserv */
.why-stat-card::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:14px;
  height:1px;
  background:linear-gradient(90deg,
    transparent,
    rgba(201,161,90,.55),
    rgba(255,243,201,.75),
    rgba(201,161,90,.55),
    transparent
  );
  opacity:.9;
}

/* Number */
.why-stat-number{
  display:block;
  margin-top:10px;
  font-size:44px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.03em;
  color:#0b1220;

  /* premium gold shimmer */
  background: linear-gradient(120deg,#120b05 0%, #6b4a1f 30%, #f6e6b8 55%, #c9a15a 72%, #120b05 100%);
  background-size:240% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:0 2px 10px rgba(0,0,0,.12);
}

/* title */
.why-stat-card h3{
  margin:10px 0 6px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  color:#0f172a;
}

/* description */
.why-stat-card p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#475569;
}

/* Hover */
@media (hover:hover){
  .why-stat-card{
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  }
  .why-stat-card:hover{
    transform: translateY(-3px);
    box-shadow:
      0 28px 70px rgba(0,0,0,.16),
      inset 0 0 0 1px rgba(255,255,255,.75);
    filter: brightness(1.02);
  }
  .why-stat-card:hover .why-stat-number{
    animation: goldShine 5s linear infinite;
  }
}

@keyframes goldShine{
  0%{ background-position:0% 50%; }
  100%{ background-position:200% 50%; }
}

/* TABLET */
@media (max-width:1100px){
  .why-stats-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:16px;
  }
  .why-stat-number{ font-size:40px; }
}

/* MOBILE */
@media (max-width:640px){
  .section.why-stats{ padding:80px 0; }
  .why-stats-grid{
    grid-template-columns: 1fr;
    gap:14px;
  }
  .why-stat-card{
    border-radius:18px;
    padding:18px;
    min-height:auto;
  }
  .why-stat-number{ font-size:38px; }
}

/* Kui su teemas on reveal-stagger mis peidab elemendid (opacity:0),
   siis see tagab, et kaardid on ikka nähtavad. */
.reveal-stagger .why-stat-card{
  opacity:1 !important;
  transform:none !important;
  visibility:visible !important;
}

/* =====================================
   WHY STATS — GOLD LINE UNDER NUMBER
===================================== */

/* eemaldame vana joone */
.why-stat-card::before{
  display:none;
}

/* number wrapper */
.why-stat-number{
  position:relative;
  padding-bottom:16px;
  margin-bottom:14px;
}

/* uus kuldne joon numbri alla */
.why-stat-number::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;

  width:40%;
  height:2px;

  background:linear-gradient(
    90deg,
    rgba(201,161,90,.7),
    rgba(255,243,201,1),
    rgba(201,161,90,.7)
  );

  border-radius:2px;
}




