/* ==========================================================================
   Nick Blatchley Copywriting: individual service pages (NB Service template)
   Builds on nb-home.css (<main> carries both .nb-home and .nb-svc-page).
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	html:has(.nb-svc-page) { scroll-behavior: smooth; }
}

/* Hero ------------------------------------------------------------------- */
.nb-svc-page .nb-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 26px; font-size: .9375rem; color: var(--nb-muted); }
.nb-svc-page .nb-crumbs a { color: var(--nb-muted); text-decoration: none; }
.nb-svc-page .nb-crumbs a:hover { color: var(--nb-ink); text-decoration: underline; }
.nb-svc-page .nb-crumbs [aria-current] { color: var(--nb-ink); font-weight: 600; }
.nb-svc-page .nb-svc-hero__title { max-width: 19ch; font-size: clamp(2.25rem, 4.8vw, 4rem); }
.nb-svc-page .nb-svc-hero .nb-hero__lead { margin: clamp(22px, 3vw, 32px) 0 30px; }

/* Why + what you get ----------------------------------------------------- */
.nb-svc-page .nb-svc-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: start;
}
.nb-svc-page .nb-svc-why__copy h2 { margin-bottom: 24px; }
.nb-svc-page .nb-svc-why__copy p { line-height: 1.75; }
.nb-svc-page .nb-svc-get {
	position: sticky;
	top: 28px;
	padding: 24px 26px 18px;
	background: #fff;
	border: 1px solid var(--nb-rule);
	border-top: 4px solid var(--nb-ink);
	border-radius: 4px;
	box-shadow: 0 24px 50px -38px rgba(17, 26, 71, .5);
}
.nb-svc-page .nb-svc-get .nb-svc-get__title {
	margin-bottom: 10px;
	font-family: var(--nb-hand);
	font-size: 2.125rem;
	line-height: 1;
	color: var(--nb-pencil);
	max-width: none;
}
.nb-svc-page .nb-svc-get ul { margin: 0; padding: 0; list-style: none; }
.nb-svc-page .nb-svc-get li {
	position: relative;
	margin: 0;
	padding: 11px 0 11px 28px;
	border-top: 1px solid var(--nb-rule);
	font-size: 1rem;
	line-height: 1.45;
}
.nb-svc-page .nb-svc-get li::before {
	content: "";
	position: absolute; left: 3px; top: 18px;
	width: 12px; height: 6px;
	border-left: 2.5px solid var(--nb-pencil);
	border-bottom: 2.5px solid var(--nb-pencil);
	transform: rotate(-45deg);
}

/* A taste: the example, on an index card --------------------------------- */
.nb-svc-page .nb-svc-sample {
	background-color: var(--nb-pad);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(160, 182, 214, .35) 43px, rgba(160, 182, 214, .35) 44px);
	scroll-margin-top: 10px;
}
.nb-svc-page .nb-svc-sample__card {
	max-width: 820px;
	padding: clamp(22px, 4vw, 40px);
	background: #fff;
	border: 1px solid var(--nb-rule);
	border-top: 3px solid var(--nb-margin);
	border-radius: 4px;
	box-shadow: 0 26px 54px -38px rgba(17, 26, 71, .55);
	transform: rotate(-.6deg);
}
.nb-svc-page .nb-svc-sample__card .nb-compare__tabs { margin-bottom: 24px; }
.nb-svc-page .nb-svc-sample__panel[hidden] { display: none; }
.nb-svc-page .nb-svc-sample__label {
	margin: 0 0 10px;
	font-family: var(--nb-hand);
	font-size: 1.75rem;
	line-height: 1;
	color: var(--nb-pencil);
}
.nb-svc-page .nb-svc-sample__text {
	margin: 0;
	max-width: 44ch;
	font-family: var(--nb-serif);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	line-height: 1.45;
	color: var(--nb-ink);
}
.nb-svc-page .nb-svc-sample__small { margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--nb-rule); font-size: .9375rem; color: var(--nb-muted); }

/* Process sits on paper here, so the pad section above stays distinct */
.nb-svc-page .nb-svc-process { background: transparent; }

/* Testimonial band a little tighter than the homepage one */
.nb-svc-page .nb-svc-praise .nb-wrap { padding-block: clamp(56px, 7vw, 96px); }

/* Related ---------------------------------------------------------------- */
.nb-svc-page .nb-svc-related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 28px);
	margin: 0; padding: 0;
	list-style: none;
}
.nb-svc-page .nb-svc-related__list li { margin: 0; }
.nb-svc-page .nb-svc-related__list a {
	display: block;
	height: 100%;
	padding: 22px 22px 20px;
	background: #fff;
	border-top: 3px solid var(--nb-ink);
	box-shadow: 0 20px 44px -38px rgba(17, 26, 71, .5);
	color: var(--nb-text);
	text-decoration: none;
}
.nb-svc-page .nb-svc-related__list strong { display: block; margin-bottom: 8px; font-family: var(--nb-serif); font-size: 1.3125rem; font-weight: 400; color: var(--nb-ink); }
.nb-svc-page .nb-svc-related__list span { font-size: 1rem; }
.nb-svc-page .nb-svc-related__list a:hover { border-top-color: var(--nb-pencil); }
.nb-svc-page .nb-svc-related__list a:hover strong { text-decoration: underline; text-decoration-color: var(--nb-margin); text-underline-offset: 4px; }
.nb-svc-page .nb-svc-related__extra { margin: 28px 0 0; max-width: 64ch; font-size: 1.0625rem; }
.nb-svc-page .nb-svc-related__all { margin-top: 24px; }
.nb-svc-page .nb-faq + .nb-svc-related { background: var(--nb-paper); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
	.nb-svc-page .nb-svc-why__grid { grid-template-columns: minmax(0, 1fr); }
	.nb-svc-page .nb-svc-get { position: static; max-width: 520px; }
}
@media (max-width: 760px) {
	.nb-svc-page .nb-svc-related__list { grid-template-columns: minmax(0, 1fr); }
	.nb-svc-page .nb-svc-sample__card { transform: none; }
}
