/**
 * Yritystensaattohoito — child design CSS.
 *
 * One stylesheet for the fixed layouts, header and footer partials, and the
 * blog templates. Loads after the parent base layer via wpsa-child.
 */

/* ------------------------------------------------------------------ header */

.ytth-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wpsa-space-md);
	min-block-size: 90px;
	background: var(--wpsa-color-bg);
}

.ytth-header__logo img {
	inline-size: clamp(150px, 14vw, 200px);
	height: auto;
}

.ytth-header__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wpsa-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ytth-header__nav a {
	font-size: 0.9375rem;
	text-decoration: none;
	color: var(--wpsa-color-text);
}

.ytth-header__nav a:hover {
	color: var(--wpsa-color-accent);
}

@media (width < 48rem) {
	.ytth-header {
		flex-direction: column;
		padding-block: var(--wpsa-space-sm);
	}

	.ytth-header__nav ul {
		justify-content: center;
		gap: var(--wpsa-space-md);
	}
}

/* ------------------------------------------------------------------ footer */

.ytth-footer {
	background: var(--wpsa-color-accent);
	color: var(--wpsa-color-accent-contrast);
	padding-block: var(--wpsa-space-xl) var(--wpsa-space-lg);
	font-size: 0.9375rem;
}

.ytth-footer a {
	color: inherit;
}

.ytth-footer__grid {
	display: grid;
	gap: var(--wpsa-space-lg);
}

