/* Galipo Careers — frontend styles. Mobile-first: base rules target small
   screens, larger breakpoints add layout via min-width media queries.

   Brand tokens and measurements below are taken directly from
   galipofoods.com.au (viewed at 1440px): Alumni Sans display headings, Open
   Sans body copy, the site's black / coral / gold / cream palette, its
   ~1200px content width (measured 1152px content column within 144px side
   gutters at a 1440px viewport, i.e. 80% width), and its two-column
   "specialty section" hero pattern (large type left, photo right, e.g. the
   "Trusted by the BEST FOOD BUSINESSES" / "Our Product Catalogue" modules). */

/* Defined at :root (not scoped to .gcar-careers-page) since the single job
   listing template and the standalone EOI form shortcode also use these
   tokens outside that wrapper. */
:root {
	--gcar-black: #000000;
	--gcar-white: #ffffff;
	--gcar-coral: #f4313f;
	--gcar-gold: #ffb71b;
	--gcar-cream: #f6efdf;
	--gcar-body: #666666;
	--gcar-font-display: "Alumni Sans", Helvetica, Arial, Lucida, sans-serif;
	--gcar-font-body: "Open Sans", Arial, sans-serif;
	--gcar-content-width: 1200px;
}

.gcar-careers-page {
	max-width: 100%;
	overflow-x: hidden;
	padding-bottom: 60px;
	font-family: var(--gcar-font-body);
	color: var(--gcar-body);
}

.gcar-careers-page h1,
.gcar-careers-page h2,
.gcar-careers-page h3 {
	font-family: var(--gcar-font-display);
	color: var(--gcar-black);
	line-height: 1.05;
	margin: 0 0 16px;
}

/* Every h2 on the careers page shares this treatment. */
.gcar-careers-page h2 {
	max-width: var(--gcar-content-width);
	margin-left: auto;
	margin-right: auto;
	font-size: 56px;
	font-weight: 700;
}

/* Hero: two columns — large display type left, staff photo right — matching
   the site's own "Trusted by the BEST FOOD BUSINESSES" / "Our Product
   Catalogue" specialty-section pattern (measured: ~38% text column, ~58%
   image column, both centred within an ~1200px content width). Stacks on
   mobile, text first. */
.gcar-hero {
	background-color: var(--gcar-coral);
	padding: 40px 20px;
}

.gcar-hero-inner {
	max-width: var(--gcar-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}

.gcar-hero-text h1 {
	color: var(--gcar-black);
	font-size: 56px; /* matches .gcar-intro h2 on mobile */
	font-weight: 700;
	text-transform: uppercase;
}

.gcar-hero-text h1 .gcar-accent {
	color: var(--gcar-white);
}

.gcar-hero-text p {
	color: var(--gcar-black);
	font-size: 1.1rem;
	max-width: 46ch;
	margin: 0;
}

.gcar-hero-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* "Why work with us" band: gold background, bold black headline, the
   benefits list as boxed cream cards — matches the "People First" gold
   section on the About page. */
.gcar-intro {
	background: var(--gcar-gold);
	padding: 40px 20px;
}

.gcar-social-proof,
.gcar-current-roles,
.gcar-ten-year-club {
	padding: 40px 20px;
	max-width: var(--gcar-content-width);
	margin: 40px auto;
}

.gcar-benefits-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: var(--gcar-content-width);
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.gcar-benefits-list li {
	background: var(--gcar-cream);
	border-radius: 8px;
	padding: 16px;
	color: var(--gcar-black);
	font-size: 16px;
}

/* Social proof: a grid of boxed staff quotes, styled like the benefits
   cards. Mobile-first: a horizontally scrolling carousel on small screens,
   a 3-column grid from tablet width up. */
.gcar-social-proof {
	text-align: center;
}

.gcar-quotes-grid {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.gcar-quote-item {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	background: var(--gcar-cream);
	border-radius: 8px;
	padding: 24px 20px;
	text-align: center;
}

/* Dot indicators, shown only for the mobile carousel — toggled by
   assets/js/gcar-frontend.js as the carousel is swiped. */
.gcar-quotes-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.gcar-quote-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #d9d9d9;
	cursor: pointer;
}

.gcar-quote-dot.active {
	background: var(--gcar-coral);
}

.gcar-quote-photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	border: 4px solid var(--gcar-white);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.gcar-quote-text {
	font-family: var(--gcar-font-body);
	font-size: 1.05rem;
	color: var(--gcar-black);
	margin: 0 0 16px;
}

.gcar-quote-author {
	color: var(--gcar-black);
	font-weight: 600;
	margin: 0;
}

@media (min-width: 768px) {
	.gcar-quotes-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		overflow-x: visible;
		max-width: var(--gcar-content-width);
		margin: 0 auto;
	}

	.gcar-quote-item {
		flex: initial;
	}

	.gcar-quotes-dots {
		display: none;
	}
}

