/* ==========================================================================
   HindiSpark – homepage sections
   Loaded only on the page using the "HindiSpark Homepage" template.
   Colours, fonts, buttons, cards, header and footer live in site.css.
   Also loaded on the 404 page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hs-hero { background: var(--hs-mist); }
.hs-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hs-hero__content { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
#hs-main .hs-hero__title {
	font-family: var(--hs-font-head); font-size: clamp(36px, 5vw, 54px); line-height: 1.12;
	font-weight: 700; letter-spacing: -1px; color: var(--hs-ink);
}
.hs-hero__lead { font-size: 20px; color: var(--hs-body); max-width: 560px; }
.hs-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-hero__trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.hs-hero__trending-label { font-weight: 600; color: var(--hs-body); }

.hs-hero__visual { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }
.hs-preview {
	background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius);
	box-shadow: 0 18px 40px rgba(17, 24, 39, .10); max-width: 100%;
}
.hs-preview--wish { align-self: flex-end; width: 380px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.hs-preview--wish p { font-size: 18px; color: var(--hs-ink); }
.hs-preview__head { display: flex; align-items: center; gap: 10px; }
.hs-preview__cat { font-size: 15px; font-weight: 600; color: var(--hs-saffron-dark); }
.hs-preview__actions { display: flex; gap: 8px; }
.hs-fake-btn { padding: 7px 14px; border-radius: 10px; border: 1px solid #d1d5db; font-size: 14px; font-weight: 600; color: var(--hs-body); }
.hs-fake-btn--green { background: var(--hs-green); border-color: var(--hs-green); color: #fff; }
.hs-preview--bio { align-self: flex-start; margin-top: -18px; width: 360px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.hs-preview__thumb {
	width: 84px; height: 84px; flex-shrink: 0; border-radius: 14px; background: #e0e7ff; color: #3730a3;
	display: flex; align-items: center; justify-content: center;
}
.hs-preview__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-preview__title { font-family: var(--hs-font-head); font-size: 17px; font-weight: 600; line-height: 1.3; }
.hs-preview__sub { font-size: 14px; color: var(--hs-muted); line-height: 1.5; }

@media (max-width: 700px) {
	.hs-hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
	.hs-hero__lead { font-size: 18px; }
	#hs-main .hs-search .hs-btn { padding: 0 16px; }
}

/* Feature cards */
.hs-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
#hs-main .hs-feature { display: flex; align-items: flex-start; gap: 22px; padding: 32px; border-radius: 20px; color: var(--hs-ink); }
.hs-feature--blue { background: var(--hs-blue-soft); }
.hs-feature--saffron { background: var(--hs-saffron-soft); }
.hs-feature__body { display: flex; flex-direction: column; gap: 8px; }
.hs-feature__title { font-family: var(--hs-font-head); font-size: 26px; font-weight: 600; line-height: 1.25; }
.hs-feature__text { color: var(--hs-body); }
#hs-main .hs-feature .hs-link { padding: 6px 0 0; }
@media (max-width: 480px) { #hs-main .hs-feature { flex-direction: column; padding: 24px; } }

/* Popular wishes tiles */
.hs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
#hs-main .hs-tile {
	display: flex; flex-direction: column; overflow: hidden; background: #fff;
	border: 1px solid var(--hs-line); border-radius: var(--hs-radius); color: var(--hs-ink);
}
.hs-tile__art { height: 110px; display: flex; align-items: center; justify-content: center; }
.hs-tile__text { padding: 14px 16px; display: flex; flex-direction: column; }
.hs-tile__name { font-family: var(--hs-font-head); font-size: 16px; font-weight: 600; }
.hs-tile__hi { font-size: 15px; color: var(--hs-muted); }
@media (max-width: 420px) { .hs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Upcoming festivals */
.hs-festivals { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 18px; }
#hs-main .hs-fest {
	display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--hs-radius);
	border: 1px solid var(--hs-line); background: #fff; color: var(--hs-ink);
}
.hs-fest__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hs-fest__date {
	width: 58px; height: 62px; border-radius: 14px; background: var(--hs-saffron-soft); color: var(--hs-saffron-dark);
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.hs-fest__day { font-family: var(--hs-font-head); font-size: 24px; font-weight: 700; }
.hs-fest__month { font-size: 13px; font-weight: 600; }
.hs-fest__left { padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: var(--hs-body); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hs-fest__names { display: flex; flex-direction: column; }
.hs-fest__name { font-family: var(--hs-font-head); font-size: 17px; font-weight: 600; line-height: 1.35; }
.hs-fest__hi { font-size: 15px; color: var(--hs-muted); }
.hs-fest__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--hs-font-head); font-size: 14px; font-weight: 600; color: var(--hs-blue); }
#hs-main .hs-fest--next { background: var(--hs-saffron-soft); border: 1.5px solid #fdba74; }
.hs-fest--next .hs-fest__date, .hs-fest--next .hs-fest__left { background: var(--hs-saffron); color: #fff; }
.hs-fest--next .hs-fest__cta { color: var(--hs-saffron-dark); }
@media (max-width: 420px) { .hs-festivals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } #hs-main .hs-fest { padding: 16px; } }

/* --------------------------------------------------------------------------
   Fresh wishes slider
   ----------------------------------------------------------------------- */
.hs-slider__nav { display: flex; gap: 10px; }
#hs-main .hs-slider__arrow {
	width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 50%; border: 1px solid #d1d5db;
	background-color: #fff; color: var(--hs-ink);
	display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s;
}
#hs-main .hs-slider__arrow:hover:not(:disabled) { background-color: var(--hs-ink); color: #fff; border-color: var(--hs-ink); }
#hs-main .hs-slider__arrow:disabled { background-color: #fff; color: var(--hs-ink); border-color: #d1d5db; opacity: .4; cursor: default; }

