/* =====================================================
   WHY CARDS — LIGHT PREMIUM SYSTEM (2026)
   Clean / Single Source / No Conflicts
===================================================== */


/* =========================
   SECTION
========================= */

.vl24-why-cards{
  position:relative;
  padding:120px 0;
  background-size:cover;
  background-position:center;
  overflow:hidden;
}

.vl24-why-cards > *{
  position:relative;
  z-index:2;
}


/* =========================
   WRAP / GRID
========================= */

.vl24-why-cards .vl24-wrap{
  max-width:1240px;
  margin:0 auto;

  display:grid;
  grid-template-columns: 420px 1fr;
  gap:72px;

  padding:0 40px;
  align-items:flex-start;

  position:relative;
  z-index:2;
}

/* ONE FULL-WIDTH GLASS BAND UNDER ALL CONTENT */
.vl24-why-cards .vl24-wrap::before{
  content:"";
  position:absolute;

  left:50%;
  transform:translateX(-50%);

  top:-34px;
  bottom:-34px;

  width:100vw;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.52) 0%,
    rgba(255,255,255,.34) 45%,
    rgba(255,255,255,.14) 68%,
    rgba(255,255,255,0) 88%,
    rgba(255,255,255,0) 100%
  );

  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  /* fade-out mask like your hero ticker */
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,.75) 60%,
    rgba(0,0,0,.35) 74%,
    rgba(0,0,0,0) 90%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,.75) 60%,
    rgba(0,0,0,.35) 74%,
    rgba(0,0,0,0) 90%,
    rgba(0,0,0,0) 100%
  );

  pointer-events:none;
  z-index:0;
}

/* ensure content stays above band */
.vl24-why-cards .vl24-wrap > *{
  position:relative;
  z-index:2;
}


/* =========================
   LEFT — GLASS CARD
========================= */

.why-left{
  position:sticky;
  top:120px;

  background:transparent;
  padding:50px 0 70px 0;

  box-shadow:none;
  border-radius:0;

  backdrop-filter:none;
}



/* Eyebrow */

.why-left .vl24-eyebrow{
  display:block;

  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;

  color:#64748b;
  margin-bottom:14px;
}


/* =========================
   TITLE (GRADIENT)
========================= */

.why-left h2{

  font-size:48px;
  line-height:1.05;
  margin:0 0 18px;

  font-weight:700;
  letter-spacing:-.01em;

  background: linear-gradient(
    120deg,
    #120b05 0%,
    #3a260f 25%,
    #c9a15a 50%,
    #f6e6b8 70%,
    #ffffff 100%
  );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
  0 1px 3px rgba(0,0,0,.35),
  0 0 8px rgba(201,161,90,.15);

}


/* Intro text */

.why-intro{
  font-size:16px;
  line-height:1.7;

  color:#475569;
  max-width:42ch;
}


/* =========================
   RIGHT SIDE
========================= */

.why-right{
  min-width:0;
}


/* =========================
   TABS
========================= */

.why-tabs{

  display:inline-flex;

  background:rgba(255,255,255,.65);

  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);

  border-radius:999px;

  padding:6px;

  box-shadow:
    0 12px 28px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.6);

  margin:0 0 34px;

  gap:2px;
}



.why-tabs button{
  background:transparent;

  border:0;

  padding:11px 24px;

  border-radius:0;

  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;

  color:#1e293b;

  box-shadow:none;

  transition:.25s;
}

.why-tabs button:hover{
    transform:none;
  filter:brightness(0.98);
}

.why-tabs button.active{
  background:#1a1205;
  color:#fff;

  border-radius:999px;

  box-shadow:
    0 6px 18px rgba(15,23,42,.25);
}



/* =========================
   PANELS
========================= */

.why-panels{
  position:relative;
}

.why-panel{
  display:none;
}

.why-panel.active{
  display:block;

  background: rgba(255,255,255,.32);

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);

  border-radius:26px;

  padding:26px;

  box-shadow:
    0 24px 60px rgba(0,0,0,.12);
}


@keyframes fadeUp{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}


/* =========================
   IMAGE CARD
========================= */

.why-img{
  border-radius:20px 20px 1px 1px;
  overflow:hidden;

  box-shadow:
    0 36px 90px rgba(0,0,0,.22);

  transform:translateY(-22px);
  margin:-26px -26px 0;
}

.why-img img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}


