/* Hairpolice Detangling — scoped to .hp-dt so the rest of the theme is untouched.
 * Headings use the theme's Suranna (small x-height), so they are sized up to sit
 * comfortably next to Poppins body text, in line with the site's own pages.
 * Surfaces use warm, layered shadows and the header's pink→red gradient as an accent. */
.hp-dt {
	--hp-dt-accent: #ff697e;
	--hp-dt-accent-dark: #c2304a;
	--hp-dt-accent-deep: #9f2239;
	--hp-dt-ink: #212529;
	--hp-dt-muted: #4f5459;   /* 7.9:1 on white */
	--hp-dt-link: #1c6f8a;    /* 5.6:1 on white; the theme's #2da2c5 is 2.9:1 */
	--hp-dt-heading-blue: #3577bd;
	--hp-dt-soft: #fff4f6;
	--hp-dt-line: rgba(194, 48, 74, .14);
	--hp-dt-gap: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);

	/* Material */
	--hp-dt-sheen: linear-gradient(90deg, #ff9a62 0%, #ff697e 45%, #c2304a 100%); /* header gradient */
	--hp-dt-surface: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
	--hp-dt-surface-warm: linear-gradient(165deg, #ffffff 0%, #fff3f5 100%);
	--hp-dt-shadow-sm: 0 1px 2px rgba(90, 22, 38, .06), 0 2px 6px -1px rgba(90, 22, 38, .07);
	--hp-dt-shadow-md: 0 1px 2px rgba(90, 22, 38, .05), 0 4px 10px -2px rgba(90, 22, 38, .07), 0 14px 32px -12px rgba(150, 30, 55, .22);
	--hp-dt-shadow-lg: 0 2px 4px rgba(90, 22, 38, .06), 0 10px 22px -6px rgba(90, 22, 38, .12), 0 28px 50px -18px rgba(150, 30, 55, .32);
	--hp-dt-highlight: inset 0 1px 0 rgba(255, 255, 255, .9);
	--hp-dt-ease: cubic-bezier(.2, .7, .2, 1);

	font-family: Poppins, system-ui, sans-serif;
	font-size: clamp(1.0625rem, 1rem + .25vw, 1.125rem); /* 17 → 18px */
	color: var(--hp-dt-ink);
}
.hp-dt .entry-content { max-width: 1080px; margin: 0 auto; }
.hp-dt p, .hp-dt li { line-height: 1.75; }
.hp-dt a:not(.hp-dt-button) { color: var(--hp-dt-link); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.hp-dt a:not(.hp-dt-button):hover { color: var(--hp-dt-accent-deep); }

/* Section headings, with the thin rule the theme's service pages use between sections. */
.hp-dt .entry-content h2 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem); /* 32 → 46px */
	line-height: 1.1;
	margin: var(--hp-dt-gap) 0 .9rem;
	padding-top: var(--hp-dt-gap);
	border-top: 1px solid #dee2e6;
}
.hp-dt .entry-content h3 {
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); /* 24 → 30px */
	line-height: 1.15;
	margin: 0 0 .55rem;
	color: var(--hp-dt-heading-blue);
}
.hp-dt .entry-content > h3 { margin-top: 3rem; }
.hp-dt .entry-content > p { max-width: 68ch; }

/* ------------------------------------------------------------------ Hero */
.hp-dt-hero { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; max-width: 1080px; margin: 0 auto 2rem; }
@media (min-width: 768px) { .hp-dt-hero { grid-template-columns: 1.35fr 1fr; } }
.hp-dt-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; margin: 0 0 1.1rem; }  /* 40 → 72px */
.hp-dt-eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 700; color: var(--hp-dt-accent-dark); margin: 0 0 .8rem; }
.hp-dt-eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--hp-dt-sheen); }
.hp-dt-lead { font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.375rem); line-height: 1.6; color: var(--hp-dt-muted); margin: 0; } /* 19 → 22px */
.hp-dt-hero__image { margin: 0; position: relative; }
.hp-dt-hero__image::before { /* soft gradient halo behind the portrait */
	content: ""; position: absolute; inset: 8% -4% -4% 8%; border-radius: 26px;
	background: var(--hp-dt-sheen); opacity: .55; filter: blur(28px); z-index: 0;
}
.hp-dt-hero__image img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--hp-dt-shadow-lg); }
@media (min-width: 768px) { .hp-dt-hero__image img { aspect-ratio: 1 / 1; max-height: 480px; } }

