/* ==========================================================================
   DST service catalogue pages: /<category> (service-category.php) and
   /<category>/<sub category> (service-subcategory.php). Shared markup in
   includes/services/parts.php.
   Site rules: full width with 28px / 14px side padding (no max-width on
   wrappers), Jost only, no italics, images are <img>, no card shadows or
   borders, square corners like the treatment pages (service.css). Motion: transform/opacity
   only, hover gated to fine pointers, reduced motion respected.
   ========================================================================== */

.dst-cat-crumbs { padding: 14px var(--dst-gutter); border-bottom: 1px solid var(--dst-line); background: #fff; font-family: var(--dst-font); }
.dst-cat-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--dst-muted); }
.dst-cat-crumbs li + li::before { content: "/"; margin: 0 10px; color: #d9c4ce; }
.dst-cat-crumbs a { color: var(--dst-body); text-decoration: none; }
.dst-cat-crumbs a:hover { color: var(--dst-rose-ink); }
.dst-cat-crumbs [aria-current] { color: var(--dst-rose-ink); font-weight: 500; }

.dst-cat { --out: cubic-bezier(.23, 1, .32, 1); font-family: var(--dst-font); color: var(--dst-ink); background: #fff; }
.dst-cat p { margin: 0; }

/* Hero: the same frame as a treatment page (service.css .dst-svc-hero): a wide rectangular
   picture on the left, inside the side padding, the words on the right. */
.dst-cat-hero {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
	gap: clamp(28px, 3.5vw, 56px);
	height: max(440px, 65vh); overflow: clip;
	padding: clamp(24px, 2.6vw, 36px) var(--dst-gutter);
	background:
		radial-gradient(45% 70% at 100% 10%, rgba(255, 178, 140, .18), rgba(255, 178, 140, 0) 70%),
		radial-gradient(50% 80% at 70% 100%, rgba(240, 86, 151, .12), rgba(240, 86, 151, 0) 70%),
		linear-gradient(180deg, #fff7fa 0, #fdeef4 100%);
}
.dst-cat-hero__copy { align-self: center; min-width: 0; }
.dst-cat .dst-cat-hero__eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-cat-hero__eyebrow a { color: inherit; text-decoration: none; }
.dst-cat-hero__eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dst-cat .dst-cat-hero__title { margin: 10px 0 0; font: 500 clamp(32px, 3.2vw, 52px)/1.06 var(--dst-font); letter-spacing: -.018em; color: var(--dst-ink); }
.dst-cat .dst-cat-hero__lead { margin-top: 14px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; font-weight: 500; color: var(--dst-rose-ink); }
.dst-cat .dst-cat-hero__text { margin-top: 10px; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--dst-body); }
.dst-cat-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--dst-muted); }
.dst-cat-hero__facts b { font-size: 26px; font-weight: 400; color: var(--dst-ink); font-variant-numeric: lining-nums; margin-right: 4px; }
.dst-cat-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.dst-cat .dst-cat-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
	background: var(--dst-rose-ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none;
	transition: background-color .2s ease, transform .16s var(--out);
}
.dst-cat-btn .dst-i { width: 18px; height: 18px; }
.dst-cat-btn:active { transform: scale(.97); }
.dst-cat .dst-cat-link { display: inline-flex; align-items: center; gap: 7px; color: var(--dst-rose-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.dst-cat-link .dst-i { width: 17px; height: 17px; transition: transform .25s var(--out); }
.dst-cat-hero__media { position: relative; align-self: stretch; height: 100%; margin: 0; }
.dst-cat-hero__media::before { /* a soft colour blob behind the photo */
	content: ""; position: absolute; inset: 7% -2.5% -2.5% 12%; border-radius: 52% 48% 44% 56% / 46% 56% 44% 54%;
	background: linear-gradient(150deg, #fcdbe8 0%, #f6bcd3 100%); opacity: .75;
	animation: dst-cat-morph 18s ease-in-out infinite alternate;
}
@keyframes dst-cat-morph {
	0% { border-radius: 52% 48% 44% 56% / 46% 56% 44% 54%; transform: rotate(0deg); }
	100% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; transform: rotate(5deg); }
}
.dst-cat-hero__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--dst-r, 14px); background: #f6d9e5; }

/* Areas of this speciality: soft pills */
.dst-cat-jump { display: flex; gap: 8px; padding: 16px var(--dst-gutter); overflow-x: auto; scrollbar-width: none; background: var(--dst-spots-soft), #fff; }
.dst-cat-jump::-webkit-scrollbar { display: none; }
.dst-cat .dst-cat-jump a {
	flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
	background: #fdf4f8; color: var(--dst-ink); font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none;
	transition: background-color .25s ease, color .2s ease;
}
.dst-cat-jump a span { color: var(--dst-muted); font-size: 13px; font-weight: 600; }

/* One band per area. Bands alternate white / blush; treatments sit straight on the band. */
.dst-cat-band { position: relative; padding: clamp(48px, 5vw, 76px) var(--dst-gutter); background: var(--dst-spots-soft), #fff; scroll-margin-top: 140px; }
.dst-cat-band:nth-of-type(even) {
	background:
		radial-gradient(40% 60% at 100% 0%, rgba(255, 178, 140, .14), rgba(255, 178, 140, 0) 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(240, 86, 151, .08), rgba(240, 86, 151, 0) 70%),
		#fdf4f8;
}
/* the footer's soft wave, on the top edge of every tinted band */
.dst-cat-band:nth-of-type(even)::before {
	content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 41px; pointer-events: none;
	background: #fdf4f8;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 8 360 4 540 18s360 30 540 22 270-30 360-34V48H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 8 360 4 540 18s360 30 540 22 270-30 360-34V48H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.dst-cat-band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 28px; }
.dst-cat .dst-cat-band__num { display: none; }
.dst-cat .dst-cat-band__title { margin: 0; flex: 1 1 auto; font: 500 clamp(24px, 2.2vw, 34px)/1.2 var(--dst-font); color: var(--dst-ink); }
.dst-cat-band__title a { color: inherit; text-decoration: none; transition: color .2s ease; }

/* Treatments: rectangular picture, title, summary. No card fill, border or radius. */
.dst-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 34px 28px; margin: 0; padding: 0; list-style: none; }
.dst-cat-card a {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--dst-r, 14px);
	background: #fff; color: inherit; text-decoration: none; transition: transform .35s var(--out);
}
.dst-cat-band:nth-of-type(even) .dst-cat-card a, .dst-svc .dst-cat-card a { background: var(--dst-glass-bg, rgba(255, 255, 255, .62)); box-shadow: var(--dst-glass-ring); -webkit-backdrop-filter: var(--dst-glass-filter); backdrop-filter: var(--dst-glass-filter); }
.dst-cat-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--dst-r, 14px) var(--dst-r, 14px) 0 0; background: #f6dbe6; transform: translateZ(0); }
.dst-cat-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.dst-cat-card__body { display: flex; flex-direction: column; gap: 7px; flex: 1; padding: 18px 20px 20px; }
.dst-cat-card__sub { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-cat-card__title { font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--dst-ink); transition: color .2s ease; }
.dst-cat-card__text { font-size: 14.5px; line-height: 1.6; color: var(--dst-body); }
.dst-cat-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--dst-rose-ink); }
.dst-cat-card__more .dst-i { width: 16px; height: 16px; transition: transform .25s var(--out); }
.dst-cat-card a:focus-visible, .dst-cat-jump a:focus-visible, .dst-cat-more a:focus-visible { outline: 2px solid var(--dst-rose-ink); outline-offset: 3px; }