/* =========================
   TEXT CARD
========================= */

.why-text{
 
  border:0;
  border-radius:0;
  box-shadow:none;

  padding:0;
  margin-top:-14px; /* hoiab pildi ja teksti koos */

  color:#1e293b;
  line-height:1.7;
}



/* Collapsed */

.why-text.collapsed{
  max-height:12em;
  overflow:hidden;
  position:relative;
}





/* =========================
   READ MORE
========================= */

.why-readmore{

  display:inline-flex;
  align-items:center;
  gap:6px;

  font-weight:600;

  color:#7a5220;

  text-decoration:none;

  border-bottom:1px solid rgba(122,82,32,.35);

  padding-bottom:2px;

  transition:.25s;
}

.why-readmore::after{
  content:"→";
  transition:.25s;
}

.why-readmore:hover{
  color:#c9a15a;
  border-color:#c9a15a;
}

.why-readmore:hover::after{
  transform:translateX(4px);
}




/* =========================
   MOBILE
========================= */

@media(max-width:900px){

  .vl24-why-cards{
    padding:80px 0;
  }

  .vl24-why-cards .vl24-wrap{
    grid-template-columns:1fr;
    gap:46px;

    padding:0 22px;
  }

  .why-left{
    position:static;
    padding:34px 28px;
  }

  .why-left h2{
    font-size:34px;
  }

  .why-tabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:6px;
  }

  .why-tabs::-webkit-scrollbar{
    display:none;
  }

  .vl24-why-cards .vl24-wrap::before{
    top:-34px;
    bottom:-24px;
  }

  .why-panel.active{
    padding:18px;
  }

  .why-img{
    margin:0 0 14px;
    transform:none;
  }

  .why-text{
    padding:10px 2px 0;
  }

  /* Pilt täidab kaardi laiuse */
  .why-panel.active{
    overflow:hidden; /* et nurgad jääks */
  }

  .why-img{
    margin:
      -18px   /* top */
      -18px   /* left/right */
      14px    /* bottom */
      -18px;

    border-radius:20px 20px 1px 1px;
  }

}

/* =========================
   TABLET FIX — stop overlap
   (901px–1200px)
========================= */
@media (max-width:1200px) and (min-width:901px){

  /* anna vasakule rohkem ruumi */
  .vl24-why-cards .vl24-wrap{
    grid-template-columns: 1fr;   /* kindel: tekst ei saa enam kaduda */
    gap:28px;
  }

  .why-left{
    position:static;             /* sticky OFF tabletis */
    padding:30px 0 10px;
  }

  /* tabs jäävad kenasti vasaku teksti alla */
  .why-tabs{
    margin:10px 0 18px;
  }

  /* parempoolne kaart ei tohi "välja joosta" */
  .why-panel.active{
    overflow:hidden;             /* lõikab box-shadow/overlap'i ära */
  }

  /* nulli desktop-overlap tabletis */
  .why-img{
    transform:none !important;
    margin: -22px -22px 14px -22px !important; /* pilt täidab kaardi laiuse */
    border-radius:22px 22px 1px 1px;
  }

  .why-text{
    margin-top:0 !important;
    padding:0 2px 0;
  }
}

/* KILL GLOBAL BG BLUR */
.vl24-why-cards::before{
  display:none !important;
}

.why-text.collapsed{
  max-height:18em;
}

.vl24-why-cards{
  isolation:isolate;
}

/* 1. remove global blur */
.vl24-why-cards::before{
  display:none !important;
}

/* 2. isolate section */
.vl24-why-cards{
  isolation:isolate;
}

/* 3. more collapsed text */
.why-text.collapsed{
  max-height:18em;
}

/* 4. better readmore */
.why-readmore{
  color:#6b4a1f;
  text-decoration:none;
  border-bottom:1px solid rgba(107,74,31,.35);
  padding-bottom:1px;
  transition:.2s;
}

.why-readmore:hover{
  color:#8a5a22;
  border-color:#8a5a22;
}

/* 5. better title */
.why-left h2{
  background: linear-gradient(180deg,#3a260f,#1f1408);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 2px 8px rgba(0,0,0,.18);
}

@media (max-width:1200px){

  .why-left{
    position:relative !important;
    top:auto !important;
  }

}

.vl24-why-cards::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,220,160,.25),
      transparent 55%
    );

  pointer-events:none;
  z-index:1;
}

.why-img img{
  transition:transform 1.6s ease;
}

