/* ==========================================================================
   Level7 Tennis — header, footer, shared UI and WooCommerce.
   Page content is built in Elementor; its colours and fonts come from
   Elementor > Site Settings (Global Colors / Global Fonts). The tokens below
   mirror those values for the parts of the site Elementor doesn't render.
   ========================================================================== */

:root {
	--l7-ink: #0f1712;
	--l7-ink-2: #18231b;
	--l7-green: #33cc33;
	--l7-green-dark: #1e8f1e;
	--l7-optic: #dfff4f;
	--l7-paper: #f5f6f1;
	--l7-stone: #e4e7df;
	--l7-text: #3a463e;
	--l7-muted: #6a756d;
	--l7-white: #ffffff;
	--l7-wrap: 1200px;
	--l7-header-h: 84px;
	--l7-font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--l7-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
	font-family: var(--l7-font-body);
	color: var(--l7-text);
	background: var(--l7-white);
	-webkit-font-smoothing: antialiased;
}

.l7-wrap {
	max-width: var(--l7-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Buttons ---------- */
.l7-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	font: 600 13px/1 var(--l7-font-body);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--l7-ink);
	background: var(--l7-green);
	border: 2px solid var(--l7-green);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.l7-btn:hover,
.l7-btn:focus-visible {
	background: var(--l7-optic);
	border-color: var(--l7-optic);
	color: var(--l7-ink);
}
:focus-visible {
	outline: 2px solid var(--l7-optic);
	outline-offset: 2px;
}

/* ---------- Header ---------- */
.l7-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--l7-ink);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.admin-bar .l7-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .l7-header { top: 0; } }

.l7-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--l7-header-h);
}
.l7-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.l7-logo,
.custom-logo-link { display: inline-flex; }
.l7-logo__mark svg,
.custom-logo {
	display: block;
	width: 46px;
	height: auto;
}
.l7-brand__name {
	display: flex;
	flex-direction: column;
	color: var(--l7-white);
	text-decoration: none;
	line-height: 1;
}
.l7-brand__name:hover { color: var(--l7-white); }
.l7-brand__word {
	font: 700 26px/1 var(--l7-font-display);
	letter-spacing: .02em;
	text-transform: uppercase;
}
.l7-brand__word b { color: var(--l7-green); font-weight: 700; }
.l7-brand__sub {
	margin-top: 3px;
	font: 500 10px/1 var(--l7-font-body);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

.l7-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}
.l7-menu,
.l7-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.l7-menu {
	display: flex;
	align-items: center;
	gap: 2px;
}
.l7-menu > li { position: relative; }
.l7-menu a {
	display: block;
	padding: 10px 14px;
	font: 500 14px/1.2 var(--l7-font-body);
	color: rgba(255, 255, 255, .88);
	text-decoration: none;
	transition: color .15s;
}
.l7-menu > li > a { position: relative; }
.l7-menu > li > a::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	background: var(--l7-green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s;
}
.l7-menu > li > a:hover::before,
.l7-menu > .current-menu-item > a::before,
.l7-menu > .current-menu-ancestor > a::before,
.l7-menu > .current_page_item > a::before { transform: scaleX(1); }
.l7-menu a:hover,
.l7-menu a:focus-visible,
.l7-menu .current-menu-item > a,
.l7-menu .current-menu-ancestor > a,
.l7-menu .current_page_item > a { color: var(--l7-white); }
.l7-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.l7-menu .sub-menu,
.l7-menu .children {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 240px;
	padding: 10px 0;
	background: var(--l7-white);
	box-shadow: 0 18px 40px rgba(15, 23, 18, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.l7-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}
.l7-menu li:hover > .sub-menu,
.l7-menu li:focus-within > .sub-menu,
.l7-menu li:hover > .children,
.l7-menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.l7-menu .sub-menu a,
.l7-menu .children a {
	padding: 10px 20px;
	color: var(--l7-text);
	border-left: 3px solid transparent;
}
.l7-menu .sub-menu a:hover,
.l7-menu .sub-menu .current-menu-item > a {
	color: var(--l7-ink);
	background: var(--l7-paper);
	border-left-color: var(--l7-green);
}

.l7-nav__actions {
	display: flex;
	align-items: center;
	gap: 18px;
}
.l7-cart {
	position: relative;
	display: inline-flex;
	color: var(--l7-white);
}
.l7-cart:hover { color: var(--l7-green); }
.l7-cart__count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--l7-green);
	color: var(--l7-ink);
	font: 700 10px/18px var(--l7-font-body);
	text-align: center;
}

