/* Heart Test UK */

:root {
	--teal: #00a392;
	--teal-dark: #00786b;
	--teal-deep: #004f47;
	--mint: #b2ece8;
	--mint-soft: #ebf8f6;
	--red: #e2001a;
	--ink: #1c2b29;
	--muted: #5a6b68;
	--line: #d5ebe8;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(0, 60, 54, 0.06), 0 8px 24px rgba(0, 60, 54, 0.08);
	--container: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	--nav-height: 56px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--teal-dark);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--teal-deep);
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	line-height: 1.25;
	margin: 0;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}

.skip:focus {
	left: 8px;
}

/* BRAND BAR */

.brand-bar {
	background-color: var(--teal);
}

.brand-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 84px;
}

.logo img {
	width: 194px;
}

.tagline {
	margin: 0;
	background: #fff;
	color: var(--red);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	padding: 7px 12px;
	border-radius: 4px;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
}

.menu-toggle svg {
	display: block;
	margin: auto;
}

/* NAV */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: 0 2px 10px rgba(0, 60, 54, 0.05);
}

.nav-list,
.nav-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 -12px;
}

.nav-list > li > a,
.sub-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	height: var(--nav-height);
	padding: 0 12px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--teal-dark);
	text-decoration: none;
	background: none;
	border: 0;
	box-shadow: inset 0 -3px 0 transparent;
	cursor: pointer;
}

.nav-list > li > a:hover,
.sub-toggle:hover {
	color: var(--teal-deep);
	box-shadow: inset 0 -3px 0 var(--mint);
}

.nav-list > li > a[aria-current],
.has-sub.current > .sub-toggle {
	color: var(--teal-deep);
	box-shadow: inset 0 -3px 0 var(--teal);
}

.sub-toggle svg {
	transition: transform 0.2s;
}

.sub-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.has-sub {
	position: relative;
}

.sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 340px;
	padding: 8px 0;
	background: #fff;
	border-top: 3px solid var(--teal);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.sub-toggle[aria-expanded="true"] + .sub {
	display: block;
}

.sub a {
	display: block;
	padding: 8px 18px 8px 38px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--teal-dark);
	text-decoration: none;
	background-position: 14px 12px;
	background-repeat: no-repeat;
}

.sub a:hover,
.sub a:focus-visible,
.sub a[aria-current] {
	background-color: var(--mint-soft);
	background-image: url(../images/navbar_heart.jpg);
	background-blend-mode: multiply;
}

.sub a[aria-current] {
	font-weight: 700;
}

main {
	flex: 1;
}

/* PAGE HERO */

.page-hero {
	background: linear-gradient(180deg, var(--mint-soft), #f6fcfb);
	border-bottom: 1px solid var(--line);
	padding: clamp(28px, 5vw, 56px) 0;
}

.page-hero-inner {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

.page-hero-inner.has-image {
	grid-template-columns: minmax(0, 1fr) minmax(0, 475px);
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal);
}

.page-hero h1 {
	font-size: clamp(28px, 4vw, 40px);
	color: var(--teal-deep);
	letter-spacing: -0.01em;
}

.lead {
	margin-top: 16px;
	font-size: 18px;
	color: var(--ink);
}

.lead p {
	margin: 0 0 12px;
}

.lead p:last-child {
	margin-bottom: 0;
}

.lead .strong {
	font-weight: 600;
}

.page-hero img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
}

/* PAGE BODY */

.page-body {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(40px, 6vw, 72px);
}

.page-body.with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.page-body.with-aside > aside {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: calc(var(--nav-height) + 24px);
	display: grid;
	gap: 20px;
}

.page-body.with-aside > .prose {
	grid-column: 1;
	grid-row: 1;
}

.prose {
	max-width: 70ch;
}

.prose h2 {
	font-size: 22px;
	color: var(--teal-deep);
	margin: 40px 0 12px;
}

.prose > h2:first-child,
.prose > :first-child h2:first-child {
	margin-top: 0;
}

.prose p {
	margin: 0 0 16px;
}

.prose ul {
	margin: 0 0 16px;
	padding-left: 0;
	list-style: none;
}

.prose ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
	font-weight: 600;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.6em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--teal);
}

