﻿/* PresentTool™ Storytelling — section: viewer-cta (v3.7.0)
   ──────────────────────────────────────────────────────────── */

.story-section--viewer-cta {
  position: relative;
  width: 100%;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background: #14120E;
  color: #fff;
  padding: 96px 24px;
}

.viewer-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(200, 149, 108, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 75% 65%, rgba(139, 69, 19, 0.30) 0%, transparent 60%),
    linear-gradient(180deg, #2A211A 0%, #14110D 50%, #06050A 100%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}
.viewer-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 235, 200, 0.04) 38%, transparent 56%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.viewer-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.viewer-cta__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.viewer-cta__eyebrow {
  font-family: var(--pt-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.viewer-cta__eyebrow::before,
.viewer-cta__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.40);
}

.viewer-cta__title {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: #fff;
  margin: 0;
}

.viewer-cta__sub {
  font-family: var(--pt-sans);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 580px;
}

/* ────── Scene grid ────── */
.viewer-cta__grid {
  margin-top: 12px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  justify-content: center;
}

.viewer-cta__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #1a1814 center / cover no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  padding: 0;
  color: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.viewer-cta__thumb:hover,
.viewer-cta__thumb:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 149, 108, 0.60);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  outline: none;
}
.viewer-cta__thumb:focus-visible {
  outline: 2px solid var(--pt-secondary);
  outline-offset: 3px;
}
.viewer-cta__thumb--blank {
  background:
    linear-gradient(135deg, #2a221a 0%, #1a140e 100%);
}
.viewer-cta__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.60) 100%);
  pointer-events: none;
}
.viewer-cta__thumb-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pt-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.viewer-cta__thumb-num {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.viewer-cta__thumb-title {
  font-family: var(--pt-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

/* ────── Real Unsplash interior fall-back tiles (ported) ────── */
.viewer-cta__thumb.vt-entree {
  background-color: #2A1F18;
  background-image: url("https://images.unsplash.com/photo-1615873968403-89e068629265?w=480&auto=format&fit=crop&q=70");
}
.viewer-cta__thumb.vt-salon {
  background-color: #1A140E;
  background-image: url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=480&auto=format&fit=crop&q=70");
}
.viewer-cta__thumb.vt-keuken {
  background-color: #2C271E;
  background-image: url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=480&auto=format&fit=crop&q=70");
}
.viewer-cta__thumb.vt-slaapkamer {
  background-color: #1A1410;
  background-image: url("https://images.unsplash.com/photo-1631679706909-1844bbd07221?w=480&auto=format&fit=crop&q=70");
}

/* ────── CTA-button ────── */
.viewer-cta__btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--pt-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.viewer-cta__btn:hover,
.viewer-cta__btn:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  color: #1A1A1A;
  text-decoration: none;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
  outline: none;
}
.viewer-cta__btn:focus-visible {
  outline: 2px solid var(--pt-secondary);
  outline-offset: 3px;
}
.viewer-cta__btn-arrow {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

.viewer-cta__foot {
  margin-top: 4px;
  font-family: var(--pt-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ────── Empty state ────── */
.viewer-cta__empty {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  border: 1.2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 28px);
  width: 100%;
  max-width: 520px;
}
.viewer-cta__empty-art {
  width: 96px;
  height: 64px;
  color: rgba(255, 255, 255, 0.45);
}
.viewer-cta__empty-text {
  margin: 0;
  font-family: var(--pt-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
}

/* ────── Mobile: horizontal scroll ────── */
@media (max-width: 720px) {
  .story-section--viewer-cta {
    min-height: 0;
    padding: 72px 0 64px;
  }
  .viewer-cta__content {
    padding: 0 22px;
    gap: 18px;
  }
  .viewer-cta__title { font-size: 30px; }
  .viewer-cta__sub   { font-size: 14px; }
  .viewer-cta__btn   {
    width: calc(100% - 0px);
    justify-content: center;
    padding: 14px 22px;
    font-size: 14px;
  }
  .viewer-cta__grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 22px;
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .viewer-cta__grid::-webkit-scrollbar { display: none; }
  .viewer-cta__thumb {
    flex: 0 0 64%;
    max-width: 240px;
    aspect-ratio: 16 / 10;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-cta__thumb,
  .viewer-cta__btn { transition: none; }
}
