/*
 * Piikula front page.
 *
 * Loaded by functions.php on the front page only, so the rest of the site does
 * not pay for it. Everything here builds on the tokens and the .pk-section /
 * .pk-container helpers in piikula.css; no new colours are invented.
 *
 * Layout is mobile-first and leans on auto-fitting grids rather than
 * breakpoints, so the page reflows continuously from a small phone up to a
 * wide desktop instead of stepping at fixed widths.
 */

/* Kadence's main wrapper carries its own content spacing. The front page
 * supplies its own section rhythm, so that spacing is dropped here - scoped to
 * the home page so every other template keeps Kadence's default. */
body.home #inner-wrap {
	padding-top: 0;
	padding-bottom: 0;
}

/* Kadence's header can be sticky, so anchor targets need room above them. */
.pk-front [id] {
	scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.pk-front .pk-section {
	/* Sections paint their own background edge to edge. */
	width: 100%;
}

/* Shared section heading block ------------------------------------------- */

.pk-section__head {
	max-width: var(--pk-width-narrow);
	margin-bottom: var(--pk-space-2xl);
}

.pk-section__head--centred {
	margin-inline: auto;
	text-align: center;
}

.pk-section__title {
	font-size: var(--pk-font-size-h2);
	margin: 0 0 var(--pk-space-sm);
}

.pk-section__lead {
	font-size: var(--pk-font-size-lead);
	color: var(--pk-color-text-secondary);
	margin: 0;
}

/* Placeholder marker ------------------------------------------------------
 * Real Piikula content is not in the repository yet. Anything still waiting
 * for it is marked so it is obvious on screen and cannot be mistaken for
 * finished copy. */

.pk-placeholder {
	display: inline-block;
	font-size: var(--pk-font-size-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pk-color-primary);
	background-color: var(--pk-color-blush);
	border: 1px dashed var(--pk-color-rose-border);
	border-radius: var(--pk-radius-pill);
	padding: 0.15em 0.75em;
}

/* Hero -------------------------------------------------------------------- */

.pk-hero {
	/* Two very soft radial washes carry the warmth. Both are drawn from the
	 * palette, so the hero reads warm and feminine without a stock photograph
	 * or a hard gradient. */
	background-color: var(--pk-color-blush);
	background-image:
		radial-gradient(58rem 30rem at 15% -12%, var(--pk-color-rose-surface), transparent 70%),
		radial-gradient(46rem 26rem at 92% 4%, var(--pk-color-accent-soft), transparent 68%);
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

/* Single column on phones, copy beside the image from tablet up. The copy
 * column is the wider of the two so the headline leads the composition. */
.pk-hero__inner {
	display: grid;
	gap: var(--pk-space-2xl);
	align-items: center;
}

@media (min-width: 52em) {
	.pk-hero__inner {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		gap: var(--pk-space-3xl);
	}
}

/* Replaces the large duplicate logo: the logo belongs in the header, so the
 * hero carries the identity as a quiet line of type instead. */
.pk-hero__eyebrow {
	margin: 0 0 var(--pk-space-sm);
	font-size: var(--pk-font-size-sm);
	font-weight: var(--pk-font-weight-medium);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pk-color-primary);
}

.pk-hero__title {
	font-size: var(--pk-font-size-h1);
	margin: 0 0 var(--pk-space-md);
}

.pk-hero__lead {
	font-size: var(--pk-font-size-lead);
	color: var(--pk-color-text-secondary);
	max-width: 34rem;
	margin: 0 0 var(--pk-space-xl);
}

/*
 * Hero image slot.
 *
 * Sized and positioned so a real Piikula photograph can be dropped straight
 * in. While it is empty it shows a brand-toned panel rather than a fake
 * photograph. :has(img) strips the placeholder treatment automatically the
 * moment an <img> is added, so no second edit is needed.
 */
.pk-hero__media {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--pk-radius-lg);
	overflow: hidden;
	background-color: var(--pk-color-rose-surface);
	background-image:
		radial-gradient(24rem 18rem at 70% 15%, var(--pk-color-blush), transparent 70%);
	border: 1px dashed var(--pk-color-rose-border);
	display: grid;
	place-items: center;
	padding: var(--pk-space-lg);
	text-align: center;
}

@media (min-width: 52em) {
	.pk-hero__media {
		aspect-ratio: 5 / 6;
	}
}

.pk-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.pk-hero__media:has(img) {
	border-style: none;
	padding: 0;
	background-image: none;
}

.pk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pk-space-md);
	margin: 0;
}

.pk-actions--centred {
	justify-content: center;
}