.l7-nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.l7-nav-toggle:hover,
.l7-nav-toggle:focus { background: transparent; }
.l7-nav-toggle__bar,
.l7-nav-toggle__bar::before,
.l7-nav-toggle__bar::after {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background: var(--l7-white);
	transition: transform .2s, background-color .2s;
}
.l7-nav-toggle__bar { position: relative; }
.l7-nav-toggle__bar::before,
.l7-nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}
.l7-nav-toggle__bar::before { top: -7px; }
.l7-nav-toggle__bar::after { top: 7px; }
.l7-nav-toggle[aria-expanded="true"] .l7-nav-toggle__bar { background: transparent; }
.l7-nav-toggle[aria-expanded="true"] .l7-nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.l7-nav-toggle[aria-expanded="true"] .l7-nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
	:root { --l7-header-h: 72px; }
	.l7-nav-toggle { display: block; }
	.l7-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--l7-header-h));
		overflow-y: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0 24px;
		background: var(--l7-ink);
		border-top: 1px solid rgba(255, 255, 255, .08);
	}
	.l7-nav.is-open { display: flex; }
	.l7-menu {
		flex-direction: column;
		align-items: stretch;
	}
	.l7-menu a { padding: 14px 24px; font-size: 16px; }
	.l7-menu > li > a::before { display: none; }
	.l7-menu .sub-menu,
	.l7-menu .children {
		position: static;
		min-width: 0;
		padding: 0 0 8px;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.l7-menu .sub-menu a,
	.l7-menu .children a {
		padding: 10px 24px 10px 40px;
		color: rgba(255, 255, 255, .7);
		border-left: 0;
	}
	.l7-menu .sub-menu a:hover,
	.l7-menu .sub-menu .current-menu-item > a { background: transparent; color: var(--l7-green); }
	.l7-menu .menu-item-has-children > a::after { display: none; }
	.l7-nav__actions {
		justify-content: space-between;
		padding: 16px 24px 0;
	}
}
@media (max-width: 420px) {
	.l7-brand__word { font-size: 22px; }
	.l7-logo__mark svg, .custom-logo { width: 38px; }
}

/* ---------- Footer ---------- */
.l7-footer {
	background: var(--l7-ink);
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.6;
}
.l7-footer a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
}
.l7-footer a:hover { color: var(--l7-green); }
.l7-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 48px;
	padding-top: 72px;
	padding-bottom: 56px;
}
.l7-footer__brand p {
	max-width: 340px;
	margin: 20px 0 24px;
}
.l7-footer__title {
	margin: 4px 0 18px;
	font: 700 18px/1 var(--l7-font-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--l7-white);
}
.l7-footer-menu,
.l7-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}
.l7-footer-menu li + li,
.l7-footer-contact li + li { margin-top: 10px; }
.l7-footer-contact { margin-bottom: 24px; }
.l7-social {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.l7-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .2);
	color: var(--l7-white);
	transition: background-color .15s, border-color .15s, color .15s;
}
.l7-social a:hover {
	background: var(--l7-green);
	border-color: var(--l7-green);
	color: var(--l7-ink);
}
.l7-copyright {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 20px 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
}
.l7-copyright .l7-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}
@media (max-width: 960px) {
	.l7-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.l7-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
}

