/*
Theme Name: Pump Foiling Coach
Description: A WordPress block theme built with Shader and VX Framework, with block templates and theme.json.
Author: Shader
Author URI: https://vxframework.com
Text Domain: pump-foiling-coach
Version: 0.2.0
Requires at least: 7.1
Requires PHP: 8.1
Update URI: false
*/

/*
 * Plumbing and site chrome. The look's tokens live in theme.json; block styles live in assets/styles/.
 * This file loads on the site and in the editor, so its rules must hold in both.
 */

:root {
	/* Decorative shapes, used as masks so their colour comes from a token. */
	--ph-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C100 0 200 0 300 20S500 40 600 20 800 0 900 20 1100 40 1200 20V40H0z'/%3E%3C/svg%3E");
	--ph-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M0 40q37.5-30 75 0t75 0 75 0 75 0 75 0 75 0 75 0 75 0'/%3E%3Cpath d='M0 90q37.5-30 75 0t75 0 75 0 75 0 75 0 75 0 75 0 75 0'/%3E%3Cpath d='M0 140q37.5-30 75 0t75 0 75 0 75 0 75 0 75 0 75 0 75 0'/%3E%3Cpath d='M0 190q37.5-30 75 0t75 0 75 0 75 0 75 0 75 0 75 0 75 0'/%3E%3C/svg%3E");
	--ph-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='11' y='7' width='26' height='5' rx='2.5' fill='%23fff'/%3E%3Crect x='22' y='12' width='4' height='17' rx='1' fill='%23fff'/%3E%3Cpath d='M10 31c7-3.5 21-3.5 28 0-7 3.2-21 3.2-28 0z' fill='%23fff'/%3E%3Cpath d='M5 41q4.75-4 9.5 0t9.5 0 9.5 0 9.5 0' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* WordPress puts a block gap between the template's top-level blocks: the header part, main and the footer part.
   Sections own their spacing instead. :root makes this win over the editor's own gap. */
:root .wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--50);
}

.wp-site-blocks main.is-flush {
	padding-block: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp--custom--header) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--surf);
	color: var(--wp--preset--color--ink);
}

/* Keyboard focus stays visible on every control, and only there: in the editor, the text being typed in has focus too. */
:where(a, button, input, select, textarea, summary, [tabindex]:not([contenteditable])):focus-visible {
	outline: 3px solid var(--wp--preset--color--lake);
	outline-offset: 3px;
	border-radius: 6px;
}

:where(.site-footer, .is-style-band, .is-style-ticket, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--surf);
}

/* ---------- Type helpers ---------- */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lake);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

:where(.site-footer, .is-style-band, .is-style-ticket) .eyebrow {
	color: var(--wp--preset--color--surf);
}

.eyebrow + :where(h1, h2, h3) {
	margin-top: 0.85rem;
}

.has-large-font-size {
	line-height: 1.5;
}

/* A narrow block of text on a designed page (About, Contact) starts at the same left edge as the wide sections around it. */
.wp-block-post-content > .wp-block-group.alignfull > .wp-block-group:not(.alignwide):not(.alignfull) {
	margin-inline: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) auto !important;
}

/* Reading text in posts and pages. */
.wp-block-post-content > :where(h2, h3) {
	margin-top: 2.25rem;
}

.wp-block-post-content :where(p, li) {
	text-wrap: pretty;
}

.wp-block-post-content :where(p, li) > a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* ---------- Header ---------- */

.site-header-sticky {
	z-index: 60;
}

.site-header {
	position: relative;
	isolation: isolate;
}

/* The frosted bar is a layer behind the header, not a filter on it: a filter on the header itself would trap the phone menu's full-screen overlay inside the bar. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--sand) 80%, transparent);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s var(--wp--custom--ease), border-color 0.3s var(--wp--custom--ease), box-shadow 0.3s var(--wp--custom--ease);
}

.site-header-sticky.is-scrolled .site-header::before {
	background: color-mix(in srgb, var(--wp--preset--color--paper) 88%, transparent);
	border-bottom-color: var(--wp--preset--color--line);
	box-shadow: var(--wp--preset--shadow--soft);
}

.site-header .alignwide {
	min-height: var(--wp--custom--header);
	gap: 1.25rem;
	flex-wrap: nowrap;
}

/* The logo: a tile with a foil-and-wave glyph, then the wordmark. */
:where(.site-header, .site-footer) .wp-block-site-title {
	margin: 0;
	flex: 0 0 auto;
}

:where(.site-header, .site-footer) .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	text-decoration: none;
}

.site-header .wp-block-site-title a {
	color: var(--wp--preset--color--ink);
}

:where(.site-header, .site-footer) .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.85rem;
	background: var(--ph-glyph) center / 68% no-repeat, linear-gradient(140deg, var(--wp--preset--color--deep), var(--wp--preset--color--lake) 55%, var(--wp--preset--color--surf));
}

.site-header .wp-block-navigation {
	flex: 0 0 auto;
	margin-inline: auto;
	gap: 0.25rem 1.5rem;
}

.site-header .wp-block-navigation .wp-block-navigation__container {
	gap: 0.25rem 1.4rem;
	flex-wrap: nowrap;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding: 0.5rem 0.1rem;
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
	text-decoration: none;
}

.site-header .wp-block-navigation :where(.wp-block-navigation-item > .wp-block-navigation-item__content)::after {
	content: "";
	position: absolute;
	inset: auto 0.1rem 0.15rem;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--sun);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--wp--custom--ease);
}

