/* ================================================================
   DECORETTE — Shared Video Component Styles
   Used on: index, portfolio, all service pages, about
   ================================================================ */

/* ── Video wrapper (portrait 9:16 by default) ─────────────────── */
.iv-wrap {
  position: relative;
  background: #0d0a04;
  overflow: hidden;
}
.iv-wrap.iv-portrait {
  padding-top: 177.78%; /* 9:16 */
}
.iv-wrap.iv-landscape {
  padding-top: 56.25%;  /* 16:9 */
}
.iv-wrap.iv-square {
  padding-top: 100%;
}
.iv-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #0d0a04;
  cursor: pointer;
}
.iv-wrap.iv-landscape video,
.iv-wrap.iv-cover video {
  object-fit: cover;
}

/* Max height clamps for portrait videos in grid */
.iv-wrap.iv-portrait.iv-clamp-lg { max-height: 520px; overflow: hidden; padding-top: 0; height: 520px; }
.iv-wrap.iv-portrait.iv-clamp-md { max-height: 340px; overflow: hidden; padding-top: 0; height: 340px; }
.iv-wrap.iv-portrait.iv-clamp-sm { max-height: 240px; overflow: hidden; padding-top: 0; height: 240px; }

/* ── Sound Button ─────────────────────────────────────────────── */
.decorette-sound-btn {
  display: none; /* shown by JS after autoplay */
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #C9A84C, #FFD700);
  border: none;
  border-radius: 30px;
  padding: 9px 18px;
  color: #1a1000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(201,168,76,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ivPulse 2s infinite;
  white-space: nowrap;
}
.decorette-sound-btn i { font-size: 0.9rem; }
.decorette-sound-btn:hover { transform: translateX(-50%) scale(1.06); }
.decorette-sound-btn.iv-sound-on {
  background: linear-gradient(135deg, #A8842A, #C9A84C);
  animation: none;
}
.decorette-sound-btn.iv-sound-hide { display: none !important; }
@keyframes ivPulse {
  0%, 100% { box-shadow: 0 4px 22px rgba(201,168,76,0.5); }
  50%       { box-shadow: 0 4px 38px rgba(201,168,76,0.9); }
}

/* ── DECORETTE Watermark ─────────────────────────────────────────── */
.iv-watermark {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 30;
  pointer-events: none;
  background: rgba(8,5,1,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 7px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.iv-watermark .wm-row { display: flex; align-items: center; gap: 5px; }
.iv-watermark .wm-brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem; font-weight: 700;
  color: #C9A84C; letter-spacing: 3px; text-transform: uppercase;
}
.iv-watermark .wm-copy {
  font-size: 0.5rem; color: rgba(201,168,76,0.7); letter-spacing: 0.06em;
}

/* ── Card animation ───────────────────────────────────────────── */
.decorette-vid-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.decorette-vid-card.iv-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card base ────────────────────────────────────────────────── */
.iv-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.iv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.42);
}

/* ── Card info row ────────────────────────────────────────────── */
.iv-info {
  padding: 16px 18px 18px;
  background: rgba(0,0,0,0.25);
}
.iv-badge {
  display: inline-block;
  background: rgba(201,168,76,0.14);
  color: #C9A84C;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 7px;
}
.iv-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.96rem; font-weight: 600;
  color: #fff; margin-bottom: 4px; line-height: 1.3;
}
.iv-info p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 5px;
}
.iv-info p i { color: #C9A84C; font-size: 0.65rem; }

/* ── Thumbnail image (for non-video uses) ─────────────────────── */
.iv-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.iv-card:hover .iv-thumb { transform: scale(1.04); }

/* ── Play badge on thumbnail ──────────────────────────────────── */
.iv-play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #C9A84C, #FFD700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 6px 28px rgba(201,168,76,0.55);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.iv-card:hover .iv-play-badge {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1.08);
}

/* ── Section heading (dark bg) ────────────────────────────────── */
.iv-section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: #C9A84C;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px;
  margin-bottom: 18px;
}
.iv-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px,4vw,40px);
  font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 12px;
}
.iv-section-title span { color: #C9A84C; }
.iv-section-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.96rem; line-height: 1.7;
  max-width: 540px;
}

/* ── Thumbnail overlay (for photos with video label) ─────────── */
.iv-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,7,2,0.72) 0%, transparent 55%);
  pointer-events: none;
}
