/* ---------------------------------------------------------------------------
   CF Careers — styled to match colorfittings.com (Shopkeeper).
   Palette taken from the live site: primary #9c13d1, CTA #cb24e5.
   Fonts are inherited on purpose — production already serves Radnika /
   NeueEinstellung from the theme, so hardcoding them here would either
   duplicate the theme or break on any install that lacks them.
--------------------------------------------------------------------------- */

:root {
	--cf-purple: #9c13d1;
	--cf-purple-dark: #7d0fa8;
	--cf-magenta: #cb24e5;
	--cf-magenta-dark: #e200b9;
	--cf-ink: #333;
	--cf-muted: #7f7f7f;
	--cf-border: #ededed;
	--cf-border-strong: #d2d2d2;
	--cf-soft: #fcfbfe;
	--cf-danger: #d63638;
	--cf-success: #00a32a;
	--cf-radius: 3px;
}

/* --- Listing ------------------------------------------------------------ */

.cf-careers-list {
	list-style: none;
	margin: 2em 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--cf-border);
}

.cf-careers-list__item {
	position: relative;
	margin: 0;
	padding: 1.75rem 1.5rem 1.75rem 1.75rem;
	border-bottom: 1px solid var(--cf-border);
	transition: background-color .18s ease;
}

.cf-careers-list__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	bottom: -1px;
	width: 3px;
	background: var(--cf-purple);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .18s ease;
}

.cf-careers-list__item:hover { background: var(--cf-soft); }
.cf-careers-list__item:hover::before { transform: scaleY(1); }

.cf-careers-list__item.is-closed { opacity: .6; }

.cf-careers-list__title {
	margin: 0 0 .6rem;
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.cf-careers-list__title a {
	color: var(--cf-ink);
	text-decoration: none;
	box-shadow: none;
}

.cf-careers-list__item:hover .cf-careers-list__title a { color: var(--cf-purple); }

.cf-careers-list__meta {
	margin: 0 0 .75rem;
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}

.cf-careers-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .09em;
	padding: .5em .8em;
	border: 1px solid var(--cf-border-strong);
	border-radius: var(--cf-radius);
	color: var(--cf-muted);
	white-space: nowrap;
}

.cf-careers-badge--closed {
	border-color: var(--cf-danger);
	color: var(--cf-danger);
}

.cf-careers-list__excerpt {
	margin: 0 0 .85rem;
	color: var(--cf-muted);
	max-width: 62ch;
}

.cf-careers-list__more { margin: 0; }

.cf-careers-list__more a {
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--cf-purple);
	text-decoration: none;
	box-shadow: none;
}

.cf-careers-list__more a:hover { color: var(--cf-magenta-dark); }

.cf-careers-empty {
	margin: 2em 0;
	padding: 1.5rem;
	border: 1px dashed var(--cf-border-strong);
	border-radius: var(--cf-radius);
	color: var(--cf-muted);
	text-align: center;
}

/* --- Single job: details ------------------------------------------------ */

.cf-career-details {
	margin: 0 0 2.25em;
	padding: 1.4rem 1.6rem;
	background: var(--cf-soft);
	border: 1px solid var(--cf-border);
	border-left: 3px solid var(--cf-purple);
	border-radius: var(--cf-radius);
	display: grid;
	gap: .1rem;
}

.cf-career-details__row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	padding: .35rem 0;
}

.cf-career-details dt {
	margin: 0;
	min-width: 12rem;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--cf-muted);
	line-height: 1.9;
}

.cf-career-details dd {
	margin: 0;
	color: var(--cf-ink);
	font-weight: 500;
}

/* --- Application form --------------------------------------------------- */

.cf-apply {
	margin: 3em 0 0;
	padding: 2rem 2rem 2.25rem;
	border: 1px solid var(--cf-border);
	border-top: 3px solid var(--cf-purple);
	border-radius: var(--cf-radius);
	background: #fff;
}

.cf-apply__title {
	margin: 0 0 1.25rem;
	font-size: 1.3rem;
	letter-spacing: -.01em;
}

.cf-apply--done {
	border-top-color: var(--cf-success);
	background: var(--cf-soft);
}

.cf-apply--closed {
	border-top-color: var(--cf-border-strong);
	background: var(--cf-soft);
	color: var(--cf-muted);
	text-align: center;
}