/* Other specialities / other areas: a plain list with hairlines */
.dst-cat-more { padding: clamp(40px, 4.5vw, 60px) var(--dst-gutter); background: var(--dst-spots-soft), #fff; }
.dst-cat .dst-cat-more__title { margin: 0 0 8px; font: 500 22px/1.3 var(--dst-font); color: var(--dst-ink); }
.dst-cat-more ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.dst-cat-more { position: relative; }
.dst-cat .dst-cat-more a { display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; background: #fdf4f8; color: var(--dst-ink); text-decoration: none; transition: background-color .25s ease, color .2s ease; }
.dst-cat-more img { flex: none; width: 40px; height: 40px; }
.dst-cat-more span { display: flex; flex-direction: column; gap: 2px; }
.dst-cat-more b { font-size: 15.5px; font-weight: 500; }
.dst-cat-more small { font-size: 12.5px; color: var(--dst-muted); }

@media (hover: hover) and (pointer: fine) {
	.dst-cat .dst-cat-btn:hover { background: var(--dst-rose-deep); color: #fff; }
	.dst-cat-link:hover .dst-i, .dst-cat-card a:hover .dst-cat-card__more .dst-i { transform: translateX(3px); }
	.dst-cat .dst-cat-jump a:hover { background: var(--dst-rose-ink); color: #fff; }
	.dst-cat .dst-cat-jump a:hover span { color: #ffd3e4; }
	.dst-cat-card a:hover { transform: var(--dst-lift, translateY(-3px)); }
	.dst-cat-card a:hover .dst-cat-card__media img { transform: scale(1.05); }
	.dst-cat-card a:hover .dst-cat-card__title, .dst-cat-band__title a:hover { color: var(--dst-rose-ink); }
	.dst-cat .dst-cat-more a:hover { background: #f9dce8; color: var(--dst-rose-ink); }
}

@media (max-width: 899.98px) {
	.dst-cat-hero { grid-template-columns: minmax(0, 1fr); height: auto; gap: 22px; padding: var(--dst-gutter) var(--dst-gutter) 34px; }
	.dst-cat-hero__media { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 699.98px) {
	.dst-cat .dst-cat-hero__title { font-size: clamp(32px, 9vw, 40px); }
	.dst-cat .dst-cat-jump a { height: 40px; padding: 0 16px; font-size: 14px; }
	.dst-cat-band { padding: 36px var(--dst-gutter); scroll-margin-top: 80px; }
	.dst-cat-band__head { margin-bottom: 20px; }
	.dst-cat-grid { gap: 12px; }
	.dst-cat-card a { flex-direction: row; align-items: stretch; gap: 0; }
	.dst-cat-card__media { flex: none; width: 36%; max-width: 150px; aspect-ratio: auto; min-height: 104px; border-radius: var(--dst-r, 14px) 0 0 var(--dst-r, 14px); }
	.dst-cat-card__body { padding: 12px 14px; gap: 5px; }
	.dst-cat-card__title { font-size: 16.5px; }
	.dst-cat-card__text { font-size: 13.5px; line-height: 1.55; }
	.dst-cat-card__more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dst-cat *, .dst-cat-card__media img { transition-duration: .01s !important; }
	.dst-cat-hero__media::before { animation: none; }
	.dst-cat-card a:hover .dst-cat-card__media img { transform: none; }
}
