/*
Theme Name: LaunchPress Theme
Theme URI: https://launchpresssitebuilder.com/
Author: LaunchPress
Author URI: https://launchpresssitebuilder.com/
Description: A fast native block theme for LaunchPress websites, designed to work with LaunchPress Blocks Plugin.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.2-beta4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: launchpress
Tags: block-patterns, full-site-editing, wide-blocks, e-commerce, blog
*/

:root {
	--lp-radius-sm: 10px;
	--lp-radius-md: 18px;
	--lp-radius-lg: 28px;
	--lp-shadow-card: 0 18px 60px rgba(31, 22, 56, 0.1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--launchpress-purple);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
}

.wp-block-post-content > :where(.alignfull) {
	margin-block-start: 0;
}

.lp-card {
	border: 1px solid var(--wp--preset--color--soft-border);
	border-radius: var(--lp-radius-md);
	box-shadow: var(--lp-shadow-card);
}

/* Easy Digital Downloads preview styling. */
.edd_download_purchase_form .edd-submit,
.edd-submit,
#edd-purchase-button {
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--launchpress-purple);
	color: #fff;
	font-weight: 700;
	padding: 0.85rem 1.35rem;
	cursor: pointer;
}

.edd_download_purchase_form .edd-submit:hover,
.edd-submit:hover,
#edd-purchase-button:hover {
	background: var(--wp--preset--color--launchpress-violet);
}

#edd_checkout_cart,
#edd_checkout_form_wrap fieldset {
	border: 1px solid var(--wp--preset--color--soft-border);
	border-radius: var(--lp-radius-md);
	padding: 1.25rem;
}

#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="password"],
#edd_checkout_form_wrap textarea,
#edd_checkout_form_wrap select {
	width: 100%;
	border: 1px solid var(--wp--preset--color--soft-border);
	border-radius: var(--lp-radius-sm);
	padding: 0.75rem;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* LaunchPress 0.2.1: generic page-title/banner controls. */
.lp-page-title {
	box-sizing: border-box;
	margin-block-end: var(--wp--preset--spacing--40);
}