/* Treatment cards --------------------------------------------------------- */

.pk-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--pk-space-lg);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48em) {
	.pk-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.pk-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pk-card {
	background-color: var(--pk-color-surface);
	border: 1px solid var(--pk-color-rose-border);
	border-radius: var(--pk-radius-lg);
	padding: var(--pk-space-xl);
}

.pk-card__title {
	font-size: var(--pk-font-size-h4);
	margin: 0 0 var(--pk-space-sm);
}

/* A short rose rule instead of an icon: warmer than a generic product card,
 * and it costs no extra asset. */
.pk-card__title::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2px;
	margin-bottom: var(--pk-space-sm);
	border-radius: 2px;
	background-color: var(--pk-color-accent);
}

.pk-card__text {
	margin: 0;
	color: var(--pk-color-text-secondary);
}

.pk-card__link {
	align-self: flex-start;
	margin-top: var(--pk-space-lg);
	font-weight: var(--pk-font-weight-medium);
}

.pk-treatments__intro {
	margin: var(--pk-space-md) 0 0;
	color: var(--pk-color-text-secondary);
}

/* Soluni teaser ----------------------------------------------------------- */

/* A full editorial band rather than a small product card: it creates a clear
 * discovery point in the mobile scroll while staying within Piikula's calm,
 * roomy section rhythm. */
.pk-soluni-teaser {
	display: grid;
	gap: var(--pk-space-2xl);
	align-items: center;
}

.pk-soluni-teaser__body {
	max-width: 34rem;
}

.pk-soluni-teaser__eyebrow {
	margin: 0 0 var(--pk-space-sm);
	color: var(--pk-color-primary);
	font-size: var(--pk-font-size-sm);
	font-weight: var(--pk-font-weight-medium);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pk-soluni-teaser__actions {
	margin-top: var(--pk-space-xl);
}

.pk-soluni-teaser__media {
	margin: 0;
	aspect-ratio: 5 / 4;
	border: 1px dashed var(--pk-color-rose-border);
	border-radius: var(--pk-radius-lg);
	background-color: var(--pk-color-rose-surface);
	display: grid;
	place-items: center;
	padding: var(--pk-space-lg);
	text-align: center;
	overflow: hidden;
}

.pk-soluni-teaser__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.pk-soluni-teaser__media:has(img) {
	border-style: none;
	padding: 0;
}

@media (min-width: 48em) {
	.pk-soluni-teaser {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		gap: var(--pk-space-3xl);
	}

	.pk-soluni-teaser__media {
		aspect-ratio: 5 / 4;
	}
}

/* About / entrepreneur ---------------------------------------------------- */

/* Start-aligned rather than centred: the introduction is now much taller than
 * the portrait, and centring left the portrait stranded halfway down the text
 * with the heading alone above it. Aligning the tops puts the face beside the
 * heading where the section starts. Single-column rows are unaffected. */
.pk-about {
	display: grid;
	gap: var(--pk-space-2xl);
	align-items: start;
}

/* This long-form introduction needs a deliberate tablet state. At 52em the
 * previous split left a short portrait beside a much taller text column. Keep
 * one reading column through tablet, constraining both elements rather than
 * making either span the full content width. The desktop split starts only
 * once both columns have a useful measure. */
.pk-portrait {
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
}

.pk-about__body {
	width: 100%;
	max-width: 38rem;
	margin-inline: auto;
}

@media (min-width: 64em) {
	.pk-about {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.pk-portrait,
	.pk-about__body {
		max-width: none;
		margin-inline: 0;
	}
}

.pk-portrait {
	margin-block: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--pk-radius-lg);
	background-color: var(--pk-color-rose-section);
	border: 1px dashed var(--pk-color-rose-border);
	display: grid;
	place-items: center;
	padding: var(--pk-space-lg);
	text-align: center;
	overflow: hidden;
}

/* When the real portrait is dropped in, the img fills the frame and the
 * placeholder treatment is removed automatically. */
.pk-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.pk-portrait:has(img) {
	border-style: none;
	padding: 0;
}

/* The introduction is real long-form copy now - a lead and seven paragraphs
 * rather than the two short placeholder lines it replaced - so its rhythm is
 * set here instead of being left to whatever base paragraph margin the parent
 * theme applies. .pk-section__lead carries no margin of its own, so without
 * this the slogan would sit flush against the first paragraph. */
.pk-about__body p {
	margin-block: 0 var(--pk-space-lg);
}

.pk-about__body > :first-child {
	margin-top: 0;
}

.pk-about__body > :last-child {
	margin-bottom: 0;
}

/* Values ------------------------------------------------------------------ */

.pk-values {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--pk-space-xl);
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.pk-value__title {
	font-size: var(--pk-font-size-h4);
	margin: 0 0 var(--pk-space-xs);
}

.pk-value__text {
	margin: 0;
	color: var(--pk-color-text-secondary);
}

/* A compact, deliberately carded mobile stack makes the values easier to scan
 * without changing the airy multi-column presentation on larger screens. */
@media (max-width: 47.99em) {
	.pk-values-section {
		padding-block: clamp(2.5rem, 8vw, var(--pk-space-section));
	}

	.pk-values-section .pk-section__head {
		margin-bottom: var(--pk-space-xl);
	}

	.pk-values {
		grid-template-columns: 1fr;
		gap: clamp(1rem, 4vw, 1.25rem);
	}

	.pk-value {
		padding: clamp(1.25rem, 5vw, 1.5rem);
		border: 1px solid var(--pk-color-rose-border);
		border-radius: var(--pk-radius-lg);
		background-color: var(--pk-color-surface);
	}

	.pk-value__title {
		margin-bottom: var(--pk-space-xs);
	}

	.pk-value__text {
		font-size: 1rem;
		line-height: 1.55;
	}
}

/* Testimonials ------------------------------------------------------------ */

.pk-quotes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--pk-space-lg);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.pk-quote {
	margin: 0;
	background-color: var(--pk-color-surface);
	border: 1px solid var(--pk-color-rose-border);
	border-radius: var(--pk-radius-lg);
	padding: var(--pk-space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--pk-space-md);
}

