/*
Theme Name: The Clubhouse Indoor Golf
Theme URI: https://pixelgr.com/
Template: pixelgr-base
Author: PixelGR LLC
Author URI: https://pixelgr.com/
Description: Starter child theme for PixelGR Base. Rename this folder and the Theme Name per client, set the tokens below, and you have a reskinned site. Everything in the parent resolves from these custom properties, so a token change here reskins every page without touching a template.
Version: 1.0.11
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clubhouse-child
*/

/* ==========================================================================
   HOW THIS FILE WORKS

   The parent enqueues its stylesheets in this order:

     tokens.css  ->  base.css  ->  components.css  ->  THIS FILE

   So anything you redefine here wins, with no !important and no specificity
   games. You are not overriding rules, you are redefining the variables those
   rules already read.

   Most client work is the :root block below and nothing else. Reach for the
   component overrides at the bottom only when a token genuinely cannot
   express what the design needs.

   Do not copy the parent's full token list in here. Redefine only what
   changes, so a parent update still reaches this site.
   ========================================================================== */

:root {

	/* --- Color ------------------------------------------------------------
	   Check contrast before shipping. The parent's defaults clear WCAG AAA
	   for body text and AA for large text, and nothing enforces that once you
	   change them.
	   --------------------------------------------------------------------- */

	--pxgr-color-primary: #2C7A1C;
	--pxgr-color-primary-hover: #1E5A12;
	--pxgr-color-accent: #2C7A1C;
	/* --pxgr-color-ink: #0a0c10; */
	/* --pxgr-color-ink-muted: #3d4350; */
	/* --pxgr-color-surface: #ffffff; */
	/* --pxgr-color-surface-alt: #f2f4f7; */
	--pxgr-color-surface-dark: #141414;
	/* --pxgr-color-on-dark: #ffffff; */
	/* --pxgr-color-border: #d3d8e0; */

	/* Deliberately off-brand so focus is never subtle. Change the hue if it
	   clashes, but keep it loud. */
	--pxgr-color-focus: #C2410C;

	/* --- Type -------------------------------------------------------------
	   Enqueue the webfont in functions.php first, then name it here.
	   --------------------------------------------------------------------- */

	/* --pxgr-font-display: "Your Display Face", system-ui, sans-serif; */
	/* --pxgr-font-body: "Your Body Face", system-ui, sans-serif; */
	/* --pxgr-tracking-tight: -0.02em; */
	/* --pxgr-leading-tight: 1.1; */

	/* --- Shape and depth ---------------------------------------------------
	   The Customizer's Brand panel also sets these. Values here win, which is
	   what you want for a client with a fixed design, and not what you want
	   if they expect to change it themselves.
	   --------------------------------------------------------------------- */

	/* --pxgr-radius-sm: 0; */
	/* --pxgr-radius-md: 0; */
	/* --pxgr-radius-lg: 0; */
	/* --pxgr-shadow-sm: none; */
	/* --pxgr-shadow-md: none; */
	/* --pxgr-shadow-lg: none; */

	/* --- Layout ------------------------------------------------------------ */

	/* --pxgr-container: 1200px; */
	/* --pxgr-gutter: 24px; */
	/* --pxgr-header-height: 80px; */
}

/* ==========================================================================
   COMPONENT OVERRIDES

   For the cases a token cannot express. Namespace anything new as .cl-* so it
   never collides with the parent's .pxgr-* layer or a future parent release.

   Never write `outline: none` here. It is the single most common finding in
   an accessibility audit, and the parent ships conformant specifically so
   that you do not have to remediate later.
   ========================================================================== */

/* --- Header: phone button and Book a Tee Time ---------------------------- */

.pxgr-header .pxgr-nav { margin-left: auto; }
.cl-header-phone { order: 2; }
.pxgr-header-cta { order: 3; }

.cl-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pxgr-target-comfortable, 44px);
	padding: 8px 16px;
	margin-left: var(--pxgr-space-3, 12px);
	color: var(--pxgr-color-primary);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	border: 2px solid var(--pxgr-color-primary);
	border-radius: var(--pxgr-radius-sm, 6px);
	transition: background-color var(--pxgr-transition, .2s), color var(--pxgr-transition, .2s);
}

.cl-header-phone:hover,
.cl-header-phone:focus-visible {
	background: var(--pxgr-color-primary);
	color: #fff;
}

.pxgr-header-cta {
	margin-left: var(--pxgr-space-2, 8px);
	white-space: nowrap;
}

@media (max-width: 1200px) {
	.cl-header-phone-text { display: none; }
	.cl-header-phone { padding: 0; width: var(--pxgr-target-comfortable, 44px); justify-content: center; }
}

@media (max-width: 960px) {
	.cl-header-phone { order: 1; margin-left: auto; }
	.pxgr-header-cta { order: 2; }
}

/* Phones: logo, phone and menu on one row, a full-width Book a Tee Time button below.
   The header height token matches the two rows so the sticky header offset stays right. */
@media (max-width: 600px) {
	:root { --pxgr-header-height: 112px; }
	.pxgr-header .pxgr-header-inner { column-gap: 8px; row-gap: 8px; }
	.pxgr-header .pxgr-branding img { max-height: 44px; }
	.cl-header-phone { flex: 0 0 var(--pxgr-target-comfortable, 44px); height: var(--pxgr-target-comfortable, 44px); }
	.pxgr-header .pxgr-nav-toggle { order: 2; }
	.pxgr-header .pxgr-header-cta { order: 3; flex: 1 0 100%; justify-content: center; margin-left: 0; }
}

.pxgr-header .pxgr-container { max-width: 1440px; }

/* Footer in Clubhouse green: the footer reads surface-dark, so redefine it for the footer only. */
.pxgr-footer { --pxgr-color-surface-dark: var(--pxgr-color-primary); }

/* --- Footer: green widget columns, dark green copyright bar ------------- */

.pxgr-footer-bar { background: var(--pxgr-color-primary-hover); }
.pxgr-footer .pxgr-widget p { margin: 0 0 12px; }
.cl-footer-hours li { padding-block: 4px; }
.cl-footer-hours li span:first-child { display: block; font-weight: 700; }
.cl-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.cl-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; border: 2px solid var(--pxgr-color-on-dark); border-radius: 50%; color: var(--pxgr-color-on-dark); transition: background-color var(--pxgr-transition, .2s), color var(--pxgr-transition, .2s); }
.cl-footer-social a:hover, .cl-footer-social a:focus-visible { background: var(--pxgr-color-on-dark); color: var(--pxgr-color-primary); }



/* Menu items never wrap. Spacing tightens as the screen narrows. */
.pxgr-header .pxgr-menu-link { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1440px) {
	.pxgr-header .pxgr-menu { gap: 0; }
	.pxgr-header .pxgr-menu-link { padding-inline: 10px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
	.pxgr-header .pxgr-menu-link { padding-inline: 6px; font-size: 15px; }
	.pxgr-header .pxgr-header-cta { padding-inline: 14px; }
}

/* Footer Quick Links on phones: two columns with full-size tap areas. */
@media (max-width: 600px) {
	.pxgr-footer .widget_nav_menu .menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.pxgr-footer .widget_nav_menu .menu a { display: inline-flex; align-items: center; min-height: var(--pxgr-target-comfortable, 44px); }
}

/* Footer link lists (Visit Us): full-size tap areas. */
.cl-footer-links { list-style: none; margin: 0; padding: 0; }
.cl-footer-links a { display: inline-flex; align-items: center; min-height: var(--pxgr-target-comfortable, 44px); }