.lp-page-title--banner {
	background: var(--lp-title-bg, #f3f0ff);
	color: var(--lp-title-color, #17112e);
	border-radius: var(--lp-radius-md);
	padding: var(--lp-title-padding, 32px) var(--wp--preset--spacing--40);
}

.lp-page-title__inner {
	display: flex;
	align-items: center;
	gap: var(--lp-title-gap, 24px);
	width: 100%;
}

.lp-page-title--align-left .lp-page-title__inner {
	justify-content: flex-start;
	text-align: left;
}

.lp-page-title--align-center .lp-page-title__inner {
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.lp-page-title--align-right .lp-page-title__inner {
	flex-direction: row-reverse;
	justify-content: flex-start;
	text-align: right;
}

.lp-page-title__logo {
	flex: 0 0 auto;
	display: block;
	width: var(--lp-title-logo-width, 80px);
	max-width: min(var(--lp-title-logo-width, 80px), 40vw);
	height: auto;
	margin: 0;
}

.lp-page-title--banner .wp-block-post-title {
	flex: 0 1 auto;
	color: var(--lp-title-color, #17112e);
	font-size: var(--lp-title-font-size, 40px) !important;
	line-height: 1.1 !important;
	margin: 0;
}

@media (max-width: 700px) {
	.lp-page-title--banner {
		padding-left: var(--wp--preset--spacing--30);
		padding-right: var(--wp--preset--spacing--30);
	}

	.lp-page-title--banner .wp-block-post-title {
		font-size: clamp(28px, 7vw, var(--lp-title-font-size, 40px)) !important;
	}

	.lp-page-title__inner,
	.lp-page-title--align-right .lp-page-title__inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.lp-page-title--align-center .lp-page-title__inner {
		align-items: center;
		text-align: center;
	}

	.lp-page-title--align-right .lp-page-title__inner {
		align-items: flex-end;
		text-align: right;
	}
}


/* LaunchPress 0.2.1 Beta 8: optional page content width/layout controls.
 *
 * WordPress's Post Content block uses a constrained inner layout. Setting only
 * the outer Post Content width does not change the width of normal child blocks,
 * because those children still inherit theme.json's global contentSize. Beta 8
 * therefore scopes both the WordPress layout variables and direct child widths to
 * the selected LaunchPress layout. Full-aligned blocks remain free to span full
 * width in Contained/Wide modes.
 */
.lp-page-content--contained {
	--wp--style--global--content-size: var(--lp-content-width, 760px);
	--wp--style--global--wide-size: var(--lp-content-width, 760px);
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
}

.lp-page-content--contained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: min(100%, var(--lp-content-width, 760px)) !important;
	max-width: var(--lp-content-width, 760px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.lp-page-content--wide {
	--wp--style--global--content-size: var(--lp-wide-width, 1200px);
	--wp--style--global--wide-size: var(--lp-wide-width, 1200px);
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
}

.lp-page-content--wide > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: min(100%, var(--lp-wide-width, 1200px)) !important;
	max-width: var(--lp-wide-width, 1200px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.lp-page-content--full {
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 100%;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.lp-page-content--full > :where(:not(.alignleft):not(.alignright)) {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* LaunchPress Design: optional native header controls (Beta 13).
 * These rules only run when the user deliberately chooses Standard or
 * Centered. Theme Default gets no lp-site-header wrapper and remains untouched.
 *
 * WordPress can insert a wp-block-template-part wrapper around the saved
 * Header template part. Target the native header blocks by class rather than
 * depending on one exact wrapper depth so the visual layout works reliably.
 */
.lp-site-header {
	--lp-header-bg: #ffffff;
	--lp-header-text: #17112e;
	--lp-header-logo-width: 48px;
	--lp-header-padding: 16px;
}

.lp-site-header .wp-block-group.alignfull {
	background: var(--lp-header-bg) !important;
	padding-top: var(--lp-header-padding) !important;
	padding-bottom: var(--lp-header-padding) !important;
}

.lp-site-header .wp-block-site-title,
.lp-site-header .wp-block-site-title a,
.lp-site-header .wp-block-navigation,
.lp-site-header .wp-block-navigation-item,
.lp-site-header .wp-block-navigation-item__content,
.lp-site-header .wp-block-navigation__responsive-container-open,
.lp-site-header .wp-block-navigation__responsive-container-close {
	color: var(--lp-header-text) !important;
}

.lp-site-header .wp-block-site-logo img {
	width: var(--lp-header-logo-width) !important;
	height: auto !important;
}

/* Header brand display: users can show the Site Title, Site Logo, or both. */
.lp-site-header--brand-title .wp-block-site-logo {
	display: none !important;
}

.lp-site-header--brand-logo .wp-block-site-title {
	display: none !important;
}

.lp-site-header--brand-logo .wp-block-site-logo,
.lp-site-header--brand-logo-title .wp-block-site-logo,
.lp-site-header--brand-logo-title .wp-block-site-title {
	display: block;
}

/* Standard: explicitly preserve the familiar brand-left / navigation-right row. */
.lp-site-header--standard .wp-block-group.alignwide {
	display: flex !important;
	flex-direction: row !important;
	justify-content: space-between !important;
	align-items: center !important;
}

.lp-site-header--standard .wp-block-navigation {
	justify-content: flex-end !important;
}

/* Centered desktop: brand group above a centered navigation row. */
.lp-site-header--centered .wp-block-group.alignwide {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0.75rem !important;
}

.lp-site-header--centered .wp-block-group.alignwide > .wp-block-group {
	justify-content: center !important;
	align-items: center !important;
}

.lp-site-header--centered .wp-block-navigation {
	justify-content: center !important;
	width: 100% !important;
}

@media (max-width: 782px) {
	/* Mobile stays practical: brand left, menu trigger right. */
	.lp-site-header--centered .wp-block-group.alignwide {
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 1rem !important;
	}
	.lp-site-header--centered .wp-block-navigation {
		justify-content: flex-end !important;
		width: auto !important;
	}
}


/* LaunchPress Design: optional native footer controls (Beta 16).
 * Theme Default gets no wrapper and remains untouched. Columns and Centered
 * style the existing native Footer template part without rewriting its blocks.
 */
.lp-site-footer {
	--lp-footer-bg: #17112e;
	--lp-footer-text: #ffffff;
	--lp-footer-padding: 48px;
}

.lp-site-footer .wp-block-group.alignfull {
	background: var(--lp-footer-bg) !important;
	color: var(--lp-footer-text) !important;
	padding-top: var(--lp-footer-padding) !important;
	padding-bottom: var(--lp-footer-padding) !important;
}

.lp-site-footer :where(.wp-block-site-title,.wp-block-site-title a,.wp-block-heading,p,.wp-block-navigation,.wp-block-navigation-item,.wp-block-navigation-item__content) {
	color: var(--lp-footer-text) !important;
}

.lp-site-footer--columns .wp-block-columns.alignwide {
	align-items: flex-start !important;
}

.lp-site-footer--centered .wp-block-columns.alignwide {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
}

.lp-site-footer--centered .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	text-align: center !important;
}

.lp-site-footer--centered .wp-block-column > * {
	margin-left: auto !important;
	margin-right: auto !important;
}

.lp-site-footer--centered .wp-block-navigation {
	--navigation-layout-justification-setting: center;
	--navigation-layout-justify: center;
	--navigation-layout-align: center;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
}

.lp-site-footer--centered .wp-block-navigation__responsive-container,
.lp-site-footer--centered .wp-block-navigation__responsive-container-content {
	width: 100% !important;
}

.lp-site-footer--centered .wp-block-navigation__responsive-container-content {
	align-items: center !important;
}

.lp-site-footer--centered .wp-block-navigation__container {
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
}

.lp-site-footer--centered .wp-block-navigation-item {
	justify-content: center !important;
}


/* LaunchPress 0.2.1 Beta 36: optional site-wide background video. */
body.lp-video-enabled {
	position: relative;
	background: var(--lp-video-fallback, #fff);
}

body.lp-video-enabled .wp-site-blocks {
	position: relative;
	z-index: 1;
	background: transparent !important;
}

body.lp-video-enabled main {
	background: transparent !important;
}

.lp-site-video-background {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background-color: var(--lp-video-fallback, #fff);
	background-image: var(--lp-video-poster, none);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.lp-site-video-background__media,
.lp-site-video-background__overlay {
	position: absolute;
	inset: 0;
}

.lp-site-video-background__media {
	z-index: 0;
	overflow: hidden;
}

.lp-site-video-background__overlay {
	z-index: 1;
	background: var(--lp-video-overlay, transparent);
}

.lp-site-video-background video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	object-position: center center;
}

.lp-site-video-background.lp-video-fit-contain video {
	object-fit: contain;
}

.lp-site-video-background.lp-video-position-top,
.lp-site-video-background.lp-video-position-top video {
	background-position: center top;
	object-position: center top;
}

.lp-site-video-background.lp-video-position-bottom,
.lp-site-video-background.lp-video-position-bottom video {
	background-position: center bottom;
	object-position: center bottom;
}

.lp-site-video-background.lp-video-fit-contain {
	background-size: contain;
}

.lp-site-video-background iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.7778vh;
	min-height: 100vh;
	border: 0;
	transform: translate(-50%, -50%);
}

.lp-site-video-background.lp-video-fit-contain iframe {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	transform: none;
}

.lp-site-video-background.lp-video-fit-cover.lp-video-position-top iframe {
	top: 0;
	transform: translateX(-50%);
}

.lp-site-video-background.lp-video-fit-cover.lp-video-position-bottom iframe {
	top: auto;
	bottom: 0;
	transform: translateX(-50%);
}

@media (max-width: 782px) {
	body.lp-video-mobile-poster .lp-site-video-background__media {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp-site-video-background__media {
		display: none !important;
	}
}


/* LaunchPress Site Design: optional site sidebar. */
.lp-content-sidebar{display:grid;gap:var(--lp-sidebar-gap,32px);align-items:start;width:min(100%,var(--wp--style--global--wide-size,1200px));max-width:100%;margin-left:auto;margin-right:auto}
.lp-content-sidebar--right{grid-template-columns:minmax(0,1fr) minmax(180px,var(--lp-sidebar-width,300px));grid-template-areas:"main sidebar"}
.lp-content-sidebar--left{grid-template-columns:minmax(180px,var(--lp-sidebar-width,300px)) minmax(0,1fr);grid-template-areas:"sidebar main"}
.lp-content-sidebar__main{grid-area:main;min-width:0}
.lp-content-sidebar__aside{grid-area:sidebar;min-width:0;background:var(--lp-sidebar-bg,#fff);padding:var(--lp-sidebar-padding,20px);border-radius:12px}
.lp-sidebar-widget+.lp-sidebar-widget{margin-top:24px}
.lp-sidebar-widget__title{margin-top:0}
@media(max-width:780px){.lp-content-sidebar--right,.lp-content-sidebar--left{grid-template-columns:1fr;grid-template-areas:"main" "sidebar"}.lp-content-sidebar__aside{width:100%}}


/* LaunchPress Site Design: Back to Top caret. */
.lp-back-to-top{position:fixed;z-index:99980;bottom:calc(22px + var(--lp-sticky-space,0px));width:46px;height:46px;border:0;border-radius:999px;background:var(--lp-btt-bg,#7047eb);color:var(--lp-btt-text,#fff);box-shadow:0 8px 24px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease,background .18s ease,color .18s ease}.lp-back-to-top--right{right:22px}.lp-back-to-top--left{left:22px}.lp-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}.lp-back-to-top:hover,.lp-back-to-top:focus-visible{background:var(--lp-btt-hover-bg,#5b35d5);color:var(--lp-btt-hover-text,#fff)}.lp-back-to-top:focus-visible{outline:3px solid currentColor;outline-offset:3px}.lp-back-to-top svg{width:24px;height:24px;display:block}@media(max-width:700px){.lp-back-to-top{width:42px;height:42px;bottom:calc(16px + var(--lp-sticky-space,0px))}.lp-back-to-top--right{right:14px}.lp-back-to-top--left{left:14px}}@media(prefers-reduced-motion:reduce){.lp-back-to-top{transition:none}}


/* LaunchPress Site Design: social profile links (Beta 47). */
.lp-social-links {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.lp-social-links--header {
	justify-content: flex-end;
	margin-top: 10px;
}

.lp-social-links--footer {
	justify-content: center;
	margin-top: 20px;
}

.lp-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--lp-social-size, 22px) + 14px);
	height: calc(var(--lp-social-size, 22px) + 14px);
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	font-family: Arial, Helvetica, sans-serif;
	font-size: var(--lp-social-size, 22px);
	font-weight: 700;
	transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.lp-social-link:hover,
.lp-social-link:focus-visible {
	transform: translateY(-1px);
	opacity: 0.82;
	text-decoration: none;
}

.lp-site-header .lp-social-links {
	color: var(--lp-header-text, inherit);
}

.lp-site-footer .lp-social-links {
	color: var(--lp-footer-text, inherit);
}

@media (max-width: 782px) {
	.lp-social-links--header,
	.lp-social-links--footer {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp-social-link {
		transition: none;
	}
	.lp-social-link:hover,
	.lp-social-link:focus-visible {
		transform: none;
	}
}
