/* =========================================================
   Ellenite Showcase
   File: /assets/css/ellenite-showcase.css
   - Header overlap fix like placements
   - Layout: left video (30%), right PDF (70%) + text below PDF
   - Mobile: stack
========================================================= */

:root{
  --es-text:#0f172a;
  --es-muted:#64748b;
  --es-border: rgba(15,23,42,.10);
  --es-shadow: 0 16px 46px rgba(15,23,42,.08);
  --es-radius: 18px;

  --es-accent: #ff445e;
  --es-accent2: #ff6a2a;

  --es-grad: radial-gradient(circle at 10% 0%, rgba(110, 10, 10, .75), rgba(2, 6, 23, .96) 70%);
}

/* Wrappers */
.es.page-hero{
  background:#fff;
  padding-top: calc(var(--site-header-offset, 110px) + 34px);
  padding-bottom: 18px;
}
.es.page-section{
  background:#fff;
  padding: 22px 0 70px;
}

/* Breadcrumb (same class you already use) */
.breadcrumb{
  font-size: 13px;
  color: var(--es-muted);
  font-weight: 700;
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 6px 0 18px;
}
.breadcrumb a{ color: var(--es-muted); text-decoration:none; }
.breadcrumb a:hover{ color: var(--es-text); }
.crumb-sep{ opacity: .6; }

/* Hero */
.es-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--es-text);
  opacity: .92;
  margin: 0 0 10px;
}
.es-kickerIco{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid rgba(250,57,74,.22);
  background: rgba(250,57,74,.10);
  display:grid;
  place-items:center;
}
.es-title{
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--es-text);
}
.es-lead{
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4b5563;
  max-width: 78ch;
}

.es-empty{
  font-weight: 800;
  color: var(--es-muted);
}

/* List */
.es-list{ display:grid; gap: 18px; margin-top: 12px; }

.es-item{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  background:#fff;
  box-shadow: 0 14px 40px rgba(15,23,42,.05);
  padding: 14px;
}

.es-itemTitle{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--es-text);
}

/* Grid (✅ 30/70) */
.es-grid{
  display:grid;
  grid-template-columns: .45fr .55fr;
  gap: 14px;
  align-items: start;
}

.es-right{ align-self: start; }

/* Video (✅ fixed frame) */
.es-videoWrap{
  position: relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);

  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: 520px;
}
.es-video{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}

.es-muteBtn{
  position:absolute;
  bottom: 12px;
  left: 12px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(2,6,23,.55);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  backdrop-filter: blur(8px);
}
.es-muteBtn:hover{ filter: brightness(1.05); }

.es-missing{
  padding: 18px;
  color: var(--es-muted);
  font-weight: 800;
}

/* PDF */
.es-pdfCard{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.es-pdfOpen{
  width:100%;
  border:0;
  padding:0;
  background: transparent;
  cursor:pointer;
  text-align:left;
}

.es-pdfMedia{
  position: relative;
  width:100%;
  aspect-ratio: 16 / 10;
  background: rgba(2,6,23,.03);
  overflow:hidden;
}
.es-pdfMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.es-pdfFallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: var(--es-muted);
  font-size: 18px;
}

.es-pdfOverlay{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(to top, rgba(2,6,23,.65), rgba(2,6,23,0));
}

.es-downloadBtn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color:#fff;
  background: linear-gradient(135deg, var(--es-accent), var(--es-accent2));
  box-shadow: 0 16px 38px rgba(250,57,74,.22);
}
.es-pdfHint{
  color: rgba(255,255,255,.88);
  font-weight: 800;
  font-size: 13px;
}

.es-pdfDownload{
  display:block;
  padding: 12px 14px 14px;
  text-decoration:none;
  font-weight: 900;
  color: var(--es-text);
  border-top: 1px solid rgba(15,23,42,.08);
}
.es-pdfDownload:hover{ background: rgba(2,6,23,.02); }

/* Description (under PDF card) */
.es-desc{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #334155;
  padding-right: 15px;
  padding-left: 15px;
}

/* CTA */
.es-cta{
  margin-top: 16px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--es-grad);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  color: #f9fafb;
}
.es-ctaInner{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.es-ctaInner h2{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.es-ctaInner p{
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(249,250,251,.86);
}
.es-ctaActions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.es-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
  border: 1px solid transparent;
  user-select:none;
}
.es-btn--primary{
  background: linear-gradient(135deg, var(--es-accent), var(--es-accent2));
  color: #fff;
  box-shadow: 0 16px 38px rgba(250,57,74,.22);
}
.es-btn--ghost{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(8px);
}

/* Modal */
.es-modal[hidden]{ display:none; }
.es-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.es-modalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.66);
  backdrop-filter: blur(6px);
}
.es-modalPanel{
  position: relative;
  width: min(980px, calc(100% - 22px));
  height: min(80vh, 760px);
  margin: calc(var(--site-header-offset,110px) * 0.3 + 20px) auto 0;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
}
.es-modalClose{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  cursor:pointer;
  font-weight: 900;
}
.es-modalFrame{
  width:100%;
  height:100%;
  padding-top: 46px;
}
.es-modalFrame iframe{
  width:100%;
  height: calc(100% - 46px);
  border:0;
}

/* Prevent page scroll when modal open */
.es-modalOpen body{ overflow:hidden; }

/* Responsive */
@media (max-width: 980px){
  .es-grid{ grid-template-columns: 1fr; }

  /* mobile-friendly frame when stacked */
  .es-videoWrap{
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}
@media (max-width: 560px){
  .es-title{ font-size: 28px; }
  .es-ctaInner{ flex-direction: column; align-items:flex-start; }
  .es-ctaActions{ width:100%; }
  .es-ctaActions .es-btn{ width:100%; }
}