/* ============================================================================
   Valmont Web — Live Demos hub (/demos)
   Brand: navy / orange / gold. Builds on shared.css + legal.css (topbar/foot).
   ========================================================================== */

.dm-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- HERO ---------- */
.dm-hero {
  background: linear-gradient(168deg, #0e1d3d 0%, #13264d 60%, #1a3160 100%);
  color: #fff;
  padding: 58px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dm-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,140,20,.16), transparent 70%);
  top: -180px; right: -140px; pointer-events: none;
}
.dm-hero > .dm-wrap { position: relative; z-index: 1; }
.dm-hero .kicker {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-2);
  background: rgba(245, 140, 20, .14);
  border: 1px solid rgba(245, 140, 20, .35);
  padding: 7px 16px; border-radius: 100px;
}
.dm-hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
}
.dm-hero p.lead {
  margin: 16px auto 0; max-width: 660px;
  color: #c4cfe6; font-size: 16px; line-height: 1.7;
}
.dm-hero p.lead b { color: #fff; }
.dm-terms {
  margin: 22px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
}
.dm-terms span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px; padding: 9px 18px;
  font-size: 13px; font-weight: 700; color: #e8edf7;
}
.dm-terms svg { width: 15px; height: 15px; color: var(--orange-2); flex: 0 0 auto; }

/* ---------- SECTION SHELL ---------- */
.dm-sec { margin: 52px 0; }
.dm-sec-head { text-align: center; margin-bottom: 28px; }
.dm-sec-head .sec-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
}
.dm-sec-head h2 {
  margin-top: 8px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.dm-sec-head p {
  margin: 12px auto 0; max-width: 620px;
  color: var(--body); font-size: 15px; line-height: 1.7;
}
.dm-sec-head p b { color: var(--ink); }

/* ---------- LIVE PILL ---------- */
.dm-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #15803d; font-size: 11.5px; font-weight: 800;
  padding: 5px 13px; border-radius: 100px; letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.dm-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; animation: dm-pulse 2s infinite;
}
@keyframes dm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- FEATURED ---------- */
.dm-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 16px 44px rgba(14, 29, 61, .08);
}
.dm-feature-media { position: relative; min-height: 320px; background: #faf7fb; }
.dm-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-feature-media .dm-live { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.94); }
.dm-feature-body { padding: clamp(24px, 3.4vw, 36px); }
.dm-feature-body h3 {
  font-size: clamp(21px, 3vw, 27px); font-weight: 900;
  letter-spacing: -.02em; color: var(--ink); margin-top: 6px;
}
.dm-cat {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange);
}
.dm-desc { margin-top: 12px; color: var(--body); font-size: 15px; line-height: 1.7; }
.dm-problem {
  margin-top: 18px;
  background: rgba(245, 140, 20, .07);
  border: 1px solid rgba(245, 140, 20, .26);
  border-radius: 14px; padding: 15px 18px;
  color: var(--body); font-size: 14px; line-height: 1.65;
}
.dm-problem strong {
  display: block; color: var(--orange);
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px;
}
.dm-feat {
  margin: 20px 0 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px;
}
.dm-feat li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; color: var(--body); line-height: 1.5;
}
.dm-feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--orange); font-weight: 900; font-size: 13px;
}
.dm-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dm-actions .btn { font-size: 14.5px; padding: 13px 26px; }

@media (max-width: 860px) {
  .dm-feature { grid-template-columns: 1fr; }
  .dm-feature-media { min-height: 240px; }
  .dm-feat { grid-template-columns: 1fr; }
}

