/* ==========================================================================
   Nhs Robin — components.
   Every component works for BOTH the built-in fallback markup and Elementor widgets
   (Elementor classes are added in the starter template's "CSS Classes" fields).
   ========================================================================== */

/* ---------- Type roles ---------- */
.nhs-eyebrow, .nhs-eyebrow .elementor-heading-title {
	margin: 0 0 6px;
	color: var(--color-primary);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}
.nhs-title, .nhs-title .elementor-heading-title {
	margin: 0 0 12px;
	color: var(--color-text);
	font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
	font-weight: var(--heading-weight);
	line-height: 1.15;
	letter-spacing: -.02em;
}
.nhs-desc, .nhs-desc p {
	margin: 0;
	color: var(--color-muted);
	font-size: .9375rem;
	line-height: 1.7;
}
.nhs-desc--body, .nhs-desc--body p { font-size: 1.0625rem; color: var(--color-text); opacity: .86; }

.nhs-hand, .nhs-hand p {
	margin: 0;
	color: var(--color-navy);
	font-family: var(--font-hand);
	font-size: clamp(1.1rem, 1.4vw + .5rem, 1.6rem);
	line-height: 1.15;
	text-wrap: balance;
}

/* ---------- Buttons ---------- */
.nhs-btn,
.elementor-widget[class*="nhs-btn-"] .elementor-button {
	--btn-bg: var(--color-primary);
	--btn-fg: var(--color-on-primary);
	--btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--btn-bd);
	border-radius: var(--radius-button);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: inherit;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--motion-duration) var(--motion-ease), background-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.nhs-btn .nhs-icon, .elementor-widget[class*="nhs-btn-"] .elementor-button .elementor-button-icon { transition: transform var(--motion-duration) var(--motion-ease); }
.nhs-btn:hover, .elementor-widget[class*="nhs-btn-"] .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent);
	color: var(--btn-fg);
}
.nhs-btn:hover .nhs-icon, .elementor-widget[class*="nhs-btn-"] .elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
.nhs-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.nhs-btn--primary, .elementor-widget.nhs-btn-primary .elementor-button { --btn-bg: var(--color-primary); --btn-fg: #fff; }
.nhs-btn--dark, .elementor-widget.nhs-btn-dark .elementor-button { --btn-bg: var(--color-navy); --btn-fg: var(--color-background); }
.nhs-btn--dark:hover, .elementor-widget.nhs-btn-dark .elementor-button:hover { --btn-bg: var(--color-primary); --btn-fg: #fff; }
.nhs-btn--outline, .elementor-widget.nhs-btn-outline .elementor-button { --btn-bg: var(--color-surface); --btn-fg: var(--color-text); --btn-bd: var(--color-border); }
.nhs-btn--outline:hover, .elementor-widget.nhs-btn-outline .elementor-button:hover { --btn-bd: var(--color-primary); --btn-fg: var(--color-primary); }
.nhs-btn--sm { min-height: 40px; padding: 0 18px; font-size: .8125rem; }

/* Text-style link button (cards, "view all"). */
.nhs-card__link,
.nhs-link-arrow,
.elementor-widget.nhs-btn-link .elementor-button {
	--btn-bg: transparent;
	--btn-fg: var(--color-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--card-accent-text, var(--color-primary));
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
}
.nhs-card__link:hover, .nhs-link-arrow:hover, .elementor-widget.nhs-btn-link .elementor-button:hover {
	background: transparent;
	box-shadow: none;
	transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.nhs-card__link .nhs-icon, .nhs-link-arrow .nhs-icon { transition: transform var(--motion-duration) var(--motion-ease); }
.nhs-card__link:hover .nhs-icon, .nhs-link-arrow:hover .nhs-icon { transform: translateX(4px); }
.elementor-widget.nhs-btn-link .elementor-button { color: var(--card-accent-text, var(--color-primary)); }

/* Buttons without a link only show inside the Elementor editor (never a dead control live). */
body:not(.elementor-editor-active) .nhs-optional:not(:has([href])) { display: none; }
body.elementor-editor-active .nhs-optional:not(:has([href])) { opacity: .55; outline: 1px dashed var(--color-muted); outline-offset: 3px; }

/* ---------- Pills, chips, tags ---------- */
.nhs-pill, .nhs-pill .elementor-heading-title {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
	color: var(--color-primary);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.4;
}
.nhs-pill.elementor-widget { padding: 0; background: none; }
.nhs-pill.elementor-widget .elementor-heading-title { display: inline-block; }

.nhs-chip {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
	color: var(--color-primary);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}
.nhs-chip--link { padding: 6px 14px; font-size: .8125rem; background: var(--card-tint, var(--color-soft)); color: var(--card-accent-text, var(--color-text)); }
.nhs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }

/* Technology tags: Elementor Icon List styled as chips */
.nhs-tags .elementor-icon-list-items, .nhs-tags ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nhs-tags .elementor-icon-list-item { padding: 0; }
.nhs-tags .elementor-icon-list-icon { display: none; }
.nhs-tags .elementor-icon-list-text {
	padding: 2px 9px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-muted);
	font-size: .6875rem;
	font-weight: 500;
}

/* ---------- Grid helpers ---------- */
.nhs-grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.nhs-grid--2 { --cols: 2; }
.nhs-grid--3 { --cols: 3; }
.nhs-grid--4 { --cols: 4; }
/* Elementor containers used as grids: children are the cards. */
.e-con.nhs-grid { display: grid; }
.nhs-grid > .e-con, .nhs-grid > .elementor-element { width: 100%; max-width: none; min-width: 0; }

/* ---------- Media + placeholders ---------- */
.nhs-media { position: relative; overflow: hidden; background: var(--color-soft); border-radius: var(--radius-media); }
.nhs-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 20%); }
.nhs-ratio-16-10 { aspect-ratio: 16 / 10; }
.nhs-ratio-4-5 { aspect-ratio: 4 / 5; }
.nhs-ratio-1-1 { aspect-ratio: 1; }
.nhs-ratio-3-2 { aspect-ratio: 3 / 2; }
.nhs-ratio-21-9 { aspect-ratio: 21 / 9; }

