/*
Theme Name: My Online Personnel Child
Theme URI: https://myonlinepersonnel.com/
Description: Bespoke Kadence child theme for My Online Personnel.
Author: My Online Personnel
Template: kadence
Version: 1.0.0
Text Domain: myonlinepersonnel
*/

/* The shortcode supplies the homepage H1; suppress Kadence's duplicate page hero. */
.mop-has-homepage .entry-hero {
	display: none !important;
}

/* Text-led personal presentation: no public portrait is required. */
.mop-about-editorial {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr);
	gap: clamp(48px, 8vw, 110px);
	align-items: start;
}

.mop-about-heading {
	position: sticky;
	top: 120px;
}

.mop-about-heading blockquote {
	max-width: 560px;
}

.mop-about-lead {
	font-size: clamp(1.25rem, 2.1vw, 1.65rem);
	line-height: 1.5;
	font-weight: 650;
	color: var(--mop-sage-dark);
}

.mop-about-copy > p {
	max-width: 650px;
}

.mop-about-facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 2rem;
}

.mop-about-facts span {
	padding: 22px;
	border: 1px solid var(--mop-border);
	border-radius: var(--mop-radius);
	background: var(--mop-cream);
	color: var(--mop-muted);
	font-size: .88rem;
}

.mop-about-facts strong {
	display: block;
	margin-bottom: 3px;
	color: var(--mop-ink);
	font-size: 1rem;
}

.mop-contact-experience {
	display: grid;
	gap: 1px;
	padding: 10px;
	border: 1px solid #cbd5cd;
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 22px 55px rgba(23, 38, 51, .09);
}

.mop-contact-experience span {
	display: block;
	padding: clamp(22px, 4vw, 32px);
	border-bottom: 1px solid #d9ded8;
	color: var(--mopc-muted);
}

.mop-contact-experience span:last-child {
	border-bottom: 0;
}

.mop-contact-experience strong {
	display: block;
	margin-bottom: 4px;
	color: var(--mopc-ink);
	font-size: clamp(1.15rem, 2vw, 1.4rem);
}