.to-top {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.to-top a {
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

/* SIDE CARDS */

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.card-title {
	margin: 0;
	padding: 12px 18px;
	background: var(--teal);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.card ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.card li a {
	display: block;
	padding: 8px 18px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	text-decoration: none;
}

.card li a:hover {
	background: var(--mint-soft);
}

.quicklinks {
	background: var(--mint-soft);
	border-color: var(--mint);
	box-shadow: none;
}

.quicklinks li a {
	position: relative;
	padding-left: 36px;
}

.quicklinks li a::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 14px;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--teal);
	border-bottom: 2px solid var(--teal);
	transform: rotate(-45deg);
}

.service-list a {
	color: var(--teal-dark);
}

.service-list a[aria-current] {
	background: var(--mint-soft);
	color: var(--teal-deep);
	box-shadow: inset 3px 0 0 var(--teal);
}

/* HOME */

.home-hero {
	position: relative;
	color: #fff;
	background-color: var(--teal-dark);
	background-image:
		linear-gradient(100deg, rgba(0, 95, 85, 0.96) 0%, rgba(0, 130, 117, 0.88) 45%, rgba(0, 163, 146, 0.45) 100%),
		url(../images/front/bg.jpg);
	background-size: cover;
	background-position: center;
	padding: clamp(48px, 9vw, 104px) 0;
}

.home-hero h1 {
	max-width: 22ch;
	font-size: clamp(30px, 4.6vw, 48px);
	letter-spacing: -0.015em;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 640px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.chips li {
	background: #fff;
	color: var(--teal-deep);
	font-weight: 600;
	font-size: 16px;
	padding: 8px 16px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 40, 36, 0.15);
}

.home-intro {
	padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 24px);
}

.home-intro .prose {
	margin: 0 auto;
}

.home-intro .prose p:first-child {
	font-size: 20px;
	color: var(--teal-deep);
	font-weight: 600;
}

.services {
	padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 88px);
}

.section-title {
	font-size: clamp(24px, 3vw, 30px);
	color: var(--teal-deep);
	margin-bottom: 24px;
	text-align: center;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--teal-deep);
	transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(0, 60, 54, 0.08), 0 14px 32px rgba(0, 60, 54, 0.14);
}

.service-card img,
.service-card .placeholder {
	aspect-ratio: 475 / 273;
	width: 100%;
	object-fit: cover;
}

.service-card .placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--teal), var(--teal-dark));
	color: rgba(255, 255, 255, 0.85);
}

.service-card span {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex: 1;
	padding: 16px 18px;
	font-weight: 700;
	line-height: 1.35;
}

.service-card span::after {
	content: "\2192";
	color: var(--teal);
	font-size: 20px;
}

/* ABOUT */

.highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.prose .highlights li {
	margin: 0;
	padding: 20px 20px 20px 60px;
	background: var(--mint-soft);
	border: 1px solid var(--mint);
	border-radius: var(--radius);
	color: var(--teal-deep);
	line-height: 1.45;
}

.prose .highlights li::before {
	left: 20px;
	top: 20px;
	width: 26px;
	height: 26px;
	background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.about-layout .prose {
	max-width: none;
}

.about-layout .prose > p {
	max-width: 70ch;
}

/* CONTACT */

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
	align-items: start;
}

.contact-card {
	padding: 24px;
}

.contact-card dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
}

.contact-card dt {
	font-weight: 700;
	color: var(--teal-deep);
}

.contact-card dd {
	margin: 0;
}

.contact-card .address {
	margin: 18px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.locations h2 {
	font-size: 22px;
	color: var(--teal-deep);
}

.locations > p {
	margin: 8px 0 16px;
}

.location {
	padding: 18px 20px;
	margin-bottom: 16px;
}

.location h3 {
	font-size: 17px;
	color: var(--teal-deep);
}

.location p {
	margin: 4px 0 0;
}

/* LINKS */

.link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.prose .link-grid li {
	padding: 0;
	margin: 0;
	font-weight: normal;
}

.prose .link-grid li::before {
	display: none;
}

.link-grid a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	text-decoration: none;
}

.link-grid a:hover {
	border-color: var(--teal);
}

.link-grid h2 {
	font-size: 17px;
	color: var(--teal-deep);
}