.nhs-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	color: color-mix(in srgb, var(--color-primary) 38%, var(--color-surface));
	background:
		radial-gradient(70% 70% at 20% 10%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 70%),
		radial-gradient(60% 60% at 90% 90%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 70%),
		var(--color-soft);
}
.nhs-placeholder .nhs-icon { width: 34px; height: 34px; stroke-width: 1.5; }

/* Elementor Image widget with NO image chosen shows Elementor's own placeholder file.
   Hide it and let the branded placeholder background of the wrapper show instead. */
.nhs-ph { position: relative; overflow: hidden; border-radius: var(--radius-media);
	background:
		radial-gradient(70% 70% at 20% 10%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 70%),
		radial-gradient(60% 60% at 90% 90%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 70%),
		var(--color-soft);
}
.nhs-ph img { width: 100%; aspect-ratio: var(--ratio, 16 / 10); object-fit: cover; object-position: var(--focus, 50% 20%); border-radius: inherit; }
.nhs-ph img[src*="placeholder"] { opacity: 0; }
.nhs-ph::after {
	content: "";
	position: absolute; left: 50%; top: 50%;
	width: 34px; height: 34px;
	transform: translate(-50%, -50%);
	background: color-mix(in srgb, var(--color-primary) 38%, var(--color-surface));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}
.nhs-ph:has(img:not([src*="placeholder"]))::after { display: none; }
.nhs-ph .elementor-widget-container { line-height: 0; }

/* ---------- Cards ---------- */
.nhs-card:not(.e-con) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
.nhs-card {
	--card-accent: var(--color-primary);
	--card-accent-text: var(--color-primary);
	--card-tint: var(--color-surface);
	position: relative;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	background: var(--card-tint);
	box-shadow: var(--shadow-sm);
	transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.nhs-card__title, .nhs-card__title .elementor-heading-title {
	margin: 4px 0 0;
	color: var(--color-text);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.nhs-card__text, .nhs-card__text p {
	margin: 0;
	color: var(--color-muted);
	font-size: .8125rem;
	line-height: 1.65;
}
.nhs-card__link { margin-top: auto; padding-top: 10px; }

.nhs-card__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--card-accent) 14%, var(--color-surface));
	color: var(--card-accent);
}
.nhs-card__icon .nhs-icon { width: 20px; height: 20px; }