/* ------------------------------------------------------------------ Buttons */
.hp-dt-buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.75rem 0; }
.hp-dt-button,
.hp-dt-more button {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: 50px; padding: .85rem 1.65rem; border-radius: 999px;
	font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	text-decoration: none !important; cursor: pointer;
	transition: transform .18s var(--hp-dt-ease), box-shadow .18s var(--hp-dt-ease), background-color .18s, filter .18s;
}
/* Primary: deep raspberry gradient (white text 5:1+), glossy top edge, coloured shadow. */
.hp-dt-button {
	color: #fff !important;
	background: linear-gradient(180deg, #d03956 0%, #b8273f 55%, #a8213a 100%);
	border: 1px solid #9c1f37;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(110, 18, 36, .3), 0 8px 18px -6px rgba(194, 48, 74, .55);
	text-shadow: 0 1px 0 rgba(90, 10, 25, .35);
}
.hp-dt .entry-content .hp-dt-button:not(.hp-dt-button--outline)::after { content: "→"; font-weight: 500; transition: transform .18s var(--hp-dt-ease); }
.hp-dt-button:hover, .hp-dt-button:focus-visible {
	transform: translateY(-2px); filter: saturate(1.08) brightness(1.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 4px rgba(110, 18, 36, .28), 0 14px 26px -8px rgba(194, 48, 74, .6);
}
.hp-dt-button:hover::after { transform: translateX(3px); }
.hp-dt-button:active { transform: translateY(0); filter: brightness(.96); box-shadow: inset 0 2px 4px rgba(80, 10, 25, .35), 0 1px 2px rgba(110, 18, 36, .25); }

/* Secondary: frosted white with a raspberry edge. */
.hp-dt-button--outline,
.hp-dt-more button {
	color: var(--hp-dt-accent-dark) !important;
	background: linear-gradient(180deg, #ffffff 0%, #fff5f7 100%);
	border: 1.5px solid rgba(194, 48, 74, .45);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-sm);
	text-shadow: none;
}
.hp-dt-button--outline:hover, .hp-dt-button--outline:focus-visible,
.hp-dt-more button:hover, .hp-dt-more button:focus-visible {
	transform: translateY(-2px); filter: none;
	color: var(--hp-dt-accent-deep) !important; border-color: var(--hp-dt-accent-dark);
	background: linear-gradient(180deg, #ffffff 0%, #ffecf0 100%);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-md);
}
.hp-dt-button--outline:active, .hp-dt-more button:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(150, 30, 55, .15); }
.hp-dt a:focus-visible, .hp-dt button:focus-visible, .hp-dt summary:focus-visible { outline: 3px solid var(--hp-dt-accent-dark); outline-offset: 3px; }

/* ------------------------------------------------------------------ Fact cards */
.hp-dt-facts { display: grid; gap: 1.25rem; margin: 2.25rem 0; }
@media (min-width: 768px) { .hp-dt-facts { grid-template-columns: repeat(3, 1fr); } }
.hp-dt-fact {
	position: relative; overflow: hidden;
	padding: 1.85rem 1.7rem 1.6rem; border-radius: 20px;
	background: var(--hp-dt-surface-warm);
	border: 1px solid var(--hp-dt-line);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-md);
	transition: transform .25s var(--hp-dt-ease), box-shadow .25s var(--hp-dt-ease);
}
.hp-dt-fact::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--hp-dt-sheen); }
.hp-dt-fact::after { /* faint glow in the corner for a bit of material */
	content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 105, 126, .16), transparent); pointer-events: none;
}
.hp-dt-fact:hover { transform: translateY(-3px); box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-lg); }
.hp-dt-fact__title { position: relative; font-size: clamp(1.625rem, 1.4rem + .9vw, 1.875rem); font-weight: 700; line-height: 1.2; margin: 0 0 .55rem; color: var(--hp-dt-accent-dark); letter-spacing: -.01em; } /* 26 → 30px */
.hp-dt-fact p { position: relative; }
.hp-dt-fact p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Steps */
.hp-dt-steps { list-style: none; counter-reset: hpdt; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .hp-dt-steps { grid-template-columns: repeat(2, 1fr); } }
.hp-dt-step {
	counter-increment: hpdt; position: relative;
	padding: 1.4rem 1.5rem 1.4rem 4.6rem; border-radius: 18px;
	background: var(--hp-dt-surface);
	border: 1px solid var(--hp-dt-line);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-sm);
}
.hp-dt-step::before {
	content: counter(hpdt); position: absolute; left: 1.35rem; top: 1.35rem;
	width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
	font-weight: 700; font-size: 1.05rem; color: #fff;
	background: linear-gradient(145deg, #ff7f72 0%, #d03956 55%, #a8213a 100%);
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(194, 48, 74, .18), 0 6px 12px -4px rgba(194, 48, 74, .55);
}
.hp-dt-step p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Before/after stories */
.hp-dt-stories { display: grid; gap: 1.75rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .hp-dt-stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hp-dt-stories { grid-template-columns: repeat(3, 1fr); } }
.hp-dt-story {
	display: flex; flex-direction: column;
	padding: 1.1rem 1.1rem 1.25rem; border-radius: 22px;
	background: var(--hp-dt-surface);
	border: 1px solid var(--hp-dt-line);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-md);
	transition: transform .25s var(--hp-dt-ease), box-shadow .25s var(--hp-dt-ease);
}
.hp-dt-story:hover { transform: translateY(-4px); box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-lg); }
.hp-dt-story[hidden] { display: none; }
.hp-dt .hp-dt-story h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); margin: .2rem .25rem .85rem; min-height: 2.3em; } /* 22 → 26px, titles align across a row */
.hp-dt-story__frames { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 18px -10px rgba(0, 0, 0, .45); }
.hp-dt-story__stage { margin: 0; position: relative; }
.hp-dt-story__stage[hidden] { display: none; }
.hp-dt-story__stage img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--hp-dt-ease); }
.hp-dt-story:hover .hp-dt-story__stage img { transform: scale(1.025); }
/* Stage label sits on the photo as a frosted tag (it is also the image caption for screen readers). */
.hp-dt .hp-dt-story__stage figcaption {
	position: absolute; left: .75rem; bottom: .75rem; max-width: calc(100% - 1.5rem); margin: 0;
	padding: .35rem .8rem; border-radius: 999px;
	font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--hp-dt-ink);
	background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.hp-dt figcaption { font-size: 1rem; line-height: 1.5; color: var(--hp-dt-muted); margin-top: .65rem; }
