/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*
 * Menu items with the CSS class hide-desktop (Appearance > Menus > CSS Classes)
 * only show in the mobile dropdown (hamburger) of the Elementor Nav Menu, not in
 * the horizontal menu. The switch follows the widget's own dropdown breakpoint.
 */
.elementor-nav-menu--main .elementor-nav-menu > li.hide-desktop {
	display: none; /* beats Elementor's .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li */
}

/*
 * No sideways scrolling on mobile: illustration layers of the cutout widget may
 * stick out past the screen edge; cut them off there instead of widening the
 * page. "clip" (not "hidden") keeps position: sticky working, e.g. the left
 * column on Ons manifest. "hidden" is the fallback for browsers without "clip".
 */
html,
body {
	overflow-x: hidden;
	overflow-x: clip;
}

/* Long web or e-mail addresses in text blocks wrap instead of widening the page. */
.elementor-widget-text-editor a {
	overflow-wrap: anywhere;
}

/*
 * Scroll to top button (markup and script: functions.php). Bottom right, shown
 * after scrolling down 300px. Colors follow the Elementor global colors.
 */
.gg-scroll-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--e-global-color-primary, #1d6757);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}
.gg-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
/* Doubled class: beats the Elementor Kit's .elementor-kit-8 button:hover/:focus (coral). */
.gg-scroll-top.gg-scroll-top:hover,
.gg-scroll-top.gg-scroll-top:focus,
.gg-scroll-top.gg-scroll-top:focus-visible {
	border: 0;
	background: var(--e-global-color-secondary, #4e8d7f);
	color: #fff;
}
.gg-scroll-top:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f18b81);
	outline-offset: 3px;
}
.gg-scroll-top svg {
	display: block;
}
@media (max-width: 767px) {
	.gg-scroll-top {
		right: 16px;
		bottom: 16px;
		width: 40px;
		height: 40px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gg-scroll-top {
		transition: none;
	}
}

/*
 * Header above the page content, so the main menu dropdown is never covered.
 * Elementor's menu sits at z-index 2; page elements with a higher z-index right
 * below the header (e.g. the hero headings on the service pages, z-index 9) hid
 * the lower dropdown items and closed the menu on hover.
 */
.elementor-location-header {
	position: relative;
	z-index: 100;
}

/*
 * YouTube video modal (script: functions.php). Opened by links with the
 * custom attribute data-video-modal, e.g. a YouTube icon in Social Icons.
 */
html.gg-video-modal-open {
	overflow: hidden;
}
.gg-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 16px 16px;
	background: rgba(0, 0, 0, 0.85);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.gg-video-modal[hidden] {
	display: none;
}
.gg-video-modal.is-open {
	opacity: 1;
}
.gg-video-modal__dialog {
	position: relative;
	width: min(960px, 100%, calc((100vh - 100px) * 16 / 9));
}
.gg-video-modal__frame {
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.gg-video-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Doubled class: beats the Elementor Kit's .elementor-kit-8 button:hover/:focus (coral). */
.gg-video-modal__close.gg-video-modal__close,
.gg-video-modal__close.gg-video-modal__close:hover,
.gg-video-modal__close.gg-video-modal__close:focus {
	position: absolute;
	top: -48px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.gg-video-modal__close.gg-video-modal__close:hover {
	background: rgba(255, 255, 255, 0.15);
}
.gg-video-modal__close:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f18b81);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.gg-video-modal {
		transition: none;
	}
}
