/* ==========================================================================
   Precision Systems – site styles (GeneratePress child theme)

   Recreates the former Avada look. Sections:
     1. Fonts            6. Page sections (full-width bands)
     2. Base typography  7. Content elements (ps-*)
     3. Header + menu    8. Hero banners
     4. Title bar        9. Job openings, sidebar
     5. Footer          10. Small screens
   Colours: accent #e9a825, text #747474, headings #333333, dark #363839.
   ========================================================================== */

:root {
	--ps-accent: #e9a825;
	--ps-accent-dark: #dd9933;
	--ps-green: #008000;
	--ps-text: #747474;
	--ps-heading: #333333;
	--ps-light: #f6f6f6;
	--ps-line: #e0dede;
	--ps-dark: #363839;
	--ps-darker: #282a2b;
	--ps-width: 1100px;
	--ps-heading-font: "Antic Slab", Georgia, serif;
	--ps-body-font: "PT Sans", Arial, Helvetica, sans-serif;
}

/* 1. Fonts (self-hosted; no Google Fonts request) ------------------------- */

@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/pt-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/pt-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/pt-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/pt-sans-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Antic Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/antic-slab-latin-400-normal.woff2) format("woff2"); }

/* 2. Base typography --------------------------------------------------------- */

body {
	font-family: var(--ps-body-font);
	font-size: 13px;
	line-height: 20px;
	color: var(--ps-text);
	background: #fff;
}

h1, h2, h3, h4, h5, h6,
.main-navigation .main-nav ul li a {
	font-family: var(--ps-heading-font);
	font-weight: 400;
	color: var(--ps-heading);
}

h1 { font-size: 34px; line-height: 48px; margin-bottom: 20px; }
h2 { font-size: 18px; line-height: 27px; margin-bottom: 15px; }
h3 { font-size: 16px; line-height: 24px; margin-bottom: 12px; }
h4 { font-size: 13px; line-height: 20px; }

p { margin-bottom: 20px; }

a { color: var(--ps-heading); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--ps-accent); }

.entry-content > *:last-child { margin-bottom: 0; }