@media (max-width: 800px) {
	.mop-about-editorial {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.mop-about-heading {
		position: static;
	}
}

@media (max-width: 480px) {
	.mop-about-facts {
		grid-template-columns: 1fr;
	}
}

/* Service cards are presentational until genuine service destinations exist. */
.mop-homepage .mop-card {
	height: 100%;
	transition: transform .42s var(--mop-ease), box-shadow .42s var(--mop-ease), border-color .3s ease;
}

.mop-homepage .mop-card:hover {
	transform: translateY(-7px);
	border-color: #9cac9f;
	box-shadow: 0 24px 48px rgba(23, 38, 51, .12);
}

.mop-homepage .mop-card:hover .mop-image {
	transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
	.mop-homepage .mop-card:hover,
	.mop-homepage .mop-card:hover .mop-image {
		transform: none;
	}
}

/* Version 3 brand lockup. */
.site-branding .site-title,
.site-branding .site-title-wrap {
	line-height: 1.05;
}

.site-branding .site-title a {
	display: inline-flex;
	flex-direction: column;
	font-weight: 750;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.site-branding .site-title a::after {
	content: "Professional Customer Support";
	margin-top: 7px;
	font-size: .48em;
	font-weight: 600;
	letter-spacing: .16em;
	color: #526b5c;
	white-space: nowrap;
}

.mop-site-footer .mop-footer-brand > strong {
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mop-site-footer .mop-footer-brand p {
	margin-top: 22px;
	font-size: 1.03rem;
	line-height: 1.85;
}

/* More compact heading and a business-appropriate landscape image area. */
.mop-homepage .mop-hero h1 {
	max-width: 12ch;
	font-size: clamp(2.9rem, 5.3vw, 5.25rem);
	line-height: 1.04;
}

.mop-homepage .mop-hero h1 span {
	display: block;
}

.mop-homepage .mop-hero .mop-split {
	grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
}

.mop-homepage .mop-hero-media {
	min-height: 0;
	aspect-ratio: 4 / 3;
}

.mop-homepage .mop-hero-media .mop-image,
.mop-homepage .mop-hero-media .mop-image-placeholder {
	min-height: 0;
	aspect-ratio: 4 / 3;
}

/* Visitor problem recognition. */
.mop-familiar {
	padding: clamp(65px, 8vw, 100px) 0;
	background: #fff;
}

.mop-familiar > .mop-shell {
	display: grid;
	grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
	gap: clamp(40px, 8vw, 100px);
	align-items: center;
}

.mop-familiar-heading h2 {
	max-width: 10ch;
}

.mop-familiar-heading > p:last-child {
	margin-top: 1.6rem;
	color: var(--mop-sage-dark);
	font-size: 1.2rem;
	font-weight: 750;
}

.mop-familiar-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mop-familiar-list li {
	position: relative;
	min-height: 100%;
	padding: 19px 20px 19px 51px;
	border: 1px solid var(--mop-border);
	border-radius: var(--mop-radius);
	background: var(--mop-cream);
}

.mop-familiar-list li::before {
	content: "✓";
	position: absolute;
	top: 20px;
	left: 20px;
	color: var(--mop-sage-dark);
	font-weight: 800;
}

.mop-familiar-list li:last-child {
	grid-column: 1 / -1;
}

.mop-homepage .mop-trust-grid {
	margin-top: 0;
	padding-block: 36px;
}

.mop-process .mop-eyebrow {
	display: none;
}

/* Purpose-led philosophy section. */
.mop-philosophy h2 {
	color: #fff;
	font-size: clamp(2.15rem, 4.5vw, 3.85rem);
}

.mop-philosophy-answer {
	color: #d6dfe1;
	font-size: clamp(1.35rem, 2.5vw, 1.9rem);
	line-height: 1.5;
}

.mop-philosophy-link {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-top: 2rem;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.mop-philosophy-link span {
	transition: transform .25s var(--mop-ease);
}

.mop-philosophy-link:hover span {
	transform: translateX(4px);
}

@media (max-width: 800px) {
	.mop-homepage .mop-hero .mop-split,
	.mop-familiar > .mop-shell {
		grid-template-columns: 1fr;
	}

	.mop-homepage .mop-hero h1 {
		max-width: 11ch;
		font-size: clamp(2.8rem, 10vw, 4.5rem);
	}

	.mop-homepage .mop-hero-media,
	.mop-homepage .mop-hero-media .mop-image,
	.mop-homepage .mop-hero-media .mop-image-placeholder {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 540px) {
	.site-branding .site-title a::after {
		font-size: .42em;
		letter-spacing: .1em;
	}

	.mop-homepage .mop-hero h1 {
		font-size: clamp(2.55rem, 12vw, 3.45rem);
		line-height: 1.07;
	}

	.mop-familiar {
		padding-block: 62px;
	}

	.mop-familiar-list {
		grid-template-columns: 1fr;
	}

	.mop-familiar-list li:last-child {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mop-philosophy-link span {
		transition: none;
	}
}

/* Contact form layout: give WPForms a comfortable, conversion-friendly width. */
.mop-contact-page .mop-contact-shell {
	width: min(1220px, calc(100% - 40px));
}

.mop-contact-page .mop-form-grid {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(42px, 6vw, 84px);
}

.mop-contact-page .mop-form-wrap,
.mop-contact-page .wpforms-container,
.mop-contact-page .wpforms-form,
.mop-contact-page .wpforms-field-row,
.mop-contact-page .wpforms-field-row-block {
	width: 100%;
	max-width: none;
}

.mop-contact-page .wpforms-container input[type="text"],
.mop-contact-page .wpforms-container input[type="email"],
.mop-contact-page .wpforms-container input[type="tel"],
.mop-contact-page .wpforms-container input[type="url"],
.mop-contact-page .wpforms-container input[type="number"],
.mop-contact-page .wpforms-container select,
.mop-contact-page .wpforms-container textarea {
	width: 100% !important;
	max-width: none !important;
}

.mop-contact-page .wpforms-container .wpforms-field {
	padding-block: 0 22px;
}

@media (max-width: 760px) {
	.mop-contact-page .mop-contact-shell {
		width: calc(100% - 28px);
	}

	.mop-contact-page .mop-form-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
}

/* Live mobile safeguard: section-level gutters cannot be cancelled by Kadence wrappers. */
@media (max-width: 760px) {
	body.mop-has-homepage .mop-homepage > .mop-hero,
	body.mop-has-homepage .mop-homepage > .mop-familiar,
	body.mop-has-homepage .mop-homepage > .mop-trust-strip,
	body.mop-has-homepage .mop-homepage > .mop-about,
	body.mop-has-homepage .mop-homepage > .mop-services,
	body.mop-has-homepage .mop-homepage > .mop-health,
	body.mop-has-homepage .mop-homepage > .mop-social-proof,
	body.mop-has-homepage .mop-homepage > .mop-process,
	body.mop-has-homepage .mop-homepage > .mop-pricing,
	body.mop-has-homepage .mop-homepage > .mop-philosophy,
	body.mop-has-homepage .mop-homepage > .mop-final {
		padding-right: 24px !important;
		padding-left: 24px !important;
	}

	body.mop-has-homepage .mop-homepage > section > .mop-shell {
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: auto !important;
		margin-left: auto !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
		transform: none !important;
	}

	body.mop-has-homepage .mop-homepage > .mop-trust-strip > .mop-trust-grid,
	body.mop-has-homepage .mop-homepage > .mop-health > .mop-health-panel {
		padding-right: 24px !important;
		padding-left: 24px !important;
	}

	body.mop-has-homepage .mop-homepage .mop-hero h1 {
		width: 100%;
		max-width: 100%;
		font-size: clamp(2.45rem, 11vw, 3.15rem);
		line-height: 1.08;
		overflow-wrap: normal;
	}

	body.mop-has-homepage .mop-homepage .mop-hero-copy,
	body.mop-has-homepage .mop-homepage .mop-familiar-heading,
	body.mop-has-homepage .mop-homepage .mop-about-heading,
	body.mop-has-homepage .mop-homepage .mop-about-copy {
		left: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		transform: none !important;
	}
}

/* Hero proportions: keep the message dominant and the imagery supportive. */
@media (min-width: 801px) {
	.mop-homepage .mop-hero {
		padding-top: clamp(58px, 6vw, 92px);
		padding-bottom: clamp(64px, 7vw, 96px);
	}

	.mop-homepage .mop-hero .mop-split {
		grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
		gap: clamp(44px, 6vw, 82px);
	}

	.mop-homepage .mop-hero-media {
		height: min(42vw, 560px);
		max-height: 560px;
		aspect-ratio: auto;
		align-self: center;
	}

	.mop-homepage .mop-hero-media .mop-image,
	.mop-homepage .mop-hero-media .mop-image-placeholder {
		height: 100%;
		max-height: 560px;
		aspect-ratio: auto;
		object-fit: cover;
	}
}

/* Consistent mobile page gutters and overflow protection. */
@media (max-width: 760px) {
	.mop-homepage,
	.mop-homepage * {
		box-sizing: border-box;
	}

	.mop-homepage .mop-shell:not(.mop-trust-grid):not(.mop-health-panel) {
		width: 100%;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
		padding-right: 24px;
		padding-left: 24px;
	}

	.mop-homepage .mop-trust-strip .mop-trust-grid,
	.mop-homepage .mop-health-panel {
		width: calc(100% - 48px);
		max-width: calc(100% - 48px);
		margin-right: auto;
		margin-left: auto;
		padding-right: 24px;
		padding-left: 24px;
	}

	.mop-homepage .mop-hero-copy {
		position: static;
		left: auto;
		width: 100%;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
		transform: none;
	}

	.mop-homepage .mop-hero-copy h1,
	.mop-homepage .mop-hero-copy p,
	.mop-homepage .mop-section h2,
	.mop-homepage .mop-section h3,
	.mop-homepage .mop-section p,
	.mop-homepage .mop-familiar h2,
	.mop-homepage .mop-familiar p {
		max-width: 100%;
	}

	.mop-homepage .mop-hero .mop-hero-media {
		width: 100%;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
		transform: none;
	}

	.mop-homepage .mop-image-caption {
		left: 0;
		max-width: calc(100% - 24px);
	}

	.mop-homepage .mop-card-grid,
	.mop-homepage .mop-card,
	.mop-homepage .mop-familiar-list,
	.mop-homepage .mop-check-list,
	.mop-homepage .mop-actions {
		width: 100%;
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
	}
}
