/* Pages whose text lives in content/*.html (kreedix_page_content() in functions.php): a centred title above a white
   box. The text styles for #privacy_policy_text are in style.css. */
.content-page {
	max-width: 1140px;
	margin: 0 auto;
	padding: 170px 0 100px;
}

.content-page > h1 {
	margin: 0 10px 110px;
	font-family: "Montserrat", sans-serif;
	font-size: 50px;
	font-weight: 400;
	line-height: 1;
	color: #00456A;
	text-align: center;
}

.content-page > #privacy_policy_text {
	margin: 0;
	padding: 75px 45px 25px;
	font-weight: 400;
	background-color: #fff;
	border-radius: 5px;
	opacity: 0.95;
}

/* Phones: the title sits inside one white panel that spans the screen. */
@media (max-width: 767px) {
	.content-page {
		padding: 108px 0 0;
		background-color: #fff;
		opacity: 0.95;
	}

	.content-page > h1 {
		margin: 0 18px 20px;
		font-size: 36px;
		font-weight: 700;
		line-height: 41px;
	}

	.content-page > #privacy_policy_text {
		padding: 0 18px 18px;
		background: none;
		opacity: 1;
	}

	.content-page > #privacy_policy_text p {
		line-height: 1.35;
	}

	.content-page > #privacy_policy_text h3 {
		font-size: 18px;
		line-height: 1.5;
		margin-bottom: 13px;
	}

	.content-page > #privacy_policy_text h4 {
		font-size: 15px;
		line-height: 1.5;
		margin-bottom: 13px;
	}
}

/* Vabad töökohad (content/vabad-tookohad.html): full-width bands instead of the centred box. On desktop one line
   drawing runs behind the six benefits; tablets and phones show each benefit's own picture instead. */
/* Two classes so the legal pages' phone panel (white box, top padding) doesn't apply here. */
.content-page.content-page--vabad-tookohad {
	max-width: none;
	padding: 0;
	background: none;
	opacity: 1;
}

.join-us h1,
.join-us h2,
.join-us h3,
.join-us p,
.join-us ul {
	margin: 0;
	padding: 0;
	font-family: "Montserrat", sans-serif;
}


.join-us .company-logos {
	padding-top: 140px;
}

.join-us__hero {
	padding-bottom: 60px;
	text-align: center;
	color: #003D8F;
}

.join-us__hero h1 {
	margin-top: 47px;
	font-size: 62px;
	font-weight: 700;
	line-height: 1;
	color: #00456A;
}

.join-us__hero h1.join-us__tagline {
	margin-top: 3px;
	font-weight: 300;
	line-height: 1.2;
}

.join-us__intro {
	margin-top: 54px;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.35;
}

.join-us__intro p {
	margin-bottom: 13px;
}

.join-us .join-us__more {
	margin-top: 33px;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
}

.join-us__more a {
	font-weight: 500;
	color: inherit;
}

.join-us__values {
	position: relative;
	background-color: #fff;
}

.join-us__values > h2 {
	padding: 60px 0 30px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: #00456A;
	text-align: center;
}

.join-us__values::after {
	content: "";
	position: absolute;
	top: 212px;
	left: calc(50% - 540px);
	width: 1080px;
	height: 1885px;
	background: url("/wp-content/themes/timber-starter-theme/img/vabad-tookohad/join-us-vaartuspakkumine-taust-desktop.png") no-repeat 0 0 / 100% auto;
	pointer-events: none;
}

.join-us__benefit:nth-of-type(even) {
	background-color: #F0F1F1;
}

/* Band heights and text offsets follow the drawing behind them. */
.join-us__benefit:nth-of-type(1) { min-height: 290px; padding-top: 80px; }
.join-us__benefit:nth-of-type(2) { min-height: 361px; padding-top: 90px; }
.join-us__benefit:nth-of-type(3) { min-height: 278px; padding-top: 90px; }
.join-us__benefit:nth-of-type(4) { min-height: 519px; padding-top: 60px; }
.join-us__benefit:nth-of-type(5) { min-height: 300px; padding-top: 90px; }
.join-us__benefit:nth-of-type(6) { min-height: 268px; padding-top: 90px; }

