/* =====================================================================
   Prakash Homepage — enhancement styles
   Hero slider · count-up · certifications · installs marquee · hover FX
   ===================================================================== */

/* ---------- HERO SLIDER ---------- */
.hero-shell { position: relative; }

.hero-slide-stack {
  position: relative;
  width: 100%;
  min-height: 320px;
  margin-bottom: 30px;
  display: flex; justify-content: center;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity .45s var(--ease-pmpl),
    transform .55s var(--ease-pmpl);
  padding: 0 22px;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.hero-slide.is-prev {
  transform: translateY(-8px);
}

/* ---------- HERO VISUAL CROSSFADE ---------- */
.hero-product-card {
  position: relative;
  min-height: 380px;
}
.hero-visual {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6%;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity .55s var(--ease-pmpl), transform .8s var(--ease-pmpl);
  pointer-events: none;
}
.hero-visual::after {
  /* tight contact shadow only — no diffuse band */
  content: '';
  position: absolute;
  left: 22%; right: 22%;
  bottom: 8%;
  height: 14px;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.06) 45%,
    rgba(0, 0, 0, 0) 75%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s var(--ease-pmpl);
}
.hero-visual.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-visual.is-active::after {
  opacity: 1;
}
.hero-visual svg {
  width: 70%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(232, 154, 43, 0.22));
}
.hero-visual img[src$=".svg"] {
  width: 70%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 50px rgba(232, 154, 43, 0.22));
}
.hero-product-img {
  width: 96%; height: auto; display: block;
  max-height: 560px; object-fit: contain;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
  /* slight brightness/contrast lift for showroom feel */
  filter:
    brightness(1.04)
    contrast(1.05)
    saturate(1.05)
    drop-shadow(0 6px 6px rgba(0, 0, 0, 0.10));
}

/* ---------- HERO CONTROLS ---------- */
.hero-controls {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin-top: 22px;
  height: 36px;
}
.hero-arrow {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.6);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s var(--ease-pmpl), color .15s var(--ease-pmpl), border-color .15s var(--ease-pmpl);
}
.hero-arrow:hover {
  background: rgba(0,0,0,0.08);
  color: #1d1d1f;
  border-color: rgba(0,0,0,0.20);
}
.hero-dots {
  display: flex; gap: 8px;
  align-items: center;
}
.hero-dot {
  position: relative;
  width: 32px; height: 4px;
  background: rgba(0,0,0,0.14);
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: width .25s var(--ease-pmpl), background .15s var(--ease-pmpl);
}
.hero-dot:hover { background: rgba(0,0,0,0.24); }
.hero-dot.is-active {
  width: 56px;
  background: rgba(255,255,255,0.18);
}
.hero-dot-fill {
  position: absolute; inset: 0;
  background: var(--brand-amber, #E89A2B);
  width: 0;
  border-radius: 2px;
}
.hero-dot.is-active .hero-dot-fill {
  animation: heroProgress 7s linear forwards;
}
@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* ---------- HERO TICKER (re-mounting refreshes counts) ---------- */
.hero-ticker { animation: tickerFadeIn .5s var(--ease-pmpl); }
@keyframes tickerFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CERTIFICATIONS STRIP ---------- */
.certifications {
  background: #f5f5f7;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 56px 22px;
}
.cert-inner {
  max-width: 1240px; margin: 0 auto;
}
.cert-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(0,0,0,0.42);
  text-align: center;
  margin-bottom: 36px;
}
.cert-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.cert-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .25s var(--ease-pmpl), box-shadow .25s var(--ease-pmpl);
}
.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
/* cert seal v2 */
.cert-seal,
.cert-glyph {
  flex-shrink: 0 !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.cert-seal > svg,
.cert-glyph > svg,
.seal-svg {
  width: 56px !important;
  height: 56px !important;
  display: block !important;
}
.cert-text { min-width: 0; }
.cert-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 2px;
}
.cert-sub {
  font-size: 11px; line-height: 1.3;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.005em;
}

/* ---------- RECENT INSTALLS MARQUEE ---------- */
.installs {
  background: #fbfbfd;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 36px 0 40px;
  overflow: hidden;
}
.installs-head {
  max-width: 1240px;
  margin: 0 auto 22px;
  padding: 0 22px;
  display: flex; align-items: center; gap: 16px;
}
.installs-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: #d8324a;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6);
  animation: pulseDot 1.6s var(--ease-pmpl) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
.installs-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.installs-track {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.installs-marquee {
  display: flex; gap: 56px;
  width: max-content;
  animation: installsScroll 60s linear infinite;
}
.installs:hover .installs-marquee { animation-play-state: paused; }
@keyframes installsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.install-item {
  display: inline-flex; align-items: baseline; gap: 14px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.005em;
}
.install-machine {
  font-weight: 600;
  color: #1d1d1f;
}
.install-arrow {
  color: var(--brand-amber, #E89A2B);
  font-weight: 400;
}
.install-where {
  color: rgba(0,0,0,0.72);
  font-weight: 400;
}
.install-when {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  letter-spacing: 0.2px;
}

/* ---------- PRODUCT TILE HOVER MICRO-INTERACTIONS ---------- */
.product-tile {
  position: relative;
  cursor: pointer;
  transform: translateY(0);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  transition:
    transform .35s var(--ease-pmpl),
    box-shadow .35s var(--ease-pmpl);
}
.product-tile::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 154, 43, 0) 0%, rgba(232, 154, 43, 0.06) 50%, rgba(232, 154, 43, 0) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease-pmpl);
  pointer-events: none;
}
.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.product-tile:hover::after { opacity: 1; }

.product-tile .product-tile-art svg {
  transition: transform .55s var(--ease-pmpl), filter .35s var(--ease-pmpl);
}
.product-tile:hover .product-tile-art svg {
  transform: scale(1.04) translateY(-2px);
  filter: drop-shadow(0 18px 30px rgba(232, 154, 43, 0.28));
}

.product-tile .product-tile-link {
  display: inline-flex; align-items: center;
  transition: gap .25s var(--ease-pmpl);
}
.product-tile:hover .product-tile-link {
  gap: 4px;
}
.product-tile .product-tile-link::after {
  content: '';
  display: inline-block;
  width: 0; opacity: 0;
  transition: width .25s var(--ease-pmpl), opacity .2s var(--ease-pmpl);
}

.product-tile-models {
  transition: color .25s var(--ease-pmpl);
}
.product-tile:hover .product-tile-models {
  color: rgba(0, 0, 0, 0.55);
}

/* Flagship cards too */
.flagship-card {
  transition: transform .35s var(--ease-pmpl), box-shadow .35s var(--ease-pmpl);
}
.flagship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.flagship-card .flagship-card-art svg {
  transition: transform .5s var(--ease-pmpl);
}
.flagship-card:hover .flagship-card-art svg {
  transform: scale(1.06);
}

/* Solution cards */
.sol-card {
  transition: transform .25s var(--ease-pmpl), border-color .25s var(--ease-pmpl);
}
.sol-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 154, 43, 0.4);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .cert-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .install-item { gap: 10px; }
  .install-item, .install-machine { font-size: 15px; }
  .install-when { font-size: 12px; }
  .hero-slide-stack { min-height: 360px; }
}

@media (max-width: 600px) {
  .cert-row { grid-template-columns: 1fr; }
  .installs-marquee { gap: 36px; }
}