.gcar-listings-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.gcar-listing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid #b5b5b5;
	border-radius: 8px;
	padding: 16px;
}

.gcar-listing-card .gcar-button {
	margin-top: auto; /* pushes the button to the bottom regardless of how much text is above it */
	align-self: flex-start;
}

.gcar-listing-card h3 {
	margin: 0 0 8px;
	padding-right: 90px; /* keep the title clear of the department badge */
}

.gcar-listing-card h3 a {
	color: var(--gcar-black);
	text-decoration: none;
	font-family: var(--gcar-font-body);
	font-weight: 600;
	font-size: 16px;
}

.gcar-listing-summary {
	font-family: var(--gcar-font-body);
	font-size: 14px;
	color: var(--gcar-body);
	margin: 0 0 16px;
}

/* Department badge, top-right of the card — also reused on the single job
   page (.gcar-job-department). */
.gcar-listing-department,
.gcar-job-department {
	display: inline-block;
	background: var(--gcar-gold);
	color: var(--gcar-black);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	padding: 0 10px;
	border-radius: 999px;
	margin: 0;
}

.gcar-listing-department {
	position: absolute;
	top: 16px;
	right: 16px;
}

/* Buttons — matches the CTA button style used on galipofoods.com.au's own
   product pages (.popup_buy_cta a / .productbio-detail-on-order). Primary
   and secondary read identically here per the client's request. */
.gcar-button,
.gcar-button-primary,
.gcar-button-secondary {
	display: inline-block;
	color: #000000;
	border-radius: 5px;
	font-family: "Alumni Sans", Helvetica, Arial, Lucida, sans-serif;
	text-transform: uppercase;
	background-color: #ffb71b;
	border: 2px solid #000000;
	font-size: 20px;
	line-height: 1.7em;
	font-weight: 500;
	padding: 6px 18px;
	text-decoration: none;
	transition: 0.5s;
}

/* 10+ Year Club: recreates the tabbed module from
   galipofoods.com.au/about-us/#our-team — a cream panel, a row of tenure-tier
   tab links, and a grid of circular staff photos with name + "Since {year}"
   underneath. Tabs are toggled by assets/js/gcar-frontend.js. */
.gcar-ten-year-club {
	background: var(--gcar-cream);
	text-align: center;
}

.gcar-ten-year-club h2 .gcar-accent {
	color: var(--gcar-coral);
}

.gcar-club-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 28px;
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.gcar-club-tabs a {
	font-family: var(--gcar-font-display);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--gcar-black);
	text-decoration: none;
}

.gcar-club-tabs a.active {
	color: var(--gcar-coral);
	font-weight: 700;
}

.gcar-club-panel {
	display: none;
}

.gcar-club-panel.active {
	display: block;
}

.gcar-club-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 16px;
	text-align: center;
}

.gcar-club-member img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 8px;
}

.gcar-club-name {
	color: var(--gcar-black);
	font-weight: 600;
	margin: 0;
}

.gcar-club-since {
	color: var(--gcar-coral);
	margin: 0;
	font-size: 0.9rem;
}

.gcar-club-footnote {
	margin-top: 32px;
	font-size: 0.85rem;
}

.gcar-club-footnote a {
	color: var(--gcar-coral);
}

