/* Jammy Contact v1.0.2
 * Everything is scoped under .jc so it cannot leak into the theme.
 * Desktop layout is the default; the compact phone layout lives in the
 * max-width: 767px block at the bottom.
 */

.jc {
	--jc-red: #E3243B;
	--jc-red-d: #C41E30;
	--jc-black: #1a1a1a;
	--jc-gold: #FFC629;
	--jc-blue: #0A5FE0;
	--jc-grey: #4a4a4a;
	--jc-display: 'Luckiest Guy', 'Baloo 2', cursive;
	--jc-body: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;

	background: #f4f4f4;
	color: var(--jc-black);
	font-family: var(--jc-body);
	font-size: 18px;
	line-height: 1.35;
	text-align: left;
	padding-bottom: 56px;
	overflow-x: clip;
}

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

/* Edge to edge even when the theme's content column is narrower.
 * --jc-vw is set by contact.js to the real viewport width (minus scrollbar). */
.jc--bleed {
	width: var(--jc-vw, 100%);
	max-width: none;
	margin-left: calc(50% - var(--jc-vw, 100%) / 2);
}

.jc p,
.jc h1,
.jc h2 {
	margin: 0;
	padding: 0;
}

.jc .jc-display {
	font-family: var(--jc-display);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: none;
}

.jc svg {
	display: block;
}

.jc .jc-only-mobile {
	display: none !important;
}

/* ---------- Hero ---------- */

.jc-hero {
	position: relative;
	overflow: hidden;
	background: var(--jc-red);
	padding: 72px 24px 136px;
	text-align: center;
}

.jc-splat {
	position: absolute;
	fill: var(--jc-red-d);
}

.jc-splat--a { left: -40px; top: -50px; width: 300px; height: 300px; }
.jc-splat--b { right: -60px; bottom: -40px; width: 340px; height: 340px; }
.jc-splat--c { right: 14%; top: 40px; width: 70px; height: 70px; fill: var(--jc-gold); }
.jc-splat--d { left: 12%; bottom: 96px; width: 54px; height: 54px; fill: var(--jc-gold); }