.hs-slider { --hs-per-view: 3; --hs-gap: 24px; }
.hs-slider__track {
	display: grid; grid-auto-flow: column; gap: var(--hs-gap);
	grid-auto-columns: calc((100% - (var(--hs-per-view) - 1) * var(--hs-gap)) / var(--hs-per-view));
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
	padding: 4px 2px 8px; margin: -4px -2px 0; scrollbar-width: none;
}
.hs-slider__track::-webkit-scrollbar { display: none; }
.hs-slider__track:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media (max-width: 1024px) { .hs-slider { --hs-per-view: 2; } }
@media (max-width: 680px) {
	.hs-slider { --hs-gap: 14px; }
	.hs-slider__track { grid-auto-columns: 86%; }
}
@media (prefers-reduced-motion: reduce) { .hs-slider__track { scroll-behavior: auto; } }

.hs-wish {
	scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 26px;
	border-radius: var(--hs-radius); background: #fff; border: 1px solid var(--hs-line);
}
.hs-wish__cat { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--hs-saffron-dark); }
#hs-main .hs-wish__title { font-family: var(--hs-font-head); font-size: 21px; font-weight: 600; line-height: 1.4; }
#hs-main .hs-wish__title a { color: var(--hs-ink); }
#hs-main .hs-wish__title a:hover { color: var(--hs-blue); }
.hs-wish__text { font-size: 18px; line-height: 1.75; color: var(--hs-body); flex: 1; }
.hs-wish__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }


.hs-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; min-height: 12px; }
#hs-main .hs-slider__dot {
	width: 10px; height: 10px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 999px;
	background-color: #cbd5e1; transition: width .2s, background-color .2s;
}
#hs-main .hs-slider__dot:hover { background-color: #94a3b8; }
#hs-main .hs-slider__dot[aria-current="true"] { width: 28px; background-color: var(--hs-blue); }
.hs-slider__footer { display: flex; justify-content: center; margin-top: 8px; }

/* --------------------------------------------------------------------------
   404 page
   ----------------------------------------------------------------------- */
.hs-404__hero { background: var(--hs-mist); }
.hs-404__inner {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
	padding-top: 72px; padding-bottom: 80px; max-width: 760px;
}
#hs-main .hs-404__code {
	display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
	font-family: var(--hs-font-head); font-size: clamp(88px, 16vw, 148px); font-weight: 700;
	line-height: 1; letter-spacing: -4px; color: var(--hs-blue);
}
.hs-404__zero {
	display: inline-flex; align-items: center; justify-content: center;
	width: .78em; height: .92em; border-radius: 999px; background: var(--hs-saffron-soft); color: var(--hs-saffron);
}
.hs-404__zero .hs-icon { width: .48em; height: .48em; }
#hs-main .hs-404__title {
	display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0;
	font-family: var(--hs-font-head); font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.35; color: var(--hs-ink);
}
.hs-404__title-en { font-size: .55em; font-weight: 600; color: var(--hs-muted); letter-spacing: 0; }
#hs-main .hs-404__text { font-size: 19px; color: var(--hs-body); max-width: 600px; }
.hs-404__search { width: 100%; margin-top: 6px; text-align: left; }
.hs-404__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hs-404__chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 15px; }
@media (max-width: 600px) {
	.hs-404__inner { padding-top: 48px; padding-bottom: 56px; }
	.hs-404__ctas .hs-btn { flex: 1 1 100%; }
}

/* Mobile fine-tuning (checked at 390px) */
@media (max-width: 600px) {
	.hs-section__title-hi { display: block; margin-top: 2px; }
}
@media (max-width: 520px) {
	.hs-hero__visual { display: none; }   /* decorative preview cards – save space on phones */
}
