/**
 * Pickleball for 2032 — campaign landing page.
 *
 * Tokens and component shapes follow the child theme design system
 * (see DESIGN.md): brand blue #0075E7, black surfaces, pill buttons,
 * Pickler Social with the condensed black cut for hero type.
 *
 * Date Created: 08272026
 */

/* ─── FONTS ────────────────────────────────────────────── */
@font-face {
	font-family: 'Pickler Social';
	src: url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Regular-1.woff2') format('woff2'),
		 url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Regular-1.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pickler Social';
	src: url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Medium-1.woff2') format('woff2'),
		 url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Medium-1.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pickler Social';
	src: url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Bold-1.woff2') format('woff2'),
		 url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocial-Bold-1.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Pickler Social Condensed';
	src: url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocialCondensed-Black.woff2') format('woff2'),
		 url('https://thepicklr.com/wp-content/uploads/2025/01/PicklrSocialCondensed-Black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* ─── TOKENS ───────────────────────────────────────────── */
.p2032 {
	--p2032-black: #000000;
	--p2032-ink: #0a0f14;
	--p2032-navy: #111f25;
	--p2032-blue: #0075E7;
	--p2032-blue-dark: #0063c7;
	--p2032-blue-soft: rgba(0, 117, 231, 0.16);
	--p2032-white: #ffffff;
	--p2032-offwhite: #F4F6F8;
	--p2032-muted: #667085;
	--p2032-border: #e2e8f0;
	--p2032-radius: 10px;
	--p2032-radius-lg: 18px;

	/* The site ships the condensed black cut as "Picklr Social Condensed" and the
	   body face as "Pickler Social" — the spellings genuinely differ. List both. */
	--p2032-font: 'Pickler Social', 'Picklr Social', 'Montserrat', 'Inter', sans-serif;
	--p2032-font-condensed: 'Picklr Social Condensed', 'Pickler Social Condensed', 'Pickler Social', 'Montserrat', sans-serif;

	font-family: var(--p2032-font);
	color: var(--p2032-black);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

.p2032 *,
.p2032 *::before,
.p2032 *::after { box-sizing: border-box; }

.p2032 img { max-width: 100%; display: block; }

.p2032-container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.p2032-container--narrow {
	max-width: 820px;
	/* Also used standalone as an Elementor container class, so it has to centre
	   itself rather than relying on .p2032-container. */
	margin-left: auto;
	margin-right: auto;
}

/* ─── HERO ─────────────────────────────────────────────── */
.p2032-hero {
	position: relative;
	background: var(--p2032-black);
	color: var(--p2032-white);
	/* Generous top padding clears the site's floating fixed nav. */
	padding: 132px 0 88px;
	overflow: hidden;
	isolation: isolate;
}

/* Optional photographic background, sits under the wash. */
.p2032-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.4;
	z-index: -2;
}

/* Court-blue glow reading up from the lower left, as on the printed wall. */
.p2032-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 90% at 12% 88%, rgba(0, 117, 231, 0.55) 0%, rgba(0, 117, 231, 0) 58%),
		radial-gradient(80% 70% at 88% 4%, rgba(0, 117, 231, 0.28) 0%, rgba(0, 117, 231, 0) 60%),
		linear-gradient(180deg, #05070a 0%, #000000 100%);
}

.p2032-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--p2032-blue);
	margin: 0 0 20px;
}

.p2032 .p2032-hero__title {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(52px, 7.4vw, 106px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0 0 24px;
	color: var(--p2032-white);
}

.p2032 .p2032-hero__title em {
	font-style: normal;
	color: var(--p2032-blue);
}

.p2032-hero__tagline {
	font-size: clamp(20px, 3.2vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 20px;
	max-width: 18ch;
}

.p2032-hero__body {
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 12px;
	max-width: 54ch;
}

.p2032-hero__body strong { color: var(--p2032-white); font-weight: 700; }

/* On the PHP template this is the grid. On the Elementor build the container's
   own flex settings drive the split, so these are written to lose gracefully. */
.p2032-hero__grid:not(.e-con) {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: start;
}

/* ─── LIVE COUNTER ─────────────────────────────────────── */
.p2032-live {
	/* inline-flex so the badge hugs its content instead of stretching across the
	   hero column and leaving a large empty panel beside a short number. */
	display: inline-flex;
	max-width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 36px 0 0;
	padding: 22px 28px;
	border: 1px solid rgba(0, 117, 231, 0.45);
	border-radius: var(--p2032-radius-lg);
	background: linear-gradient(180deg, rgba(0, 117, 231, 0.16) 0%, rgba(0, 117, 231, 0.04) 100%);
}

/* Sits inside the label as a flex item, so it stays aligned with the text
   however many lines that text wraps to. */
.p2032-live__pulse {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--p2032-blue);
	box-shadow: 0 0 0 0 rgba(0, 117, 231, 0.7);
	animation: p2032-pulse 2.4s ease-out infinite;
}

@keyframes p2032-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0, 117, 231, 0.65); }
	70%  { box-shadow: 0 0 0 14px rgba(0, 117, 231, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 117, 231, 0); }
}