.site-header .wp-block-navigation :where(.wp-block-navigation-item > .wp-block-navigation-item__content):hover::after,
.site-header .wp-block-navigation :where(.current-menu-item > .wp-block-navigation-item__content)::after {
	transform: scaleX(1);
}

/* The language switcher lives in the navigation as a dropdown. */
.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
	padding: 0.5rem;
	min-width: 8.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--lift);
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: 0.6rem;
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--mist);
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.site-header .header-cta {
	flex: 0 0 auto;
	margin: 0;
}

.site-header .header-cta .wp-element-button {
	padding: 0.72rem 1.3rem;
	font-size: 0.95rem;
}

@media (max-width: 1100px) {
	.site-header .header-cta {
		display: none;
	}

	.site-header .wp-block-navigation {
		margin-inline: auto 0;
	}
}

/* The phone menu: a dark full-screen sheet with big links. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--paper) !important;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--paper);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open :where(.wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-close svg) {
	color: var(--wp--preset--color--paper);
	fill: currentColor;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	justify-content: flex-start;
	padding-top: 3rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.75rem;
	align-items: flex-start;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 8vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	box-shadow: none;
	padding: 0 0 0 1rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.25rem;
	color: color-mix(in srgb, var(--wp--preset--color--paper) 80%, transparent);
}

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	isolation: isolate;
	margin-top: 3rem;
	overflow-x: clip;
	background: var(--wp--preset--color--ink);
	color: color-mix(in srgb, var(--wp--preset--color--paper) 74%, transparent);
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: -39px 0 auto;
	height: 40px;
	background: var(--wp--preset--color--ink);
	-webkit-mask: var(--ph-wave) repeat-x 0 100% / 1200px 100%;
	mask: var(--ph-wave) repeat-x 0 100% / 1200px 100%;
}

.site-footer::after {
	content: "PumpFoiling.coach";
	content: "PumpFoiling.coach" / "";
	position: absolute;
	inset: auto 0 -0.14em;
	z-index: -1;
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 10vw, 9.5rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--paper) 11%, transparent);
	pointer-events: none;
}

.site-footer :where(h2, h3, h4, strong) {
	color: var(--wp--preset--color--paper);
}

.site-footer h4 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--surf);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--paper);
	text-decoration: underline;
}

.site-footer .wp-block-site-title a {
	color: var(--wp--preset--color--paper);
}

.site-footer .wp-block-navigation {
	gap: 0.5rem;
}

.site-footer .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.15rem 0;
	overflow-wrap: anywhere;
}

.site-footer .pll-switcher ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .pll-switcher a {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 25%, transparent);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.site-footer .pll-switcher .current-lang a {
	border-color: var(--wp--preset--color--paper);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.site-footer .footer-note {
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Chips and term links ---------- */

.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--deep);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}

.wp-block-post-terms a:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.wp-block-terms-query .wp-block-term-template {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-terms-query .wp-block-term-template > li {
	margin: 0;
}

.wp-block-terms-query .wp-block-term-name a {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}

.wp-block-terms-query .wp-block-term-name a:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* Breadcrumbs */
.wp-block-breadcrumbs {
	margin-bottom: 1.1rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

.wp-block-breadcrumbs a {
	color: var(--wp--preset--color--lake);
	text-decoration: none;
}

.wp-block-breadcrumbs a:hover {
	text-decoration: underline;
}

/* ---------- Lists and facts ---------- */

.check-item {
	position: relative;
	padding-left: 2rem;
}

.wp-block-list.check-list {
	margin-top: 1.25rem;
}

.check-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 100% no-repeat, var(--wp--preset--color--lake);
}

.price {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.price-big {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 5vw, 4.25rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.meta {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Accordion ---------- */

.wp-block-accordion {
	display: grid;
	gap: 0.75rem;
}

.wp-block-accordion-item {
	margin: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: box-shadow 0.3s var(--wp--custom--ease);
}

.wp-block-accordion-item:hover {
	box-shadow: var(--wp--preset--shadow--lift);
}

.wp-block-accordion-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.wp-block-accordion-heading__toggle {
	padding: 1.2rem 1.5rem;
	color: var(--wp--preset--color--ink);
}

.wp-block-accordion-heading__toggle-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--deep);
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 0.3s var(--wp--custom--ease), background-color 0.3s, color 0.3s;
}

.wp-block-accordion-item:is(.is-open, [open]) .wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
	transform: rotate(45deg);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.wp-block-accordion-panel {
	padding: 0 1.5rem 1.25rem;
	color: var(--wp--preset--color--slate);
}

/* ---------- Motion ---------- */

.js-reveal {
	opacity: 0;
	translate: 0 22px;
	transition: opacity 0.7s var(--wp--custom--ease), translate 0.7s var(--wp--custom--ease);
}

.js-reveal.is-in {
	opacity: 1;
	translate: 0 0;
}

@keyframes ph-wave {
	to {
		-webkit-mask-position: -1200px 100%;
		mask-position: -1200px 100%;
	}
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js-reveal {
		opacity: 1;
		translate: none;
	}
}

/* The block editor's canvas has no sticky header: keep the template's frame from adding space there. */
.editor-styles-wrapper .site-header-sticky {
	position: static;
}

/* Chips sit on white when they are on the aqua hero. */
.is-style-hero .wp-block-post-terms a {
	background: var(--wp--preset--color--paper);
}

.coach-line {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--lake);
}

.rental-row {
	padding-block: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
}

.rental-row .price {
	font-size: 1.125rem;
}
