/* =========================
   CASES P1LED (WIDGET) — CSS FINAL (FINITO)
   ========================= */

/* ===== Seção ===== */
.leds-cases{
  width:100%;
  padding:96px 0;
  background:#0D121C;
  position:relative;
  overflow:hidden; /* recorte no limite da tela */
}

/* radius */
.leds-cases.has-radius-top{
  border-top-left-radius:24px;
  border-top-right-radius:24px;
}
.leds-cases.has-radius-bottom{
  border-bottom-left-radius:24px;
  border-bottom-right-radius:24px;
}

/* ===== Wrapper interno ===== */
.leds-cases .leds-cases-inner{
  max-width:1312px;
  margin:0 auto;
  padding:0 20px;
}

.leds-cases .section-title{
  margin:0 0 10px;
  font-size: var(--font-size-6xl, 64px);
  font-weight: var(--font-weight-bold, 700);
  line-height: 100%;
  letter-spacing:-0.02em;
  color:#fff;
}
.leds-cases .section-title span{ color:#25A9FF; }

.leds-cases .section-subtitle{
  margin:0 0 36px;
  max-width:720px;
  color:rgba(255,255,255,.70);
  font-size:20px;
  line-height:1.6;
}

/* ===== Carousel FULL-BLEED (corte só na direita da tela) ===== */
.leds-cases-carousel{
  position:relative;

  /* full-bleed */
  width:100vw;
  margin-left:calc(50% - 50vw);

  /* padding de alinhamento com a página */
  padding-left:64px;
  padding-right:64px;

  overflow:visible; /* quem corta é a seção .leds-cases */
}

/* track */
.leds-cases-grid{
  display:flex;
  gap:22px;
  will-change:transform;
  transform:translate3d(0,0,0);
}

/* slide */
.leds-case-slide{
  flex:0 0 320px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* card */
.leds-case-card{
  position:relative;
  height:230px;
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}

.leds-case-slide[data-youtube] .leds-case-card{ cursor:pointer; }

.leds-case-media{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(1.02);
}

.leds-case-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(13,18,28,.18) 0%,
    rgba(13,18,28,.58) 100%
  );
}

/* logo */
.leds-case-logo{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:92px;
  height:92px;
  border-radius:18px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.leds-case-logo img{
  max-width:72%;
  max-height:72%;
  object-fit:contain;
}

/* texto */
.leds-case-quote{
  margin:0;
  color:rgba(255,255,255,.92);
  font-size:16px;
  line-height:1.35;
  letter-spacing:-0.005em;
}

.leds-case-signature{
  color:rgba(255,255,255,.60);
  font-size:13px;
  line-height:1.2;
}

/* ===== Setas ===== */
.leds-cases-arrow{
  position:absolute;
  top:115px;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.04);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
}

/* alinhadas ao padding */
.leds-cases-arrow--prev{ left:64px; }
.leds-cases-arrow--next{ right:64px; }

/* estado disabled (JS liga/desliga) */
.leds-cases-arrow[aria-disabled="true"]{
  opacity:0;
  pointer-events:none;
}

/* ===== CTA — PILL CENTRAL ===== */
.leds-cases-cta{
  margin-top:44px;
  display:flex;
  justify-content:center;
}

.leds-cases-cta__inner{
  width:min(980px, 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;

  padding:18px 22px;
  border-radius:999px;

  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.leds-cases-cta__text{
  margin:0;
  font-size:26px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:-0.01em;
  color:rgba(255,255,255,.92);
  white-space:nowrap;
}

.leds-cases-cta__text span,
.leds-cases-cta__text strong{
  color:#00AEEF;
}

.leds-cases .cta-button{
  text-decoration:none;
}

.leds-cases .cta-button.leds-cases-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:14px 18px;
  border-radius:999px;

  background:#00AEEF !important;
  color:#121926 !important;
  border:0 !important;

  font-family:Poppins, sans-serif;
  font-weight:600;
  font-size:16px;
  white-space:nowrap;

  transition:transform .15s ease;
}

.leds-cases .cta-button.leds-cases-cta__btn:hover{
  transform:translateY(-1px);
}

/* ===== Mobile ===== */
@media (max-width:767px){
  .leds-cases{ padding:64px 0; }

  .leds-cases .leds-cases-inner{ padding:0 20px; }

  .leds-cases .section-title{ font-size:30px; }

  .leds-cases-carousel{
    padding-left:20px;
    padding-right:20px;
  }

  .leds-case-slide{ flex:0 0 78%; }

  .leds-cases-arrow{ display:none; }

  .leds-cases-cta__inner{
    width:100%;
    flex-direction:column;
    gap:14px;
    padding:16px;
    border-radius:22px;
  }

  .leds-cases-cta__text{
    white-space:normal;
    text-align:center;
    font-size:22px;
  }

  .leds-cases .cta-button.leds-cases-cta__btn{
    width:100%;
  }
}

/* =========================
   MODAL YOUTUBE — CASES
   ========================= */

.leds-cases-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.leds-cases-modal.is-open{
  display:block;
}

.leds-cases-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(13,18,28,.88);
}

.leds-cases-modal__dialog{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.leds-cases-modal__frame{
  width:min(960px, 100%);
  aspect-ratio:16 / 9;
  background:#000;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 40px 120px rgba(0,0,0,.6);
}

.leds-cases-modal__frame iframe{
  width:100%;
  height:100%;
  border:0;
}

.leds-cases-modal__close{
  position:absolute;
  top:24px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  border:0;
  font-size:26px;
  cursor:pointer;
  z-index:2;
}


/* =========================
   FIX MODAL — fecha fora e mostra X
   ========================= */

#leds-cases-modal .leds-cases-modal__backdrop{
  pointer-events:auto !important;
}

#leds-cases-modal .leds-cases-modal__dialog{
  pointer-events:auto !important; /* <- NÃO bloqueia mais */
}

#leds-cases-modal .leds-cases-modal__frame{
  pointer-events:auto !important;
  position:relative !important;
  z-index:2 !important;
}

#leds-cases-modal .leds-cases-modal__close{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  position:fixed !important;          /* <- resolve 100% */
  top:22px !important;
  right:22px !important;

  width:46px !important;
  height:46px !important;
  border-radius:999px !important;

  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
  border:0 !important;

  font-size:28px !important;
  line-height:1 !important;
  cursor:pointer !important;

  z-index:999999 !important;          /* acima de tudo */
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