.join-us__benefit > img {
	display: none;
}

.join-us__benefit-text {
	width: 535px;
	margin-left: calc(50% + 10px);
}

.join-us__benefit:nth-of-type(even) .join-us__benefit-text {
	margin-left: calc(50% - 545px);
}

.join-us__benefit h3 {
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: #E33600;
}

.join-us__benefit-text > div {
	margin-bottom: 13px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	color: #151518;
}

.join-us__benefit-text p {
	line-height: 1.5;
}

/* "Tervis" was spaced by hand on the old page. */
.join-us__benefit:nth-of-type(4) .join-us__benefit-text > div:nth-of-type(1) {
	margin-bottom: 40px;
}

.join-us__benefit:nth-of-type(4) .join-us__benefit-text > div:nth-of-type(2) {
	margin-bottom: 21px;
}

.join-us__benefit-text > div p + p {
	margin-top: 13px;
}

.join-us__benefit strong {
	font-weight: 500;
}

.join-us .join-us__banner {
	box-sizing: border-box;
	height: 221px;
	padding: 60px 0 0;
	background-color: #003D8F;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-align: center;
}

.join-us__photos {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 1px;
}

.join-us__office {
	display: none;
}

.join-us__areas {
	position: relative;
	margin-top: -19px;
	padding: 50px 0 61px;
	background-color: #fff;
	text-align: center;
}

.join-us__areas h3 {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: #00456A;
}

.join-us .join-us__areas ul {
	display: flex;
	box-sizing: border-box;
	max-width: 1090px;
	margin: 20px auto 0;
	padding: 10px 50px 0;
	list-style: none;
}

.join-us__areas li {
	flex: 1 1 0;
}

.join-us__areas img {
	display: block;
	margin: 0 auto;
}

.join-us .join-us__areas li p {
	margin-top: 5px;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.5;
	color: #000;
}

.join-us__cta {
	box-sizing: border-box;
	height: 216px;
	margin-bottom: -30px;
	padding-top: 58px;
	background-color: #F0F1F1;
	font-size: 26px;
	font-weight: 300;
	line-height: 1.5;
	color: #00456A;
	text-align: center;
}

.join-us .join-us__cta p {
	line-height: 1.5;
}

.join-us .join-us__cta p + p {
	margin-top: 9px;
	font-weight: 500;
}

/* Tablets: each benefit shows its own picture on the left, three work areas per row. */
@media (max-width: 1024px) {
	.join-us__hero {
		padding-bottom: 40px;
	}

	.join-us__hero h1 {
		font-size: 48px;
	}

	.join-us__intro {
		font-size: 20px;
	}

	.join-us .join-us__more {
		font-size: 20px;
	}

	.join-us__values::after {
		display: none;
	}

	.join-us__benefit:nth-of-type(n) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: start;
		column-gap: 60px;
		min-height: 0;
		padding: 50px 30px 40px;
	}

	/* Spacing per band as on the old tablet layout. */
	.join-us__benefit:nth-of-type(1) { min-height: 326px; padding-top: 50px; }
	.join-us__benefit:nth-of-type(2) { min-height: 346px; padding-top: 60px; padding-bottom: 13px; }
	.join-us__benefit:nth-of-type(3) { min-height: 268px; padding-top: 80px; }
	.join-us__benefit:nth-of-type(4) { min-height: 598px; padding-top: 50px; padding-bottom: 38px; }
	.join-us__benefit:nth-of-type(5) { min-height: 333px; padding-top: 80px; }
	.join-us__benefit:nth-of-type(6) { min-height: 316px; padding-top: 80px; }

	.join-us__benefit:nth-of-type(4) > img {
		margin-top: 95px;
	}

	.join-us__benefit > img {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.join-us__benefit .join-us__benefit-text,
	.join-us__benefit:nth-of-type(even) .join-us__benefit-text {
		width: auto;
		margin-left: 0;
	}

	.join-us__areas {
		padding-top: 40px;
	}

	.join-us .join-us__areas ul {
		flex-wrap: wrap;
		row-gap: 71px;
		max-width: 525px;
		padding: 30px 0 0;
	}

	.join-us__areas li {
		flex: 0 0 33.333%;
	}
}

