/* ==========================================================
   Karma Healing – Video Testimonials Landing
   Fonts & palette mirrored from nneihaavvikas.com/karma-workshop
   ========================================================== */
:root {
  --plum-deep: #3D1635;     /* headings + button */
  --plum: #783766;          /* primary */
  --plum-soft: #78566D;     /* subtitles */
  --teal: #508086;          /* secondary */
  --rose: #C497A2;          /* accent */
  --lavender: #D4C8D9;
  --peach: #FFBC7D;
  --cream: #F5F3EF;
  --text: #40304B;
  --border: #D1D1D1;
  --white: #FFFFFF;

  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-sub: "Outfit", sans-serif;
  --font-body: "Lato", sans-serif;
  --font-btn: "Inter", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(61, 22, 53, .10);
  --shadow-lg: 0 24px 60px rgba(61, 22, 53, .18);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--plum-deep); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 700; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Ambient background glows ---------- */
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; filter: blur(90px); opacity: .55;
}
.bg-glow--1 { top: -20vw; right: -15vw; background: radial-gradient(circle, var(--lavender), transparent 70%); }
.bg-glow--2 { bottom: -25vw; left: -20vw; background: radial-gradient(circle, rgba(196,151,162,.7), transparent 70%); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--plum); margin: 0 0 14px;
}
.eyebrow--light { color: var(--peach); }
.subtitle {
  font-family: var(--font-sub);
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 400;
  color: var(--plum-soft); max-width: 720px; margin: 18px auto 0;
}
.grad {
  background: linear-gradient(90deg, var(--plum), var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-btn); font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.2; text-decoration: none;
  padding: 18px 34px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn--light {
  color: var(--plum-deep); background: var(--white);
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.btn--light:hover { transform: translateY(-3px); background: var(--cream); }

/* ---------- Hero (video banner) ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  min-height: min(100svh, 820px); display: flex; align-items: center; justify-content: center;
  padding: clamp(90px, 12vw, 150px) 0 clamp(90px, 10vw, 130px);
  background: var(--plum-deep); color: var(--white);
}
/* Full-banner frosted glass: the whole hero sits behind one soft blur so the
   copy stays legible and the video's own on-screen text never competes */
.hero__content { position: relative; z-index: 2; }
.hero h1 { margin: 0 auto; max-width: 900px; color: var(--white); text-shadow: 0 3px 24px rgba(0,0,0,.45); }
.hero .grad { background: linear-gradient(90deg, var(--peach), var(--rose)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 14px rgba(0,0,0,.5)); }
.hero .eyebrow { color: var(--peach); }
.hero .subtitle { color: rgba(255,255,255,.92); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero .stat strong { color: var(--white); }
.hero .stat span { color: var(--lavender); }
.hero .hero-note { color: var(--peach); font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; margin-top: 6px; }

.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); filter: saturate(1.05);
}
/* 16:9 iframe scaled to always cover the hero */
.hero-video__frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  /* oversized ~30% so YouTube's title bar / logo sit outside the visible hero */
  width: max(130%, 231vh); height: max(130%, 73.1vw);
  aspect-ratio: 16 / 9; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-video__frame.is-ready { opacity: 1; }
.hero-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-video__overlay {
  position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  background: linear-gradient(180deg, rgba(61,22,53,.34) 0%, rgba(61,22,53,.30) 55%, rgba(61,22,53,.9) 100%);
}
@supports not (backdrop-filter: blur(1px)) {
  .hero-video__overlay { background: linear-gradient(180deg, rgba(61,22,53,.6), rgba(61,22,53,.55) 55%, var(--plum-deep)); }
}
.hero .scroll-hint { border-color: rgba(255,255,255,.6); z-index: 2; }
.hero .scroll-hint span { background: var(--white); }

/* mute / unmute pill */
.sound-toggle {
  position: absolute; right: 22px; bottom: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  color: var(--white); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px); transition: background .25s, transform .25s;
}
.sound-toggle:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.sound-toggle .ico-sound { display: none; }
.sound-toggle[aria-pressed="true"] .ico-sound { display: block; }
.sound-toggle[aria-pressed="true"] .ico-muted { display: none; }
.stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 46px;
  margin: 40px auto 42px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong {
  font-family: var(--font-head); font-size: clamp(28px, 3vw, 38px); font-weight: 800;
  color: var(--plum-deep); line-height: 1;
}
.stat span { font-family: var(--font-sub); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--plum-soft); margin-top: 6px; }
.hero-note { font-family: var(--font-sub); font-size: 15px; color: var(--plum-soft); margin: 16px 0 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--rose); border-radius: 14px; display: block;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--plum); border-radius: 2px; animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(14px); opacity: 0 } }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.featured { padding: 20px 0 70px; }
.grid-section {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, #FBFAF8 100%);
  border-top: 1px solid rgba(212,200,217,.5);
  border-bottom: 1px solid rgba(212,200,217,.5);
}