@media (width >= 48rem) {
	.ytth-footer__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.ytth-footer__logo img {
	inline-size: clamp(160px, 15vw, 210px);
	height: auto;
}

.ytth-footer__tagline {
	margin-block-start: var(--wpsa-space-md);
	font-size: 1.5rem;
	font-weight: 600;
	color: #ffffff;
}

.ytth-footer__company {
	margin: 0;
	font-family: var(--wpsa-font-body);
	font-size: 1rem;
	font-weight: 500;
	color: #ffffff;
}

.ytth-footer__meta {
	margin-block-start: var(--wpsa-space-md);
	display: grid;
	gap: var(--wpsa-space-md);
}

.ytth-footer__copy {
	margin-block-start: var(--wpsa-space-xl);
	text-align: center;
	font-size: var(--wpsa-text-xs);
	color: rgb(255 255 255 / 80%);
}

/* ------------------------------------------------------------ home: hero */

.ytth-hero {
	position: relative;
	background: #ffffff var(--ytth-hero-decor, none) no-repeat;
	background-size: cover;
	padding-block: var(--wpsa-space-lg) 0;
}

.ytth-hero__decor {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	inline-size: min(52%, 620px);
	opacity: 0.61;
	pointer-events: none;
}

.ytth-hero__grid {
	position: relative;
	display: grid;
	gap: var(--wpsa-space-lg);
	align-items: center;
}

@media (width >= 62rem) {
	.ytth-hero__grid {
		grid-template-columns: 62fr 38fr;
	}
}

.ytth-hero__heading {
	color: var(--wpsa-color-text);
}

.ytth-hero__image img {
	inline-size: 100%;
	height: auto;
}

/* Three selling points on the dark band. */
.ytth-points {
	background: var(--wpsa-color-accent);
	border-radius: var(--wpsa-radius-md);
	color: #ffffff;
	padding-block: var(--wpsa-space-lg);
	padding-inline: var(--wpsa-space-lg);
}

.ytth-points__row {
	display: grid;
	gap: var(--wpsa-space-lg);
}

@media (width >= 48rem) {
	.ytth-points__row {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ytth-points__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wpsa-space-sm);
	align-items: start;
}

.ytth-points__icon {
	inline-size: 22px;
	block-size: 22px;
	fill: #ffffff;
	margin-block-start: 0.2em;
}

.ytth-points__item h3 {
	margin: 0;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 500;
}

.ytth-points__item p {
	margin: var(--wpsa-space-2xs) 0 0;
	color: rgb(255 255 255 / 88%);
	font-size: 0.9375rem;
}

/* -------------------------------------------------------------- home: who */

.ytth-who {
	background: var(--wpsa-color-surface);
}

.ytth-who__grid {
	display: grid;
	gap: var(--wpsa-space-xl);
	align-items: center;
}

@media (width >= 62rem) {
	.ytth-who__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ytth-who__media {
	position: relative;
	min-block-size: 320px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right bottom;
}

.ytth-who__label {
	position: absolute;
	inset-block-end: var(--wpsa-space-sm);
	inset-inline-start: var(--wpsa-space-sm);
	padding: 0.4em 0.9em;
	background: rgb(255 255 255 / 90%);
	border-radius: var(--wpsa-radius-full);
	font-family: var(--wpsa-font-accent);
	font-size: var(--wpsa-text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.ytth-eyebrow {
	margin: 0 0 var(--wpsa-space-xs);
	font-family: var(--wpsa-font-body);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	color: var(--ytth-eyebrow);
}

.ytth-who__text {
	max-inline-size: 60ch;
}

/* -------------------------------------------------------------- home: what */

.ytth-what__grid {
	display: grid;
	gap: var(--wpsa-space-xl);
	align-items: center;
}

@media (width >= 62rem) {
	.ytth-what__grid {
		grid-template-columns: 45fr 55fr;
	}
}

.ytth-cards {
	display: grid;
	gap: var(--wpsa-space-lg);
}

.ytth-card {
	display: grid;
	grid-template-columns: 30% 1fr;
	gap: var(--wpsa-space-md);
	align-items: start;
}

.ytth-card__icon {
	display: grid;
	place-items: center;
	inline-size: 58px;
	block-size: 58px;
	border-radius: 50%;
	background: var(--ytth-amber);
	color: #ffffff;
}

.ytth-card__icon svg {
	inline-size: 26px;
	block-size: 26px;
	fill: currentColor;
}

.ytth-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--wpsa-color-text);
}

.ytth-card__text {
	margin: var(--wpsa-space-2xs) 0 0;
	color: var(--wpsa-color-text-muted);
	font-size: 0.9375rem;
}

/* --------------------------------------------------------------- home: why */

.ytth-why__grid {
	display: grid;
	gap: var(--wpsa-space-lg);
	align-items: center;
}

@media (width >= 62rem) {
	.ytth-why__grid {
		grid-template-columns: 35fr 65fr;
	}
}

.ytth-why__text {
	max-inline-size: 75ch;
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* ------------------------------------------------------- home: cta banner */

.ytth-banner {
	position: relative;
	background: var(--wpsa-color-accent);
	color: #ffffff;
	overflow: hidden;
}

.ytth-banner__decor {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	inline-size: min(60%, 560px);
	pointer-events: none;
}

.ytth-banner__inner {
	position: relative;
	text-align: center;
	max-inline-size: 62ch;
	margin-inline: auto;
}

.ytth-banner__text {
	margin-block: var(--wpsa-space-sm) var(--wpsa-space-lg);
	font-size: 1.0625rem;
}

/* Buttons. */
.ytth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9em 1.8em;
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background: var(--wpsa-color-accent);
	color: var(--wpsa-color-accent-contrast);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.09em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--wpsa-transition), color var(--wpsa-transition);
}

.ytth-button:hover {
	background: var(--ytth-amber);
	color: var(--wpsa-color-accent);
}

.ytth-button--outline {
	background: transparent;
	border: 2px solid var(--ytth-outline);
	color: var(--ytth-price-heading);
}

.ytth-button--outline:hover {
	background: var(--ytth-outline);
	color: #ffffff;
}

/* ---------------------------------------------------------- home: how works */

.ytth-how {
	background: var(--wpsa-color-surface);
}

.ytth-how__intro {
	text-align: center;
	max-inline-size: 70ch;
	margin-inline: auto;
}

.ytth-how__intro .ytth-eyebrow {
	font-size: 1.125rem;
}

.ytth-how__columns {
	display: grid;
	gap: var(--wpsa-space-xl);
	margin-block-start: var(--wpsa-space-xl);
}

@media (width >= 48rem) {
	.ytth-how__columns {
		grid-template-columns: 1fr 1fr;
	}
}

.ytth-acc {
	border-block-end: 1px solid var(--wpsa-color-border);
}

.ytth-acc__item + .ytth-acc__item {
	margin-block-start: 26px;
}

.ytth-acc__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wpsa-space-sm);
	inline-size: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--wpsa-color-text);
	cursor: pointer;
}

.ytth-acc__trigger:focus-visible {
	outline: 3px solid var(--wpsa-color-accent);
	outline-offset: 4px;
}

.ytth-acc__icon {
	flex: none;
	inline-size: 22px;
	block-size: 22px;
	color: var(--wpsa-color-accent);
	transition: transform var(--wpsa-transition);
}