/* Phones: company names instead of logos, picture above each benefit, the office photo instead of the strip. */
@media (max-width: 767px) {

	.join-us .company-logos {
		padding: 110px 10px 0;
	}

	.join-us__hero {
		padding-bottom: 39px;
	}

	.join-us__hero h1 {
		margin-top: 64px;
		font-size: 35px;
	}

	.join-us__benefit:nth-of-type(n) {
		display: block;
		min-height: 0;
		padding: 20px 30px 0;
	}

	/* Spacing per band as on the old phone layout. */
	.join-us__benefit:nth-of-type(1) { min-height: 575px; padding-top: 50px; }
	.join-us__benefit:nth-of-type(2) { min-height: 661px; }
	.join-us__benefit:nth-of-type(3) { min-height: 348px; }
	.join-us__benefit:nth-of-type(4) { min-height: 767px; }
	.join-us__benefit:nth-of-type(5) { min-height: 427px; }
	.join-us__benefit:nth-of-type(6) { min-height: 374px; }

	.join-us__benefit:nth-of-type(n) > img {
		margin: 0 auto 50px;
	}

	.join-us__benefit:nth-of-type(2) > img { margin-bottom: 90px; }
	.join-us__benefit:nth-of-type(3) > img { margin-bottom: 19px; }
	.join-us__benefit:nth-of-type(5) > img,
	.join-us__benefit:nth-of-type(6) > img { margin-bottom: 40px; }

	.join-us .join-us__banner {
		height: auto;
		padding: 30px 0;
	}

	.join-us__photos {
		display: none;
	}

	.join-us__office {
		display: block;
		width: 100%;
		height: auto;
		margin-top: 1px;
	}

	.join-us__areas {
		margin-top: 0;
		padding-top: 30px;
	}

	.join-us .join-us__areas ul {
		display: block;
		padding: 30px 0 0;
	}

	.join-us__areas li + li {
		margin-top: 21px;
	}

	.join-us__cta {
		height: auto;
		margin-bottom: 0;
		padding: 30px 30px 39px;
	}
}

/* Company logos linking to the four contact pages (vabad-tookohad and the contact pages). The current company's
   logo is ringed in its navigation colour (--brand-color-nav, see custom_colors() in functions.php); phones show
   names. */
.company-logos {
	display: grid;
	grid-template-columns: repeat(4, 100px);
	justify-content: center;
	justify-items: center;
	align-items: center;
}

.company-logos img {
	display: block;
	width: 85px;
	height: 85px;
	border-radius: 50%;
}

