/* ══════════════════════════════════════
   VIVID SERVICES GRID — Frontend
   ══════════════════════════════════════ */

/* ── Grid ── */
.vsg-grid {
  display: grid;
  grid-template-columns: repeat(var(--vsg-columns, 4), 1fr);
  gap: 4px;
}

/* ── Card ── */
.vsg-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #1e1e1e;
  cursor: pointer;
}

/* Image — real photo or fallback gradient */
.vsg-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Fallback when no image — alternating moody gradients */
.vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #1a1520 0%, #2a1f35 40%, #1e1528 100%);
}

.vsg-card:nth-child(2) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #1a1a20 0%, #252530 40%, #1a1a25 100%);
}
.vsg-card:nth-child(3) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #201a18 0%, #352a22 40%, #281e18 100%);
}
.vsg-card:nth-child(4) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #1a2020 0%, #223030 40%, #182525 100%);
}
.vsg-card:nth-child(5) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #201a20 0%, #352535 40%, #281a28 100%);
}
.vsg-card:nth-child(6) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #1a1d20 0%, #252d35 40%, #1a2028 100%);
}
.vsg-card:nth-child(7) .vsg-card__image:not([style*="background-image"]) {
  background: linear-gradient(160deg, #201c1a 0%, #302820 40%, #25201a 100%);
}

/* Subtle gold glow on image */
.vsg-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,150,58,0.06) 0%, transparent 60%);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark veil */
.vsg-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.85) 100%);
  z-index: 2;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Number */
.vsg-card__number {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
  transition: color 0.4s;
}

/* Gold corner triangle */
.vsg-card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  z-index: 5;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-card__corner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 48px 48px 0;
  border-color: transparent #c9963a transparent transparent;
  opacity: 0.6;
}

/* Content */
.vsg-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  z-index: 4;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-card__category {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9963a;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.vsg-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.vsg-card__desc {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.vsg-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vsg-card__price {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #c9963a;
}

.vsg-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.vsg-card__link svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold bottom bar */
.vsg-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c9963a;
  z-index: 5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── HOVER ── */
.vsg-card:hover .vsg-card__image {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.vsg-card:hover .vsg-card__image::after {
  opacity: 0.5;
}

.vsg-card:hover .vsg-card__veil {
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.92) 100%);
}

.vsg-card:hover .vsg-card__number {
  color: rgba(255,255,255,0.3);
}

.vsg-card:hover .vsg-card__corner {
  opacity: 1;
}

.vsg-card:hover .vsg-card__content {
  transform: translateY(0);
}

.vsg-card:hover .vsg-card__category {
  opacity: 1;
  transform: translateY(0);
}

.vsg-card:hover .vsg-card__desc {
  max-height: 80px;
  opacity: 1;
}

.vsg-card:hover .vsg-card__link {
  opacity: 1;
  transform: translateX(0);
}

.vsg-card:hover .vsg-card__link:hover {
  color: #c9963a;
}

.vsg-card:hover .vsg-card__link:hover svg {
  transform: translateX(4px);
}

.vsg-card:hover .vsg-card__bar {
  transform: scaleX(1);
}

/* ── Scroll Reveal ── */
.vsg-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-reveal.vsg-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — cards load one after another */
.vsg-delay-0 { transition-delay: 0s; }
.vsg-delay-1 { transition-delay: 0.1s; }
.vsg-delay-2 { transition-delay: 0.2s; }
.vsg-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════
   BESPOKE CTA
   ══════════════════════════════════════ */
.vsg-bespoke {
  margin-top: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 64px;
  background: #1e1e1e;
  border: 1px solid rgba(201,150,58,0.15);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.vsg-bespoke::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(201,150,58,0.04) 30%, rgba(201,150,58,0.08) 50%, rgba(201,150,58,0.04) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-bespoke:hover::before { opacity: 1; }
.vsg-bespoke:hover { border-color: rgba(201,150,58,0.35); }

.vsg-bespoke__left {
  position: relative;
  z-index: 2;
}

.vsg-bespoke__badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9963a;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(201,150,58,0.25);
}

.vsg-bespoke__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.vsg-bespoke__title em {
  font-style: italic;
  color: #c9963a;
}

.vsg-bespoke__desc {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.vsg-bespoke__right {
  position: relative;
  z-index: 2;
}

.vsg-bespoke__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  background: #c9963a;
  color: #0a0a0a;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-bespoke__button:hover {
  background: #dbb56b;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201,150,58,0.3);
}

.vsg-bespoke__button svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-bespoke__button:hover svg {
  transform: translateX(4px);
}

/* Corner brackets */
.vsg-bespoke__decor {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 1;
  opacity: 0.15;
  transition: opacity 0.4s;
}

.vsg-bespoke:hover .vsg-bespoke__decor { opacity: 0.35; }

.vsg-bespoke__decor--tl { top: 16px; left: 16px; border-top: 1px solid #c9963a; border-left: 1px solid #c9963a; }
.vsg-bespoke__decor--tr { top: 16px; right: 16px; border-top: 1px solid #c9963a; border-right: 1px solid #c9963a; }
.vsg-bespoke__decor--bl { bottom: 16px; left: 16px; border-bottom: 1px solid #c9963a; border-left: 1px solid #c9963a; }
.vsg-bespoke__decor--br { bottom: 16px; right: 16px; border-bottom: 1px solid #c9963a; border-right: 1px solid #c9963a; }

/* ══════════════════════════════════════
   STATS
   ══════════════════════════════════════ */
.vsg-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.vsg-stat {
  text-align: center;
}

.vsg-stat__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 300;
  color: #c9963a;
  line-height: 1;
  margin-bottom: 6px;
}

.vsg-stat__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .vsg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .vsg-card { height: 420px; }
  .vsg-bespoke { padding: 40px 48px; }
  .vsg-bespoke__title { font-size: 28px; }
  .vsg-stats { gap: 48px; }
}

@media (max-width: 768px) {
  .vsg-grid {
    grid-template-columns: 1fr !important;
    gap: 3px;
  }
  .vsg-card { height: 360px; }

  /* Show all on mobile — no hover */
  .vsg-card__desc {
    max-height: 80px;
    opacity: 1;
  }
  .vsg-card__category {
    opacity: 1;
    transform: translateY(0);
  }
  .vsg-card__link {
    opacity: 1;
    transform: translateX(0);
  }
  .vsg-card__content {
    transform: translateY(0);
  }

  .vsg-bespoke {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 40px 28px;
  }

  .vsg-bespoke__right { justify-content: center; }

  .vsg-stats {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
}