/* ---------- Featured videos (2 columns) ---------- */
.featured-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fcard {
  background: var(--white); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(212,200,217,.6);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.fcard:hover { transform: translateY(-6px); }
.fcard__body { padding: 22px 26px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fcard__name { font-size: 22px; }
.fcard__title { font-family: var(--font-sub); font-size: 15.5px; color: var(--plum-soft); margin: 4px 0 0; line-height: 1.4; }
.fcard__tag {
  flex-shrink: 0; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum); background: var(--cream); padding: 8px 12px; border-radius: 999px;
}
.fcard .play { width: 86px; height: 86px; }
.fcard .play svg { width: 30px; height: 30px; }

/* ---------- Toolbar: search + workshop filter ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 36px;
}
.search, .select {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--lavender); border-radius: 999px;
  padding: 0 18px; height: 50px; color: var(--plum);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within, .select:focus-within { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(120,55,102,.12); }
.search { min-width: min(100%, 320px); }
.search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-family: var(--font-body); font-size: 16px; color: var(--text);
}
.search input::placeholder { color: var(--tertiary, #9E9E9E); }
.select span { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.select select {
  border: 0; outline: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--plum-deep);
  padding-right: 4px;
}
.count { flex-basis: 100%; text-align: center; margin: 4px 0 0; font-family: var(--font-sub); font-size: 15px; color: var(--plum-soft); }

/* infinite-scroll sentinel */
.sentinel {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 44px 0 10px; font-family: var(--font-sub); font-size: 15px; color: var(--plum-soft);
}
.sentinel[hidden] { display: none; }
.sentinel.is-done .spinner { display: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--lavender); border-top-color: var(--plum);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.empty { text-align: center; font-family: var(--font-sub); color: var(--plum-soft); padding: 40px 0; }

/* ---------- Video grid & cards ---------- */
.video-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.vcard {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(212,200,217,.6);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .4s, scale .4s;
  display: flex; flex-direction: column;
}
.vcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.vcard.is-hidden { display: none; }
.vcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard__name { font-size: 19px; }
.vcard__title { font-family: var(--font-sub); font-size: 15px; color: var(--plum-soft); margin: 0; line-height: 1.4; }
.vcard__tag {
  align-self: flex-start; margin-top: auto; padding-top: 10px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum);
}
.vcard__tag::before { content: "●"; font-size: 8px; margin-right: 6px; color: var(--rose); vertical-align: middle; }


/* Thumbnail / player frame (shared by cards, featured, lightbox) */
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--plum-deep), var(--plum) 60%, var(--rose));
  cursor: pointer;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s ease, opacity .4s; }
/* vertical phone videos: blurred cover behind, full frame contained on top */
.player__bg { object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.7); transform: scale(1.15); }
.player__img { object-fit: contain; }
.player:hover .player__img { transform: scale(1.04); }
.player::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,22,53,0) 40%, rgba(61,22,53,.55) 100%);
  pointer-events: none;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-playing::after, .player.is-playing .play { display: none; }