.p2032 .p2032-live__num {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(40px, 5.2vw, 64px);
	line-height: 1;
	color: var(--p2032-white);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.p2032-live__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(12px, 1.4vw, 16px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--p2032-blue);
	line-height: 1.35;
}

/* Counter at zero: the number is meaningless, so the label carries the message
   on its own and steps up a size to hold the badge. */
.p2032-live.is-zero .p2032-live__num { display: none; }

.p2032-live.is-zero .p2032-live__label {
	font-size: clamp(14px, 1.7vw, 20px);
	letter-spacing: 0.1em;
}

/* ─── FORM CARD ────────────────────────────────────────── */
.p2032-formcard {
	/* The in-page CTA jumps here; leave room for the floating fixed nav. */
	scroll-margin-top: 120px;
	background: var(--p2032-white);
	border-radius: var(--p2032-radius-lg);
	padding: 32px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	color: var(--p2032-black);
}

.p2032 .p2032-formcard__heading {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 6px;
}

.p2032-formcard__sub {
	font-size: 15px;
	color: var(--p2032-muted);
	margin: 0 0 22px;
}

.p2032-formcard__note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--p2032-muted);
	margin: 16px 0 0;
	text-align: center;
}

.p2032-formcard__returning {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: var(--p2032-radius);
	background: var(--p2032-blue-soft);
	color: var(--p2032-blue-dark);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

/* ─── GRAVITY FORMS OVERRIDES ──────────────────────────── */
.p2032 .gform_wrapper.gravity-theme .gform_fields {
	grid-row-gap: 14px;
}

.p2032 .gform_wrapper.gravity-theme .gfield_label { /* hidden labels stay for screen readers */ }

/* GF renders a live "0 of 40 max characters" counter under any field with a
   maxlength. The limits are a spam guard, not something to show the supporter. */
.p2032 .gform_wrapper .ginput_counter,
.p2032 .gform_wrapper .charleft,
.p2032 .gform_wrapper .gfield_description.charleft {
	display: none !important;
}

.p2032 .gform_wrapper.gravity-theme input[type="text"] {
	width: 100%;
	padding: 16px 18px;
	font-family: inherit;
	font-size: 17px; /* >=16px so iOS does not zoom on focus */
	line-height: 1.3;
	color: var(--p2032-black);
	background: var(--p2032-offwhite);
	border: 1.5px solid var(--p2032-border);
	border-radius: var(--p2032-radius);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.p2032 .gform_wrapper.gravity-theme input[type="text"]::placeholder {
	color: #98a2b3;
	opacity: 1;
}

.p2032 .gform_wrapper.gravity-theme input[type="text"]:focus {
	outline: none;
	background: var(--p2032-white);
	border-color: var(--p2032-blue);
	box-shadow: 0 0 0 4px var(--p2032-blue-soft);
}

.p2032 .gform_wrapper.gravity-theme .gform_footer {
	padding: 18px 0 0;
	margin: 0;
}

.p2032 .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.p2032 .gform_wrapper .gform_footer input.gform_button,
.p2032 .gform_wrapper .gform_footer button.gform_button,
.p2032 .gform_wrapper .gform_footer button[type="submit"] {
	width: 100%;
	padding: 19px 28px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--p2032-white) !important;
	background: var(--p2032-blue) !important;
	border: 0 !important;
	border-radius: 100px !important;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.p2032 .gform_wrapper .gform_footer input[type="submit"]:hover,
.p2032 .gform_wrapper .gform_footer button.gform_button:hover,
.p2032 .gform_wrapper .gform_footer button[type="submit"]:hover {
	background: var(--p2032-blue-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 117, 231, 0.35);
}

.p2032 .gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.p2032 .gform_wrapper .gform_footer button.gform_button:focus-visible,
.p2032 .gform_wrapper .gform_footer button[type="submit"]:focus-visible {
	outline: 3px solid var(--p2032-blue);
	outline-offset: 3px;
}

/* Validation */
.p2032 .gform_wrapper.gravity-theme .gfield_error input[type="text"] {
	border-color: #c92a2a;
	background: #fff5f5;
}

.p2032 .gform_wrapper.gravity-theme .gfield_validation_message,
.p2032 .gform_wrapper.gravity-theme .validation_message {
	background: transparent;
	border: 0;
	padding: 6px 0 0;
	font-size: 14px;
	color: #c92a2a;
}

.p2032 .gform_wrapper.gravity-theme .gform_validation_errors {
	border-radius: var(--p2032-radius);
	border: 1.5px solid #ffc9c9;
	background: #fff5f5;
	box-shadow: none;
	padding: 14px 16px;
	margin: 0 0 18px;
}

.p2032 .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
	font-size: 15px;
	color: #c92a2a;
	margin: 0;
}

.p2032 .gform_wrapper .gform_ajax_spinner {
	margin-left: 12px;
	vertical-align: middle;
}

/* Belt and braces: the honeypot must never be visible. */
.p2032 .gform_wrapper .gform_validation_container,
.p2032 .gform_wrapper .gfield--type-honeypot {
	position: absolute !important;
	left: -9999px !important;
}

/* ─── THE FIRST GOAL ───────────────────────────────────── */
.p2032-goal {
	background: var(--p2032-offwhite);
	padding: 96px 0;
	text-align: center;
}

.p2032 .p2032-goal__title {
	text-align: center;
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(40px, 7vw, 76px);
	line-height: 0.95;
	text-transform: uppercase;
	margin: 0 0 16px;
	color: var(--p2032-black);
}

.p2032 .p2032-goal__title em {
	font-style: normal;
	color: var(--p2032-blue);
}

.p2032-goal__lead {
	text-align: center;
	font-size: clamp(17px, 2.2vw, 20px);
	color: #344054;
	margin: 0 auto 40px;
	max-width: 46ch;
}

/* ─── PROGRESS BAR ─────────────────────────────────────── */
.p2032-progress {
	max-width: 780px;
	margin: 0 auto;
	/* Explicit rather than inherited from .p2032-goal — Elementor's shortcode
	   widget does not pass text-align through to the rendered shortcode. */
	text-align: center;
}

.p2032-progress__track {
	position: relative;
	height: 26px;
	border-radius: 100px;
	background: #dfe5ec;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.p2032-progress__fill {
	height: 100%;
	width: 0;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--p2032-blue-dark) 0%, var(--p2032-blue) 100%);
	transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
	min-width: 6px;
}

