/**
 * Services page — match Sophia Pro demo service detail layout.
 * https://demo-sophia-pro.wpcustomthemes.com/laser-hair-removal/
 */

body.sophia-services-pro-page .wp-block-post-title,
body.sophia-services-pro-page .entry-title {
	display: none !important;
}

body.sophia-services-pro-page {
	background-color: var(--wp--preset--color--body-background, #fdf6f2) !important;
	position: relative;
}

body.sophia-services-pro-page.page::before {
	background-image: var(--wp--preset--gradient--gradient-bg-color) !important;
	content: '';
	display: block;
	height: 50%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: -1;
}

body.sophia-services-pro-page .wp-site-blocks,
body.sophia-services-pro-page .wp-site-blocks main {
	background: transparent !important;
}

body.sophia-services-pro-page:not(.home) .wp-site-blocks main,
body.sophia-services-pro-page.page-template-page-no-title .wp-site-blocks main,
body.sophia-services-pro-page.page-template-page-services .wp-site-blocks main {
	margin-top: 0;
	padding-top: 0 !important;
}

body.sophia-services-pro-page .wp-block-post-content,
body.sophia-services-pro-page .entry-content.wp-block-post-content {
	max-width: none !important;
	padding-inline: 0 !important;
	width: 100%;
}

body.sophia-services-pro-page .wp-block-post-content > .alignfull,
body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.alignfull {
	box-sizing: border-box;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	padding-inline: 0 !important;
	width: 100vw;
}

body.sophia-services-pro-page .wp-block-post-content > .alignfull.is-layout-constrained,
body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.alignfull.is-layout-constrained {
	max-width: 100vw !important;
}

body.sophia-services-pro-page .wp-block-post-content .alignwide {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size, 1320px);
	width: 100%;
}

body.sophia-services-pro-page .wp-site-blocks main {
	padding-bottom: var(--wp--custom--spacing--main-block-gap, clamp(56px, 5.5vw, 91px));
}

/* Demo: no block-gap between post-content sections — spacing from .wp-block-section only. */
body.sophia-services-pro-page .wp-block-post-content.is-layout-constrained > .wp-block-section,
body.sophia-services-pro-page .wp-block-post-content.is-layout-constrained > .alignfull {
	margin-block-start: 0 !important;
}

body.sophia-services-pro-page .wp-site-blocks main > .wp-block-post-content > .wp-block-service-single-header:first-child,
body.sophia-services-pro-page .wp-site-blocks main > .wp-block-post-content > .wp-block-landing-header:first-child {
	background-color: transparent !important;
	padding-top: 0 !important;
}

/* Service detail hero — not landing-page carousel hero. */
body.sophia-services-pro-page .wp-block-service-single-header .wp-header-main-image {
	margin-top: 0 !important;
}

body.sophia-services-pro-page .wp-block-service-single-header .wp-header-main-image .main-image-wrapper {
	padding-inline: 0 !important;
}

body.sophia-services-pro-page .wp-block-service-single-header .wp-header-main-image .main-image-wrapper img {
	height: auto;
	min-height: 0 !important;
}

/* Hero → Overview: same background band — tighter bottom rhythm (demo service detail). */
body.sophia-services-pro-page .wp-block-post-content > .wp-block-service-single-header.wp-block-landing-header {
	padding-bottom: var(--wp--custom--spacing--block-content-gap, clamp(35px, 3.5vw, 42px));
}

body.sophia-services-pro-page .wp-block-post-content > .wp-block-service-single-header.wp-block-landing-header + .content-full-width {
	margin-block-start: 0 !important;
	padding-top: 0 !important;
}

body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.wp-block-service-single-header:not(:first-child),
body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.wp-block-landing-header:not(:first-child) {
	padding-top: var(--wp--custom--spacing--main-block-gap-medium);
}

body.sophia-services-pro-page .wp-block-post-content > .wp-block-section:has(.wp-block-float-shape) + .wp-block-section,
body.sophia-services-pro-page .wp-block-post-content > .wp-cta-section + .wp-block-section,
body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.wp-block-cover + .wp-block-section,
body.sophia-services-pro-page .wp-block-post-content > .wp-block-section.wp-block-icons-with-text + .wp-block-section {
	padding-top: var(--wp--custom--spacing--section-block-top);
}