.hp-dt-story__stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 1rem 0 0; }
.hp-dt-story__stages button {
	font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.2;
	min-height: 44px; padding: .45rem .6rem; border-radius: 12px; cursor: pointer; text-align: center;
	color: var(--hp-dt-ink); background: #fff6f8;
	border: 1px solid rgba(194, 48, 74, .16);
	box-shadow: var(--hp-dt-highlight);
	transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s var(--hp-dt-ease);
}
.hp-dt-story__stages button:hover { background: #ffecf0; border-color: rgba(194, 48, 74, .4); transform: translateY(-1px); }
.hp-dt-story__stages button[aria-pressed="true"] {
	color: #fff; border-color: #9c1f37;
	background: linear-gradient(180deg, #d03956 0%, #b0243d 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px -3px rgba(194, 48, 74, .55);
}
.hp-dt-more { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ------------------------------------------------------------------ Videos and photo grids */
.hp-dt-media { display: grid; gap: 1.5rem; margin: 1.75rem 0; }
@media (min-width: 640px) { .hp-dt-media { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hp-dt-media { grid-template-columns: repeat(3, 1fr); } }
.hp-dt-media figure { margin: 0; }
.hp-dt-media video, .hp-dt-media img {
	display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: #111;
	border: 5px solid #fff; box-shadow: var(--hp-dt-shadow-md);
}
.hp-dt-media--photos img { aspect-ratio: 4 / 5; background: #fff; }
.hp-dt-media figcaption { padding: 0 .35rem; }

/* ------------------------------------------------------------------ Wendy quote */
.hp-dt-quote {
	position: relative; overflow: hidden;
	display: grid; gap: 1.5rem 2rem; align-items: center;
	margin: var(--hp-dt-gap) 0 0; padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
	border-radius: 26px; border: 1px solid var(--hp-dt-line);
	background: radial-gradient(120% 140% at 0% 0%, #fff 0%, #fff4f6 45%, #ffe6ec 100%);
	box-shadow: var(--hp-dt-highlight), var(--hp-dt-shadow-md);
}
.hp-dt-quote::before { /* oversized quotation mark as a watermark */
	content: "\201C"; position: absolute; right: 1.5rem; top: -2.2rem;
	font-family: Suranna, Georgia, serif; font-size: 16rem; line-height: 1; color: rgba(194, 48, 74, .08); pointer-events: none;
}
@media (min-width: 640px) { .hp-dt-quote { grid-template-columns: 180px 1fr; } }
.hp-dt-quote img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 1px rgba(194, 48, 74, .2), var(--hp-dt-shadow-md); }
.hp-dt .hp-dt-quote blockquote,
.hp-dt .hp-dt-quote blockquote p {
	margin: 0; padding: 0; border: 0; background: none; quotes: none;
	font-family: Suranna, Georgia, serif; font-style: normal; font-weight: 400;
	font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); /* 32 → 44px */
	line-height: 1.1; color: var(--hp-dt-ink);
}
.hp-dt .hp-dt-quote blockquote { position: relative; margin-bottom: .6rem; }
.hp-dt .hp-dt-quote blockquote::before, .hp-dt .hp-dt-quote blockquote::after { content: none; }
.hp-dt-quote > div { position: relative; }
.hp-dt-quote figcaption { font-size: 1.0625rem; margin: 0 0 1.1rem; color: var(--hp-dt-muted); }

/* ------------------------------------------------------------------ FAQ: one raised panel */
.hp-dt-faq + .hp-dt-faq { margin-top: 0; }
.hp-dt-faq {
	background: #fff; border: 1px solid var(--hp-dt-line); border-top: 0;
	padding: 0 1.4rem; box-shadow: 0 10px 24px -18px rgba(150, 30, 55, .35);
	transition: background-color .2s;
}
.hp-dt h2 + .hp-dt-faq { border-top: 1px solid var(--hp-dt-line); border-radius: 18px 18px 0 0; margin-top: 1.5rem; }
.hp-dt-faq:not(:has(+ .hp-dt-faq)) { border-radius: 0 0 18px 18px; box-shadow: var(--hp-dt-shadow-md); }
.hp-dt-faq[open] { background: linear-gradient(180deg, #fff 0%, #fff7f9 100%); }
.hp-dt-faq summary { cursor: pointer; font-weight: 600; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.1875rem); line-height: 1.4; padding: 1.2rem 3rem 1.2rem 0; list-style: none; position: relative; }
.hp-dt-faq summary::-webkit-details-marker { display: none; }
.hp-dt-faq summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
	font-size: 1.3rem; font-weight: 500; line-height: 1; color: var(--hp-dt-accent-dark);
	background: #fff1f4; box-shadow: inset 0 0 0 1px rgba(194, 48, 74, .2);
	transition: transform .2s var(--hp-dt-ease), background-color .2s, color .2s;
}
.hp-dt-faq summary:hover::after { background: #ffe3e9; }
.hp-dt-faq[open] summary::after { content: "–"; color: #fff; background: var(--hp-dt-accent-dark); box-shadow: none; }
.hp-dt-faq p { color: var(--hp-dt-muted); max-width: 70ch; }
.hp-dt-faq p:last-child { padding-bottom: .4rem; }

/* ------------------------------------------------------------------ Phones: Email / Book bar */
.hp-dt-bar { display: none; }
@media (max-width: 767px) {
	.hp-dt-bar {
		display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
		border-top: 1px solid rgba(194, 48, 74, .12); box-shadow: 0 -8px 24px -8px rgba(90, 22, 38, .22);
		transition: transform .25s ease;
	}
	.hp-dt-bar[data-hidden="true"] { transform: translateY(110%); }
	.hp-dt-bar .hp-dt-button { flex: 1; min-height: 48px; padding: .6rem .8rem; font-size: 1rem; }
	body.hp-dt-has-bar { padding-bottom: 80px; }
	.hp-dt-buttons .hp-dt-button { flex: 1 1 100%; text-align: center; }
	.hp-dt-story:hover, .hp-dt-fact:hover { transform: none; } /* no hover lift on touch */
}

@media (prefers-reduced-motion: reduce) {
	.hp-dt *, .hp-dt *::before, .hp-dt *::after, .hp-dt-bar { transition: none !important; scroll-behavior: auto !important; }
	.hp-dt-story:hover, .hp-dt-fact:hover, .hp-dt-button:hover, .hp-dt-story:hover .hp-dt-story__stage img { transform: none !important; }
}
