/*
Theme Name: Jalkahoitola Suvi K
Theme URI: https://jalkojenhoitoa.fi/
Author: Jalkahoitola Suvi K
Description: Moderni ja saavutettava lohkoteema Jalkahoitola Suvi K:n verkkosivustolle.
Version: 1.0.9
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: jalkahoitola-suvi-k
*/

:root {
	--jsk-purple: #ae40a5;
	--jsk-purple-dark: #87317f;
	--jsk-charcoal: #3f3f3f;
	--jsk-gray: #626262;
	--jsk-soft: #f7f3f6;
	--jsk-border: #e9dfe7;
	--jsk-shadow: 0 18px 50px rgba(63, 63, 63, 0.09);
	--jsk-section-space: clamp(2.75rem, 5vw, 4.5rem);
	--jsk-content-heading-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--jsk-purple);
	outline-offset: 4px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(174, 64, 165, 0.12);
	box-shadow: 0 4px 24px rgba(63, 63, 63, 0.04);
	backdrop-filter: blur(12px);
}

.wp-site-blocks > .wp-block-template-part + .wp-block-post-content {
	margin-block-start: 0;
}

.site-header .wp-block-site-title {
	white-space: nowrap;
	font-weight: 400 !important;
}

.site-header > .wp-block-group,
.site-header .wp-block-group.alignwide {
	width: 100%;
	max-width: 1180px;
	box-sizing: border-box;
}

.site-header .wp-block-site-title a {
	font-weight: inherit;
	text-decoration: none;
}

.jsk-hero {
	min-height: clamp(29rem, 57vw, 42rem);
}

.jsk-hero .wp-block-cover__background {
	background: transparent !important;
	opacity: 0 !important;
}

.jsk-hero .wp-block-cover__inner-container {
	display: flex;
	justify-content: center;
}

.jsk-hero .jsk-hero__copy {
	width: 100% !important;
	max-width: 720px !important;
	margin-inline: auto;
	box-sizing: border-box;
	text-align: center;
}

.jsk-hero h1 {
	margin: 0;
	font-family: "Saginaw", cursive;
	font-size: clamp(2.8rem, 5.6vw, 5.4rem);
	font-weight: 400;
	line-height: 1.06;
	text-wrap: balance;
}

.jsk-intro {
	width: min(100%, 1100px);
	max-width: 1100px !important;
	margin-inline: auto;
	padding: clamp(1.75rem, 4vw, 3rem);
	box-sizing: border-box;
	text-align: center;
}

.jsk-intro > p {
	width: 100%;
	max-width: none !important;
}

.jsk-intro h2,
.jsk-compression h2 {
	text-wrap: balance;
}

.jsk-section {
	padding-block: var(--jsk-section-space);
}

/* Consecutive sections share one responsive gap instead of stacking two. */
.jsk-section + .jsk-section {
	padding-top: 0;
}

.jsk-section--soft {
	background: #fff;
}

.jsk-pricing-grid {
	align-items: stretch !important;
}

.jsk-intro,
.jsk-price-card,
.jsk-compression {
	border: 1px solid var(--jsk-border);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: var(--jsk-shadow);
}

/* Shared body treatment for every editable homepage and footer paragraph. */
.jsk-section p:not(.jsk-price-card__price),
.site-footer p {
	color: var(--jsk-gray) !important;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1rem !important;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.7;
	text-transform: none;
}

.jsk-section p:not(.jsk-price-card__price) strong,
.site-footer p strong {
	font-weight: inherit;
}

.jsk-intro__title {
	color: var(--jsk-gray);
	font-size: var(--jsk-content-heading-size);
	text-wrap: balance;
}

.jsk-terms .wp-block-button__link {
	font-size: var(--wp--preset--font-size--medium) !important;
}

/* Content headings use the same neutral text color as the body copy. */
.jsk-section :is(h1, h2, h3),
.site-footer h2 {
	color: var(--jsk-gray);
}

.jsk-about {
	align-items: center !important;
}

.jsk-about .wp-block-image img {
	width: 100%;
	border-radius: 1.25rem;
	box-shadow: var(--jsk-shadow);
	object-fit: cover;
}

.jsk-about .wp-block-image img {
	aspect-ratio: 3 / 2;
}

.wp-block-button__link {
	box-shadow: 0 10px 25px rgba(174, 64, 165, 0.22);
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wp-block-button__link:hover {
	background: var(--jsk-purple-dark) !important;
	box-shadow: 0 14px 30px rgba(174, 64, 165, 0.3);
	transform: translateY(-2px);
}

.jsk-price-card {
	height: 100%;
	padding: clamp(1.75rem, 4vw, 3rem);
}

.jsk-price-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--jsk-border);
}

.jsk-price-card__price {
	color: var(--jsk-purple);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1;
}

.jsk-price-card__duration {
	color: var(--jsk-gray);
	font-size: 0.9rem;
}

.jsk-terms {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
}

.jsk-compression {
	width: min(100%, 1100px);
	max-width: 1100px;
	margin-inline: auto;
	padding: clamp(1.75rem, 4vw, 3rem);
	text-align: center;
}

.site-footer {
	border-top: 1px solid var(--jsk-border);
}

.jsk-footer-grid {
	align-items: stretch !important;
}

.jsk-map,
.jsk-map .wp-block-html {
	height: 100%;
	min-height: 340px;
}

.jsk-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 340px;
	border: 0;
	border-radius: 1.25rem;
}

.jsk-contact-grid {
	align-items: flex-start !important;
}

.jsk-contact-item h2 {
	margin-bottom: 0.65rem;
	color: var(--jsk-gray);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.jsk-contact-item p {
	margin-top: 0;
}

.jsk-contact-item .jsk-parking-note {
	margin-top: 1.7em;
}

.jsk-contact-item a {
	color: var(--jsk-gray);
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
}

.jsk-copyright {
	border-top: 1px solid rgba(63, 63, 63, 0.16);
}

@media (max-width: 900px) {
	.site-header {
		position: relative;
	}

	.site-header .wp-block-site-title {
		font-size: 1.15rem !important;
	}

	.jsk-hero {
		align-items: flex-end;
		min-height: 36rem;
	}

	.jsk-hero .wp-block-cover__inner-container {
		justify-content: center;
	}

	.jsk-hero__copy {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding-inline: 1.25rem;
		padding-bottom: 1rem;
	}

	.jsk-footer-grid > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
}

@media (max-width: 600px) {
	.jsk-hero {
		min-height: 31rem;
	}

	.jsk-hero h1 {
		font-size: clamp(2.25rem, 10vw, 3.25rem);
	}

	.jsk-section {
		padding-block: 2.5rem;
	}

	.jsk-price-card__meta {
		display: block;
	}

	.jsk-price-card__duration {
		margin-top: 0.5rem;
	}

	.jsk-map,
	.jsk-map .wp-block-html,
	.jsk-map iframe {
		min-height: 280px;
	}
}

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

	* {
		transition-duration: 0.01ms !important;
	}
}