.ytth-acc__trigger[aria-expanded="true"] .ytth-acc__icon {
	transform: rotate(45deg);
}

.ytth-acc__panel {
	padding-block-start: var(--wpsa-space-sm);
	color: var(--wpsa-color-text-muted);
	font-size: 0.9375rem;
}

.ytth-acc__panel[hidden] {
	display: none;
}

/* --------------------------------------------------------- home: pricing */

.ytth-pricing__intro {
	text-align: center;
	max-inline-size: 75ch;
	margin-inline: auto;
}

.ytth-pricing__grid {
	display: grid;
	gap: 25px;
	margin-block-start: var(--wpsa-space-xl);
}

@media (width >= 48rem) {
	.ytth-pricing__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ytth-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wpsa-space-sm);
	padding: var(--wpsa-space-lg) var(--wpsa-space-md) var(--wpsa-space-xl);
	background: #ffffff;
	border-radius: var(--wpsa-radius-md);
	box-shadow: 0 0 58px -43px rgb(0 15 136 / 80%);
	text-align: center;
}

.ytth-price__title {
	margin: 0;
	min-block-size: 3.2em;
	display: grid;
	place-items: center;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ytth-price-heading);
}

.ytth-price__prefix {
	margin: 0;
	font-size: 1.125rem;
	color: var(--ytth-price-prefix);
	font-weight: 600;
}

.ytth-price__amount {
	margin: 0;
	font-size: 2.125rem;
	font-weight: 600;
	color: var(--ytth-price-dark);
}

.ytth-price__vat {
	margin: 0;
	font-size: 1.3125rem;
	font-weight: 600;
	color: var(--ytth-price-vat);
}

.ytth-price__only {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ytth-price-dark);
}

.ytth-price__rule {
	inline-size: 39%;
	border: 0;
	border-block-start: 1px solid var(--wpsa-color-border);
	margin-block: var(--wpsa-space-2xs);
}

.ytth-price__note {
	margin: 0;
	color: var(--wpsa-color-text-muted);
	font-size: 0.9375rem;
}

.ytth-price .ytth-button {
	margin-block-start: var(--wpsa-space-sm);
}

/* --------------------------------------------------------- home: contact */

.ytth-contact {
	background: var(--wpsa-color-surface);
}

.ytth-contact__heading {
	text-align: center;
}

.ytth-contact__grid {
	display: grid;
	gap: var(--wpsa-space-lg);
	margin-block-start: var(--wpsa-space-xl);
}

@media (width >= 48rem) {
	.ytth-contact__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ytth-person {
	padding: var(--wpsa-space-lg) var(--wpsa-space-md);
	background: #ffffff;
	border: 1px solid rgb(38 106 225 / 19%);
	border-radius: var(--wpsa-radius-md);
	text-align: center;
}

.ytth-person__photo {
	inline-size: 35%;
	max-inline-size: 160px;
	margin-inline: auto;
}

.ytth-person__photo img {
	border-radius: 50%;
}

.ytth-person__name {
	margin: var(--wpsa-space-sm) 0 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wpsa-color-text);
}

.ytth-person__lines {
	margin-block-start: var(--wpsa-space-2xs);
	color: var(--wpsa-color-text-muted);
	font-size: 0.9375rem;
}

.ytth-person__lines a {
	color: inherit;
	text-decoration: none;
}

.ytth-person__lines a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------- home: form */

.ytth-form {
	background: var(--wpsa-color-surface);
}

.ytth-form__grid {
	display: grid;
	gap: var(--wpsa-space-lg) var(--wpsa-space-lg);
	max-inline-size: 62rem;
	margin-inline: auto;
}

