/*
Theme Name: Signpost Six Child
Theme URI: https://signpostsix.com/
Description: Lightweight project child theme for Hello Elementor. Keeps project-specific CSS, SVG helpers, ACF JSON and Gravity Forms styling separate from Elementor content.
Author: Flerque
Template: hello-elementor
Version: 0.2.0
Text Domain: signpost-six-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*
 * Signpost Six design tokens.
 *
 * IMPORTANT — Flerque responsive system:
 * - Elementor V3 only. Do not use Atomic / Elementor V4 elements.
 * - The body font-size is the master responsive scale.
 * - Author design dimensions in em so typography, spacing and components scale
 *   proportionally with the viewport.
 * - Media-query breakpoints and the master body scale are intentional exceptions.
 */
:root {
	--sp-color-bg: #191f24;
	--sp-color-bg-elevated: #272f37;
	--sp-color-bg-tint: #12273a;
	--sp-color-blue: #023a6f;
	--sp-color-tile: #37434f;
	--sp-color-white: #ffffff;
	--sp-color-text: rgba(255, 255, 255, 0.8);
	--sp-color-text-muted: rgba(255, 255, 255, 0.7);
	--sp-color-accent: #b7866c;
	--sp-color-accent-strong: #bc8b71;
	--sp-color-accent-soft: #c99679;
	--sp-color-border: rgba(255, 255, 255, 0.3);
	--sp-color-border-soft: rgba(255, 255, 255, 0.25);
	--sp-page-padding: 3.25em;
	--sp-content-width: 84em;
	--sp-ease: cubic-bezier(0.65, 0, 0.35, 1);
	--sp-duration: 0.5s;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

::selection {
	background: var(--e-global-color-secondary) !important;
	color: white;
}

/* Allow selected Elementor/Swiper carousels to flow outside their container. */
.doorlopend .swiper {
	overflow: visible !important;
}

/* Flerque Magic — master responsive scale.
 * Keep component/font values in em so the entire design scales from this base.
 */
body {
	font-size: 1vw !important;
	background: var(--sp-color-bg);
	color: var(--sp-color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overscroll-behavior: none;
}

@media screen and (min-width: 1920px) {
	body {
		font-size: 20px !important;
	}
}

@media screen and (min-width: 1101px) and (max-width: 1400px) {
	body {
		font-size: 1.2vw !important;
	}
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
	body {
		font-size: 1.8vw !important;
	}
}

@media screen and (max-width: 767px) {
	body {
		font-size: 3.2vw !important;
	}
}

@media screen and (max-width: 380px) {
	body {
		font-size: 12px !important;
	}
}

.elementor-widget-text-editor p {
	margin-top: 0;
	margin-bottom: 0;
}

:focus-visible {
	outline: 0.125em solid var(--sp-color-accent-soft);
	outline-offset: 0.1875em;
}

/* SVGs exported from Figma should normally be used as <img> elements or
 * inline only when CSS colouring/animation is required. */
.sp-svg,
.sp-svg img,
img.sp-svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Reusable directional-wipe button class for places where Elementor V3's
 * native interaction controls are not enough. Apply .sp-button to an
 * anchor/button and keep label/icon spans above the fill layer. */
.sp-button {
	--sp-button-fill: var(--sp-color-accent);
	--sp-button-text: var(--sp-color-white);
	--sp-button-hover-text: var(--sp-color-bg);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 0.0625em solid var(--sp-color-border);
	border-radius: 0;
	color: var(--sp-button-text);
	text-decoration: none;
}

.sp-button::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: var(--sp-button-fill);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--sp-duration) var(--sp-ease);
}

.sp-button:hover::before,
.sp-button:focus-visible::before {
	transform: scaleX(1);
}

.sp-button:hover,
.sp-button:focus-visible {
	color: var(--sp-button-hover-text);
}

.sp-button__label,
.sp-button__icon {
	position: relative;
	z-index: 1;
}

.sp-button__label {
	display: inline-flex;
	align-items: center;
	padding: 1em;
}

.sp-button__icon {
	display: inline-grid;
	place-items: center;
	min-width: 2.75em;
	padding: 0.75em;
	background: var(--sp-button-fill);
	color: var(--sp-color-bg);
}

@media (prefers-reduced-motion: reduce) {
	.sp-button::before {
		transition: none;
	}
}
