/* Homepage, part 3: facts strip, price line, scroll reveal and hover motion.
   Reveal is scoped under html.js and switched off for reduced motion, so content never stays hidden. */

/* Facts strip */
.facts { padding-block: 8px 40px; }
.facts__list {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-radius: var(--radius-lg); overflow: hidden;
	background: linear-gradient(120deg, #007370, var(--brand) 50%, #00a7a3);
	box-shadow: 0 18px 44px rgba(0, 129, 126, .22);
}
.fact { position: relative; display: grid; align-content: start; gap: 2px; padding: 28px 26px; color: #fff; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: rgba(255, 255, 255, .25); }
.fact__num { font-size: 48px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fact__label { margin-top: 8px; font-size: 17px; font-weight: 600; }
.fact__note { font-size: 14px; color: #dafcfa; line-height: 1.5; }

/* Price line on service cards */
.svc__price {
	margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 16px; background: var(--tint); line-height: 1.4;
	font-size: 14px; font-weight: 700; color: var(--teal-ink);
}
.svc__price::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-hi); }
.services__note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
.services__more { margin-top: 24px; }

/* Hover: cards lift with a teal edge, buttons slide a little */
.svc, .post, .frame, .news__item, .doc { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.svc:hover { border-color: rgba(1, 185, 181, .6); box-shadow: 0 18px 44px rgba(0, 129, 126, .16); transform: translateY(-6px); }
.frame:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 129, 126, .16); }
.frame:nth-child(3n+2):hover { transform: translateY(-26px); }
.doc:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 129, 126, .18); }
.btn { transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.mainnav__list > li > a { position: relative; }
.mainnav__list > li > a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transition: transform .25s; }
.mainnav__list > li:hover > a::after, .mainnav__list > li:focus-within > a::after { transform: scaleX(1); }
.ba__handle { transition: transform .2s, box-shadow .2s; }
.ba:hover .ba__handle { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 8px rgba(1, 185, 181, .3); }
.float-book__ico { animation: yd-pulse 2.6s ease-out infinite; }
@keyframes yd-pulse {
	0% { box-shadow: 0 0 0 0 rgba(1, 185, 181, .5); }
	70%, 100% { box-shadow: 0 0 0 16px rgba(1, 185, 181, 0); }
}

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* After the reveal, hand transform back to the hover rules */
.js [data-reveal].is-done { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; transition-delay: 0s; }
.js .svc.is-done:hover { transform: translateY(-6px); }
.js .doc.is-done:hover { transform: translateY(-4px); }

/* Hero: the banner drifts in slowly on load */
.hero__slide img { animation: yd-hero 1.4s ease-out both; }
@keyframes yd-hero { from { opacity: .4; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
	.facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact:nth-child(3)::before { display: none; }
	.fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 767px) {
	.facts { padding-block: 0 28px; }
	.fact { padding: 20px 16px; }
	.fact__num { font-size: 36px; }
	.fact__label { font-size: 15px; }
	.fact__note { font-size: 12.5px; }
	.js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.hero__slide img, .float-book__ico { animation: none; }
	.svc:hover, .frame:hover, .doc:hover, .btn:hover { transform: none; }
}

/* Homepage pass 21/11/2026: facts as a ruled line of text, two lead service cards, less decoration */
.facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .fact { color: var(--ink); padding: 24px 28px; border-top: 0; }
.facts .fact + .fact::before { display: block; background: var(--line); top: 24px; bottom: 24px; }
.fact__label { margin-top: 0; font-size: 21px; font-weight: 700; color: var(--navy); }
.fact__note { font-size: 15px; color: var(--muted); }

.services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc:not(.svc--lead) h3 { font-size: 21px; }
.svc--lead { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 24px; align-content: start; justify-items: start; padding: 18px; }
.svc--lead .svc__img { grid-column: 1; grid-row: 1 / span 5; height: 100%; margin-bottom: 0; }
.svc--lead .svc__img img { height: 100%; min-height: 300px; aspect-ratio: auto; }
.svc--lead > :not(.svc__img) { grid-column: 2; }
.svc--lead h3 { margin-top: 8px; }
.svc__price::before { display: none; }
.story::after, .cta__band::before, .cta__band::after { display: none; }

@media (max-width: 1100px) {
	.services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.facts__list { grid-template-columns: minmax(0, 1fr); }
	.facts .fact { padding: 16px 4px; }
	.facts .fact + .fact { border-top: 1px solid var(--line); }
	.facts .fact + .fact::before { display: none; }
	.fact__label { font-size: 18px; }
	.fact__note { font-size: 14px; }
	.services__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.svc--lead { grid-column: auto; display: flex; padding: 18px 18px 24px; }
	.svc--lead .svc__img { height: auto; margin-bottom: 20px; }
	.svc--lead .svc__img img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
	.svc--lead h3 { margin-top: 0; }
}

/* Homepage doctor card: taller frame so the portrait shows down to the crossed arms (21/11/2026). */
.doc { height: 460px; }
@media (max-width: 767px) {
	.doc { height: 440px; }
}