/* ---------- DEMO GRID ---------- */
.dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 24px;
}
.dm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dm-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 140, 20, .4);
  box-shadow: 0 18px 46px rgba(14, 29, 61, .13);
}
.dm-card-top {
  height: 150px; position: relative; overflow: hidden; background: #101f36;
  display: flex; align-items: center; justify-content: center;
}
.dm-card-top .dm-live { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); }
.dm-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* subtle tint so the white Live pill stays readable on any photo */
.dm-card-top::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,14,26,.34) 0%, rgba(8,14,26,.05) 45%, rgba(8,14,26,.20) 100%);
  pointer-events: none;
}
.dm-card-top .dm-live { z-index: 2; }
.dm-card-top.perfume { background: linear-gradient(135deg, #2a1430, #7b2d6b); }
.dm-card-top.laundry { background: linear-gradient(135deg, #07302d, #0d7d7d); }
.dm-card-top.motors{ background:linear-gradient(135deg,#0b1626 0%,#1c2b45 55%,#c8102e 100%); }
.dm-card-top.jewel  { background: linear-gradient(135deg, #221d17, #a8802c); }
.dm-card-top.group  { background: linear-gradient(135deg, #101114, #3a3f4a 55%, #8d95a3 100%); }
.dm-card-top.clinic  { background: linear-gradient(135deg, #0a1b36, #1f6feb); }
.dm-card-top.salon   { background: linear-gradient(135deg, #2a1420, #d6336c); }
.dm-card-top.data    { background: linear-gradient(135deg, #0f2318, #00b96b); }
.dm-card-top.bella   { background: linear-gradient(135deg, #3d1129, #e91e63); }
.dm-card-top.circle-motors { background: linear-gradient(135deg, #6e140c, #f2a900); }
.dm-card-top.techhub { background: linear-gradient(135deg, #0b1830, #1f8fff); }

.dm-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.dm-card-body h3 {
  font-size: 18px; font-weight: 900; color: var(--ink);
  letter-spacing: -.01em; margin-top: 5px;
}
.dm-card-body .dm-desc { margin-top: 9px; font-size: 14px; }
.dm-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.dm-tags span {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 100px; padding: 5px 12px;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.dm-for {
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
  font-weight: 600; line-height: 1.5;
}
.dm-open {
  margin-top: auto; padding-top: 18px;
  color: var(--orange); font-weight: 800; font-size: 14.5px;
  text-decoration: none; transition: gap .2s;
}
.dm-open:hover { text-decoration: underline; }

/* ---------- STEPS ---------- */
.dm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.dm-step { text-align: center; }
.dm-step-num {
  width: 46px; height: 46px; margin: 0 auto 13px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--orange-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.dm-step h3 { font-size: 16px; font-weight: 800; color: var(--ink); }
.dm-step p { margin-top: 8px; font-size: 14px; color: var(--body); line-height: 1.6; }

/* ---------- HONESTY NOTE ---------- */
.dm-note {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 18px; padding: clamp(24px, 3.4vw, 34px);
  box-shadow: 0 12px 34px rgba(14, 29, 61, .06);
}
.dm-note h2 {
  font-size: 20px; font-weight: 800; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 4px;
}
.dm-note p { margin-top: 12px; color: var(--body); font-size: 14.5px; line-height: 1.75; }
.dm-note b { color: var(--ink); }
.dm-note a { color: var(--orange); font-weight: 700; text-decoration: none; }
.dm-note a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.dm-cta {
  background: linear-gradient(150deg, #0e1d3d 0%, #13264d 60%, #1a3160 100%);
  border-radius: 24px; padding: clamp(30px, 4.4vw, 48px);
  text-align: center; color: #fff;
}
.dm-cta h2 {
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em;
}
.dm-cta p {
  margin: 14px auto 0; max-width: 560px;
  color: #c4cfe6; font-size: 15px; line-height: 1.7;
}
.dm-cta-btns {
  margin-top: 26px; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px;
}
.dm-cta .btn-ghost-l { border-color: rgba(255, 255, 255, .3); color: #fff; }
.dm-cta .btn-ghost-l:hover { border-color: var(--orange-2); color: var(--orange-2); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 110;
  display: flex; align-items: center; gap: 9px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14.5px;
  padding: 13px 20px; border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .33); }
.fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fab svg { flex: 0 0 auto; }
@media (max-width: 640px) { .fab { left: 14px; bottom: 14px; padding: 12px 17px; font-size: 13.5px; } }

/* --- "Like what you just clicked?" -----------------------------------------
   Cross-links from the demo hub into the landing pages that price each kind of
   build. The demos are the strongest lead asset on the site; this is the path
   from "that's nice" to "what would it cost me". */
.demo-buy { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 56px; }
.demo-buy h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-align: center; }
.demo-buy > .wrap > p { margin: 12px auto 0; max-width: 660px; text-align: center; color: var(--body); font-size: 15px; line-height: 1.75; }
.demo-buy em { font-style: normal; color: var(--orange); font-weight: 800; }
.demo-buy-grid { margin-top: 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.demo-buy-grid a {
  display: flex; flex-direction: column; gap: 5px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 19px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.demo-buy-grid a:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 29, 61, .09); }
.demo-buy-grid strong { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.demo-buy-grid span { font-size: 13px; line-height: 1.6; color: var(--body); }
.demo-buy-grid a em { margin-top: 5px; font-size: 13px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); padding-top: 9px; }
.demo-buy-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