/* ---------- Contact form shortcode ---------- */
.l7-form { display: grid; gap: 16px; }
.l7-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.l7-form__field {
	display: grid;
	gap: 6px;
	font: 600 12px/1.2 var(--l7-font-body);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--l7-ink);
}
.l7-form__field abbr { color: var(--l7-green-dark); text-decoration: none; border: 0; }
.l7-form input,
.l7-form textarea {
	width: 100%;
	padding: 14px 16px;
	font: 400 16px/1.4 var(--l7-font-body);
	color: var(--l7-ink);
	background: var(--l7-white);
	border: 1px solid var(--l7-stone);
	border-radius: 0;
	transition: border-color .15s, box-shadow .15s;
}
.l7-form input:focus,
.l7-form textarea:focus {
	outline: none;
	border-color: var(--l7-green);
	box-shadow: 0 0 0 3px rgba(51, 204, 51, .2);
}
.l7-form .l7-btn { justify-self: start; padding: 16px 36px; }
.l7-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l7-form__notice { margin: 0; padding: 12px 16px; font-weight: 500; }
.l7-form__notice--ok { background: #e7f8e7; color: #146614; }
.l7-form__notice--err { background: #fdecea; color: #a12622; }
@media (max-width: 560px) {
	.l7-form__row { grid-template-columns: 1fr; }
	.l7-form .l7-btn { justify-self: stretch; }
}

/* ---------- Helpers used by the Elementor pages ---------- */
/* Small uppercase label above headings: add class "l7-eyebrow" to a Heading widget. */
.l7-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.l7-eyebrow .elementor-heading-title::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}
.l7-eyebrow.elementor-align-center .elementor-heading-title::before,
.l7-eyebrow--center .elementor-heading-title::before { display: none; }

/* Program cards: add class "l7-card" to a container. */
.l7-card {
	transition: transform .25s ease, box-shadow .25s ease;
}
.l7-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px rgba(15, 23, 18, .14);
}
.l7-card .elementor-widget-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* Image with offset green frame: add class "l7-framed" to an Image widget. */
.l7-framed .elementor-widget-container { position: relative; }
.l7-framed .elementor-widget-container::before {
	content: "";
	position: absolute;
	inset: 24px -24px -24px 24px;
	border: 3px solid var(--l7-green);
	z-index: -1;
}
.l7-framed { z-index: 1; }
@media (max-width: 767px) {
	.l7-framed .elementor-widget-container::before { inset: 14px -14px -14px 14px; }
}

/* Virtue chips on the dark band: add class "l7-chips" to a Text Editor widget. */
.l7-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}
.l7-chips li {
	margin: 0 !important;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, .25);
	font: 700 18px/1 var(--l7-font-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--l7-white);
}
.l7-chips li:nth-child(odd) { border-color: var(--l7-green); }

/* Tick lists in text editor: add class "l7-ticks". */
.l7-ticks ul { list-style: none; padding: 0 !important; margin: 0; }
.l7-ticks li { position: relative; padding-left: 28px; }
.l7-ticks li + li { margin-top: 10px; }
.l7-ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--l7-green);
	border-bottom: 2px solid var(--l7-green);
	transform: rotate(-45deg);
}

/* Big quote mark on testimonials: add class "l7-quote" to a Testimonial widget. */
.l7-quote .elementor-testimonial-content::before {
	content: "\201C";
	display: block;
	height: 48px;
	font: 700 88px/1 var(--l7-font-display);
	color: var(--l7-green);
}