.pk-quotes > li {
	display: flex;
}

.pk-quotes > li .pk-quote {
	flex: 1;
}

.pk-quotes__action {
	margin: var(--pk-space-xl) 0 0;
	text-align: center;
}

.pk-quote__text {
	margin: 0;
	font-family: var(--pk-font-heading);
	font-size: var(--pk-font-size-lead);
	line-height: var(--pk-line-height-snug);
}

.pk-quote__source {
	margin: 0;
	margin-top: auto;
	font-size: var(--pk-font-size-sm);
	color: var(--pk-color-text-secondary);
	font-style: normal;
}

.pk-quote__source cite {
	font-style: normal;
	font-weight: var(--pk-font-weight-heading);
}

/* Pricing teaser ---------------------------------------------------------- */

.pk-prices {
	margin: 0 0 var(--pk-space-xl);
	display: grid;
	gap: 0;
	max-width: var(--pk-width-narrow);
}

.pk-price {
	display: grid;
	gap: var(--pk-space-sm);
	padding-block: var(--pk-space-md);
	border-bottom: 1px solid var(--pk-color-border);
}

.pk-price:first-child {
	border-top: 1px solid var(--pk-color-border);
}

.pk-price__name {
	margin: 0;
	font-weight: var(--pk-font-weight-medium);
	overflow-wrap: anywhere;
}

.pk-price__details {
	margin: 0;
	color: var(--pk-color-text-secondary);
}

.pk-price__durations {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--pk-space-2xs);
}

.pk-price__durations li {
	display: flex;
	justify-content: space-between;
	gap: var(--pk-space-lg);
}

.pk-price__amount {
	color: var(--pk-color-text-secondary);
	font-weight: var(--pk-font-weight-medium);
	white-space: nowrap;
}

/* Preparation and cancellation information -------------------------------- */

.pk-visit-info {
	display: grid;
	gap: var(--pk-space-lg);
}

.pk-visit-info__card {
	padding: var(--pk-space-xl);
	border: 1px solid var(--pk-color-rose-border);
	border-radius: var(--pk-radius-lg);
	background-color: var(--pk-color-surface);
	box-shadow: var(--pk-shadow-sm);
}

.pk-visit-info__card--cancellation {
	border-top: 3px solid var(--pk-color-primary);
	background-color: var(--pk-color-rose-surface);
}

.pk-visit-info__title {
	margin: 0 0 var(--pk-space-lg);
	font-size: var(--pk-font-size-h3);
}

.pk-visit-info__term {
	margin: var(--pk-space-lg) 0 0;
	padding-top: var(--pk-space-lg);
	border-top: 1px solid var(--pk-color-rose-border);
	color: var(--pk-color-primary);
}

.pk-visit-info__term + .pk-visit-info__term {
	margin-top: var(--pk-space-md);
}

@media (min-width: 48em) {
	.pk-visit-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}
}

/* Contact ----------------------------------------------------------------- */