.link-grid .url {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	color: var(--teal-dark);
	word-break: break-word;
}

/* SURVEY */

.survey {
	max-width: 760px;
}

.question {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 24px;
	margin: 0;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
}

.question legend {
	float: left;
	padding: 0;
	font-weight: 600;
	line-height: 1.4;
}

.scale {
	display: flex;
	gap: 6px;
}

.scale label {
	position: relative;
}

.scale input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.scale span {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--mint);
	border-radius: 10px;
	font-weight: 700;
	color: var(--teal-dark);
	background: #fff;
	transition: background-color 0.12s, border-color 0.12s;
}

.scale label:hover span {
	border-color: var(--teal);
}

.scale input:checked + span {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.scale input:focus-visible + span {
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

.comments label {
	display: block;
	font-weight: 700;
	margin: 28px 0 8px;
	color: var(--teal-deep);
}

.comments textarea,
.sent textarea {
	width: 100%;
	min-height: 120px;
	font: inherit;
	padding: 12px;
	border: 2px solid var(--mint);
	border-radius: 10px;
	resize: vertical;
}

.comments textarea:focus {
	border-color: var(--teal);
	outline: none;
}

.submit {
	margin: 20px 0 0;
	text-align: right;
}

.button {
	display: inline-block;
	background: var(--teal-dark);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.button:hover {
	background: var(--teal-deep);
}

.sent {
	margin-top: 28px;
	padding: 24px;
	background: var(--mint-soft);
	border: 1px solid var(--mint);
	border-radius: var(--radius);
}

.sent p {
	margin: 0 0 12px;
}

.sent textarea {
	min-height: 220px;
	background: #fff;
	margin-bottom: 12px;
}

/* FOOTER */

.site-footer {
	/* Must match the brand bar: the logo image has this background baked in */
	background: var(--teal);
	color: #fff;
	font-size: 15px;
	padding: 40px 0;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #fff;
}

/* SMALL SCREENS */

@media (max-width: 959px) {
	:root {
		--nav-height: 0px;
	}

	.brand-inner {
		min-height: 68px;
	}

	.logo img {
		width: 160px;
	}

	.tagline {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.site-nav {
		position: static;
		box-shadow: none;
	}

	.js .site-nav {
		display: none;
	}

	.js .nav-open .site-nav,
	.js.nav-open .site-nav {
		display: block;
	}

	.nav-list {
		display: block;
		margin: 0 calc(var(--gutter) * -1);
		padding: 4px 0 12px;
	}

	.nav-list > li > a,
	.sub-toggle {
		width: 100%;
		height: auto;
		padding: 12px var(--gutter);
		font-size: 17px;
		box-shadow: none !important;
	}

	.nav-list > li > a[aria-current],
	.has-sub.current > .sub-toggle {
		background: var(--mint-soft);
	}

	.sub-toggle {
		justify-content: space-between;
	}

	.sub {
		position: static;
		width: auto;
		box-shadow: none;
		border-top: 0;
		border-radius: 0;
		padding: 0 0 8px;
	}

	.has-sub:hover > .sub,
	.has-sub:focus-within > .sub {
		display: none;
	}

	.no-js .sub,
	.sub-toggle[aria-expanded="true"] + .sub {
		display: block !important;
	}

	.sub a {
		padding: 10px var(--gutter) 10px calc(var(--gutter) + 26px);
		background-position: calc(var(--gutter) + 4px) 14px;
		font-size: 16px;
	}

	.page-hero-inner.has-image {
		grid-template-columns: 1fr;
	}

	.page-hero-inner.has-image img {
		order: -1;
		max-width: 560px;
	}

	.page-body.with-aside {
		display: block;
	}

	.page-body.with-aside > aside {
		position: static;
		margin-bottom: 32px;
	}

	.service-list {
		display: none;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	.lead {
		font-size: 17px;
	}

	.prose h2 {
		font-size: 20px;
	}

	.question {
		grid-template-columns: 1fr;
	}

	.scale {
		justify-content: space-between;
	}

	.scale label {
		flex: 1;
	}

	.scale span {
		width: 100%;
	}

	.submit {
		text-align: stretch;
	}

	.submit .button {
		width: 100%;
	}

	.contact-card dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.contact-card dd {
		margin-bottom: 8px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
