/* ==========================================================================
   Shared by the designed page templates (page-templates/*).
   Built on the homepage tokens: same fonts, colours, buttons and section titles.
   ========================================================================== */

.landing {
	--sticky-top: 96px;  /* clears the stuck nav bar (76px) */
	overflow: hidden;    /* floating tiles bleed past the edges */
	background: var(--color-cream);
}

@supports (overflow: clip) {
	.landing { overflow: clip; } /* clip, not hidden: keeps position: sticky working */
}

.admin-bar .landing { --sticky-top: 128px; }

/* Dark surfaces on these pages: accents turn white, as on the homepage. */
.manifesto,
.record-stat--hero,
.svc-card--dark {
	--accent: var(--color-white);
	--accent-soft: rgba(255, 255, 255, 0.14);
	--title-color: var(--color-white);
	--title-accent: var(--color-blush-100);
}

.landing ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Type ------------------------------------------------------------------------ */
.landing-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-display);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--color-ink);
}

.landing-lead {
	font-size: var(--fs-lead);
	line-height: 1.75;
	color: var(--color-slate);
}

/* Section rhythm ------------------------------------------------------------- */
.landing-section {
	padding-block: clamp(64px, 9vw, 120px);
}

.landing-head {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: end;
	margin-bottom: clamp(36px, 5vw, 64px);
}

.landing-head .eyebrow {
	margin-bottom: 16px;
}

.landing-head--center {
	display: block;
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.landing-head--center .landing-lead {
	margin-top: 16px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Wide rounded panels (wider than the text container) -------------------------- */
.panel-wrap {
	padding-inline: clamp(12px, 2.2vw, 40px);
}

.panel {
	position: relative;
	max-width: 1400px;
	margin-inline: auto;
	border-radius: var(--radius-panel);
	overflow: hidden;
}

/* Media frames ----------------------------------------------------------------- */
.landing-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-media);
	background: linear-gradient(135deg, var(--color-burgundy-800), var(--color-burgundy-600) 60%, var(--color-blush-200));
}

.landing-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease-out);
}

.landing-media:hover img {
	transform: scale(1.05);
}

/* Small uppercase pill label */
.landing-tag {
	align-self: flex-start;
	display: inline-flex;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: var(--color-blush-100);
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: normal;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--color-burgundy-600);
}

/* Live dot */
.pulse-dot {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff6b7a;
}

.pulse-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
	from { transform: scale(1); opacity: 0.8; }
	to   { transform: scale(3.2); opacity: 0; }
}

/* ECG line: draws itself on a loop once its section is in view. */
.ecg path {
	stroke-dasharray: 1000;
	stroke-dashoffset: 0;
}

.anim .ecg path {
	stroke-dashoffset: 1000;
}

.anim .is-in .ecg path {
	animation: ecg 3.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ecg {
	0%   { stroke-dashoffset: 1000; }
	55%  { stroke-dashoffset: 0; }
	100% { stroke-dashoffset: -1000; }
}

/* Breadcrumb and arrow link (service pages, blog posts) ----------------------- */
.sd-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: clamp(28px, 4vw, 44px);
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--color-slate);
}

.sd-crumbs a {
	transition: color var(--dur-fast);
}

.sd-crumbs a:hover {
	color: var(--color-burgundy-600);
}

.sd-crumbs span[aria-hidden] {
	opacity: 0.45;
}

.sd-crumbs [aria-current] {
	font-weight: 600;
	color: var(--color-ink);
}

.sd-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-burgundy-600);
}

.sd-link__circle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	transition: background-color var(--dur-base), color var(--dur-base), transform 0.5s var(--ease-out);
}

.sd-link__circle svg {
	width: 16px;
}

.sd-link:hover .sd-link__circle {
	background: var(--color-burgundy-600);
	color: var(--color-white);
	transform: rotate(45deg);
}

/* Service links (Our Services index, "other services" on a service page) ------- */
.svc-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 0 0 1px var(--line-on-light);
	transition: background-color var(--dur-base), transform 0.5s var(--ease-out), box-shadow var(--dur-base);
}

.svc-link:hover {
	background: var(--color-white);
	transform: translateY(-4px);
	box-shadow: inset 0 0 0 1px var(--color-blush-200), var(--shadow-soft);
}

.svc-link__swatch {
	display: grid;
	flex: none;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	color: var(--color-white);
	transition: transform 0.5s var(--ease-out);
}

.svc-link:hover .svc-link__swatch {
	transform: rotate(-8deg) scale(1.06);
}

.svc-link__swatch svg {
	width: 24px;
}

.svc-link__text {
	min-width: 0;
}

.svc-link strong {
	display: block;
	font-family: var(--font-ui);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.svc-link small {
	font-size: 16px;
	line-height: 1.3;
	color: var(--color-slate);
}

.svc-link__go {
	flex: none;
	width: 16px;
	margin-left: auto;
	color: var(--color-burgundy-600);
	opacity: 0.4;
	transition: opacity var(--dur-fast), transform 0.45s var(--ease-out);
}

.svc-link:hover .svc-link__go {
	opacity: 1;
	transform: rotate(45deg);
}

/* Person card (homepage team section, Our Team) -------------------------------------
   A photo when one has been supplied, otherwise initials on a burgundy disc. */
.person-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 24px;
	border-radius: var(--radius-card);
	background: var(--color-white);
	box-shadow: inset 0 0 0 1px var(--line-on-light);
}

.person-card__portrait {
	display: grid;
	flex: none;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background:
		radial-gradient(120% 100% at 0% 0%, rgba(232, 201, 205, 0.35), transparent 60%),
		linear-gradient(150deg, var(--color-burgundy-600), var(--color-burgundy-800));
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-white);
}

.person-card__portrait.has-photo {
	overflow: hidden;
	background: var(--color-paper);
}

.person-card__portrait img { /* head and shoulders from a waist-up portrait */
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	transform: scale(1.6);
	transform-origin: 50% 12%;
}

.person-card__name {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.person-card__role {
	margin-top: 6px;
	font-size: 17px;
	line-height: 1.45;
	color: var(--color-slate);
}

.person-card__specialty {
	margin-top: 10px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-burgundy-600);
}

/* HMO partner logos ------------------------------------------------------------------ */
.hmo-names {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.hmo-name {
	display: grid;
	place-items: center;
	min-height: 120px;
	padding: 20px;
	border-radius: var(--radius-card);
	background: var(--color-white);
	box-shadow: inset 0 0 0 1px var(--line-on-light);
	text-align: center;
}

.hmo-name img {
	width: auto;
	max-width: 78%;
	max-height: 64px;
	object-fit: contain;
}

/* Responsive ----------------------------------------------------------------------- */
@media (max-width: 900px) {
	.landing-head {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 600px) {
	:root { --radius-panel: 24px; }
	.hmo-names { grid-template-columns: 1fr; }
	.hmo-name { min-height: 96px; }
	.person-card { padding: 20px; gap: 16px; }
	.person-card__portrait { width: 60px; height: 60px; font-size: 19px; }
}