/* Elementor Icon Box widget inside a card */
.nhs-iconbox .elementor-icon-box-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.nhs-iconbox .elementor-icon-box-icon { margin: 0 !important; }
.nhs-iconbox .elementor-icon {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--card-accent) 14%, var(--color-surface));
	color: var(--card-accent);
	font-size: 18px;
}
.nhs-iconbox .elementor-icon svg { width: 1em; height: 1em; fill: currentColor; }
.nhs-iconbox .elementor-icon-box-content { width: 100%; }
.nhs-iconbox .elementor-icon-box-title { margin: 0 0 6px; color: var(--color-text); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.nhs-iconbox .elementor-icon-box-title a { color: inherit; }
.nhs-iconbox .elementor-icon-box-description { margin: 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.65; }

/* Profile accents (also used by profile page headers and chips) */
.nhs-card--developer { --card-accent: #2f5bff; --card-accent-text: #2447d6; --card-tint: color-mix(in srgb, #2f5bff 6%, var(--color-surface)); }
.nhs-card--writer    { --card-accent: #12a9c9; --card-accent-text: #0a7691; --card-tint: color-mix(in srgb, #12a9c9 7%, var(--color-surface)); }
.nhs-card--creator   { --card-accent: #1fb673; --card-accent-text: #13804f; --card-tint: color-mix(in srgb, #1fb673 7%, var(--color-surface)); }
.nhs-card--activist  { --card-accent: #ee4d78; --card-accent-text: #c4234f; --card-tint: color-mix(in srgb, #ee4d78 6%, var(--color-surface)); }
.nhs-card--developer, .nhs-card--writer, .nhs-card--creator, .nhs-card--activist { border-color: color-mix(in srgb, var(--card-accent) 16%, var(--color-border)); }

/* Services — four distinct, quiet icon hues */
.nhs-service--1 { --card-accent: #4f46e5; --card-accent-text: #3f37c9; }
.nhs-service--2 { --card-accent: #8b5cf6; --card-accent-text: #6d3fd9; }
.nhs-service--3 { --card-accent: #1fb673; --card-accent-text: #13804f; }
.nhs-service--4 { --card-accent: #12a9c9; --card-accent-text: #0a7691; }

/* Hover lift (restrained; transform only on hover-capable devices) */
@media (hover: hover) {
	.nhs-hover-lift:hover {
		transform: translateY(-4px);
		box-shadow: var(--shadow-md);
		border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
	}
}

/* ---------- Project cards ---------- */
.nhs-project:not(.e-con) { gap: 0; padding: 0; align-items: stretch; }
.nhs-project { overflow: hidden; background: var(--color-surface); }
.nhs-project__media { border-radius: 0; }
.nhs-project__media img, .nhs-project .nhs-ph img { transition: transform calc(var(--motion-duration) * 2) var(--motion-ease); }
@media (hover: hover) {
	.nhs-project:hover .nhs-project__media img, .nhs-project:hover .nhs-ph img { transform: scale(1.03); }
}
.nhs-project .nhs-ph { border-radius: 0; }
.nhs-project__body:not(.e-con) { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px 18px 18px; }
.nhs-project__cat, .nhs-project__cat p { margin: 0; color: var(--color-primary); font-size: .75rem; font-weight: 600; }
.nhs-project .nhs-card__text { margin-bottom: 4px; }
.nhs-project__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Blog / post cards ---------- */
.nhs-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
	transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.nhs-post__media { display: block; aspect-ratio: 16 / 10; border-radius: 0; }
.nhs-post__media img, .nhs-post__media .nhs-placeholder { width: 100%; height: 100%; transition: transform calc(var(--motion-duration) * 2) var(--motion-ease); }
@media (hover: hover) { .nhs-post:hover .nhs-post__media img { transform: scale(1.03); } }
.nhs-post__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 14px; }
.nhs-post__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.nhs-post__title a { color: var(--color-text); text-decoration: none; }
.nhs-post__title a:hover { color: var(--color-primary); }
.nhs-post__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable, one link in the tab order */
.nhs-post { position: relative; }
.nhs-post__excerpt { margin: 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.6; }
.nhs-post__meta { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; color: var(--color-muted); font-size: .75rem; }
.nhs-post__meta--single { justify-content: flex-start; gap: 8px; margin-top: 4px; font-size: .875rem; }
.nhs-post__arrow { color: var(--color-primary); transition: transform var(--motion-duration) var(--motion-ease); }
@media (hover: hover) { .nhs-post:hover .nhs-post__arrow { transform: translateX(4px); } }
.nhs-empty, .nhs-empty-state { padding: 28px; border: 1px dashed var(--color-border); border-radius: var(--radius-card); color: var(--color-muted); text-align: center; }

/* ---------- Testimonials ---------- */
.nhs-testimonial { margin: 0; gap: 14px; }
.nhs-testimonial blockquote { margin: 0; color: var(--color-text); font-size: .9375rem; line-height: 1.7; }
.nhs-testimonial blockquote p { margin: 0; }
.nhs-testimonial__who { display: flex; align-items: center; gap: 12px; }
.nhs-testimonial__who strong { display: block; font-size: .875rem; }
.nhs-testimonial__who small { color: var(--color-muted); font-size: .75rem; }
.nhs-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.elementor-widget-testimonial.nhs-testimonial-widget { width: 100%; }
.nhs-testimonial-widget .elementor-testimonial-content { color: var(--color-text); font-size: .9375rem; line-height: 1.7; }
.nhs-testimonial-widget .elementor-testimonial-name { font-size: .875rem; font-weight: 700; }
.nhs-testimonial-widget .elementor-testimonial-job { color: var(--color-muted); font-size: .75rem; }
.nhs-testimonial-widget .elementor-testimonial-image img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Sections shipped hidden until real content exists. */
body:not(.elementor-editor-active) .nhs-draft { display: none !important; }
body.elementor-editor-active .nhs-draft { outline: 2px dashed #d97706; outline-offset: -2px; }
body.elementor-editor-active .nhs-draft::before {
	content: "Draft section — hidden on the live site until you remove the CSS class “nhs-draft” (Advanced → CSS Classes).";
	display: block; padding: 6px 10px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600;
}

/* ---------- Hero ---------- */
.nhs-hero {
	position: relative;
	overflow: clip;
	background:
		radial-gradient(55% 70% at 85% 15%, color-mix(in srgb, var(--color-secondary) 11%, transparent), transparent 70%),
		radial-gradient(45% 55% at 5% 0%, color-mix(in srgb, var(--color-primary) 9%, transparent), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 3%, var(--color-background)), var(--color-background));
}
.nhs-hero:not(.e-con) { padding-top: calc(var(--header-height) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(48px, 6vw, 80px); }
.nhs-sec-hero > :is(.nhs-container, .e-con-inner) {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
}
.nhs-hero__copy:not(.e-con) { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nhs-hero__title, .nhs-hero__title .elementor-heading-title {
	margin: 0;
	font-size: clamp(3rem, 6.4vw, 5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--color-text);
}
.nhs-accent { color: var(--color-primary); }
.nhs-hero__role, .nhs-hero__role p { margin: 0; color: var(--color-text); font-size: clamp(1rem, 1vw + .7rem, 1.25rem); font-weight: 500; }
.nhs-hero__intro, .nhs-hero__intro p { max-width: 46ch; margin: 0; color: var(--color-muted); font-size: 1rem; line-height: 1.75; }
.nhs-hero__actions:not(.e-con) { display: flex; flex-wrap: wrap; gap: 12px; }
.nhs-hero__actions { margin-top: 8px; }

.nhs-metrics:not(.e-con) { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 0; list-style: none; }
.nhs-metrics { margin: 12px 0 0; }
.nhs-metric:not(.e-con) { display: flex; flex-direction: column; gap: 2px; }
.e-con.nhs-metric { width: auto; }
.nhs-metric__value, .nhs-metric__value .elementor-heading-title { margin: 0; color: var(--color-text); font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.nhs-metric__label, .nhs-metric__label p { margin: 0; color: var(--color-muted); font-size: .8125rem; }

.nhs-hero__visual { position: relative; justify-self: end; width: min(100%, 560px); aspect-ratio: 1 / 1.04; }
.e-con.nhs-hero__visual { display: block; }
.nhs-hero__blob {
	position: absolute;
	inset: 8% 0 -2% 14%;
	border-radius: 46% 54% 52% 48% / 42% 48% 52% 58%;
	background: linear-gradient(150deg, color-mix(in srgb, var(--color-primary) 16%, transparent), color-mix(in srgb, var(--color-secondary) 22%, transparent) 55%, rgba(103, 213, 245, .3));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
	transform: rotate(-4deg);
}
.nhs-hero__visual > .nhs-hero__portrait {
	position: absolute;
	inset: 0 6% 4% 12%;
	z-index: 1;
	border-radius: 46% 54% 50% 50% / 40% 42% 58% 60%;
	background: var(--color-soft);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.nhs-hero__portrait img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--focus, 50% 15%); }
.nhs-hero__portrait .nhs-placeholder { height: 100%; aspect-ratio: auto; }
.nhs-hero__portrait.nhs-ph { --ratio: 4 / 5; }
.nhs-hero__portrait.nhs-ph img { height: 100%; }
.elementor-widget.nhs-hero__portrait .elementor-widget-container, .elementor-widget.nhs-hero__portrait a { height: 100%; display: block; }

.nhs-hero__visual > .nhs-hero__hand { position: absolute; z-index: 2; top: 2%; right: 0; max-width: 8.5em; transform: rotate(-7deg); text-align: left; }
.nhs-hero__hand::after { content: ""; display: block; width: 70%; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--color-navy); transform: rotate(-4deg); opacity: .7; }

.nhs-avail:not(.e-con) { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; }
.nhs-hero__visual > .nhs-avail {
	position: absolute; z-index: 2; left: 0; bottom: 14%;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	background: var(--color-surface);
	box-shadow: var(--shadow-md);
}
.e-con.nhs-avail { width: auto; }
.nhs-avail::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.nhs-avail small, .nhs-avail strong { display: block; line-height: 1.3; }
.nhs-avail small { color: var(--color-muted); font-size: .6875rem; }
.nhs-avail strong { color: var(--color-text); font-size: .8125rem; font-weight: 700; }
.nhs-avail p { margin: 0; }

/* ---------- Profiles section ---------- */
.nhs-sec-profiles > :is(.nhs-container, .e-con-inner) { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3.5vw, 48px); }
.nhs-profiles__intro:not(.e-con) { display: flex; flex-direction: column; gap: 6px; }
.nhs-profiles__intro .nhs-desc { margin-top: 8px; }
.nhs-profile-card { align-items: flex-start; }
.nhs-profile-card { padding: 20px; }
.nhs-profile-card .nhs-card__text { min-height: 6.6em; }
.nhs-profile-card .nhs-card__link { text-wrap: balance; }

/* ---------- About ---------- */
.nhs-sec-about > :is(.nhs-container, .e-con-inner) { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 80px); }
.nhs-about__visual { position: relative; width: min(100%, 460px); justify-self: center; }
.e-con.nhs-about__visual { display: block; }
.nhs-about__photo {
	border-radius: 22px;
	border: 8px solid var(--color-surface);
	box-shadow: var(--shadow-lg);
	transform: rotate(-2.5deg);
	aspect-ratio: 4 / 5;
}
.nhs-about__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nhs-about__photo.nhs-ph { --ratio: 4 / 5; }
.nhs-about__visual > .nhs-about__hand { position: absolute; top: 4%; right: -6%; z-index: 2; max-width: 6.5em; transform: rotate(6deg); }
.nhs-about__copy:not(.e-con) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nhs-about__copy .nhs-desc { max-width: 52ch; margin-bottom: 12px; }
.nhs-highlights:not(.e-con) { display: flex; flex-wrap: wrap; gap: 14px 32px; padding: 0; list-style: none; }
.nhs-highlights { margin: 4px 0 18px; }
.nhs-highlight:not(.e-con) { display: flex; align-items: center; gap: 10px; }
.e-con.nhs-highlight { width: auto; }
.nhs-highlight__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)); color: var(--color-primary); }
.nhs-highlight__icon .nhs-icon { width: 18px; height: 18px; }
.nhs-highlight__label, .nhs-highlight__label p { margin: 0; color: var(--color-text); font-size: .875rem; font-weight: 600; }

/* ---------- Collaboration ---------- */
.nhs-collab { background: var(--color-background); }
.nhs-sec-collab > :is(.nhs-container, .e-con-inner) {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--color-border);
	border-radius: calc(var(--radius-card) + 6px);
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)), var(--color-surface));
}
.nhs-collab__copy:not(.e-con) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
ul.nhs-collab__list, .nhs-collab__list .elementor-icon-list-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nhs-collab__list li, .nhs-collab__list .elementor-icon-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); font-size: .875rem; font-weight: 600; }
.nhs-collab__list .elementor-icon-list-text { color: var(--color-text); font-size: .875rem; font-weight: 600; padding: 0 !important; }
.nhs-collab__list .elementor-icon-list-icon { color: var(--color-primary); display: inline-flex; width: auto; }
.nhs-collab__list .elementor-icon-list-icon svg { width: 16px; height: 16px; }
.nhs-collab__list .elementor-icon-list-item { min-width: 0; }
.nhs-collab__icon { display: inline-grid; place-items: center; color: var(--color-primary); }

