/*
Theme Name: Ollie – Offstage Operations
Theme URI: https://www.offstageoperations.com/
Description: Ollie child theme for offstageoperations.com. Core blocks only.
Author: WP Steward
Author URI: https://www.wpsteward.com/
Template: ollie
Version: 1.2.8
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ollie-offstage
*/

/* Live Kadence: Open Sans 17/1.6, Proza Libre headings, rose #AA4F77, 3px buttons. */

body {
	-webkit-font-smoothing: antialiased;
	background: #f6f5f5;
	color: #3c3839;
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

h1, h2, h3, h4, .wp-block-heading {
	font-family: "Proza Libre", serif;
	font-weight: 700;
	color: #2b292a;
}

.oso-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.oso-main > .wp-block-post-content > * + * {
	margin-top: 0;
}

/* ---- header: logo + nav on the left, 64–74px ---- */

.oso-header {
	min-height: 74px;
}

.oso-header__inner {
	min-height: 74px;
	gap: 2rem;
}

.oso-header .wp-block-site-logo img {
	width: 185px !important;
	height: auto;
}

.oso-header .wp-block-navigation-item__content {
	color: #2b292a;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

.oso-header .wp-block-navigation-item__content:hover,
.oso-header .wp-block-navigation-item__content:focus {
	color: #aa4f77;
}

/* ---- buttons match live (rose, slight radius, not pills) ---- */

.wp-element-button,
.wp-block-button__link,
.wps-form.gwdj-form .gwdj-submit button,
.wps-form button[type="submit"] {
	background: #aa4f77;
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	padding: 0.7rem 1.6rem;
	text-transform: uppercase;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wps-form.gwdj-form .gwdj-submit button:hover,
.wps-form button[type="submit"]:hover {
	background: #873f5f;
	color: #fff;
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid #aa4f77;
	color: #aa4f77;
}

.oso-hero .wp-block-button__link {
	font-size: 26px;
	padding: 10px 26px;
}

.wps-form.gwdj-form .gwdj-submit button,
.wps-form button[type="submit"] {
	border-radius: 0;
	font-size: 20px;
	padding: 20px 40px;
}

/* ---- hero ---- */

.oso-hero {
	background: #ebe9ea;
	overflow: hidden;
	padding-bottom: 7rem !important;
	padding-top: 5.5rem !important;
	position: relative;
}

.oso-hero::after {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	bottom: -1px;
	content: "";
	height: 100px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	width: 100%;
	z-index: 1;
}

.oso-hero h1,
.oso-hero h2.wp-block-heading:first-child {
	font-size: clamp(2.25rem, 4vw, 48px);
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.oso-hero .has-large-font-size {
	color: #3c3839;
	font-family: "Open Sans", sans-serif;
	font-size: 17px !important;
	font-weight: 400;
	line-height: 1.6;
}

.oso-hero-photo,
.oso-hero-photo img {
	border-radius: 60px 60px 60px 0;
	height: 465px;
	max-width: 465px;
	object-fit: cover;
	width: 100%;
}

.oso-hero-card {
	background: #fff;
	border-radius: 0 60px 60px 60px;
	margin-left: 60px;
	margin-top: -40px;
	max-width: 28rem;
	padding: 1.25rem 1.4rem;
	position: relative;
	z-index: 2;
}

.oso-hero-card h3 {
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

/* ---- type scale from live ---- */

.oso-front h2.wp-block-heading,
.oso-services h2.wp-block-heading {
	font-size: clamp(1.75rem, 3vw, 48px);
	line-height: 1.2;
}

.oso-cta h1.wp-block-heading {
	font-size: clamp(2rem, 5vw, 64px);
	line-height: 1;
	text-transform: uppercase;
}

.oso-cta h2.wp-block-heading {
	font-size: clamp(1.5rem, 2.4vw, 32px);
	line-height: 1.1;
	text-transform: capitalize;
}

.oso-cta > p {
	color: #3c3839;
	font-size: 17px;
}

.oso-kicker {
	color: #aa4f77;
	font-family: "Open Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.oso-kicker--dark {
	color: #2b292a;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 2px;
}

.oso-post-cta .oso-kicker {
	color: #2b292a !important;
	font-size: 14.4px !important;
	font-weight: 400 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase;
}

.oso-services h2 {
	margin-bottom: 2.5rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 18em;
}

.oso-services h3 {
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 0.6rem;
}

.oso-service {
	border: 1px solid #ebe9ea;
	border-radius: 8px;
	margin: 0 0 2.25rem;
	padding: 2rem 2.25rem;
}

.oso-service .wp-block-button__link {
	font-size: 1rem;
	padding: 0.65rem 1.4rem;
}

.oso-service-icon {
	display: flex;
	justify-content: center;
}

.oso-home-cta {
	background: #ebe9ea;
}

.oso-home-cta > p:not(.oso-kicker) {
	max-width: 480px;
}

.oso-form-card {
	background: #fff;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
	margin-top: 1.5rem;
	padding: 2rem 1.5rem 1.5rem;
}

.oso-bio-photo img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	object-position: 49% 31%;
	width: 100%;
}

.oso-work-photo img {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	height: auto;
	max-width: 400px;
	object-fit: cover;
	object-position: 52% 19%;
	width: 100%;
}

.oso-work h2 {
	font-size: clamp(1.75rem, 3vw, 36px);
}

.oso-brands h2 {
	color: #aa4f77;
	font-size: clamp(1.75rem, 3vw, 36px);
}

.oso-brands-card {
	background: #fff;
	box-shadow: 0 0 35px rgba(43, 41, 42, 0.18);
	padding: 2.5rem 2rem 2rem;
}

.oso-brands .wp-block-image {
	margin: 0;
	text-align: center;
}

.oso-brands img {
	filter: grayscale(1);
	height: 48px;
	margin: 0.75rem auto;
	max-width: 160px;
	object-fit: contain;
	opacity: 0.9;
	width: auto;
}

.oso-card {
	border: 1px solid #ebe9ea;
	border-radius: 8px;
}

/* ---- blog archive + related cards (live Kadence boxed 3-col) ---- */

.oso-blog {
	background: #fff;
	padding: 3.5rem 1.5rem 4.5rem !important;
}

.oso-blog .wp-block-post-template {
	gap: 40px;
}

.oso-blog-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.oso-blog-card .wp-block-post-featured-image,
.oso-blog-card .wp-block-post-featured-image img {
	border-radius: 0;
	margin: 0;
}

.oso-blog-card__body {
	padding: 2.2rem;
}

.oso-blog-cat,
.oso-blog-cat a,
.oso-blog-card .wp-block-post-terms,
.oso-blog-card .wp-block-post-terms a {
	color: #aa4f77 !important;
	font-family: "Open Sans", sans-serif;
	font-size: 11.9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
}

.oso-blog-card .wp-block-post-terms {
	margin: 0 0 0.75rem;
}

.oso-blog-card .wp-block-post-title,
.oso-blog-card .wp-block-post-title a {
	color: #3c3839 !important;
	font-family: "Proza Libre", serif;
	font-size: 25px !important;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.3 !important;
	margin: 0;
	text-decoration: none;
}

.oso-blog-card .wp-block-post-title a:hover,
.oso-blog-cat a:hover {
	color: #873f5f !important;
}

.oso-blog-meta {
	color: #3c3839;
	font-family: "Open Sans", sans-serif;
	font-size: 13.6px;
	gap: 0;
	line-height: 1.6;
	margin: 13.6px 0;
}

.oso-blog-meta .wp-block-post-author-name,
.oso-blog-meta .wp-block-post-author-name a,
.oso-blog-meta .wp-block-post-date,
.oso-blog-meta .wp-block-post-date a {
	color: #3c3839 !important;
	font-size: 13.6px;
	text-decoration: none;
}

.oso-blog-meta .wp-block-post-author-name::before {
	content: "By ";
}

.oso-blog-meta .wp-block-post-date::before {
	content: " / ";
	padding: 0 0.15em;
}

.oso-single-meta.oso-blog-meta .wp-block-post-date::before {
	content: " · ";
}

.oso-blog-card .wp-block-post-excerpt,
.oso-blog-card .wp-block-post-excerpt p {
	color: #3c3839;
	font-size: 17px;
	line-height: 1.6;
	margin: 17px 0 0;
}

.oso-blog-card .wp-block-post-excerpt__more-text,
.oso-blog-card .wp-block-post-excerpt__more-link {
	color: #3c3839 !important;
	display: inline-block;
	font-size: 13.6px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-top: 1rem;
	text-decoration: none;
	text-transform: uppercase;
}

.oso-blog-card .wp-block-post-excerpt__more-link::after {
	content: " →";
}

/* ---- single post ---- */

.oso-single {
	background: #f6f5f5;
}

.oso-single-hero.alignfull,
.oso-single .wp-block-post-featured-image.alignfull {
	aspect-ratio: 2.72 / 1;
	margin-bottom: -4.3em;
	margin-left: calc(50% - 50vw);
	max-width: 100vw;
	overflow: hidden;
	position: relative;
	width: 100vw;
	z-index: 0;
}

.oso-single-hero img,
.oso-single .wp-block-post-featured-image.alignfull img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.oso-single-hero::after,
.oso-single .wp-block-post-featured-image.alignfull::after {
	background: linear-gradient(0deg, #f6f5f5 5%, rgba(246, 245, 245, 0.35) 30%, rgba(255, 255, 255, 0) 50%);
	bottom: -1px;
	content: "";
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
}

.oso-single__body,
.oso-single .wp-block-post-content {
	max-width: 794px;
}

.oso-single__body {
	padding-bottom: 2rem;
	padding-top: 0;
	position: relative;
	z-index: 1;
}

.oso-single__body > .wp-block-post-title {
	color: #2b292a;
	font-size: clamp(2rem, 4.2vw, 60px) !important;
	letter-spacing: -1px;
	line-height: 1.5 !important;
	margin: 0;
	text-align: center;
}

.oso-single-meta {
	justify-content: center;
	margin: 13.6px 0 2rem;
	width: 100%;
}

.oso-single .wp-block-post-content h1,
.oso-single .wp-block-post-content h2 {
	color: #2b292a;
	font-size: 36px !important;
	line-height: 1.3 !important;
	margin: 54px 0 18px !important;
}

.oso-single .wp-block-post-content p,
.oso-single .wp-block-post-content .wp-block-audio {
	margin: 0 0 32px;
}

.oso-single .wp-block-post-content ul,
.oso-single .wp-block-post-content ol {
	margin: 0 0 32px;
	padding-left: 1.25rem;
}

.oso-post-nav {
	padding: 1rem 0 2.5rem;
}

.oso-post-nav .wp-block-post-navigation-link,
.oso-post-nav .post-navigation-link-previous {
	display: block;
}

.oso-post-nav .post-navigation-link__label,
.oso-post-nav .wp-block-post-navigation-link__label {
	color: #3c3839;
	display: block;
	font-size: 13.6px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 8.5px;
	text-transform: uppercase;
}

.oso-post-nav .post-navigation-link__label::before,
.oso-post-nav .wp-block-post-navigation-link__label::before {
	content: "← ";
}

.oso-post-nav a {
	color: #3c3839;
	display: inline-block;
	font-size: 17px;
	font-weight: 400;
	text-decoration: none;
}

.oso-post-nav a:hover {
	color: #aa4f77;
}

.oso-related {
	background: #ebe9ea;
	padding: 3rem 1.5rem 3.5rem !important;
}

.oso-related h2.wp-block-heading {
	font-size: 36px !important;
	line-height: 1.2;
	margin: 0 0 1.5rem !important;
	text-transform: none;
}

.oso-related .wp-block-post-template {
	gap: 40px;
}

.oso-post-cta {
	background: #fff;
}

.oso-post-cta h2.wp-block-heading {
	font-size: 32px !important;
	line-height: 1.1;
	text-transform: capitalize;
}

.wps-form {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 782px) {
	.oso-cta .wps-form {
		grid-template-columns: 1fr 1fr;
	}

	.oso-cta .wps-form .gwdj-field:nth-of-type(n + 3),
	.oso-cta .wps-form .wps-hp,
	.oso-cta .wps-form .wps-turnstile,
	.oso-cta .wps-form .gwdj-submit,
	.oso-cta .wps-form .wps-status {
		grid-column: 1 / -1;
	}
}

.wps-form .gwdj-field,
.wps-form .gwdj-field label {
	display: block;
	margin: 0;
}

.wps-form input,
.wps-form textarea,
.wps-form select {
	background: #fff;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	box-sizing: border-box;
	color: #4f494b;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	padding: 6.4px 8px;
	width: 100%;
}

.wps-form textarea {
	min-height: 8rem;
}

.wps-form .gwdj-label {
	color: #2b292a;
	display: block;
	font-size: 1rem;
	margin-bottom: 0.35rem;
}

.wps-form .gwdj-submit {
	margin: 0;
}

.wps-form .gwdj-submit button {
	width: 100%;
}

.wps-form .wps-hp {
	clip: rect(0 0 0 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.oso-about-cover.wp-block-cover {
	min-height: 420px !important;
}

.oso-about-cover .wp-block-cover__image-background.has-parallax,
.oso-about-cover.has-parallax .wp-block-cover__image-background {
	background-attachment: fixed !important;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}

.page-id-112 .oso-about-cover.wp-block-cover {
	min-height: 560px !important;
}

.oso-about-cover h1 {
	font-size: clamp(2.5rem, 5vw, 64px);
	line-height: 1;
}

.oso-values.wp-block-group {
	background: transparent !important;
	margin-top: -10rem !important;
	padding-top: 0 !important;
	position: relative;
	z-index: 2;
}

.oso-values .wp-block-column {
	background: #ebe9ea;
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.oso-values .wp-block-heading,
.oso-values h2,
.oso-values h3 {
	font-size: clamp(1.1rem, 0.995rem + 0.326vw, 1.25rem) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 1rem !important;
}

.oso-values p {
	font-size: clamp(0.8rem, 0.73rem + 0.217vw, 0.9rem) !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}

.oso-footer a,
footer a {
	color: #aa4f77;
}

.oso-single__body {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

@media (min-width: 782px) {
	.oso-hero .wp-block-columns {
		align-items: center;
	}
}