.jc-hero__inner {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.jc-tag {
	background: var(--jc-black);
	color: var(--jc-gold);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 999px;
}

.jc .jc-hero__title {
	font-size: clamp(56px, 8.4vw, 108px);
	line-height: 0.98;
	color: #fff;
	text-shadow: 0 6px 0 var(--jc-black);
}

.jc .jc-hero__sub {
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 600;
	color: #fff;
	max-width: 620px;
}

/* ---------- Desktop cards ---------- */

.jc-cards {
	position: relative;
	max-width: 1120px;
	margin: -80px auto 0;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
}

.jc-card {
	flex: 1 1 290px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 30px;
	border: 4px solid var(--jc-black);
	border-radius: 28px;
	box-shadow: 0 8px 0 var(--jc-black);
}

.jc-card--gold { background: var(--jc-gold); color: var(--jc-black); transform: rotate(-1.5deg); }
.jc-card--blue { background: var(--jc-blue); color: #fff; transform: rotate(1deg); }
.jc-card--white { background: #fff; color: var(--jc-black); transform: rotate(-0.8deg); }

.jc-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jc-card__icon svg { width: 32px; height: 32px; }

.jc-card--gold .jc-card__icon { background: var(--jc-black); color: var(--jc-gold); }
.jc-card--blue .jc-card__icon { background: #fff; color: var(--jc-blue); }
.jc-card--white .jc-card__icon { background: var(--jc-red); color: #fff; }

.jc .jc-card__title {
	font-size: 34px;
	margin-top: 6px;
	color: inherit;
}

.jc .jc-card__text {
	font-size: 18px;
	font-weight: 600;
	color: inherit;
}

.jc-card__value {
	font-size: 24px;
	font-weight: 800;
	overflow-wrap: anywhere;
	margin-bottom: 10px;
}

.jc a.jc-pill {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.12s ease;
}

.jc a.jc-pill:hover,
.jc a.jc-pill:focus-visible {
	transform: translateY(-2px);
}

.jc .jc-card--gold a.jc-pill { background: var(--jc-black); color: #fff; }
.jc .jc-card--blue a.jc-pill { background: #fff; color: var(--jc-black); }
.jc .jc-card--white a.jc-pill { background: var(--jc-red-d); color: #fff; }

/* ---------- Form + side column ---------- */

.jc-main {
	max-width: 1120px;
	margin: 72px auto 0;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px;
}

.jc-formcard {
	flex: 999 1 480px;
	min-width: 0;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.12);
	padding: 44px;
	scroll-margin-top: 120px;
}

.jc-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.jc-form__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jc .jc-form__title {
	font-size: 44px;
	color: var(--jc-red-d);
}

.jc .jc-form__sub {
	font-size: 18px;
	font-weight: 600;
	color: var(--jc-grey);
}

.jc-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.jc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jc-fields .jc-field {
	flex: 1 1 220px;
}

.jc .jc-label {
	font-size: 17px;
	font-weight: 800;
	color: var(--jc-black);
	margin: 0;
}

.jc .jc-input {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 3px solid var(--jc-black);
	border-radius: 16px;
	background: #fff;
	color: var(--jc-black);
	font-family: var(--jc-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
}

.jc .jc-select {
	padding: 0 12px;
}

.jc .jc-textarea {
	height: auto;
	min-height: 150px;
	padding: 14px 16px;
	resize: vertical;
}

.jc .jc-input:focus {
	border-color: var(--jc-red-d);
	box-shadow: 0 0 0 4px rgba(227, 36, 59, 0.22);
}

.jc .jc-input.jc-input--bad {
	border-color: var(--jc-red-d);
	background: #fff3f4;
}

.jc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jc .jc-error {
	background: #fff3f4;
	border: 3px solid var(--jc-red-d);
	border-radius: 16px;
	padding: 12px 16px;
	font-size: 17px;
	font-weight: 700;
	color: #8f1422;
}

.jc [hidden] {
	display: none !important;
}

.jc button.jc-submit {
	align-self: flex-start;
	min-height: 60px;
	padding: 0 40px;
	border: 0;
	border-radius: 999px;
	background: var(--jc-red-d);
	color: #fff;
	font-size: 26px;
	box-shadow: 0 6px 0 var(--jc-black);
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.jc button.jc-submit:hover,
.jc button.jc-submit:focus-visible {
	background: var(--jc-red-d);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 0 var(--jc-black);
}

.jc button.jc-submit:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 var(--jc-black);
}

.jc button.jc-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.jc-success {
	display: flex;
	flex-direction: column;
	gap: 10px;
	outline: none;
}

.jc .jc-success__text {
	font-size: 20px;
	font-weight: 600;
}

.jc-side {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.jc-hours {
	background: var(--jc-gold);
	border-radius: 28px;
	padding: 26px 30px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jc .jc-hours__title { font-size: 26px; color: var(--jc-black); }
.jc .jc-hours__main { font-size: 24px; font-weight: 800; color: var(--jc-black); }
.jc .jc-hours__sub { font-size: 17px; font-weight: 600; color: var(--jc-black); }

/* ---------- Phone layout ---------- */

@media (max-width: 767px) {

	.jc {
		padding-bottom: 28px;
	}

	.jc .jc-only-desktop {
		display: none !important;
	}

	.jc p.jc-only-mobile,
	.jc section.jc-only-mobile {
		display: block !important;
	}

	.jc span.jc-only-mobile {
		display: inline !important;
	}

	.jc section.jc-rows.jc-only-mobile {
		display: flex !important;
	}

	.jc-hero {
		padding: 30px 20px 66px;
	}

	.jc-splat--a { left: -50px; top: -50px; width: 170px; height: 170px; }
	.jc-splat--b { right: -60px; bottom: -50px; width: 190px; height: 190px; }
	.jc-splat--c { right: 26px; top: 18px; width: 38px; height: 38px; }
	.jc .jc-splat--d { display: none; }

	.jc-hero__inner {
		gap: 10px;
	}

	.jc-tag {
		font-size: 13px;
		padding: 4px 14px;
	}

	.jc .jc-hero__title {
		font-size: 44px;
		line-height: 1;
		text-shadow: 0 4px 0 var(--jc-black);
	}

	.jc .jc-hero__sub {
		font-size: 18px;
		line-height: 1.3;
	}

	.jc-rows {
		position: relative;
		margin: -42px 16px 0;
		flex-direction: column;
		gap: 14px;
	}

	.jc a.jc-row {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 12px 16px;
		border: 3px solid var(--jc-black);
		border-radius: 20px;
		box-shadow: 0 5px 0 var(--jc-black);
		text-decoration: none;
	}

	.jc a.jc-row--gold { background: var(--jc-gold); color: var(--jc-black); }
	.jc a.jc-row--blue { background: var(--jc-blue); color: #fff; }

	.jc-row__icon {
		flex: none;
		width: 46px;
		height: 46px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.jc-row__icon svg { width: 24px; height: 24px; }

	.jc-row--gold .jc-row__icon { background: var(--jc-black); color: var(--jc-gold); }
	.jc-row--blue .jc-row__icon { background: #fff; color: var(--jc-blue); }

	.jc-row__body {
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
	}

	.jc-row__label {
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 1.5px;
		text-transform: uppercase;
	}

	.jc-row__value {
		font-size: 20px;
		font-weight: 800;
		line-height: 1.15;
		overflow-wrap: anywhere;
	}

	.jc-row .jc-arrow {
		flex: none;
		width: 24px;
		height: 24px;
	}

	.jc-main {
		margin: 26px 0 0;
		padding: 0 16px;
		gap: 24px;
	}

	.jc-formcard {
		flex: 1 1 100%;
		border-radius: 24px;
		box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
		padding: 22px;
		scroll-margin-top: 90px;
	}

	.jc-form {
		gap: 14px;
	}

	.jc .jc-form__title {
		font-size: 30px;
	}

	.jc-fields {
		gap: 14px;
	}

	.jc-field {
		gap: 4px;
	}

	.jc-fields .jc-field {
		flex: 1 1 100%;
	}

	.jc .jc-label {
		font-size: 16px;
	}

	.jc .jc-input {
		height: 48px;
		padding: 0 14px;
		border-radius: 14px;
		font-size: 17px;
	}

	.jc .jc-select {
		padding: 0 10px;
	}

	.jc .jc-textarea {
		height: 116px;
		min-height: 116px;
		padding: 10px 14px;
	}

	.jc button.jc-submit {
		align-self: stretch;
		min-height: 54px;
		/* Luckiest Guy sits high in its line box; this nudges the label down to the optical centre. */
		padding-top: 0.32em;
		padding-bottom: 0;
		font-size: 24px;
		box-shadow: 0 5px 0 var(--jc-black);
	}

	.jc-side {
		flex: 1 1 100%;
	}

	.jc-hours {
		border-radius: 24px;
		padding: 18px 20px;
		gap: 2px;
	}

	.jc .jc-hours__title { font-size: 22px; }
	.jc .jc-hours__main { font-size: 20px; }
	.jc .jc-hours__sub { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.jc a.jc-pill,
	.jc button.jc-submit {
		transition: none;
	}
}