/* ---------- Newsletter ---------- */
.nhs-newsletter:not(.e-con) { padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px); gap: clamp(16px, 3vw, 36px); }
.nhs-newsletter {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	overflow: hidden;
	border-radius: calc(var(--radius-card) + 4px);
	color: #fff;
	background:
		radial-gradient(60% 120% at 100% 100%, rgba(255, 143, 112, .5), transparent 60%),
		radial-gradient(70% 120% at 70% 110%, rgba(124, 92, 255, .55), transparent 65%),
		linear-gradient(115deg, #0b1b3f 20%, #17306b 70%, #243d86);
}
.nhs-newsletter__icon .elementor-icon, .nhs-newsletter__icon:not(.elementor-widget) { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.nhs-newsletter__icon .nhs-icon { width: 24px; height: 24px; }
.nhs-newsletter__title, .nhs-newsletter__title .elementor-heading-title { margin: 0 0 4px; color: #fff; font-size: 1.375rem; font-weight: 700; }
.nhs-newsletter__text, .nhs-newsletter__text p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.nhs-newsletter .elementor-widget-heading, .nhs-newsletter .elementor-widget-text-editor { width: 100%; }

/* ---------- Forms ---------- */
.nhs-form__row { display: flex; gap: 8px; }
.nhs-form__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-button);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
	font-size: .875rem;
}
.nhs-form__input::placeholder { color: var(--color-muted); opacity: .8; }
.nhs-form__input:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-primary) 55%, #fff); outline-offset: 1px; border-color: var(--color-primary); }
.nhs-form__input:disabled { opacity: .6; }
.nhs-form__consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: .75rem; line-height: 1.5; }
.nhs-form__consent input { margin-top: 3px; accent-color: var(--color-primary); }
.nhs-form__consent a { color: inherit; text-decoration: underline; }
.nhs-form__status { min-height: 1.4em; margin: 8px 0 0; font-size: .8125rem; font-weight: 600; }
.nhs-form__status.is-error { color: #ffb4c2; }
.nhs-form__status.is-success { color: #8df0b9; }
.nhs-form__admin-note { margin: 6px 0 0; font-size: .75rem; opacity: .85; }
.nhs-form__admin-note a { color: inherit; }
.nhs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nhs-newsletter-form.is-sending .nhs-btn { opacity: .7; pointer-events: none; }
/* Outside the dark banner (e.g. the shortcode in a page) use normal text colours. */
.nhs-newsletter-form { color: inherit; }
:where(.nhs-main, .entry-content) .nhs-newsletter-form .nhs-form__status.is-error { color: #c4234f; }
:where(.nhs-main, .entry-content) .nhs-newsletter-form .nhs-form__status.is-success { color: #13804f; }

/* ---------- Contact CTA ---------- */
.nhs-contact { text-align: center; background: linear-gradient(180deg, var(--color-background), var(--color-soft)); }
.nhs-contact__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nhs-contact .nhs-desc { max-width: 56ch; }
.nhs-contact__actions:not(.e-con) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nhs-contact__actions { margin-top: 8px; }

/* ---------- Social ---------- */
.nhs-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.nhs-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text); transition: color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease), background-color var(--motion-duration) var(--motion-ease); }
.nhs-social a:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.nhs-social .nhs-icon { width: 17px; height: 17px; }

/* ---------- Profile page header ---------- */
.nhs-profile__hero {
	padding: calc(var(--header-height) + clamp(28px, 4vw, 56px)) 0 clamp(32px, 4vw, 56px);
	background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 9%, var(--color-background)), var(--color-background));
	border-bottom: 1px solid var(--color-border);
}
.nhs-profile__hero .nhs-card__icon { width: 56px; height: 56px; margin-bottom: 8px; }
.nhs-profile__hero .nhs-card__icon .nhs-icon { width: 26px; height: 26px; }
.nhs-profile__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- Slider controls (added by JS only when the row overflows) ---------- */
.nhs-slider-controls { display: none; gap: 8px; margin-left: auto; padding: 4px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
.nhs-slider-controls.is-active { display: inline-flex; }
.nhs-slider-controls .nhs-icon-btn { width: 36px; height: 36px; }
.nhs-slider-controls .nhs-icon-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- Extras for the Elementor starter template ---------- */
.nhs-ph--16-10 { --ratio: 16 / 10; }
.nhs-ph--4-5 { --ratio: 4 / 5; }
.nhs-ph--1-1 { --ratio: 1 / 1; }
.e-con.nhs-card > .elementor-widget-button:last-child { margin-top: auto; }
.e-con.nhs-newsletter { display: grid; }
body:not(.elementor-editor-active) .nhs-project__links:not(:has([href])) { display: none; }
.nhs-highlight__icon .elementor-icon {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
	background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)); color: var(--color-primary); font-size: 16px;
}
.nhs-highlight__icon .elementor-icon svg { width: 1em; height: 1em; fill: currentColor; }
.nhs-newsletter__icon .elementor-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: 22px; }
.nhs-newsletter__icon .elementor-icon svg { width: 1em; height: 1em; fill: currentColor; }
.nhs-social-widget .elementor-social-icons-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nhs-social-widget .elementor-grid-item { margin: 0 !important; }
.nhs-social-widget .elementor-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: 50%; background: transparent; color: var(--color-text); font-size: 16px; transition: all var(--motion-duration) var(--motion-ease); }
.nhs-social-widget .elementor-icon:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; transform: translateY(-2px); }
body:not(.elementor-editor-active) .nhs-social-widget .elementor-grid-item:not(:has([href])) { display: none; }
body:not(.elementor-editor-active) .nhs-social-widget:not(:has([href])) { display: none; }

/* Absolutely-positioned Elementor widgets must not keep their default width:100%. */
.nhs-hero__visual > .elementor-widget, .nhs-about__visual > .nhs-about__hand { width: auto; }
.nhs-hero__visual > .nhs-hero__blobwrap { position: absolute; inset: 0; pointer-events: none; }
.nhs-hero__blobwrap .elementor-widget-container { position: absolute; inset: 0; }
.elementor-widget.nhs-btn-link .elementor-button { text-align: left; }
.elementor-widget.nhs-btn-link .elementor-button-content-wrapper { justify-content: flex-start; }
