/* =========================================================
   SAVCLICK Tech — Smart Home/Hotel Automation (load after style.css + tech.css)
   ========================================================= */

/* ---------- Hero: illustrated control panel ---------- */
.sh-panel {
  background: linear-gradient(160deg, #13203d 0%, var(--savclick-navy-primary) 70%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}
.sh-panel-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.sh-panel-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.sh-panel-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.sh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sh-tile svg { width: 26px; height: 26px; margin-bottom: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: rgba(255, 255, 255, 0.55); }
.sh-tile-name { font-weight: 600; font-size: 0.88rem; }
.sh-tile-state { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }
.sh-tile.is-on { background: var(--white); color: var(--savclick-navy-primary); border-color: var(--white); }
.sh-tile.is-on svg { color: var(--savclick-azure-action); }
.sh-tile.is-on .sh-tile-state { color: var(--savclick-azure-action); }

.sh-scene {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.22);
  font-size: 0.86rem;
}
.sh-scene span:first-child { color: rgba(255, 255, 255, 0.6); }
.sh-scene-btn { margin-left: auto; padding: 5px 14px; border-radius: 999px; background: var(--savclick-azure-action); font-weight: 600; font-size: 0.8rem; }

@media (max-width: 420px) {
  .sh-panel { padding: 18px; }
  .sh-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Homes vs hotels ---------- */
.sh-audience { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .sh-audience { grid-template-columns: 1fr 1fr; } }
.sh-audience-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--savclick-plat-bg);
  border: 1px solid var(--border-hairline);
}
.sh-audience-card h3 { font-size: 1.3rem; margin: 12px 0 16px; }
.sh-audience-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--azure-08); color: var(--savclick-azure-action);
}
.sh-audience-card.is-dark { background: var(--savclick-navy-primary); color: var(--white); border-color: var(--savclick-navy-primary); }
.sh-audience-card.is-dark .sh-audience-tag { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.sh-audience-card.is-dark .sh-list li { color: rgba(255, 255, 255, 0.8); }
.sh-audience-card.is-dark .sh-list li::before { background: var(--savclick-mint-value); }

.sh-list { display: flex; flex-direction: column; gap: 10px; }
.sh-list li { position: relative; padding-left: 22px; color: var(--navy-70); font-size: 0.95rem; }
.sh-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--savclick-azure-action);
}

/* ---------- Hero list: one item per line on phones ---------- */
@media (max-width: 639px) {
  .sh-suites { flex-direction: column; gap: 10px; }
}

/* ---------- Smart Home & Hotel Solutions showcase (dark band with photo cards) ---------- */
.sh-showcase {
  --sh-ink: #02070f;
  --sh-blue: #0b4ea2;
  background-color: var(--sh-ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  color: var(--white);
  padding: 96px 0;
}
.sh-showcase-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .sh-showcase-grid { grid-template-columns: 0.95fr 3fr; gap: 64px; } }

.sh-showcase-copy h2 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 22px;
}
.sh-showcase-copy h2 span { color: var(--savclick-azure-action); }
.sh-showcase-copy p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; line-height: 1.6; margin-bottom: 40px; max-width: 460px; }

.sh-showcase-btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 34px;
  border-radius: 6px;
  background: var(--sh-blue);
  color: var(--white);
  font-size: 1.05rem; font-weight: 500;
  transition: background 0.15s ease;
}
.sh-showcase-btn:hover { background: var(--savclick-azure-action); }
.sh-showcase-btn svg { width: 32px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.15s ease; }
.sh-showcase-btn:hover svg { transform: translateX(4px); }

.sh-showcase-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; align-items: start; }
.sh-show-card { display: flex; flex-direction: column; background: var(--sh-blue); }
.sh-show-card.is-offset { margin-top: 16px; }
.sh-show-card img { width: 100%; height: auto; aspect-ratio: 272 / 378; object-fit: cover; }
.sh-show-label {
  display: flex; align-items: center; justify-content: center;
  min-height: 164px; padding: 20px 24px;
  text-align: center;
  font-size: clamp(1.1rem, 1.9vw, 1.55rem); line-height: 1.3;
}

/* Tablet: tighter gaps */
@media (max-width: 1023px) {
  .sh-showcase { padding: 72px 0; }
  .sh-showcase-cards { gap: 20px; }
  .sh-show-label { min-height: 110px; padding: 16px; }
}
/* Phone: cards scroll sideways */
@media (max-width: 639px) {
  .sh-showcase-cards {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .sh-showcase-cards::-webkit-scrollbar { display: none; }
  .sh-show-card { flex: 0 0 62%; scroll-snap-align: start; }
  .sh-show-label { min-height: 96px; font-size: 1.2rem; }
  .sh-showcase-btn { width: 100%; justify-content: center; padding: 20px 24px; }
}

/* ---------- Video carousel ("See it in action") ---------- */
.vc-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .vc-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.vc-copy h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.vc-lead { color: var(--navy-70); margin-bottom: 28px; }
.vc-caption { border-left: 3px solid var(--savclick-azure-action); padding: 4px 0 4px 18px; margin-bottom: 28px; min-height: 118px; }
.vc-count { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--navy-70); margin: 0 0 6px; }
.vc-count span { color: var(--savclick-azure-action); }
.vc-caption h3 { font-size: 1.3rem; color: var(--savclick-navy-primary); margin-bottom: 6px; }
.vc-caption p:last-child { color: var(--navy-70); margin: 0; }

.vc-controls { display: flex; gap: 10px; }
.vc-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy-14); background: var(--white); color: var(--savclick-navy-primary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vc-btn:hover { background: var(--savclick-navy-primary); border-color: var(--savclick-navy-primary); color: var(--white); }
.vc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-btn .vc-ico-play { display: none; fill: currentColor; stroke: none; }
.vc-section.is-paused .vc-ico-pause { display: none; }
.vc-section.is-paused .vc-ico-play { display: block; }

.vc-stage {
  position: relative;
  width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 480 / 784;
  border-radius: 22px; overflow: hidden;
  background: var(--savclick-navy-primary);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.25);
}
@media (min-width: 900px) { .vc-stage { margin: 0; justify-self: center; } }
.vc-track { position: absolute; inset: 0; }
.vc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.vc-slide.is-active { opacity: 1; }
.vc-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Story-style progress bars across the top of the video */
.vc-segs { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; gap: 6px; padding: 14px 14px 24px; background: linear-gradient(rgba(0, 0, 0, 0.45), transparent); }
.vc-seg { flex: 1; height: 16px; padding: 6px 0; display: flex; align-items: center; }
.vc-seg span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.vc-seg span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0)); }
