/*
Theme Name: LemonTheme
Theme URI: https://lemonmarketing.dk/
Description: Lightweight parent theme for custom Lemon Marketing client sites.
Author: Lemon Marketing
Version: 1.1.0
Text Domain: lemontheme
*/

.lemon-back-to-top {
	align-items: center;
	background: var(--lemon-back-to-top-bg, #17324a);
	border: 1px solid color-mix(in srgb, var(--lemon-back-to-top-color, #fff) 28%, transparent);
	border-radius: 999px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 12px 34px rgba(16, 35, 52, .22);
	color: var(--lemon-back-to-top-color, #fff);
	cursor: pointer;
	display: inline-flex;
	font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	gap: 10px;
	letter-spacing: .02em;
	opacity: 0;
	padding: 13px 16px;
	pointer-events: none;
	position: fixed;
	right: max(24px, calc((100vw - 1440px) / 2));
	transform: translateY(14px);
	transition: opacity .22s ease, transform .22s ease, background-color .22s ease;
	z-index: 99999;
}

.lemon-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.lemon-back-to-top:hover {
	background: var(--lemon-back-to-top-hover-bg, #264a64);
}

.lemon-back-to-top:focus-visible {
	outline: 3px solid var(--lemon-back-to-top-focus, #c9efad);
	outline-offset: 4px;
}

@media (max-width: 640px) {
	.lemon-back-to-top {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		right: 16px;
	}

	.lemon-back-to-top span:first-child {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lemon-back-to-top {
		transition: none;
	}
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--lemon-sticky-header-height, 120px);
}

body {
  margin: 0;
}

/* Keep the standard LemonTheme header available while the page scrolls. */
:where([data-site-header], .lemon-site-header) {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar :where([data-site-header], .lemon-site-header) {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar :where([data-site-header], .lemon-site-header) {
    top: 46px;
  }
}

