/*
Theme Name: Gracey Child
Theme URI: https://gracey.qodeinteractive.com
Description: A child theme of Gracey
Author: Edge Themes
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: gracey
Template: gracey
*/

.awelle-hero-text,
.awelle-hero-text .elementor-heading-title {
	font-family: 'Krona One', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.12;
	letter-spacing: .01em;
	font-size: clamp(34px, 7vw, 100px);
	color: inherit;
	-webkit-text-stroke: 0.6px currentColor;
}

.awelle-hero-text {
	padding: 0 6%;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	filter: url(#awelle-distort);
}

/* The hero is now an editable Elementor Heading; neutralize its default margin. */
.awelle-hero-text .elementor-heading-title {
	margin: 0;
}

/* Mobile: the distortion filter overflows its box and shifts the text off
   center. Tighten padding, keep it centered, and avoid horizontal overflow. */
@media (max-width: 1024px) {
	.awelle-hero-text,
	.awelle-hero-text .elementor-heading-title {
		letter-spacing: 0;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	.awelle-hero-text {
		padding: 0 4%;
	}
}


.awelle-lang-switcher {
	position: fixed;
	top: 30px;
	right: 40px;
	z-index: 9999;
	display: flex;
	gap: 14px;
	margin: 0;
	/* Frame that stays readable over any background while scrolling. */
	padding: 8px 16px;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* Push below the WordPress admin bar when logged in. */
body.admin-bar .awelle-lang-switcher {
	top: 62px;
}

@media (max-width: 1024px) {
	.awelle-lang-switcher {
		top: 22px;
		right: 20px;
		gap: 10px;
		font-size: 12px;
		padding: 7px 13px;
	}
	body.admin-bar .awelle-lang-switcher {
		top: 68px;
	}
}

.awelle-lang-switcher li {
	margin: 0;
	line-height: 1;
}

.awelle-lang-switcher a {
	display: block;
	text-decoration: none;
	opacity: .55;
	transition: opacity .2s ease, transform .2s ease;
}

.awelle-lang-switcher .current-lang a,
.awelle-lang-switcher a:hover {
	opacity: 1;
}

.awelle-lang-switcher a:hover {
	transform: translateY(-1px) scale(1.08);
}

/* Country flags replace the EN / ES / PT-BR labels. */
.awelle-lang-switcher .awelle-flag {
	display: block;
	width: 26px;
	height: 18px;
	border-radius: 3px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset;
}

.awelle-lang-switcher .current-lang .awelle-flag {
	box-shadow: 0 0 0 2px #111;
}

@media (max-width: 1024px) {
	.awelle-lang-switcher .awelle-flag {
		width: 23px;
		height: 16px;
	}
}


/* ---- Horizontal scroll-progress bar at the top of the page ---- */
.awelle-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 9990;
	background: rgba(0, 0, 0, .06);
	pointer-events: none;
}

.awelle-scroll-progress__fill {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #f9a94f 0%, #f5821f 100%);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

/* Sophisticated dot that rides the leading edge of the fill. */
.awelle-scroll-progress__dot {
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f5821f;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(245, 130, 31, .35), 0 2px 8px rgba(245, 130, 31, .45);
	transform: translate(-50%, -50%);
	will-change: transform;
}

/* Soft pulsing halo around the dot — subtle, GPU-friendly. */
.awelle-scroll-progress__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(245, 130, 31, .35);
	transform: translate(-50%, -50%);
	animation: awelle-dot-pulse 2.4s ease-out infinite;
}

@keyframes awelle-dot-pulse {
	0%   { transform: translate(-50%, -50%) scale(1);   opacity: .6; }
	70%  { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
	100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* Don't overlap the WP admin bar when logged in. */
body.admin-bar .awelle-scroll-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .awelle-scroll-progress {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awelle-scroll-progress__dot::after {
		animation: none;
	}
}



/* ---- Hide the footer logo (client request: shrink footer height) ----
   The footer is composed of widgets (not the Elementor "Black footer"
   templates in the library). The logo image lives in column 1 of
   #qodef-page-footer-top-area as a wp-block-image with the dedicated
   class "awelle-footer". Hiding only that figure keeps the tagline,
   the menu links, and the social icons intact. To restore, delete this rule. */
#qodef-page-footer .awelle-footer {
	display: none !important;
}