@media (width >= 48rem) {
	.ytth-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ytth-form__field--full {
	grid-column: 1 / -1;
}

.ytth-form__label {
	display: block;
	margin-block-end: var(--wpsa-space-2xs);
	font-size: 0.9375rem;
}

.ytth-form__input,
.ytth-form__select,
.ytth-form__textarea {
	inline-size: 100%;
	padding: var(--wpsa-space-2xs) 0;
	border: 0;
	border-block-end: 2px solid var(--ytth-form-border);
	border-radius: 1px;
	background: transparent;
	font: inherit;
	color: var(--wpsa-color-text);
}

.ytth-form__input:focus-visible,
.ytth-form__select:focus-visible,
.ytth-form__textarea:focus-visible {
	outline: 3px solid var(--wpsa-color-accent);
	outline-offset: 2px;
	border-block-end-color: var(--wpsa-color-accent);
}

.ytth-form__submit {
	grid-column: 1 / -1;
	inline-size: 100%;
	padding: 21px;
	border: 0;
	border-radius: var(--wpsa-radius-sm);
	background: var(--wpsa-color-accent);
	color: #ffffff;
	font-size: 1.375rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background var(--wpsa-transition);
}

.ytth-form__submit:hover {
	background: var(--ytth-amber);
	color: var(--wpsa-color-accent);
}

.ytth-form__status {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.9375rem;
}

.ytth-form__status--ok {
	color: #1a7f37;
}

.ytth-form__status--error {
	color: #b42318;
}

/* ------------------------------------------------------------- whatsapp */

.ytth-whatsapp {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-end: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: var(--wpsa-shadow-md);
}

.ytth-whatsapp svg {
	inline-size: 30px;
	block-size: 30px;
	fill: #ffffff;
}

.ytth-whatsapp:focus-visible {
	outline: 3px solid var(--wpsa-color-accent);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------- blog */

.ytth-blog-head {
	text-align: center;
	padding-block: var(--wpsa-space-lg) 0;
}

.ytth-blog-head h1 {
	font-size: clamp(2.0625rem, 3vw + 0.6rem, 2.9375rem);
	font-weight: 500;
}

.ytth-archive {
	padding-block: var(--wpsa-space-lg) var(--wpsa-section-default);
}

.ytth-card-post {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--wpsa-color-border);
	border-radius: var(--wpsa-radius-md);
	overflow: hidden;
	transition: box-shadow var(--wpsa-transition), transform var(--wpsa-transition);
}

.ytth-card-post:hover {
	box-shadow: var(--wpsa-shadow-md);
	transform: translateY(-2px);
}

.ytth-card-post__link {
	display: flex;
	flex-direction: column;
	block-size: 100%;
	text-decoration: none;
	color: inherit;
}

.ytth-card-post__media img {
	inline-size: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ytth-card-post__body {
	display: flex;
	flex-direction: column;
	gap: var(--wpsa-space-2xs);
	padding: var(--wpsa-space-md);
}

.ytth-card-post__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: 0.035em;
	color: var(--wpsa-color-text);
}

.ytth-card-post__date {
	font-size: var(--wpsa-text-xs);
	color: var(--wpsa-color-text-muted);
}

.ytth-card-post__excerpt {
	margin: 0;
	color: var(--wpsa-color-text-muted);
	font-size: 0.9375rem;
}

.ytth-card-post__more {
	margin-block-start: var(--wpsa-space-2xs);
	color: var(--ytth-read-more);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* Single post. */
.ytth-single {
	padding-block: var(--wpsa-space-lg) var(--wpsa-section-default);
}

.ytth-single__title {
	font-size: clamp(1.1875rem, 2.4vw + 0.5rem, 2.3125rem); /* 19 → 37px */
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ytth-single__meta {
	color: var(--wpsa-color-text-muted);
	font-size: var(--wpsa-text-sm);
}

.ytth-single__media img {
	inline-size: 100%;
	height: auto;
	border-radius: var(--wpsa-radius-md);
}

.ytth-single .wpsa-prose {
	font-size: 1.125rem;
}

.ytth-postnav {
	display: flex;
	justify-content: space-between;
	gap: var(--wpsa-space-md);
	margin-block-start: var(--wpsa-space-xl);
	font-size: 0.9375rem;
}

/* Pagination. */
.ytth-pagination {
	margin-block-start: var(--wpsa-space-xl);
	display: flex;
	justify-content: center;
}

.ytth-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wpsa-space-2xs);
}

.ytth-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-inline-size: 2.4em;
	block-size: 2.4em;
	padding-inline: 0.5em;
	border-radius: var(--wpsa-radius-sm);
	text-decoration: none;
	color: var(--wpsa-color-text);
}

.ytth-pagination .page-numbers.current {
	background: var(--wpsa-color-accent);
	color: #ffffff;
}

.ytth-pagination .page-numbers:hover:not(.current) {
	background: var(--wpsa-color-surface);
}

/* Empty state. */
.ytth-empty {
	text-align: center;
	padding-block: var(--wpsa-space-xl);
}