.p2032-progress.is-reached .p2032-progress__fill {
	background: linear-gradient(90deg, #0063c7 0%, #00a15c 100%);
}

.p2032 .p2032-progress__figures {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(28px, 5vw, 46px);
	line-height: 1.1;
	text-transform: uppercase;
	margin: 22px 0 4px;
	font-variant-numeric: tabular-nums;
}

.p2032-progress__figures strong { color: var(--p2032-blue); font-weight: inherit; }
.p2032-progress__sep { color: #98a2b3; margin: 0 4px; }
.p2032-progress__word { color: var(--p2032-black); }

.p2032-progress__remaining {
	font-size: 15px;
	color: var(--p2032-muted);
	margin: 0;
}

.p2032-progress__remaining strong { color: var(--p2032-black); }

/* ─── WHY 2032 ─────────────────────────────────────────── */
.p2032-why {
	background: var(--p2032-white);
	padding: 96px 0;
}

.p2032 .p2032-why__title {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(40px, 6vw, 64px);
	line-height: 0.98;
	text-transform: uppercase;
	margin: 0 0 28px;
}

.p2032-why p {
	font-size: clamp(17px, 2vw, 19px);
	line-height: 1.7;
	color: var(--p2032-black);
	margin: 0 0 20px;
}

.p2032-why__kicker {
	font-weight: 700;
	font-size: clamp(20px, 2.6vw, 26px) !important;
	margin-top: 32px !important;
}

.p2032 .p2032-why__kicker em { font-style: normal; color: var(--p2032-blue); }

.p2032-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 17px 40px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--p2032-white);
	background: var(--p2032-black);
	border-radius: 100px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.p2032-btn:hover {
	background: var(--p2032-blue);
	color: var(--p2032-white);
	transform: translateY(-2px);
}

/* The CTA is an anchor inside a Text Editor widget, so Elementor's global link
   colour wins on specificity without this. */
.p2032 a.p2032-btn,
.p2032 a.p2032-btn:visited {
	color: var(--p2032-white);
}

.p2032 a.p2032-btn:hover,
.p2032 a.p2032-btn:focus {
	color: var(--p2032-white);
}

/* ─── CONFIRMATION / SHARE ─────────────────────────────── */
.p2032-thanks { text-align: center; outline: none; }

.p2032 .p2032-thanks__title {
	font-family: var(--p2032-font-condensed);
	font-weight: 900;
	font-size: clamp(46px, 9vw, 72px);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--p2032-blue);
	margin: 0 0 8px;
}

