/* Services — the mockup's "Services & Hair-Length Pricing" cards */
.hs-w--services .hs-w__head { margin-bottom: 40px; }
.hs-w--services .hs-w__toolbar { margin: 0 0 40px; }
.hs-services__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.hs-w .hs-services__filter .h-chip { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.hs-services__search { position: relative; flex: none; width: 288px; max-width: 100%; }
.hs-w .hs-services__search .h-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--h-muted); pointer-events: none; }
.hs-w .hs-services__search .h-input { min-height: 42px; padding: 0 16px 0 44px; }
.hs-w .hs-services__search .h-input::placeholder { color: var(--h-muted); opacity: 1; }
.hs-w .hs-services__search .h-input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 639px) {
	.hs-w--services .hs-w__toolbar { flex-direction: column; align-items: stretch; }
	.hs-services__search { width: 100%; }
}

.hs-services__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .hs-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hs-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hs-w .hs-services__card { display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.hs-services__card[hidden] { display: none; }

.hs-services__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.hs-services__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.hs-services__cat { font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .15em; text-transform: uppercase; color: color-mix(in srgb, var(--h-ink) 60%, transparent); }
.hs-w .hs-services__dur { flex: none; }
.hs-w .hs-services__dur .h-icon { opacity: .7; }

.hs-w .hs-services__name { margin-bottom: 8px; font-size: 20px; line-height: 1.4; }
.hs-services__desc { margin-bottom: 20px !important; font-size: 12px; line-height: 1.625; color: var(--h-muted); }
@media (min-width: 640px) { .hs-services__desc { font-size: 14px; } }

.hs-services__len { margin-bottom: 20px; }
.hs-services__lenhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 11px; font-weight: 600; line-height: 1.45; opacity: .75; }
.hs-w .hs-services__len .h-seg__opt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Many lengths or long labels: the options wrap, each as wide as its label. */
.hs-w .hs-services__len--wrap .h-seg { display: flex; flex-wrap: wrap; }
.hs-w .hs-services__len--wrap .h-seg__opt { flex: 1 1 auto; min-height: 34px; padding: 6px 10px; white-space: normal; text-overflow: clip; overflow-wrap: break-word; }

.hs-services__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--h-line); }
.hs-services__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.hs-services__total > span:first-child { font-size: 12px; line-height: 1.33; color: var(--h-muted); }
.hs-services__price {
	font-family: var(--h-font-head); font-size: 24px; font-weight: var(--h-head-weight, 700); line-height: 1.33;
	letter-spacing: var(--h-head-track); text-align: right; font-variant-numeric: tabular-nums;
}
.hs-services__actions { display: flex; align-items: center; gap: 8px; }
.hs-w .hs-services__more { flex: none; }
.hs-w .hs-services__book { flex: 1; min-width: 0; }
@media (min-width: 640px) { .hs-w .hs-services__book { font-size: 14px; } }

.hs-w .hs-services__empty { grid-column: 1 / -1; padding: 40px; text-align: center; }
.hs-services__empty[hidden] { display: none; }
.hs-services__empty-title { margin-bottom: 4px !important; font-weight: 700; }
.hs-services__empty-text { font-size: 12px; color: var(--h-muted); }

/* ---------- Details window ---------- */
.hs-services__modal { font-family: var(--h-font-body); }
.hs-services__modal p { margin: 0; }
.hs-services__mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hs-services__mtitles { min-width: 0; }
.hs-services__mcat { display: block; font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--h-ink) 60%, transparent); }
.hs-services__mtitle {
	margin: 2px 0 0; color: var(--h-ink);
	font-family: var(--h-font-head); font-weight: var(--h-head-weight, 700); letter-spacing: var(--h-head-track);
	text-transform: var(--h-sub-case, none); font-size: 24px; line-height: 1.33;
}
.hs-services__mdesc { margin-bottom: 20px !important; font-size: 14px; line-height: 1.625; color: var(--h-muted); }
.hs-services__mbox {
	display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; padding: 16px;
	background: var(--h-soft); border: 1px solid var(--h-line); border-radius: var(--h-r-input, 14px);
	font-size: 12px; line-height: 1.625;
}
.hs-services__mlabel { font-size: 12px; font-weight: 700; line-height: 1.33; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.hs-services__mfaq { margin-bottom: 24px; }
.hs-services__mfaq .hs-services__mlabel { margin-bottom: 8px; }
.hs-services__mfaqtext { font-size: 14px; line-height: 1.625; color: var(--h-muted); }
.hs-services__mbox[hidden], .hs-services__mfaq[hidden], .hs-services__modal [data-m][hidden] { display: none; }
.hs-services__mfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--h-line); }
.hs-services__msel { font-size: 11px; line-height: 1.45; opacity: .6; }
.hs-services__mprice { font-size: 18px; font-weight: 700; line-height: 1.55; }
.hs-services__modal .h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: var(--h-r-btn); background: var(--h-btn); color: var(--h-btn-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s ease, transform .2s var(--h-ease-out); }
@media (hover: hover) and (pointer: fine) {
	.hs-services__modal .h-btn:hover { color: var(--h-btn-ink); }
}
@media (hover: hover) and (pointer: fine) { .hs-services__modal .h-btn:hover { opacity: .92; transform: translateY(-1px); } }
.hs-services__modal .h-btn:active { transform: scale(.97); }
.hs-services__modal :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.hs-services__modal .h-modal__panel:focus { outline: none; }
@media (max-width: 479px) { .hs-services__mfoot .h-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hs-services__modal .h-btn { transition: none; } .hs-services__modal .h-btn:hover, .hs-services__modal .h-btn:active { transform: none; } }

/* A new length's price and time settle in instead of jumping (as in the price list). */
.hs-services__card.is-swapping :is([data-hs-price], [data-hs-dur], [data-hs-total]) { animation: hs-svc-swap .15s var(--h-ease-out, cubic-bezier(.23, 1, .32, 1)); }
@keyframes hs-svc-swap { from { opacity: .35; filter: blur(2px); } }
@keyframes hs-svc-fade { from { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hs-services__card.is-swapping :is([data-hs-price], [data-hs-dur], [data-hs-total]) { animation-name: hs-svc-fade; } }