.elementor-widget-text-editor ul { padding-left: 1.2em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Non-Elementor pages (blog, shop, cart, checkout) ---------- */
.site-main:not(.elementor) {
	max-width: var(--l7-wrap);
	margin: 0 auto;
	padding: 56px 24px 80px;
}
.page-header .entry-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
	font: 700 clamp(36px, 5vw, 56px)/1.02 var(--l7-font-display);
	text-transform: uppercase;
	color: var(--l7-ink);
}
.woocommerce-products-header { margin-bottom: 32px; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product {
	background: var(--l7-white);
	border: 1px solid var(--l7-stone);
	padding: 0 0 20px !important;
	transition: box-shadow .2s, transform .2s;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(15, 23, 18, .12);
}
.woocommerce ul.products li.product a img {
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--l7-paper);
	margin-bottom: 16px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 20px !important;
	font: 700 22px/1.1 var(--l7-font-display) !important;
	text-transform: uppercase;
	color: var(--l7-ink);
}
.woocommerce ul.products li.product .price {
	padding: 0 20px;
	color: var(--l7-green-dark) !important;
	font: 600 16px/1 var(--l7-font-body);
}
.woocommerce ul.products li.product .button { margin: 12px 20px 0 !important; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--l7-green-dark);
	font-weight: 600;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--l7-green) !important;
	color: var(--l7-ink) !important;
	border-radius: 0 !important;
	font: 600 13px/1 var(--l7-font-body) !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 14px 22px !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--l7-optic) !important;
}
.woocommerce span.onsale { background: var(--l7-green); color: var(--l7-ink); }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--l7-green); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--l7-green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--l7-white); }
.woocommerce div.product form.cart .variations select {
	padding: 10px 12px;
	border: 1px solid var(--l7-stone);
}

/* Hide decorative columns on smaller screens: add class "l7-hide-mobile" to a container. */
@media (max-width: 1024px) {
	.l7-hide-mobile { display: none !important; }
}

/* ---------- Specificity guard ----------
   Elementor's Site Settings style every link (.elementor-kit-N a). Keep the
   theme's header/footer/button colours on top of that. */
body .l7-header a.l7-btn,
body .l7-footer a.l7-btn,
body .l7-form .l7-btn { color: var(--l7-ink); }
body .l7-header .l7-menu a { color: rgba(255, 255, 255, .88); }
body .l7-header .l7-menu a:hover,
body .l7-header .l7-menu .current-menu-item > a,
body .l7-header .l7-menu .current-menu-ancestor > a { color: var(--l7-white); }
body .l7-header .l7-menu .sub-menu a { color: var(--l7-text); }
body .l7-header .l7-menu .sub-menu a:hover { color: var(--l7-ink); }
body .l7-header .l7-brand__name,
body .l7-header .l7-cart { color: var(--l7-white); }
body .l7-footer a { color: rgba(255, 255, 255, .85); }
body .l7-footer a:hover { color: var(--l7-green); }
body .l7-footer .l7-social a { color: var(--l7-white); }
body .l7-footer .l7-social a:hover { color: var(--l7-ink); }
@media (max-width: 1100px) {
	body .l7-header .l7-menu .sub-menu a { color: rgba(255, 255, 255, .7); }
	body .l7-header .l7-menu .sub-menu a:hover { color: var(--l7-green); }
}

/* Uniform crops for Elementor's Basic Gallery. */
.elementor-image-gallery .gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s ease, filter .4s ease;
}
.elementor-image-gallery .gallery-icon { overflow: hidden; }
.elementor-image-gallery .gallery-item:hover img { transform: scale(1.04); }

/* Links inside the dark contact card. */
.l7-contact-card a { color: var(--l7-white) !important; }
.l7-contact-card a:hover { color: var(--l7-green) !important; }

/* Elementor's Site Settings style every <button>; keep the menu toggle plain. */
body .l7-header .l7-nav-toggle,
body .l7-header .l7-nav-toggle:hover,
body .l7-header .l7-nav-toggle:focus {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Product description tabs. */
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin: 28px 0 10px;
	font: 700 26px/1.1 var(--l7-font-display);
	text-transform: uppercase;
	color: var(--l7-ink);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--l7-paper);
	border-color: var(--l7-stone);
	border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--l7-white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 600; color: var(--l7-ink); }
.woocommerce div.product form.cart .variations { background: var(--l7-paper); padding: 8px 16px; }