.p2032-thanks__lead {
	font-size: 18px;
	font-weight: 700;
	color: var(--p2032-black);
	margin: 0 0 24px;
}

.p2032-share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.p2032-share__btn {
	flex: 1 1 132px;
	padding: 14px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: var(--p2032-black);
	background: var(--p2032-offwhite);
	border: 1.5px solid var(--p2032-border);
	border-radius: 100px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.p2032-share__btn:hover {
	background: var(--p2032-blue);
	border-color: var(--p2032-blue);
	color: var(--p2032-white);
	transform: translateY(-2px);
}

.p2032-share__btn:focus-visible {
	outline: 3px solid var(--p2032-blue);
	outline-offset: 2px;
}

.p2032-share__note {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--p2032-blue);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.p2032-hero__grid { gap: 40px; }
}

@media (max-width: 900px) {
	.p2032-hero { padding: 116px 0 64px; }
	.p2032-hero__grid:not(.e-con) { grid-template-columns: 1fr; gap: 36px; }

	/* Elementor build: force the two hero columns to stack regardless of the
	   container's responsive settings. A boxed container puts its flex layout on
	   the inner wrapper, so that is what has to switch direction. */
	.p2032 .p2032-hero__grid.e-con,
	.p2032 .p2032-hero__grid.e-con > .e-con-inner { flex-direction: column !important; }
	.p2032 .p2032-hero__col.e-con { width: 100% !important; max-width: 100% !important; }
	.p2032-hero__tagline { max-width: none; }
	.p2032-goal,
	.p2032-why { padding: 64px 0; }
}

@media (max-width: 600px) {
	.p2032-container { padding: 0 20px; }
	.p2032-hero { padding: 104px 0 56px; }
	.p2032-hero__title { line-height: 0.9; }
	.p2032-live { padding: 20px 22px; width: 100%; }
	.p2032-live__pulse { top: 16px; right: 16px; }
	.p2032-formcard { padding: 24px 20px; }
	.p2032-goal,
	.p2032-why { padding: 56px 0; }
	.p2032-progress__track { height: 20px; }
	.p2032-share__btn { flex: 1 1 calc(50% - 5px); }
}

@media (prefers-reduced-motion: reduce) {
	.p2032 *,
	.p2032 *::before,
	.p2032 *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}


/* ─── ELEMENTOR BUILD COMPAT ───────────────────────────── */
/*
 * Elementor puts a widget's CSS classes on the widget WRAPPER, not on the
 * heading or paragraph inside it. Elementor's global kit styles target that
 * inner `.elementor-heading-title` directly, so they beat anything inherited
 * from the wrapper. Handing the inner element `font`/`color: inherit` lets the
 * campaign styles on the wrapper flow through without duplicating every value.
 */
.p2032 .p2032-eyebrow .elementor-heading-title,
.p2032 .p2032-hero__title .elementor-heading-title,
.p2032 .p2032-hero__tagline .elementor-heading-title,
.p2032 .p2032-why__title .elementor-heading-title,
.p2032 .p2032-goal__title .elementor-heading-title {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	margin: 0;
}

/* The em inside the hero and goal headings keeps its accent colour. */
.p2032 .p2032-hero__title .elementor-heading-title em,
.p2032 .p2032-goal__title .elementor-heading-title em {
	font-style: normal;
	color: var(--p2032-blue);
}

/* Text Editor widgets wrap their content; strip the default bottom margin so
   the campaign spacing rules stay in charge. */
.p2032 .elementor-widget-text-editor .elementor-widget-container > *:last-child {
	margin-bottom: 0;
}

/* Elementor's boxed container adds an inner wrapper that carries the flex
   layout — the hero columns live in there. */
.p2032 .p2032-hero__grid.e-con > .e-con-inner {
	align-items: flex-start;
}

/* Flex items default to min-width:auto, which stops the hero copy column from
   shrinking and lets the oversized headline spill under the form card. */
.p2032 .p2032-hero__col.e-con {
	min-width: 0;
}

.p2032 .p2032-hero__title,
.p2032 .p2032-hero__title .elementor-heading-title {
	overflow-wrap: break-word;
}
