/* ==========================================================================
   HOME PAGE BLOCKS — Krishna Ink
   Hero slider + class-based section layout (replaces former inline styles)
   ========================================================================== */

/* ---------- Hero slider ---------- */
.hs { position: relative; background: #160438; color: #fff; overflow: hidden; }
.hs-viewport { position: relative; min-height: clamp(540px, 82vh, 780px); }
.hs-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hs-media, .hs-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-media img { object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hs-slide.is-active .hs-media img { transform: scale(1); }
.hs-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,4,56,.92) 0%, rgba(22,4,56,.72) 45%, rgba(22,4,56,.25) 100%);
}
.hs-content { position: relative; z-index: 2; max-width: 680px; padding: 72px 0 110px; }
.hs-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 22px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  font-size: .85rem; font-weight: 600; color: #FFD600; backdrop-filter: blur(8px);
}
.hs-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E50919; }
.hs-title { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; color: #fff; }
.hs-title em { font-style: normal; color: #FFD600; }
.hs-text { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; color: #E0D6F5; margin: 0 0 32px; max-width: 560px; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hs-slide.is-active .hs-content > * { animation: hsUp .8s ease both; }
.hs-slide.is-active .hs-content > :nth-child(2) { animation-delay: .1s; }
.hs-slide.is-active .hs-content > :nth-child(3) { animation-delay: .2s; }
.hs-slide.is-active .hs-content > :nth-child(4) { animation-delay: .3s; }
@keyframes hsUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hs-arrow {
  position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(22,4,56,.45); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.hs-arrow:hover { background: #E50919; border-color: #E50919; }
.hs-arrow:focus-visible, .hs-dot:focus-visible, .hs-pause:focus-visible { outline: 3px solid #FFD600; outline-offset: 2px; }
.hs-prev { left: 20px; } .hs-next { right: 20px; }
.hs-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 28px; }
.hs-controls .container { display: flex; align-items: center; gap: 14px; }
.hs-dots { display: flex; gap: 10px; }
.hs-dot { width: 34px; height: 5px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; position: relative; overflow: hidden; }
.hs-dot.is-active { background: rgba(255,255,255,.35); }
.hs-dot.is-active::after { content: ""; position: absolute; inset: 0; background: #FFD600; transform-origin: left; animation: hsBar var(--hs-delay, 6s) linear forwards; }
.hs.is-paused .hs-dot.is-active::after { animation-play-state: paused; }
@keyframes hsBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; font-size: .75rem; line-height: 1; }
.hs-count { margin-left: auto; font-size: .85rem; color: #C4B5FD; font-variant-numeric: tabular-nums; }

/* ---------- Stats bar ---------- */
.hp-stats { background: #3B0A8F; color: #fff; padding: 44px 0; border-bottom: 4px solid #FFD600; }
.hp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.hp-stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #FFD600; line-height: 1; margin-bottom: 8px; }
.hp-stat-label { font-size: .9rem; font-weight: 600; color: #E0D6F5; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Shared block helpers ---------- */
.hp-section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; color: #1A1A2E; line-height: 1.2; margin: 0 0 16px; }
.hp-section-desc { font-size: 1.05rem; color: #666680; line-height: 1.65; max-width: 720px; margin: 0; }
.hp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hp-copy p { font-size: 1.05rem; line-height: 1.7; color: #4A4A68; margin: 0 0 20px; }
.hp-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(59,10,143,.1); color: #3B0A8F; }
.hp-icon svg { width: 24px; height: 24px; }
.hp-icon.is-red { background: rgba(229,9,25,.09); color: #E50919; }

/* about */
.hp-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 32px 0 36px; }
.hp-point { display: flex; gap: 14px; align-items: flex-start; }
.hp-point h3 { font-size: 1.02rem; font-weight: 700; color: #1A1A2E; margin: 0 0 4px; }
.hp-point p { font-size: .9rem; color: #666680; line-height: 1.5; margin: 0; }
.hp-photo { position: relative; }
.hp-photo > img { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.12); border: 4px solid #F3F0FA; }
.hp-badge-float { position: absolute; left: -20px; bottom: 30px; display: flex; align-items: center; gap: 14px; padding: 18px 26px; background: #3B0A8F; color: #fff; border-radius: 16px; border-left: 5px solid #FFD600; box-shadow: 0 15px 30px rgba(59,10,143,.3); }
.hp-badge-float strong { font-size: 2.2rem; line-height: 1; color: #FFD600; }
.hp-badge-float span { font-size: .8rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }

/* cards */
.hp-grid-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.hp-grid-flex > .hp-card { flex: 0 1 calc((100% - 56px) / 3); }
.hp-grid { display: grid; gap: 28px; }
.hp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ECE8F5; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.hp-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(59,10,143,.16); }
.hp-card-visual { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px), linear-gradient(135deg, var(--c1, #3B0A8F), var(--c2, #6B35C8)); background-size: 20px 20px, 100% 100%; }
.hp-card-visual span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.hp-card-visual svg { width: 32px; height: 32px; }
.hp-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 26px; }
.hp-card-tag { font-size: .72rem; font-weight: 700; color: #E50919; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.hp-card h3 { font-size: 1.25rem; font-weight: 700; color: #1A1A2E; margin: 0 0 10px; }
.hp-card p { font-size: .93rem; color: #666680; line-height: 1.6; margin: 0 0 20px; flex-grow: 1; }
.hp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .93rem; color: #3B0A8F; text-decoration: none; }
.hp-link:hover { color: #E50919; }
.hp-link svg { width: 16px; height: 16px; transition: transform .2s; } .hp-link:hover svg { transform: translateX(4px); }

.hp-tile { padding: 30px; background: #F9F8FD; border: 1px solid #ECE7F6; border-radius: 16px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.hp-tile:hover { transform: translateY(-4px); border-color: #3B0A8F; box-shadow: 0 12px 28px rgba(59,10,143,.1); }
.hp-tile .hp-icon { margin-bottom: 18px; }
.hp-tile h3 { font-size: 1.15rem; font-weight: 700; color: #1A1A2E; margin: 0 0 10px; }
.hp-tile p { font-size: .93rem; color: #55556B; line-height: 1.6; margin: 0 0 14px; }

.hp-feature { padding: 32px; background: #fff; border-radius: 16px; border-top: 4px solid #3B0A8F; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.hp-feature.is-red { border-top-color: #E50919; }
.hp-feature .hp-icon { margin-bottom: 18px; }
.hp-feature h3 { font-size: 1.12rem; font-weight: 700; color: #1A1A2E; margin: 0 0 10px; }
.hp-feature p { font-size: .93rem; color: #666680; line-height: 1.6; margin: 0; }

/* quality (dark) */
.hp-dark { position: relative; background: #160438 url('../assets/images/cta-bg.jpg') center / cover no-repeat; color: #fff; overflow: hidden; }
.hp-dark::before { content: ""; position: absolute; inset: 0; background: rgba(22,4,56,.78); }
.hp-dark > .container { position: relative; }
.hp-dark .hp-section-title { color: #fff; }
.hp-dark .hp-copy > p { color: #D8CEF0; }
.hp-checks { display: grid; gap: 18px; margin-top: 28px; }
.hp-check { display: flex; gap: 14px; align-items: flex-start; }
.hp-check i { flex-shrink: 0; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: #FFD600; color: #160438; display: flex; align-items: center; justify-content: center; }
.hp-check i svg { width: 15px; height: 15px; }
.hp-check h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 0 0 2px; }
.hp-check p { font-size: .9rem; color: #C3B4E3; line-height: 1.5; margin: 0; }
.hp-dark .hp-photo > img { border-color: rgba(255,255,255,.15); box-shadow: 0 25px 50px rgba(0,0,0,.5); }

/* CTA */
.hp-cta { padding: 80px 0; background: #3B0A8F; color: #fff; text-align: center; }
.hp-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; color: #fff; margin: 0 auto 16px; max-width: 800px; line-height: 1.2; }
.hp-cta p { font-size: 1.1rem; line-height: 1.6; color: #E0D6F5; margin: 0 auto 32px; max-width: 700px; }
.hp-cta .hs-actions { justify-content: center; }
.hp-cta .btn-primary { background: #E50919; border-color: #E50919; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hp-grid-flex > .hp-card { flex-basis: calc((100% - 28px) / 2); }
  .hp-split { gap: 40px; }
}
@media (max-width: 900px) {
  .hs-viewport { min-height: clamp(520px, 78vh, 640px); }
  .hs-media::after { background: linear-gradient(180deg, rgba(22,4,56,.8) 0%, rgba(22,4,56,.88) 100%); }
  .hs-arrow { display: none; }
  .hs-content { padding: 56px 0 100px; }
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-split { grid-template-columns: 1fr; }
  .hp-badge-float { left: 12px; }
}
@media (max-width: 640px) {
  .hp-grid-3, .hp-grid-4, .hp-points { grid-template-columns: 1fr; }
  .hp-grid-flex > .hp-card { flex-basis: 100%; }
  .hs-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hs-count { display: none; }
  .hp-tile, .hp-feature { padding: 24px; }
  .hp-cta { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: none; }
  .hs-media img { transform: none !important; transition: none; }
  .hs-slide.is-active .hs-content > * { animation: none; }
  .hs-dot.is-active::after { animation: none; transform: none; }
  .hp-card, .hp-tile { transition: none; }
}

/* compact slider variant (inner pages) */
.hs-compact .hs-viewport { min-height: clamp(400px, 56vh, 500px); }
.hs-compact .hs-media img { object-position: right center; }
.hs-compact .hs-content { padding: 56px 0 96px; max-width: 600px; }
.hs-compact .hs-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.hs-compact .hs-text { margin-bottom: 24px; }
@media (max-width: 900px) { .hs-compact .hs-viewport { min-height: 460px; } .hs-compact .hs-media img { opacity: .55; } }
