/* Density Selector — standalone WP page, sits inside the HighendWP-child theme
 * shell (header + footer come from theme). Brand palette matches the
 * /vis-studio-prototype/ tool so designers feel the link between the two.
 */

:root {
  --ds-bg: #0a0a0c;
  --ds-bg-2: #16161a;
  --ds-bord: #25252a;
  --ds-text: #e8e8ea;
  --ds-mute: #9b9ba2;
  --ds-gold: #c8a96a;
  --ds-gold-soft: rgba(200, 169, 106, 0.25);
}

/* Reset some HighendWP wrapper padding so the page reads full-bleed. */
body.page-template-page-density-selector { background: var(--ds-bg); color: var(--ds-text); }
body.page-template-page-density-selector #main,
body.page-template-page-density-selector .site-content,
body.page-template-page-density-selector .content-area { background: var(--ds-bg); }

.ds-main {
  font-family: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--ds-text);
  background: var(--ds-bg);
  padding: 60px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- HERO ---------- */
.ds-hero { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.ds-eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ds-gold); font-weight: 600; margin-bottom: 14px;
}
.ds-h1 {
  font-size: 48px; line-height: 1.05; font-weight: 300;
  letter-spacing: -0.01em; margin-bottom: 18px; color: #fff;
}
.ds-lead { font-size: 16px; line-height: 1.6; color: var(--ds-mute); }

.ds-h2 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ds-mute); font-weight: 600; margin-bottom: 18px;
  text-align: center;
}
.ds-h2--center { margin-bottom: 14px; }

/* ---------- TILE PICKER ---------- */
.ds-picker { margin: 0 auto 70px; max-width: 1000px; }
.ds-tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  max-width: 760px; margin: 0 auto 32px;
}
.ds-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; background: none; border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}
.ds-tile:hover { transform: translateY(-2px); }
.ds-tile:hover .ds-tile__swatch { box-shadow: 0 0 0 1px var(--ds-gold); }
.ds-tile.is-active { border-color: var(--ds-gold); }
.ds-tile.is-active .ds-tile__swatch { box-shadow: 0 0 0 2px var(--ds-gold), 0 0 24px var(--ds-gold-soft); }
.ds-tile__swatch {
  display: block; aspect-ratio: 1; border-radius: 4px;
  /* A real photo sits behind each swatch; the white "frosting" gradient on top
     is set to that density's opacity (--swatch-op), so D0 reveals the image and
     D4 nearly whites it out — showing what each density does to what's behind it.
     url() is relative to this stylesheet -> density-selector/density-bg.jpg. */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,calc(var(--swatch-op) * 1)), rgba(220,220,220,calc(var(--swatch-op) * 1))),
    url('density-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--ds-bord);
  transition: box-shadow 0.15s;
}
.ds-tile__label {
  font-size: 22px; font-weight: 300; color: #fff;
  text-align: center; margin-top: 12px; letter-spacing: 0.04em;
}
.ds-tile__code {
  font-size: 10px; letter-spacing: 0.1em; color: var(--ds-gold);
  text-align: center; margin-top: 4px; font-weight: 500;
}
.ds-tile__pct {
  font-size: 10px; color: var(--ds-mute);
  text-align: center; margin-top: 2px; letter-spacing: 0.04em;
}

/* ---------- SLIDER ---------- */
.ds-slider-wrap {
  display: flex; align-items: center; gap: 14px;
  max-width: 700px; margin: 0 auto;
  padding: 16px 22px; background: var(--ds-bg-2); border: 1px solid var(--ds-bord); border-radius: 6px;
}
.ds-slider-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ds-mute); white-space: nowrap;
}
.ds-slider { flex: 1; accent-color: var(--ds-gold); }
.ds-slider-out {
  min-width: 50px; text-align: right;
  font-size: 16px; color: var(--ds-gold); font-weight: 600; letter-spacing: 0.04em;
}
.ds-fine-note {
  font-size: 13px; line-height: 1.6; color: var(--ds-mute);
  text-align: center; max-width: 600px; margin: 18px auto 0;
}
.ds-fine-note strong { color: var(--ds-text); font-weight: 600; }

/* ---------- SCENES ---------- */
.ds-scenes { margin: 0 auto 70px; max-width: 1200px; }
.ds-scenes__note {
  text-align: center; font-size: 14px; color: var(--ds-mute);
  max-width: 640px; margin: 0 auto 28px;
}
.ds-scenes__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 800px) { .ds-scenes__grid { grid-template-columns: 1fr; } }
.ds-scene { margin: 0; }
.ds-scene__photo {
  position: relative; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7), 0 0 0 1px var(--ds-bord);
}
/* The glass overlay panel — covers the right half of the photo, shifts
 * opacity based on the slider. Subtle drop-shadow + bevel makes it read
 * as a real laminated panel sitting in front of the scene. */
.ds-scene__overlay {
  position: absolute; top: 6%; right: 4%; bottom: 6%; left: 38%;
  background: #ffffff;
  opacity: 0.5; /* JS overwrites this */
  transition: opacity 0.18s ease-out;
  border-radius: 2px;
  box-shadow:
    /* subtle drop shadow from the panel */
    -8px 8px 18px -4px rgba(0,0,0,0.4),
    /* faint laminate seam on inside */
    inset 0 0 0 1px rgba(255,255,255,0.6);
  pointer-events: none;
}
/* Thin vertical seam showing where the glass starts — helps designers
 * see "without glass | with glass" */
.ds-scene__seam {
  position: absolute; top: 6%; bottom: 6%; left: 38%; width: 1px;
  background: rgba(255,255,255,0.4); pointer-events: none;
}
.ds-scene figcaption {
  margin-top: 12px; text-align: center;
}
.ds-scene__pin {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ds-mute); font-weight: 600;
}

/* ---------- CTA ---------- */
.ds-cta {
  margin: 0 auto; max-width: 700px;
  text-align: center; padding: 40px 24px;
  background: var(--ds-bg-2); border: 1px solid var(--ds-bord); border-radius: 6px;
}
.ds-cta__copy { font-size: 15px; line-height: 1.6; color: var(--ds-mute); margin-bottom: 24px; }
.ds-cta__buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ds-btn {
  display: inline-block; padding: 12px 22px; border-radius: 4px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ds-bord); background: transparent; color: var(--ds-text);
  text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ds-btn:hover { background: #1c1c22; border-color: var(--ds-gold); color: var(--ds-gold); }
.ds-btn--primary {
  background: var(--ds-gold); color: var(--ds-bg); border-color: var(--ds-gold);
}
.ds-btn--primary:hover {
  background: #d8b97a; border-color: #d8b97a; color: var(--ds-bg);
}