.pk-contact-card {
	background-color: var(--pk-color-surface);
	border: 1px solid var(--pk-color-rose-border);
	border-radius: var(--pk-radius-lg);
	box-shadow: var(--pk-shadow-sm);
	overflow: hidden;
}

.pk-contact-card__main {
	padding: var(--pk-space-xl);
}

.pk-contact-card__head {
	margin-bottom: var(--pk-space-xl);
}

.pk-contact-card__preference {
	margin: var(--pk-space-xs) 0 0;
	color: var(--pk-color-text-secondary);
}

.pk-contact-card__availability {
	margin: var(--pk-space-md) 0 0;
	color: var(--pk-color-text-secondary);
}

.pk-contact-card__actions {
	margin-bottom: var(--pk-space-xl);
}

.pk-contact-card__actions .pk-button {
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pk-contact-card__details {
	display: grid;
	gap: var(--pk-space-lg);
	padding-top: var(--pk-space-xl);
	border-top: 1px solid var(--pk-color-border);
}

.pk-contact__title {
	font-size: var(--pk-font-size-h4);
	margin: 0 0 var(--pk-space-xs);
}

.pk-contact__body {
	margin: 0;
	font-style: normal;
	color: var(--pk-color-text-secondary);
}

.pk-contact__link {
	display: grid;
	grid-template-columns: 1.375rem minmax(0, 1fr);
	column-gap: var(--pk-space-sm);
	align-items: center;
	min-height: 2.75rem;
	max-width: 100%;
	font-weight: var(--pk-font-weight-medium);
	line-height: var(--pk-line-height-base);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.pk-contact__link-icon {
	width: 1.375rem;
	height: 1.375rem;
}

.pk-contact__link > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.pk-contact__note {
	margin: var(--pk-space-xs) 0 0;
	font-size: var(--pk-font-size-sm);
	color: var(--pk-color-text-secondary);
}

.pk-contact-card__side {
	background-color: var(--pk-color-blush);
	border-top: 1px solid var(--pk-color-rose-border);
}

.pk-contact-card__portrait {
	margin: 0;
	aspect-ratio: 5 / 3;
	background-color: var(--pk-color-rose-section);
	background-image: radial-gradient(18rem 10rem at 70% 15%, var(--pk-color-blush), transparent 70%);
	border-bottom: 1px dashed var(--pk-color-rose-border);
	display: grid;
	place-items: center;
	padding: var(--pk-space-lg);
	text-align: center;
	overflow: hidden;
}

.pk-contact-card__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pk-contact-card__portrait:has(img) {
	padding: 0;
	background-image: none;
	border-bottom-style: solid;
}

.pk-contact-card__location {
	padding: var(--pk-space-xl);
}

.pk-contact-card__directions {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: var(--pk-space-md);
	font-weight: var(--pk-font-weight-medium);
}

@media (min-width: 48em) {
	.pk-contact-card {
		display: grid;
		grid-template-columns: minmax(0, 6fr) minmax(16rem, 5fr);
	}

	.pk-contact-card__main {
		padding: var(--pk-space-2xl);
	}

	.pk-contact-card__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pk-contact-card__side {
		border-top: 0;
		border-left: 1px solid var(--pk-color-rose-border);
	}
}

/* Final booking call to action -------------------------------------------- */

.pk-booking {
	text-align: center;
}

.pk-booking__lead {
	font-size: var(--pk-font-size-lead);
	max-width: 34rem;
	margin: 0 auto var(--pk-space-xl);
}

/* On the burgundy band the filled button inverts, and the focus ring has to
 * switch to a light colour or it would vanish against the background. */
.pk-section--primary .pk-button--primary {
	background-color: var(--pk-color-surface);
	color: var(--pk-color-primary);
}

.pk-section--primary .pk-button--primary:hover {
	background-color: var(--pk-color-blush);
	color: var(--pk-color-primary-hover);
}

/* The outline button's burgundy border and label would vanish on the burgundy
 * band, so it inverts to white and fills on hover. */
.pk-section--primary .pk-button--secondary {
	border-color: var(--pk-color-surface);
	color: var(--pk-color-text-inverse);
}

.pk-section--primary .pk-button--secondary:hover {
	background-color: var(--pk-color-surface);
	color: var(--pk-color-primary);
}

.pk-section--primary :focus-visible {
	outline-color: var(--pk-color-surface);
}

.pk-section--primary .pk-button--primary:focus-visible {
	box-shadow: none;
}

.pk-section--primary .pk-placeholder {
	color: var(--pk-color-text-inverse);
	background-color: transparent;
	border-color: var(--pk-color-rose-border);
}