.why-panel.active:hover .why-img img{
  transform:scale(1.04);
}

.why-img{
  box-shadow:
    0 40px 100px rgba(0,0,0,.25),
    0 0 40px rgba(255,200,120,.15);
}

.vl24-why-cards{
  animation:sectionFade .8s ease both;
}

@keyframes sectionFade{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* =====================================
   MOBILE + TABLET — PRO LAYOUT FIX
===================================== */

@media (max-width:1200px){

  /* GRID → SINGLE COLUMN */
  .vl24-why-cards .vl24-wrap{
    grid-template-columns: 1fr !important;
    gap:32px;
  }


  /* LEFT BLOCK NORMAL FLOW */
  .why-left{
    position:relative !important;
    top:auto !important;

    padding:20px 0 10px;
  }


  /* RIGHT BLOCK FULL WIDTH */
  .why-right{
    width:100%;
    min-width:0;
  }


  /* ---------------------------
     STICKY TABS BAR
  --------------------------- */

  .why-tabs-wrap{
    position:sticky;
    top:64px; /* header kõrgus */

    z-index:50;

    margin:0 -22px -10px;
    padding:6px 22px;

    background: transparent !important;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom:0 !important;
  box-shadow:none !important;
  }


  /* HORIZONTAL SCROLL TABS */

  .why-tabs{
    width:100%;

    overflow-x:auto;
    overflow-y:hidden;

    -webkit-overflow-scrolling:touch;

    scroll-snap-type:x mandatory;

    padding:6px 4px;

    gap:8px;
  }


  .why-tabs::-webkit-scrollbar{
    display:none;
  }


  .why-tabs button{
    flex:0 0 auto;

    scroll-snap-align:start;

    white-space:nowrap;

    font-size:13px;

    padding:9px 18px;
  }


  /* ACTIVE TAB STRONGER */

  .why-tabs button.active{
    box-shadow:
      0 4px 14px rgba(0,0,0,.25);
  }


  /* ---------------------------
     PANELS
  --------------------------- */

  .why-panels{
    padding-top:8px;
  }


  .why-panel.active{
    border-radius:22px;

    padding:18px;
  }


  /* IMAGE FULL WIDTH */

  .why-img{
    margin:
      -18px
      -18px
      14px
      -18px;

    border-radius:18px 18px 2px 2px;
  }


  /* TEXT */

  .why-text{
    font-size:15px;
    line-height:1.65;

    padding:6px 2px 0;
  }


  /* TITLE MOBILE */

  .why-left h2{
    font-size:clamp(28px,7vw,34px);
  }


  /* INTRO */

  .why-intro{
    max-width:100%;
  }

}

/* =====================================
   PREMIUM GOLD SHINE — NO BLUR
===================================== */

.vl24-why-cards .why-left h2{

  position:relative;

  background:
    linear-gradient(
      120deg,

      #120b05 0%,
      #2a1a0b 15%,
      #6b4a1f 30%,
      #c9a15a 45%,
      #fff3c9 50%,
      #c9a15a 55%,
      #6b4a1f 70%,
      #2a1a0b 85%,
      #120b05 100%
    );

  background-size:300% 100%;
  background-position:0% 0%;

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
    0 1px 2px rgba(0,0,0,.35);

  animation:goldShine 6s linear infinite;

  will-change:background-position;
}


/* SHINE MOVE */

@keyframes goldShine{

  0%   { background-position:0% 0; }
  50%  { background-position:100% 0; }
  100% { background-position:0% 0; }

}


.vl24-why-cards .why-left h2{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vl24-why-cards{
  padding:40px 0 110px;
}

/* =====================================
   TABLET = DESKTOP LAYOUT (901px–1200px)
   Pane faili kõige lõppu
===================================== */

@media (min-width:901px) and (max-width:1200px){

  /* restore 2 column layout */
  .vl24-why-cards .vl24-wrap{
    grid-template-columns: 420px 1fr !important;
    gap:56px;
  }

  /* vasak sticky nagu desktop */
  .why-left{
    position:sticky !important;
    top:120px;
    padding:50px 0 70px 0;
  }

  /* tabs ei ole sticky mobile bar */
  .why-tabs-wrap{
    position:static !important;
    margin:0;
    padding:0;
    backdrop-filter:none;
  }

  /* parem blokk */
  .why-right{
    width:auto;
  }

}