.company-logos [aria-current] img {
	box-sizing: border-box;
	width: 90px;
	height: 90px;
	border: 2px solid var(--brand-color-nav, #F47321);
}

.company-logos span {
	display: none;
}

@media (max-width: 767px) {
	.company-logos {
		grid-template-columns: 1fr 1fr;
		gap: 27px 20px;
	}

	.company-logos a {
		padding: 2px;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.35;
		color: #003D8F;
	}

	.company-logos a:nth-child(odd) {
		justify-self: end;
	}

	.company-logos a:nth-child(even) {
		justify-self: start;
	}

	.company-logos img {
		display: none;
	}

	.company-logos span {
		display: inline;
	}
}

/* Contact pages (content/<company>-ou/kontakt.html and the English contact pages). */
.content-page.content-page--kontakt,
.content-page.content-page--contact {
	max-width: none;
	padding: 0;
	background: none;
	opacity: 1;
}

.contact-page .company-logos {
	padding-top: 155px;
}

.contact-page h1 {
	margin: 55px 10px 0;
	font-family: "Montserrat", sans-serif;
	font-size: 50px;
	font-weight: 400;
	line-height: 1;
	color: #00456A;
	text-align: center;
}

.contact-card {
	position: relative;
	width: 867px;
	margin: 60px 0 0 calc(50% - 453px);
	padding-bottom: 47px;
}

.contact-card__info {
	box-sizing: border-box;
	width: 550px;
	min-height: 520px;
	padding: 40px 92px 40px 48px;
	background: linear-gradient(#fdfdfd, #fafafa);
}

.contact-card h2 {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	color: #E33600;
}

.contact-card__logo {
	position: absolute;
	top: 35px;
	left: 265px;
	width: auto;
	height: 40px;
}

.contact-card__company {
	margin-top: 15px;
}

.contact-card__company p,
.contact-card__details p {
	margin: 0 0 13px;
	font-family: "Montserrat", sans-serif;
	line-height: 1.35;
}

.contact-card__company p {
	font-size: 14px;
	font-weight: 700;
	color: #003D8F;
	text-transform: uppercase;
}

.contact-card__details p {
	font-size: 15px;
	font-weight: 400;
	color: #000;
}

.contact-card__details a {
	color: inherit;
	text-decoration: none;
}

.contact-card__map {
	position: absolute;
	top: 32px;
	left: 482px;
	width: 385px;
	height: 321px;
	border: 0;
	border-radius: 5px;
}

/* The form behind its "Saada sõnum" toggle (inc/contact-form.php). Field styles come from style.css. */
.contact-form summary {
	display: flex;
	align-items: center;
	gap: 26px;
	box-sizing: border-box;
	width: 425px;
	margin-left: -15px;
	padding: 15px;
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #003D8F;
	list-style: none;
	cursor: pointer;
}

.contact-form summary::-webkit-details-marker {
	display: none;
}

.contact-form summary::after {
	content: "";
	flex: none;
	width: 34px;
	height: 34px;
	margin: -9.5px 0;
	border-radius: 50%;
	background: #F0F1F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23003D8F' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / 16px auto;
}

.contact-form[open] summary::after {
	transform: rotate(180deg);
}

.contact-form form {
	width: 395px;
	margin: 15px 0 0 7px;
}

.contact-form input,
.contact-form textarea {
	border: 0;
	border-radius: 6px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
	font-size: 12px;
	font-style: italic;
}

.contact-form form p {
	margin: 0 0 13px;
}

.contact-form textarea {
	display: block;
}

.contact-form button {
	margin-top: 5px;
	padding: 7px 23.5px;
	border: 0;
	border-radius: 15px;
	background-color: #00456A;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	cursor: pointer;
}

.contact-form__notice {
	margin: 0 0 13px 7px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	color: #E33600;
}

.contact-form__notice--sent {
	color: #46b450;
}

.contact-form__error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #dc3232;
}

/* Bots fill this in; people never see it. */
.contact-form__trap {
	position: absolute;
	left: -9999px;
}

/* Contact pages on tablets: the card spans the page, the map stays on the right. */
@media (max-width: 1024px) {
	.contact-card {
		width: auto;
		margin-left: 0;
	}

	.contact-card__info {
		width: 460px;
		padding: 35px 0 40px 55px;
	}

	.contact-card__company {
		margin-top: 13px;
	}

	.contact-card__logo {
		top: 35px;
		left: 225px;
		height: 43px;
	}

	.contact-card__map {
		left: 394px;
		width: 370px;
	}

	.contact-form summary {
		width: 370px;
	}
}

/* Contact pages on phones: one column, the map below the form. */
@media (max-width: 767px) {
	.contact-page .company-logos {
		padding-top: 123px;
		gap: 17px 10px;
	}

	.contact-page h1 {
		margin-top: 92px;
		font-size: 28px;
	}

	.contact-card {
		margin: 50px 0 40px;
		padding-bottom: 35px;
		background: linear-gradient(#fdfdfd, #fafafa);
	}

	.contact-card__info {
		width: auto;
		min-height: 0;
		padding: 20px 0 0 85px;
		background: none;
	}

	.contact-card h2 {
		font-size: 25px;
		line-height: 50px;
	}

	.contact-card__logo {
		top: 20px;
		left: 250px;
	}

	.contact-card__company {
		margin-top: 30px;
	}

	.contact-card__details {
		margin-top: 32px;
	}

	.contact-form summary {
		padding: 12px;
	}

	.contact-card__map {
		position: static;
		display: block;
		margin-left: 60px;
	}
}
