/*
Theme Name: Symphony In Space
Description: Generated block theme for Symphony In Space, built by wp-builder from the
 project design system.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: symphony-in-space
*/

/* Sticky, blurred site header. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.ky-header {
	background: color-mix(in srgb, var(--wp--preset--color--background) 78%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 10%, transparent);
}

.ky-header .wp-block-site-title a {
	background: var(--wp--preset--gradient--accent-line);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-decoration: none;
}

/* Card treatment: soft border, radius, shadow, hover lift with a gradient top line. */
.ky-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large, 16px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
	box-shadow: var(--wp--preset--shadow--medium);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	height: 100%;
}

.ky-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--wp--preset--gradient--accent-line);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ky-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--large);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
}

.ky-card:hover::before {
	opacity: 1;
}

/* Highlighted pricing plan. */
.ky-plan-popular {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent),
		var(--wp--preset--shadow--large);
}

.ky-plan-popular::before {
	opacity: 1;
}

/* Equal-height card columns. */
.wp-block-column:has(> .ky-card) {
	display: flex;
	flex-direction: column;
}

/* Buttons: smooth hover lift and visible focus. */
.wp-element-button {
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.wp-element-button:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
	box-shadow: var(--wp--preset--shadow--medium);
}

.wp-element-button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

a {
	transition: color 0.15s ease;
}

/* FAQ details polish. */
.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
	border-radius: var(--wp--custom--radius--medium, 12px);
	padding: 1rem 1.25rem;
}

.wp-block-details > summary {
	cursor: pointer;
	font-weight: 600;
}

.wp-block-details > summary:hover {
	color: var(--wp--preset--color--accent);
}

/* Footer link columns. */
.ky-footer a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.ky-footer a:hover {
	color: var(--wp--preset--color--accent);
}

/* Interactive configurator (rendered as a core/html block; JS in assets/configurator.js). */
.ky-configurator {
	background: var(--wp--preset--color--surface);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	max-width: 720px;
	margin: 0 auto;
	display: grid;
	gap: 1.75rem;
}

/* A form card should not lift away from the pointer while it is being used. */
.ky-configurator:hover {
	transform: none;
}

.ky-config-row {
	display: grid;
	gap: 0.75rem;
}

.ky-config-labels {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-weight: 600;
}

.ky-config-labels output {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ky-configurator input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	margin: 0.5rem 0;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent),
		color-mix(in srgb, var(--wp--preset--color--accent) 20%, transparent)
	);
	cursor: pointer;
	outline-offset: 6px;
}

.ky-configurator input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--background);
	background: var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--small);
	transition: transform 0.15s ease;
}

.ky-configurator input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
}

.ky-configurator input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: transparent;
}

.ky-configurator input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--background);
	background: var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--small);
	transition: transform 0.15s ease;
}

.ky-configurator input[type="range"]:hover::-webkit-slider-thumb,
.ky-configurator input[type="range"]:active::-webkit-slider-thumb {
	transform: scale(1.15);
}

.ky-configurator input[type="range"]:hover::-moz-range-thumb,
.ky-configurator input[type="range"]:active::-moz-range-thumb {
	transform: scale(1.15);
}

.ky-config-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 12%, transparent);
	padding-top: 1.5rem;
	font-weight: 600;
}

.ky-config-total-value {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ky-config-cta {
	text-align: center;
}

.ky-config-cta .wp-element-button {
	display: inline-block;
	text-decoration: none;
}

.ky-config-disclaimer {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	margin: 0;
}

.sis-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.sis-logo {
	height: 64px;
	width: auto;
	max-width: min(280px, 70vw);
}

.sis-logo-footer {
	height: 52px;
	max-width: 220px;
}

a:where(:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--primary);
}

a.ky-card,
a.ky-card:hover,
a.ky-card:focus {
	display: block;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.wp-block-button__link,
.wp-element-button {
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.sis-contact-form {
	display: grid;
	gap: 0.9rem;
	max-width: 36rem;
	margin-top: 1.5rem;
}

.sis-contact-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
}

.sis-contact-form input,
.sis-contact-form textarea {
	font: inherit;
	padding: 0.7rem 0.8rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
	border-radius: var(--wp--custom--radius--medium, 8px);
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
}

.sis-contact-form .sis-hp {
	position: absolute;
	left: -9999px;
}

.sis-form-note {
	padding: 0.8rem 1rem;
	border-radius: var(--wp--custom--radius--medium, 8px);
	background: var(--wp--preset--color--surface);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}