.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--plum-deep);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(61,22,53,.4);
  transition: transform .3s ease, background .3s ease;
}
.play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); animation: pulse 2.2s ease-out infinite;
}
.play svg { width: 26px; height: 26px; margin-left: 4px; }
.player:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
@keyframes pulse { 0% { transform: scale(.85); opacity: .9 } 100% { transform: scale(1.4); opacity: 0 } }

.featured-card .play { width: 96px; height: 96px; }
.featured-card .play svg { width: 34px; height: 34px; }
.player__badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--plum-deep); background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 999px;
}
.player__duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--white); background: rgba(61,22,53,.75); padding: 4px 9px; border-radius: 6px;
}

/* ---------- Closing / gratitude ---------- */
.closing { padding: 100px 0 120px; }
.closing-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(50px, 7vw, 84px) clamp(24px, 5vw, 70px);
  border-radius: 30px; color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,188,125,.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(196,151,162,.45), transparent 45%),
    linear-gradient(135deg, var(--plum-deep), var(--plum));
  box-shadow: var(--shadow-lg);
}
.closing-mark {
  display: block; font-size: 34px; color: var(--peach); margin-bottom: 14px;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .6; transform: scale(.95) } 50% { opacity: 1; transform: scale(1.1) } }
.closing-card h2 { color: var(--white); }
.closing-card p { font-family: var(--font-sub); font-size: clamp(17px, 1.6vw, 21px); max-width: 680px; margin: 18px auto 34px; color: rgba(255,255,255,.88); }
.closing-sign { font-family: var(--font-head) !important; font-size: 15px !important; font-weight: 600; color: var(--lavender) !important; margin: 28px 0 0 !important; letter-spacing: .02em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(28, 8, 24, .88); backdrop-filter: blur(8px); animation: fade .3s ease; }
.lightbox__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(96vw, 1060px); animation: pop .35s cubic-bezier(.2,.8,.2,1);
}
.lightbox__player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  max-height: 78vh; margin: 0 auto;
  background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 6px 0; color: var(--white); }
.lightbox__meta h3 { color: var(--white); font-size: 20px; }
.lightbox__meta p { margin: 4px 0 0; font-family: var(--font-sub); color: var(--lavender); font-size: 15px; }
.lightbox__close {
  position: absolute; right: -6px; top: -54px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__nav {
  position: absolute; top: 40%; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--white); font-size: 40px; line-height: 0; padding-bottom: 6px;
  transition: background .2s, transform .2s; z-index: 2;
}
.lightbox__nav:hover { background: var(--plum); transform: scale(1.06); }
.lightbox__nav--prev { left: -70px; }
.lightbox__nav--next { right: -70px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  background: transparent; color: var(--white); cursor: pointer; transition: all .2s;
}
.share-btn:hover { background: var(--white); color: var(--plum-deep); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96) } }
body.lb-locked { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--plum-deep); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; z-index: 200;
  transition: all .3s ease; box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.vcard.reveal { transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { right: 0; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding: 84px 0 80px; min-height: min(92svh, 720px); }
  .sound-toggle { right: 14px; bottom: 14px; padding: 9px 12px; }
  .sound-toggle span { display: none; }
  .stats { gap: 18px 28px; margin: 32px auto 34px; }
  .btn { width: 100%; max-width: 420px; padding: 17px 20px; }
  .grid-section { padding: 70px 0 80px; }
  .video-grid { gap: 20px; grid-template-columns: 1fr; }
  .search, .select { width: 100%; justify-content: flex-start; }
  .closing { padding: 70px 0 90px; }
  .featured-grid { grid-template-columns: 1fr; gap: 22px; }
  .fcard__body { flex-direction: column; align-items: flex-start; }
  .lightbox__dialog { width: 100vw; top: 50%; }
  .lightbox__player { border-radius: 0; }
  .lightbox__meta { padding: 16px 16px 0; flex-direction: column; align-items: flex-start; }
  .lightbox__close { top: -60px; right: 12px; }
  .lightbox__nav { top: 45%; width: 42px; height: 42px; font-size: 30px; }
  .scroll-hint { display: none; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
