/*
Theme Name: GetUJobs Demo
Theme URI: https://getujobs.com/
Description: Companion demo theme that reproduces the getujobs.com header menu and footer chrome around the GetUJobs job-aggregator plugin. Header/footer are theme-level; the plugin renders the content (hero, search, listings).
Version: 0.1.0
Author: Mailercloud
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: getujobs-theme
*/

:root {
	--gj-header: #21272d;
	--gj-footer: #080808;
	--gj-brand: #ff9b00;
	--gj-amber: #f0ad4e;
	--gj-green: #5cb85c;
	--gj-page: #f4f8fb;
	--gj-foot-text: #9d9d9d;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var( --gj-page );
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

a {
	color: #2a6496;
}

.gj-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	color: #21272d;
	padding: 0.75rem 1rem;
	z-index: 1000;
}

.gj-skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* ---------- Header / nav ---------- */
.gj-nav {
	background: var( --gj-header );
	color: #fff;
}

.gj-nav__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-height: 52px;
}

.gj-nav__brand {
	color: var( --gj-brand );
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.gj-nav__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
}

.gj-nav__links a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
}

.gj-nav__links a:hover,
.gj-nav__brand:hover {
	color: var( --gj-brand );
}

.gj-nav__cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.gj-nav__user {
	color: #fff;
	font-weight: 600;
}

.gj-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 1.1rem;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border: 0;
}

.gj-btn--seeker {
	background: var( --gj-amber );
}

.gj-btn--recruiter {
	background: var( --gj-green );
}

.gj-btn:hover {
	filter: brightness( 0.95 );
	color: #fff;
}

.gj-btn:focus-visible,
.gj-nav__links a:focus-visible,
.gj-nav__brand:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* ---------- Inner-page blue topbar ---------- */
.gj-topbar {
	background: #3a6ea5;
	color: #fff;
}

.gj-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	min-height: 72px;
}

.gj-topbar__logo {
	display: inline-flex;
	align-items: center;
}

.gj-topbar__logo img {
	height: 54px;
	width: auto;
	display: block;
}

.gj-topbar__cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.gj-topbar__signin {
	color: #fff;
	font-size: 1.1rem;
	text-decoration: none;
}

a.gj-topbar__signin:hover {
	text-decoration: underline;
}

.gj-topbar .gj-btn {
	border-radius: 3px;
}

/* ---------- Content ---------- */
.gj-site-main {
	min-height: 40vh;
}

/* Static content pages (About, Privacy, Terms, Partner). */
.gj-article {
	max-width: 820px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3rem;
}

.gj-article__title {
	font-size: clamp( 1.8rem, 1.3rem + 2vw, 2.6rem );
	color: #21272d;
	margin: 0 0 1.5rem;
}

.gj-article__content {
	color: #333;
	font-size: 1.05rem;
	line-height: 1.7;
}

.gj-article__content h2 {
	color: #21272d;
	font-size: 1.4rem;
	margin: 1.75rem 0 0.5rem;
}

.gj-article__content p {
	margin: 0 0 1rem;
}

.gj-article__content ul {
	margin: 0 0 1rem 1.25rem;
}

.gj-article__content li {
	margin: 0.35rem 0;
}

.gj-article__content a {
	color: #2a6496;
}

.gj-page-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ---------- Footer ---------- */
.gj-foot {
	background: var( --gj-footer );
	color: var( --gj-foot-text );
	margin-top: 2.5rem;
}

.gj-foot__cols {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: 1.5rem;
}

.gj-foot__col h2 {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c7c7c7;
	margin: 0 0 1rem;
}

.gj-foot__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.gj-foot__col a {
	color: var( --gj-foot-text );
	text-decoration: none;
}

.gj-foot__col a:hover {
	color: #fff;
}

.gj-social {
	display: flex;
	gap: 0.85rem;
	align-items: center;
}

.gj-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #d6d6d6;
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.gj-social a:hover {
	color: var( --gj-brand );
	transform: translateY( -1px );
}

.gj-social a:focus-visible {
	outline: 2px solid var( --gj-brand );
	outline-offset: 3px;
}

.gj-foot__copy {
	border-top: 1px solid #1a1a1a;
	padding: 1rem 1.25rem;
	font-size: 0.8rem;
}

.gj-foot__copy-inner {
	max-width: 1400px;
	margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media ( max-width: 860px ) {
	.gj-nav__inner {
		flex-wrap: wrap;
		padding: 0.5rem 1.25rem;
	}

	.gj-nav__cta {
		margin-left: 0;
		width: 100%;
	}

	.gj-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}
}