.cf-apply--closed p { margin: 0; }

.cf-apply__errors {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--cf-danger);
	background: #fdf2f2;
	color: #8a1f21;
	border-radius: var(--cf-radius);
}

.cf-apply__errors p { margin: 0 0 .4rem; }
.cf-apply__errors ul { margin: 0; padding-left: 1.25rem; }

.cf-apply__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.25rem;
}

@media (max-width: 640px) {
	.cf-apply { padding: 1.5rem 1.25rem 1.75rem; }
	.cf-apply__grid { grid-template-columns: 1fr; }
}

.cf-field { margin: 0 0 1.25rem; }

.cf-field label {
	display: block;
	margin-bottom: .45rem;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--cf-ink);
}

.cf-req { color: var(--cf-magenta); }

.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field input[type="tel"],
.cf-field input[type="url"],
.cf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem .9rem;
	font: inherit;
	font-size: .95rem;
	color: var(--cf-ink);
	background: #fff;
	border: 1px solid var(--cf-border-strong);
	border-radius: var(--cf-radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.cf-field input:focus,
.cf-field textarea:focus {
	outline: none;
	border-color: var(--cf-purple);
	box-shadow: 0 0 0 3px rgba(156, 19, 209, .13);
}

.cf-field textarea { resize: vertical; min-height: 7rem; }

.cf-field--file input[type="file"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: .9rem;
	font-size: .9rem;
	background: var(--cf-soft);
	border: 1px dashed var(--cf-border-strong);
	border-radius: var(--cf-radius);
	cursor: pointer;
}

.cf-field--file input[type="file"]:hover { border-color: var(--cf-purple); }

.cf-hint {
	display: block;
	margin-top: .5rem;
	font-size: .8rem;
	color: var(--cf-muted);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

/* Honeypot — hidden from people, still reachable to a naive bot. */
.cf-apply__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf-apply__actions { margin: 1.75rem 0 0; }

.cf-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	font: inherit;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #fff;
	background: var(--cf-magenta);
	border: none;
	border-radius: var(--cf-radius);
	cursor: pointer;
	transition: background-color .18s ease, transform .05s ease;
}

.cf-btn:hover,
.cf-btn:focus { background: var(--cf-magenta-dark); color: #fff; }
.cf-btn:active { transform: translateY(1px); }
.cf-btn:focus-visible { outline: 3px solid rgba(156, 19, 209, .35); outline-offset: 2px; }

/* --- Dark themes (the rig's TT5 can run dark; production does not) ------- */

@media (prefers-color-scheme: dark) {
	.cf-apply,
	.cf-field input[type="text"],
	.cf-field input[type="email"],
	.cf-field input[type="tel"],
	.cf-field input[type="url"],
	.cf-field textarea {
		background: rgba(255, 255, 255, .04);
		color: inherit;
	}
	.cf-careers-list,
	.cf-careers-list__item { border-color: rgba(255, 255, 255, .14); }
	.cf-careers-list__item:hover,
	.cf-career-details,
	.cf-apply--done,
	.cf-apply--closed,
	.cf-field--file input[type="file"] { background: rgba(255, 255, 255, .05); }
	.cf-careers-list__title a,
	.cf-career-details dd,
	.cf-field label { color: inherit; }
	.cf-apply__errors { background: rgba(214, 54, 56, .12); color: #f3a3a4; }
}

/* Back-to-listing link on a single job */
.cf-career-back {
	margin: 0 0 .75rem;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.cf-career-back a {
	color: var(--cf-muted);
	text-decoration: none;
}

.cf-career-back a:hover { color: var(--cf-purple); }

/* ---------------------------------------------------------------------------
   Job posting hero — mirrors the black page banner used on the Elementor pages
   (#000000, white xl title over a large subtitle, logo left). Breaks out of the
   theme's content container so it spans edge to edge like the real thing.
--------------------------------------------------------------------------- */

.cf-hero {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
	background: #000;
	color: #fff;
	padding: 0 15% 0 5%;
	min-height: 300px;
}

/* Elementor's e-con-inner equivalent: 1140px (the kit's --content-width),
   centred. Without this the content hugs the left edge instead of lining up
   with every other page on the site. */
.cf-hero__inner,
.cf-career-body__inner {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.cf-hero__inner {
	display: flex;
	align-items: center;
	gap: 3rem;                  /* production's 16% logo column leaves ~48px
	                               of slack beside a 193px logo */
	min-height: inherit;
}

.cf-hero__logo {
	flex: 0 0 auto;
	width: 193px;               /* production renders the logo at 193x193 */
	max-width: 26%;
	padding: 2.5rem 0;
}

.cf-hero__logo img {
	display: block;
	width: 100%;
	height: auto;
	margin-left: 10px;
}

.cf-hero__text {
	flex: 0 1 auto;              /* intrinsic width so justify-content can centre */
	padding: 2rem 0;
}

.cf-hero__title {
	margin: 0 0 .35rem;
	color: #fff;
	font-size: 39px;            /* = Elementor .elementor-size-xl */
	line-height: 1.15;
	letter-spacing: -.02em;
}

.cf-hero__subtitle {
	margin: 0;
	color: #fff;
	font-size: 29px;            /* = Elementor .elementor-size-large */
	font-weight: 600;
	line-height: 1.3;
}

/* Off-white body so the black hero and footer read as distinct bands, matching
   the #FBFBFB content sections on the Elementor pages. */
.cf-career-body {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
	background: #FBFBFB;
	padding: 4rem 15% 4rem 5%;
}

/* Responsive — mirrors production's own hero breakpoints exactly.
   Elementor tablet <=1024px, mobile <=767px. Note production does NOT scale the
   hero type down: 39px/29px hold at every width. */

@media (max-width: 1024px) {
	.cf-hero { min-height: 200px; }          /* production: min_height_tablet 200 */
	.cf-hero__logo { width: 23%; }           /* production: width_tablet 23% */
	.cf-hero__logo img { margin-left: 0; align-self: center; }
	.cf-career-body { padding: 3rem 5%; }
}

@media (max-width: 767px) {
	.cf-hero {
		padding: 10% 0;                      /* production: 10% 0 10% 0 */
		min-height: 260px;                   /* production: min_height_mobile 260 */
	}
	.cf-hero__inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0;                              /* production: flex_gap_mobile 0 */
		text-align: center;
	}
	.cf-hero__logo {
		width: auto;
		max-width: 193px;                    /* the logo's natural size */
		padding: 0 0 1rem;
	}
	.cf-hero__logo img { margin-left: 0; }
	.cf-hero__text { padding: 0; text-align: center; }
	.cf-career-body { padding: 2.5rem 6%; }
}

/* Back to the listing, top-left of a job posting's body. */
.cf-career-back-link {
	margin: 0 0 2rem;
}

.cf-career-back-link a {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--cf-muted);
	text-decoration: none;
	transition: color .15s ease;
}

.cf-career-back-link a:hover,
.cf-career-back-link a:focus { color: var(--cf-purple); }

/* Body copy — matches the /about/ intro exactly: Roboto 300 18px/1.6em #ad2fa2. */
.cf-careers-intro,
.cf-career-body > .cf-career-intro {
	font-family: "Roboto", var(--font-sans, inherit);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6em;
	color: #ad2fa2;
	margin-top: 0;
}

@media (max-width: 1024px) {
	.cf-careers-intro { font-size: 14px; }
}

@media (max-width: 640px) {
	.cf-careers-intro { font-size: 15px; }
}

/* ---------------------------------------------------------------------------
   The site's gradient text treatments, copied byte-for-byte from production so
   markup is portable: on colorfittings.com these classes already exist, so the
   duplicate declarations are a no-op there, and the rig renders identically.
   Two distinct angles — headings use -170deg, body copy uses 45deg.
--------------------------------------------------------------------------- */

.gradient-text {
	background-image: linear-gradient(45deg, #0ab1c2, #eb0c8e);
	background-size: 100%;
	background-repeat: repeat;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	-moz-background-clip: text;
	-moz-text-fill-color: transparent;
}

.gradient-text-header {
	background-image: linear-gradient(-170deg, #0ab1c2, #eb0c8e);
	background-size: 100%;
	background-repeat: repeat;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	-moz-background-clip: text;
	-moz-text-fill-color: transparent;
}