.gcar-careers-footer {
	text-align: center;
	padding: 24px 20px;
}

.gcar-no-listings p {
	margin-bottom: 24px;
}

/* EOI form — mobile-first, large tap targets for phone resume upload */
.gcar-eoi-form {
	max-width: 480px;
	margin: 0 auto;
}

.gcar-field {
	margin-bottom: 16px;
	text-align: left;
}

.gcar-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--gcar-black, #333);
}

.gcar-field input[type="text"],
.gcar-field input[type="email"],
.gcar-field input[type="tel"],
.gcar-field select,
.gcar-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 16px; /* prevents iOS zoom-on-focus */
	font-family: var(--gcar-font-body, inherit);
}

.gcar-field input[type="file"] {
	width: 100%;
	padding: 10px 0;
}

.gcar-field-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.gcar-field-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: normal;
}

/* Override: the Galipo site's own global CSS ("Simple Custom CSS and JS")
   has a malformed selector — `.inspiration_filter_div input[type="radio"],
   input[type="checkbox"] { position: absolute; left: -999em }` — where the
   comma means the `input[type="checkbox"]` half is unscoped and shoves
   EVERY checkbox on the site off-screen, including this one, making the
   consent tick box invisible and impossible to check. Restore it here with
   higher specificity so the EOI form isn't collateral damage from an
   unrelated site-wide rule. */
.gcar-field-consent input[type="checkbox"] {
	position: static;
	left: auto;
	top: auto;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin: 2px 0 0;
}

/* Visible "you missed a required field" state, set by
   assets/js/gcar-frontend.js on a blocked submit — a clearer signal than
   the browser's native validation tooltip, which is easy to miss. */
.gcar-field-invalid input,
.gcar-field-invalid select,
.gcar-field-invalid textarea {
	border-color: #cc0000;
	box-shadow: 0 0 0 1px #cc0000;
}

.gcar-field-invalid label::after {
	content: " — required";
	color: #cc0000;
	font-weight: 600;
}

.gcar-eoi-submit {
	width: 100%;
	min-height: 48px;
	background: var(--gcar-coral, #f4313f);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.gcar-eoi-error {
	color: #a33;
}

.gcar-eoi-thankyou {
	text-align: center;
	padding: 32px 20px;
}

.gcar-single-job {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 20px;
}

.gcar-job-header {
	position: relative;
	padding-right: 90px; /* keep the title clear of the department badge */
}

.gcar-single-job h1 {
	font-family: var(--gcar-font-display);
	color: var(--gcar-black);
	font-size: 40px;
	font-weight: 700;
	margin: 0 0 12px;
}

.gcar-job-header .gcar-job-department {
	position: absolute;
	top: 0;
	right: 0;
}

.gcar-job-description {
	margin-top: 40px;
	padding: 0 0 40px;
}

.gcar-job-description p {
	font-size: 16px;
}

.gcar-job-description ul,
.gcar-job-description ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.gcar-job-description ul {
	list-style-type: disc;
}

.gcar-job-description ol {
	list-style-type: decimal;
}

.gcar-job-description li {
	font-size: 16px;
	margin-bottom: 8px;
}

/* Keep pasted rich media (images, oEmbed video, self-hosted [video]/[audio])
   from overflowing the column on mobile. */
.gcar-job-description img {
	max-width: 100%;
	height: auto;
}

.gcar-job-description iframe,
.gcar-job-description video,
.gcar-job-description embed,
.gcar-job-description object {
	max-width: 100%;
}

.gcar-job-back {
	margin-bottom: 24px;
}

.gcar-job-back a {
	color: var(--gcar-coral);
	text-decoration: none;
	font-weight: 600;
}

@media (min-width: 640px) {
	.gcar-benefits-list,
	.gcar-listings-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gcar-club-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 900px) {
	.gcar-hero-inner {
		grid-template-columns: minmax(280px, 38%) 1fr;
		gap: 48px;
	}

	.gcar-hero-text h1 {
		font-size: 4.5rem;
	}
}

@media (min-width: 960px) {
	.gcar-benefits-list,
	.gcar-listings-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.gcar-club-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}
