/*
Theme Name: Haemers Vacatures
Description: Block theme for the Haemers NV careers site (werken bij Haemers).
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: haemers-vacatures
*/

/* Top bar & header ---------------------------------------------------- */
.hv-topbar a { color: #fff; }
.hv-topbar a:hover { color: #fff; }

.hv-header .wp-block-site-logo img { height: 66px; width: auto; }
.hv-brand-label {
	border-left: 1px solid #d5d5d5;
	padding-left: 14px;
	line-height: 1.1;
}
.hv-header .wp-block-navigation a { color: var(--wp--preset--color--contrast); }
.hv-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Hero ------------------------------------------------------------------ */
.hv-hero { align-items: stretch !important; justify-content: flex-start !important; }
.hv-hero > .wp-block-cover__inner-container { display: flex; margin: 0 !important; width: 100%; }
.hv-hero-panel { width: min(500px, 100%); }
.hv-hero-panel h1 { text-wrap: balance; }
.hv-hero-text { max-width: 320px; }
.hv-btn-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--wp--preset--color--primary) !important;
}
.hv-btn-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-tint) !important;
	color: var(--wp--preset--color--primary-dark) !important;
}

/* Vacancy list ------------------------------------------------------------ */
.hv-jobs { border-top: 2px solid var(--wp--preset--color--primary); }
.hv-jobs .wp-block-post-template { margin: 0; }
.hv-job {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: background-color .15s ease;
}
.hv-job:hover { background: var(--wp--preset--color--primary-tint); }
.hv-job-main { flex: 1 1 240px; min-width: 0; }
.hv-job .wp-block-post-title { overflow-wrap: anywhere; }
.hv-job .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.hv-job .wp-block-post-terms a { color: var(--wp--preset--color--primary); pointer-events: none; }
.hv-job .wp-block-post-excerpt__excerpt { margin: 0; }
.hv-job .wp-block-read-more { white-space: nowrap; }
.hv-job .wp-block-read-more:hover { text-decoration: none; }
/* Make the whole row clickable. */
.hv-job .wp-block-read-more::after { content: ""; position: absolute; inset: 0; }
.hv-job a:hover { text-decoration: none; }

/* Waarom Haemers ---------------------------------------------------------- */
.hv-reason { border-top: 2px solid var(--wp--preset--color--primary); }
.hv-photo img {
	width: 100%;
	height: 240px;
	object-fit: cover;
}

/* Vacancy detail ------------------------------------------------------- */
.hv-detail-columns { align-items: flex-start; }
.hv-detail-columns > .wp-block-column:first-child { max-width: 560px; }
.hv-detail-columns > .wp-block-column:first-child > * + * { margin-top: 26px; }
.hv-detail-columns > .wp-block-column:first-child > h2 {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
}
.hv-detail-columns > .wp-block-column:first-child > h2 + .wp-block-list { margin-top: 8px; }
.hv-detail-columns .wp-block-list li + li { margin-top: 4px; }
.hv-aside .hv-aside-title { font-size: var(--wp--preset--font-size--large); }
.hv-facts-table { margin: 0; }
.hv-facts-table table { border-collapse: separate; border-spacing: 0; font-size: 13px; width: 100%; }
.hv-facts-table td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 4px 8px 8px 0;
	vertical-align: top;
}
.hv-facts-table tr:first-child td { padding-top: 0; }
.hv-facts-table td:first-child { width: 92px; color: #777; }
.hv-facts-table td:last-child { font-weight: 700; color: var(--wp--preset--color--heading); }
.hv-aside .wp-block-button__link { font-size: 15px; letter-spacing: .14em; padding: 11px; }
.hv-back a { color: var(--wp--preset--color--primary); }
.hv-video { margin: 0 0 36px; }

/* Application form ------------------------------------------------------- */
.hv-form { display: flex; flex-direction: column; }
.hv-form input[type="text"],
.hv-form input[type="email"],
.hv-form input[type="tel"],
.hv-form select,
.hv-form textarea {
	border: 0;
	border-bottom: 1px solid #9a9a9a;
	border-radius: 0;
	padding: 12px 8px 8px;
	font: inherit;
	font-size: 12px;
	color: var(--wp--preset--color--body-text);
	background: transparent;
	outline: none;
	width: 100%;
}
.hv-form select { padding-left: 4px; color: #777; }
.hv-form select:valid { color: var(--wp--preset--color--body-text); }
.hv-form textarea { height: 90px; resize: none; }
.hv-form input:focus,
.hv-form select:focus,
.hv-form textarea:focus { border-bottom-color: var(--wp--preset--color--primary); }
.hv-file {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #9a9a9a;
	padding: 12px 8px 10px;
	font-size: 12px;
	color: #777;
	cursor: pointer;
}
.hv-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hv-file-btn {
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	padding: 2px 10px;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: .1em;
	font-weight: 600;
	white-space: nowrap;
}
.hv-file:focus-within .hv-file-btn { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.hv-form-note {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 14px;
	font-size: 10px;
	color: #888;
	line-height: 1.5;
}
.hv-form-note .hv-required { color: var(--wp--preset--color--primary); font-size: 11px; }
.hv-form-submit { display: flex; justify-content: flex-end; margin-top: 18px; }
.hv-form-submit button {
	width: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: .08em;
	font-size: 14px;
	padding: 8px;
	cursor: pointer;
}
.hv-form-submit button:hover { background: var(--wp--preset--color--primary-dark); }
.hv-form-message { padding: 12px 14px; margin: 0 0 18px; font-size: 13px; }
.hv-form-message.is-success { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary-dark); }
.hv-form-message.is-error { background: #fdecec; color: #a40000; }
.hv-hp { position: absolute; left: -9999px; }

.hv-phone-icon {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hv-phone-icon::before {
	content: "";
	width: 22px;
	height: 38px;
	border: 3px solid #fff;
	border-radius: 4px;
}
.hv-call a { color: var(--wp--preset--color--contrast); }

/* Footer -------------------------------------------------------------- */
.hv-footer a { color: #fff; }
.hv-footer a:hover { color: #fff; text-decoration: underline; }
.hv-footer .wp-block-post-template { margin: 0; }
.hv-footer .wp-block-post-title { font: inherit; letter-spacing: 0; text-transform: none; margin: 0; }

@media (max-width: 781px) {
	.hv-header { height: auto !important; padding-top: 10px !important; padding-bottom: 10px !important; }
	.hv-hero-panel { padding: 40px 24px !important; }
	.hv-hero-panel h1 { font-size: 42px !important; }
	.hv-form-submit button { width: 100%; }
}

.hv-form-col > * { max-width: 420px; }
.hv-form, .hv-form * { box-sizing: border-box; }

.hv-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 8px 4px;
	font-size: 11px;
	line-height: 1.5;
	color: #777;
	cursor: pointer;
}
.hv-consent input { margin: 2px 0 0; accent-color: var(--wp--preset--color--primary); flex: none; }