/* Text helpers converted from old inline styles */
.ps-green { color: var(--ps-green) !important; }
.ps-white { color: #fff !important; }
.ps-black { color: #000 !important; }
.ps-size-18, .ps-size-24 { font-size: 24px; line-height: 1.3; }
.ps-size-20 { font-size: 20px; line-height: 1.35; }
.ps-size-25 { font-size: 25px; line-height: 1.25; }
.ps-size-30 { font-size: 30px; line-height: 1.2; }
.ps-size-big { font-size: 33px; line-height: 1.2; }
.ps-size-large { font-size: large; line-height: 1.2; }
.ps-size-xlarge { font-size: x-large; line-height: 1.25; }
.ps-heading-font { font-family: var(--ps-heading-font); }
.ps-bold { font-weight: 700; }

/* 3. Header + main menu ------------------------------------------------------ */

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 200;
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}

.site-header .inside-header {
	padding: 0 20px;
	max-width: var(--ps-width);
}

.site-logo .header-image {
	width: 200px;
	height: auto;
}

.site-header .site-logo { margin: 31px 0; }

.main-navigation,
.main-navigation ul ul { background: #fff; }

.main-navigation .main-nav ul li a {
	font-size: 14px;
	line-height: 89px;
	padding: 0 20px;
	color: var(--ps-heading);
	border-top: 3px solid transparent;
}

.main-navigation .main-nav > ul > li:last-child > a { padding-right: 0; }

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a {
	color: var(--ps-accent);
	background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--ps-accent);
	border-top-color: var(--ps-accent);
	background: transparent;
}

.main-navigation .menu-bar-items .search-item a,
.main-navigation .menu-bar-item > a {
	line-height: 89px;
	color: var(--ps-heading);
	padding-left: 25px;
	padding-right: 0;
}

.main-navigation .main-nav ul ul li a {
	font-size: 13px;
	line-height: 20px;
	padding: 10px 20px;
	border-top: 0;
	background: #f2efef;
}

.navigation-search input[type="search"] {
	background: #fff;
	color: var(--ps-heading);
	font-family: var(--ps-heading-font);
}

/* 4. Page title bar --------------------------------------------------------- */

.ps-title-bar {
	background: var(--ps-light) url(../img/page_title_bg.png) center / cover no-repeat;
	border-top: 1px solid #d2d3d4;
	border-bottom: 1px solid #d2d3d4;
	min-height: 87px;
	display: flex;
	align-items: center;
}

.ps-title-bar__inner {
	width: 100%;
	max-width: var(--ps-width);
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ps-title-bar__title {
	font-size: 18px;
	line-height: 1.4;
	margin: 0;
}

.ps-breadcrumbs {
	font-size: 10px;
	color: var(--ps-heading);
	text-align: right;
}

.ps-breadcrumbs .ps-sep { margin: 0 4px; }

/* Main content area */
.one-container .site-content,
.separate-containers .inside-article {
	padding: 55px 20px 40px;
}

.site.grid-container,
.site-content .content-area { max-width: var(--ps-width); }

.site.grid-container { padding-left: 0; padding-right: 0; }

/* 5. Footer ------------------------------------------------------------------ */

.site-footer .footer-widgets {
	background: var(--ps-dark);
	color: #8c8989;
	border-top: 12px solid #e9eaee;
}

.site-footer .footer-widgets .inside-footer-widgets {
	max-width: var(--ps-width);
	margin: 0 auto;
	padding: 43px 20px 40px;
}

.site-footer .widget-title,
.site-footer .widget .wp-block-heading {
	font-family: var(--ps-body-font);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ddd;
	margin-bottom: 20px;
}

.site-footer .footer-widgets a { color: #bfbfbf; }
.site-footer .footer-widgets a:hover { color: #fff; }
.site-footer .footer-widgets .widget { font-size: 13px; padding: 0; }
.site-footer .footer-widgets .widget p { margin-bottom: 0; }

.site-footer .footer-widgets .menu li {
	border-bottom: 1px solid #505152;
	padding: 12px 0;
	margin: 0;
}

.site-footer .footer-widgets .menu li:first-child { padding-top: 0; }
.site-footer .footer-widgets .current-menu-item > a { color: var(--ps-accent); }

.site-footer .site-info {
	background: var(--ps-darker);
	border-top: 1px solid #4b4c4d;
	color: #8c8989;
	font-size: 12px;
}

.site-footer .site-info .inside-site-info {
	width: 100%;
	max-width: var(--ps-width);
	margin: 0 auto;
	padding: 18px 20px;
	justify-content: flex-start;
}

.site-footer .footer-widgets-container {
	max-width: var(--ps-width);
	padding: 0 !important;
}

.site-footer .inside-footer-widgets { margin-left: 0; }
.site-footer .inside-footer-widgets > div { padding-left: 0; padding-right: 40px; }
.site-footer .ps-footer-cta a { font-size: 13px; color: #ddd; text-transform: uppercase; }

.site-footer .site-info .copyright-bar { text-align: left; margin: 0; }

.generate-back-to-top {
	background: var(--ps-dark);
	border-radius: 4px 4px 0 0;
	bottom: 0;
}

/* 6. Page sections (full-width coloured / photo bands) --------------------- */

.ps-section {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(20px, calc(50vw - (var(--ps-width) / 2) + 20px));
	padding-right: max(20px, calc(50vw - (var(--ps-width) / 2) + 20px));
	margin-bottom: 0;
	background-size: cover;
	background-position: center;
}

/* Full-width bands are 100vw wide; stop that from adding a sideways scrollbar */
body { overflow-x: clip; }

.ps-section.ps-bordered { border-top: 1px solid #e5e4e4; border-bottom: 1px solid #e5e4e4; }
.ps-section + .ps-section { margin-top: 0; }
.ps-section.ps-bg-fixed { background-attachment: fixed; }

/* Photo backgrounds (copies kept in assets/img) */
.ps-bg-grey    { background-image: url(../img/bkgd_bw2.jpg); }
.ps-bg-green   { background-image: url(../img/page_bkgd8.jpg); }
.ps-bg-sunrise { background-image: url(../img/ls_bkgd_color1.jpg); }
.ps-bg-orange  { background-color: var(--ps-accent-dark); }

/* Page content that starts with a full-width band touches the title bar */
.entry-content > .ps-section:first-child { margin-top: -55px; }
.entry-content > .ps-section:last-child { margin-bottom: -40px; }

/* Columns: Avada used 4% gutters */
.entry-content .wp-block-columns { gap: 4%; margin-bottom: 20px; }
.entry-content .wp-block-columns.ps-cols-tight { gap: 30px; }

/* Spacing helpers */
.ps-mt-50 { margin-top: 50px !important; }

/* 7. Content elements -------------------------------------------------------- */

/* Title with a rule after it ("Expertise ———") */
.ps-title {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 31px;
}

.ps-title::after {
	content: "";
	flex: 1 1 auto;
	border-top: 1px solid var(--ps-line);
	min-width: 30px;
}

.ps-title.has-text-align-right { flex-direction: row-reverse; }
h2.ps-title { font-size: 18px; margin-top: 10px; }

/* Icons (Font Awesome inside a dark circle) */
.ps-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	background: var(--ps-heading);
	color: #fff;
	font-size: 15px;
	margin: 0;
}

.ps-icon.ps-icon-lg {
	width: 64px;
	height: 64px;
	min-width: 64px;
	font-size: 24px;
}

/* Tagline box (grey box with coloured top line and curved shadow) */
.ps-tagline {
	position: relative;
	isolation: isolate;
	background: var(--ps-light);
	border: 1px solid var(--ps-light);
	border-top: 3px solid var(--ps-accent);
	padding: 25px 25px 20px;
	margin-bottom: 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 25px;
}

.ps-tagline.ps-hl-left { border-top: 1px solid var(--ps-light); border-left: 3px solid var(--ps-accent); }

.ps-tagline > .ps-tagline__text { flex: 1 1 260px; }
.ps-tagline .ps-tagline__title {
	font-family: var(--ps-heading-font);
	font-size: 18px;
	line-height: 27px;
	color: var(--ps-heading);
	margin-bottom: 5px;
}
.ps-tagline .ps-tagline__desc { margin-bottom: 5px; }
.ps-tagline .ps-tagline__title.ps-size-xlarge { font-size: x-large; line-height: 1.25; margin-bottom: 8px; }
.ps-tagline .ps-tagline__desc.ps-size-large { font-size: large; line-height: 1.2; }
.ps-tagline .wp-block-buttons { margin: 10px 0; }

.ps-tagline.ps-shadow::after {
	content: "";
	position: absolute;
	left: 3%;
	right: 3%;
	bottom: -6px;
	height: 16px;
	z-index: -1;
	border-radius: 50%;
	box-shadow: 0 10px 12px rgba(0, 0, 0, .7);
}

/* Buttons (Avada "flat, round" gold buttons) */
.wp-block-button__link,
.ps-tagline-shortcode .ps-button {
	display: inline-block;
	background: linear-gradient(to bottom, #e8cb90, #d6ad5a);
	color: #785510 !important;
	font-family: var(--ps-body-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 17px;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
	padding: 11px 23px;
	border-radius: 2px;
	border: 0;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.ps-tagline-shortcode .ps-button:hover {
	background: linear-gradient(to bottom, #d6ad5a, #e8cb90);
	color: #785510 !important;
}

/* Flip boxes (front turns to show the back on hover, tap or keyboard focus) */
.ps-flip-boxes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.ps-flip-boxes.ps-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ps-flip-box {
	display: grid;
	perspective: 1000px;
	min-height: 250px;
	margin: 0 !important;
	cursor: pointer;
}

.ps-flip-box:focus-visible { outline: 2px solid var(--ps-accent); outline-offset: 3px; }

.ps-flip-box > .ps-flip-front,
.ps-flip-box > .ps-flip-back {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 27px 20px;
	margin: 0 !important;
	border: 1px solid var(--ps-accent-dark);
	border-radius: 4px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: transform .4s ease;
}

.ps-flip-box > .ps-flip-front {
	background: var(--ps-light);
	color: var(--ps-text);
}

.ps-flip-box > .ps-flip-back {
	background: var(--ps-accent);
	color: #fff;
	transform: rotateY(-180deg);
}

.ps-flip-box:hover > .ps-flip-front,
.ps-flip-box:focus-within > .ps-flip-front,
.ps-flip-box.is-flipped > .ps-flip-front { transform: rotateY(180deg); }

.ps-flip-box:hover > .ps-flip-back,
.ps-flip-box:focus-within > .ps-flip-back,
.ps-flip-box.is-flipped > .ps-flip-back { transform: rotateY(0deg); }

.ps-flip-box p { margin: 0 0 10px; }
.ps-flip-box p:last-child { margin-bottom: 0; }
.ps-flip-box .ps-icon { width: 52px; height: 52px; min-width: 52px; font-size: 20px; margin-bottom: 20px; }

.ps-flip-box .ps-flip-title {
	font-family: var(--ps-heading-font);
	font-size: 15px;
	line-height: 1.4;
	margin-bottom: 15px;
	color: var(--ps-heading);
}

.ps-flip-back .ps-flip-title { color: #eeeded; font-size: 18px; }
.ps-flip-back ul { text-align: left; margin: 0 0 0 1.2em; }

/* Green variant used on the Careers page */
.ps-flip-boxes.ps-flip-green .ps-flip-front,
.ps-flip-boxes.ps-flip-green .ps-flip-back {
	border: 2px solid var(--ps-green);
	border-radius: 10px;
}

.ps-flip-boxes.ps-flip-green .ps-flip-front .ps-flip-title { color: var(--ps-green); }
.ps-flip-boxes.ps-flip-green .ps-flip-back { font-size: 12px; line-height: 17px; }

/* Content boxes (icon + title + text) */
.ps-content-boxes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 25px 40px;
	margin-bottom: 30px;
}

.ps-content-boxes.ps-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-content-boxes.ps-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ps-cb {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 11px;
	align-items: center;
	margin: 0 !important;
}

.ps-cb > .ps-cb-title {
	font-size: 17px;
	line-height: 24px;
	margin: 0;
}

.ps-cb > :not(.ps-icon):not(.ps-cb-title) { grid-column: 1 / -1; }
.ps-cb > p:first-of-type { margin-top: 13px; }
.ps-cb > p { margin-bottom: 10px; }

/* "Icon on side": text lines up under the title, not under the icon */
.ps-cb.ps-cb-side > :not(.ps-icon):not(.ps-cb-title) { grid-column: 2; }

/* "Icon boxed": centred, big icon */
.ps-cb.ps-cb-boxed {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
}

.ps-cb.ps-cb-boxed > * { grid-column: 1 !important; }
.ps-cb.ps-cb-boxed > .ps-cb-title { margin-top: 15px; font-size: 16px; }

/* Checklist */
.ps-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.ps-checklist li { position: relative; padding-left: 30px; margin-bottom: 13px; font-size: 12px; line-height: 18px; }
.ps-checklist li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ps-accent);
	color: #fff;
	font-size: 10px;
	line-height: 18px;
	text-align: center;
}

/* Testimonials */
.wp-block-quote.ps-testimonial {
	border: 0;
	margin: 0 0 30px;
	padding: 0;
	font-style: normal;
}

.wp-block-quote.ps-testimonial p {
	position: relative;
	background: #f6f3f3;
	color: var(--ps-text);
	font-style: italic;
	font-size: 13px;
	line-height: 20px;
	padding: 20px;
	margin: 0 0 25px;
}

.wp-block-quote.ps-testimonial p::after {
	content: "";
	position: absolute;
	left: 25px;
	bottom: -12px;
	border-left: 0 solid transparent;
	border-right: 14px solid transparent;
	border-top: 12px solid #f6f3f3;
}

.wp-block-quote.ps-testimonial cite {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: var(--ps-text);
	padding-left: 40px;
	position: relative;
}

.wp-block-quote.ps-testimonial cite::before {
	content: "\f007";
	font-family: FontAwesome;
	position: absolute;
	left: 8px;
	top: -6px;
	font-size: 22px;
	color: var(--ps-text);
}

.wp-block-quote.ps-testimonial cite strong { color: var(--ps-heading); }

/* Team members */
.ps-person { margin-bottom: 30px; }
.ps-person .wp-block-image { margin-bottom: 20px; text-align: center; }
.ps-person .wp-block-image img { width: 240px; height: auto; }
.ps-person .ps-person-name { color: var(--ps-heading); margin: 0; font-size: 13px; }
.ps-person .ps-person-role { color: var(--ps-heading); margin: 0; font-size: 13px; }
.ps-person .ps-person-name + p:not(.ps-person-role), .ps-person .ps-person-role + p { margin-top: 20px; }
.ps-person p { font-size: 12px; line-height: 20px; }

/* Toggles / accordion */
.wp-block-details.ps-toggle {
	border-bottom: 1px solid var(--ps-line);
	padding: 0;
	margin: 0;
}

.wp-block-details.ps-toggle summary {
	list-style: none;
	cursor: pointer;
	font-family: var(--ps-heading-font);
	font-size: 22px;
	line-height: 1.4;
	color: var(--ps-heading);
	padding: 8px 0 8px 36px;
	position: relative;
}

.wp-block-details.ps-toggle summary::-webkit-details-marker { display: none; }

.wp-block-details.ps-toggle summary::before {
	content: "+";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	background: var(--ps-heading);
	color: #fff;
	font: 700 16px/22px var(--ps-body-font);
	text-align: center;
}

.wp-block-details.ps-toggle[open] summary::before { content: "\2212"; background: var(--ps-accent); }
.wp-block-details.ps-toggle summary:hover { color: var(--ps-accent); }
.wp-block-details.ps-toggle > :not(summary) { font-size: 16px; line-height: 1.5; padding-left: 36px; }

/* Former slider images inside pages fill their column, with the old curved shadow */
.ps-banner-img { position: relative; isolation: isolate; }
.ps-banner-img img { width: 100%; height: auto; display: block; }
.ps-banner-img::after {
	content: "";
	position: absolute;
	left: 3%;
	right: 3%;
	bottom: -4px;
	height: 18px;
	z-index: -1;
	border-radius: 50%;
	box-shadow: 0 12px 14px rgba(0, 0, 0, .75);
}

/* Image with a soft drop shadow */
.ps-frame-shadow img { box-shadow: 0 0 6px rgba(0, 0, 0, .35); }

/* Client logo rotator (one logo at a time with dots) */
.ps-logo-rotator {
	position: relative;
	max-width: 300px;
	margin: 0 0 20px auto;
	padding-bottom: 50px;
}

.ps-logo-rotator .wp-block-image { margin: 0; text-align: center; }

.ps-logo-rotator.is-ready .wp-block-image {
	position: absolute;
	inset: 0 0 50px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .6s;
}

.ps-logo-rotator.is-ready { min-height: 250px; }
.ps-logo-rotator.is-ready .wp-block-image.is-active { opacity: 1; position: relative; inset: auto; min-height: 200px; }

.ps-logo-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.ps-logo-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: #999;
	cursor: pointer;
}

.ps-logo-dots button[aria-current="true"] { background: #333; }

/* Orange "candy" divider under the Careers banner */
.ps-divider-candy {
	position: relative;
	height: 0;
	margin: 0;
}

.ps-divider-candy::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 10px;
	transform: translateX(-50%);
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 14px solid var(--ps-accent-dark);
	z-index: 2;
}

/* 8. Hero banners ------------------------------------------------------------- */

/* Banner photos with a headline (replace the old sliders inside pages) */
.wp-block-cover.ps-banner {
	padding: 30px 40px;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 30px;
}

.wp-block-cover.ps-banner .ps-banner-text {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 38px;
	color: #fff;
	text-shadow: 0 0 7px rgba(0, 0, 0, .5);
	margin: 0;
	animation: ps-slide-in 1s ease-out both .4s;
}

.wp-block-cover.ps-banner .ps-banner-text.ps-banner-text-md { font-size: 28px; line-height: 30px; }
.wp-block-cover.ps-banner .ps-banner-text + .ps-banner-text { animation-delay: 1.4s; }

/* Home page hero: phrases appear in turn, then the logo (like the old slider) */
.wp-block-cover.ps-hero {
	min-height: 286px;
	padding: 0;
	margin-top: -55px;
	margin-bottom: 0;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.ps-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--ps-width);
	height: 286px;
	position: relative;
	padding: 0 20px;
}

.ps-hero .ps-hero-frame {
	position: absolute;
	inset: 0;
	padding: 72px 120px 0;
	opacity: 0;
	animation: ps-hero-frame 16s infinite;
}

.ps-hero .ps-hero-frame p {
	font-family: var(--ps-heading-font);
	font-size: 34px;
	line-height: 50px;
	color: #fff;
	margin: 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.ps-hero .ps-hero-frame:nth-child(2) { animation-delay: 4.5s; }
.ps-hero .ps-hero-frame:nth-child(3) { animation-delay: 9s; }

.ps-hero .ps-hero-frame.ps-hero-final {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	animation-name: ps-hero-final;
	animation-delay: 13.5s;
}

.ps-hero .ps-hero-final .wp-block-image { margin: 0 0 14px; }
.ps-hero .ps-hero-final img { background: rgba(255, 255, 255, .85); padding: 8px 12px; width: 300px; height: auto; }
.ps-hero .ps-hero-final p { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: .5px; text-align: center; }

@keyframes ps-hero-frame {
	0%   { opacity: 0; transform: translateX(-30px); }
	4%   { opacity: 1; transform: none; }
	25%  { opacity: 1; transform: none; }
	28%  { opacity: 0; }
	100% { opacity: 0; }
}

/* the final logo frame stays up longest */
@keyframes ps-hero-final {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	15%  { opacity: 1; }
	17%  { opacity: 0; }
	100% { opacity: 0; }
}

@keyframes ps-slide-in {
	from { opacity: 0; transform: translateX(-40px); }
	to   { opacity: 1; transform: none; }
}

/* People who prefer less motion just see the logo frame */
@media (prefers-reduced-motion: reduce) {
	.ps-hero .ps-hero-frame { animation: none; }
	.ps-hero .ps-hero-frame.ps-hero-final { opacity: 1; }
	.wp-block-cover.ps-banner .ps-banner-text { animation: none; }
	.ps-flip-box > * { transition: none; }
}

/* 9. Job openings, single job posts, sidebar --------------------------------- */

.ps-openings .wp-block-post-template { list-style: none; margin: 0; padding: 0; }

.ps-openings .wp-block-post {
	border-bottom: 1px solid var(--ps-line);
	padding: 0 0 25px;
	margin: 0 0 25px;
}

.ps-openings .wp-block-post-title { font-size: 18px; line-height: 27px; margin: 0 0 6px; }
.ps-openings .wp-block-post-title a { color: var(--ps-heading); }
.ps-openings .wp-block-post-title a:hover { color: var(--ps-accent); }
.ps-openings .wp-block-post-terms { font-size: 12px; margin-bottom: 8px; }
.ps-openings .wp-block-post-terms a { color: var(--ps-accent); }
.ps-openings .wp-block-post-excerpt { margin: 0; }
.ps-openings .wp-block-post-excerpt__excerpt { margin-bottom: 8px; }
.ps-openings .wp-block-post-excerpt__more-link { font-size: 12px; font-weight: 700; }

/* Boxes inside job descriptions (made by the [tagline_box] shortcode) */
.ps-tagline-shortcode { margin: 0 0 30px; }
.ps-tagline-shortcode .ps-tagline__title { margin-bottom: 8px; }
.single-post .entry-content { font-size: 13px; }

/* Single job: keep the old "Next" style navigation small */
.post-navigation { font-size: 12px; }
.single .entry-meta { font-size: 12px; }

/* Sidebar */
.sidebar .widget {
	background: transparent;
	padding: 0 0 0 0;
	margin-bottom: 40px;
	font-size: 13px;
}

.inside-right-sidebar { padding-top: 55px; }
.right-sidebar .site-content .content-area { padding-right: 40px; }

.sidebar .widget-title {
	font-family: var(--ps-heading-font);
	font-size: 13px;
	color: var(--ps-heading);
	text-transform: none;
	margin-bottom: 15px;
}

.sidebar .widget ul li {
	border-bottom: 1px solid #e7e6e6;
	padding: 9px 0;
	margin: 0;
	position: relative;
}

.sidebar .widget ul li a::before {
	content: "\f105";
	font-family: FontAwesome;
	margin-right: 8px;
	color: var(--ps-heading);
}

.sidebar .widget ul.children { margin: 9px 0 -9px 12px; }
.sidebar .widget ul.children li:last-child { border-bottom: 0; }
.sidebar .widget ul li a { color: var(--ps-heading); }
.sidebar .widget ul li a:hover { color: var(--ps-accent); }

.sidebar .search-form input[type="search"] {
	border: 1px solid #d2d2d2;
	background: #fff;
	color: #aaa9a9;
	padding: 8px 12px;
	width: 100%;
}

/* Contact form */
.wpforms-container .wpforms-submit {
	background: linear-gradient(to bottom, #e8cb90, #d6ad5a) !important;
	color: #785510 !important;
	border: 0 !important;
	border-radius: 2px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
}

/* 10. Small screens ----------------------------------------------------------- */

@media (max-width: 1140px) {
	.site-header .inside-header,
	.ps-title-bar__inner,
	.site-footer .footer-widgets .inside-footer-widgets,
	.site-footer .site-info .inside-site-info { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 900px) {
	.main-navigation .main-nav ul li a { padding: 0 12px; }
	.ps-flip-boxes.ps-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-content-boxes.ps-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-hero .ps-hero-frame { padding: 60px 40px 0; }
}

@media (max-width: 768px) {
	.site-header { position: relative; top: 0; }
	.main-navigation .main-nav ul li a { line-height: 48px; border-top: 0; }
	.ps-title-bar__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
	.ps-breadcrumbs { text-align: left; }
	.ps-flip-boxes,
	.ps-flip-boxes.ps-cols-4,
	.ps-content-boxes.ps-cols-2,
	.ps-content-boxes.ps-cols-3 { grid-template-columns: minmax(0, 1fr); }
	.ps-hero .ps-hero-frame p { font-size: 26px; line-height: 38px; }
	.ps-hero .ps-hero-final img { width: 220px; }
	.wp-block-cover.ps-banner .ps-banner-text { font-size: 26px; line-height: 30px; }
	.ps-section.ps-bg-fixed { background-attachment: scroll; }
	.right-sidebar .site-content .content-area { padding-right: 0; }
	.inside-right-sidebar { padding-top: 0; }
	.ps-logo-rotator { margin: 0 auto 20px; }
}
