/*
Theme Name: Conway Farms GC
Theme URI: https://www.conwayfarmsgolfclub.org/
Description: Site theme for Conway Farms Golf Club. A child theme of Hello Elementor; the layout is built in Elementor.
Author: Jonas Club Software
Author URI: https://www.jonasclub.com/
Template: hello-elementor
Version: 2.2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Visually hidden but read by screen readers (the Home page h1). */
.cfgc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hello's skip link, made visible on focus. */
.skip-link:focus {
	z-index: 100000;
	padding: 12px 16px;
	background: var(--e-global-color-primary);
	color: var(--e-global-color-cfwhite);
}

/* One visible focus ring for every link, button and field. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.elementor-menu-toggle:focus-visible {
	outline: 3px solid var(--e-global-color-secondary);
	outline-offset: 2px;
}

.elementor-location-header .cfgc-on-green a:focus-visible,
.elementor-location-header .elementor-menu-toggle:focus-visible,
.elementor-location-footer a:focus-visible {
	outline-color: var(--e-global-color-cfwhite);
}

/* Footer links take the footer's white text instead of the Kit link colour. */
.elementor-location-footer a {
	color: inherit;
}

/* Home: the header sits over the banner photo on tablet and desktop, as on the reference. */
@media (min-width: 768px) {
	body.home {
		position: relative;
	}

	body.home .elementor-location-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 10;
	}
}

/* Home is shorter than the screen; the space under the footer stays green. */
body.home {
	background-color: var(--e-global-color-primary);
}

/* Mobile header: keep "Call Us" on one line beside its icon. */
.cfgc-on-green a.e-con .elementor-heading-title {
	white-space: nowrap;
}

/* The mobile menu toggle carries a "MENU" label under the icon, as on the reference. */
.cfgc-menu .elementor-menu-toggle {
	flex-direction: column;
	gap: 2px;
}

.cfgc-menu .elementor-menu-toggle::after {
	content: "MENU";
	font-size: 0.75rem;
	line-height: 1;
	color: var(--e-global-color-cfwhite);
}

/* Member login form (Jonas Synergy Connector), styled to the site. */
.jsc-login-form {
	max-width: 420px;
	margin: 0 auto;
}

.jsc-login-form input {
	padding: 10px 12px;
	border: 1px solid var(--e-global-color-cfmuted);
	border-radius: 0;
	font: inherit;
}

.jsc-login-form .jsc-login-button {
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	background: var(--e-global-color-primary);
	color: var(--e-global-color-cfwhite);
	font: inherit;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
}

.jsc-login-form .jsc-login-button:hover {
	background: var(--e-global-color-secondary);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