body.sophia-services-pro-page .wp-block-post-content > .wp-cta-section.wp-block-section {
	padding-bottom: 0 !important;
	padding-top: 0 !important;
}

body.sophia-services-pro-page .wp-block-landing-header .wp-block-heading,
body.sophia-services-pro-page .wp-block-service-single-header .wp-block-heading {
	overflow-wrap: normal;
	word-break: normal;
}

body.sophia-services-pro-page .wp-block-landing-header,
body.sophia-services-pro-page .wp-block-service-single-header {
	overflow: hidden;
	position: relative;
}

body.sophia-services-pro-page .wp-block-group-content > .accordion {
	margin-top: var(--wp--preset--spacing--42, 42px);
}

/* CTA — match demo (no top gap inside brown block). */
body.sophia-services-pro-page .wp-cta-section.is-style-padding-0 {
	padding: 0 !important;
}

body.sophia-services-pro-page .wp-cta-section.has-chocolate-dim-background-color {
	background-color: var(--wp--preset--color--chocolate-dim, #bd6230) !important;
}

body.sophia-services-pro-page .wp-cta-section.is-style-padding-0 .wp-block-media-text {
	align-items: stretch !important;
	grid-template-columns: 30% auto !important;
}

body.sophia-services-pro-page .wp-cta-section.is-style-padding-0 .wp-block-media-text > .wp-block-media-text__media {
	align-self: stretch !important;
	display: block;
	height: 100% !important;
	margin: 0;
	min-height: 100%;
	overflow: hidden;
}

body.sophia-services-pro-page .wp-cta-section.is-style-padding-0 .wp-block-media-text > .wp-block-media-text__media img {
	display: block;
	height: 100% !important;
	min-height: 100%;
	object-fit: cover;
	vertical-align: top;
	width: 100% !important;
}

body.sophia-services-pro-page .wp-cta-section .wp-block-media-text__content {
	align-self: center !important;
	max-width: 860px;
	padding-bottom: 0;
	padding-left: var(--wp--custom--spacing--outer, clamp(24px, 4vw, 42px));
	padding-right: var(--wp--custom--spacing--outer, clamp(24px, 4vw, 42px));
	padding-top: 0;
}

body.sophia-services-pro-page .wp-cta-section.has-chocolate-dim-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 1px solid var(--wp--preset--color--light, #fff) !important;
	color: var(--wp--preset--color--light, #fff) !important;
}

body.sophia-services-pro-page .wp-cta-section.has-chocolate-dim-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
body.sophia-services-pro-page .wp-cta-section.has-chocolate-dim-background-color .wp-block-button.is-style-outline .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--link-color, #954e26) !important;
	border-color: var(--wp--preset--color--link-color, #954e26) !important;
	color: var(--wp--preset--color--light, #fff) !important;
}

@media screen and (min-width: 782px) {
	body.sophia-services-pro-page .wp-block-landing-header .wp-header-main-image,
	body.sophia-services-pro-page .wp-block-service-single-header .wp-header-main-image {
		margin-top: 0;
	}

	body.sophia-services-pro-page .wp-block-landing-header p,
	body.sophia-services-pro-page .wp-block-service-single-header p {
		max-width: 560px;
	}

	body.sophia-services-pro-page .wp-cta-section .media-on-left .wp-block-media-text__content {
		padding-right: 15%;
	}
}

@media screen and (min-width: 100em) {
	body.sophia-services-pro-page .wp-block-landing-header::before,
	body.sophia-services-pro-page .wp-block-service-single-header::before {
		opacity: 0.6;
		width: 30vw !important;
	}
}

@media screen and (max-width: 781px) {
	body.sophia-services-pro-page .wp-block-post-content .alignwide {
		padding-inline: var(--wp--preset--spacing--24, 24px);
	}

	body.sophia-services-pro-page .wp-cta-section .wp-block-media-text {
		grid-template-columns: 100% !important;
	}
}
