/*
 * Design style: Modern Clean (default) — final visual polish.
 * Clean, modern, trustworthy contractor identity: bright neutrals, slate/navy,
 * controlled blue; refined cards, stronger hero/trust, commercial footer.
 * Avoid generic white/blue SaaS look. Tokens: styles/modern-clean.json.
 */

body.studio-style-modern-clean {
	--sb-card-radius: var(--wp--custom--radius--medium);
	--sb-chip-radius: var(--wp--custom--radius--pill);
}

body.studio-style-modern-clean .wp-site-blocks > header.wp-block-template-part {
	box-shadow: 0 1px 0 var(--wp--preset--color--border), 0 8px 24px -16px color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
}
body.studio-style-modern-clean .wp-site-blocks > header.wp-block-template-part .wp-block-site-title {
	font-weight: var(--wp--custom--font-weight--bold);
	letter-spacing: -0.02em;
}
body.studio-style-modern-clean .studio-header-actions .wp-block-button__link {
	box-shadow: var(--wp--preset--shadow--soft);
}

body.studio-style-modern-clean .alignfull:where(.studio-hero, .wp-block-post-content > .alignfull:first-child:has(> h1)) {
	background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--primary) var(--wp--custom--style--hero-tint, 9%), transparent) 0%, transparent 70%), linear-gradient(to bottom, var(--wp--preset--color--surface), var(--wp--preset--color--base));
}
body.studio-style-modern-clean .alignfull:where(.studio-hero-split, .wp-block-post-content > .alignfull:first-child:has(.wp-block-column h1)) {
	background-image: linear-gradient(160deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--base) 55%, color-mix(in srgb, var(--wp--preset--color--primary) 4%, var(--wp--preset--color--base)) 100%);
}
body.studio-style-modern-clean .alignfull:where(.studio-hero-split, .wp-block-post-content > .alignfull:first-child:has(.wp-block-column h1)) .wp-block-column > .wp-block-image img {
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--raised);
}
body.studio-style-modern-clean .studio-eyebrow {
	color: var(--wp--preset--color--primary);
}

body.studio-style-modern-clean .is-style-outline > .wp-block-button__link {
	border-color: color-mix(in srgb, currentColor 35%, transparent);
}
body.studio-style-modern-clean .is-style-outline > .wp-block-button__link:hover {
	border-color: currentColor;
	background-color: color-mix(in srgb, currentColor 6%, transparent);
}

body.studio-style-modern-clean .studio-trust {
	background-color: var(--wp--preset--color--surface);
	border-block-color: transparent;
}
body.studio-style-modern-clean .studio-trust .studio-trust-item {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--base);
	border: var(--wp--custom--border-width--thin) solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--soft);
}

body.studio-style-modern-clean .studio-features .wp-block-column > h3::before {
	color: var(--wp--preset--color--secondary);
	font-variant-numeric: tabular-nums;
}

body.studio-style-modern-clean .studio-services {
	background-color: var(--wp--preset--color--surface);
}
body.studio-style-modern-clean .studio-services .is-style-card {
	border-color: color-mix(in srgb, var(--wp--preset--color--border) 80%, transparent);
	box-shadow: var(--wp--preset--shadow--soft);
}
body.studio-style-modern-clean .studio-services .is-style-card h3::before {
	background-color: var(--wp--preset--color--secondary);
	width: 2rem;
	height: 2px;
}

body.studio-style-modern-clean .studio-stats .has-primary-color {
	color: var(--wp--preset--color--secondary) !important;
}

body.studio-style-modern-clean .alignfull:where(.studio-cta, .wp-block-post-content > .alignfull.has-primary-background-color) {
	background-image: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--primary-contrast) var(--wp--custom--style--cta-highlight, 10%), transparent), transparent 60%);
}

body.studio-style-modern-clean .wp-site-blocks > footer.wp-block-template-part {
	border-top: var(--wp--custom--border-width--thin) solid var(--wp--preset--color--border);
	background-color: var(--wp--preset--color--surface);
}
body.studio-style-modern-clean .wp-site-blocks > footer.wp-block-template-part h2 {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

body.studio-style-modern-clean .wp-block-details {
	padding: 0 var(--wp--preset--spacing--40);
	border: var(--wp--custom--border-width--thin) solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .wp-block-details + .wp-block-details {
	margin-block-start: var(--wp--preset--spacing--20);
}
body.studio-style-modern-clean .wp-block-details[open] {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border));
	box-shadow: var(--wp--preset--shadow--soft);
}
body.studio-style-modern-clean .wp-block-details > summary {
	padding-block: var(--wp--preset--spacing--30);
}
body.studio-style-modern-clean .wp-block-details > summary::after {
	color: var(--wp--preset--color--primary);
}
body.studio-style-modern-clean .wp-block-details > :last-child:not(summary) {
	padding-bottom: var(--wp--preset--spacing--40);
}

body.studio-style-modern-clean .wp-block-gallery.has-nested-images figure.wp-block-image {
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
}

body.studio-style-modern-clean .studio-before-after .wp-block-columns {
	gap: var(--wp--preset--spacing--40) !important;
}

body.studio-style-modern-clean .studio-testimonials {
	background-color: var(--wp--preset--color--surface);
}
body.studio-style-modern-clean .studio-testimonials .is-style-card {
	border-color: transparent;
	box-shadow: var(--wp--preset--shadow--soft);
}

body.studio-style-modern-clean .studio-emergency {
	border-top: 4px solid var(--wp--preset--color--accent);
}

body.studio-style-modern-clean .studio-sticky-bar__quote {
	background-color: var(--wp--preset--color--primary);
}

body.studio-style-modern-clean .studio-hero-collage__grid {
	display: grid !important;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--wp--preset--spacing--30);
	align-items: stretch;
}
body.studio-style-modern-clean .studio-hero-collage__grid > .studio-hero-collage__stack,
body.studio-style-modern-clean .studio-hero-collage__grid > .wp-block-group:not(.studio-hero-collage__tall) {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-height: 0;
	height: 100%;
}
body.studio-style-modern-clean .studio-hero-collage__tall {
	margin: 0;
	height: 100%;
}
body.studio-style-modern-clean .studio-hero-collage__tall img,
body.studio-style-modern-clean .studio-hero-collage img {
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: var(--wp--preset--color--surface);
}
body.studio-style-modern-clean .studio-hero-collage__tall img {
	aspect-ratio: 3 / 4;
	min-height: 20rem;
}
body.studio-style-modern-clean .studio-hero-collage__stack > .wp-block-image,
body.studio-style-modern-clean .studio-hero-collage__grid > .wp-block-group > .wp-block-image {
	flex: 1 1 0;
	margin: 0;
	min-height: 0;
}
body.studio-style-modern-clean .studio-hero-collage__stack img,
body.studio-style-modern-clean .studio-hero-collage__grid > .wp-block-group img {
	aspect-ratio: auto;
	min-height: 0;
	height: 100%;
}
body.studio-style-modern-clean .studio-hero-collage__stack > .wp-block-image,
body.studio-style-modern-clean .studio-hero-collage__grid > .wp-block-group > .wp-block-image {
	display: flex;
}
body.studio-style-modern-clean .studio-hero-collage__tall {
	align-self: stretch;
}
body.studio-style-modern-clean .studio-hero-collage__grid {
	/* equal column heights: stack fills to dominant edge */
	align-items: stretch;
}

body.studio-style-modern-clean .studio-hero-collage__offset {
	transform: none !important;
}
@media (max-width: 781px) {
	body.studio-style-modern-clean .studio-hero-collage__grid {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--wp--preset--spacing--20);
	}
	body.studio-style-modern-clean .studio-hero-collage__tall img {
		min-height: 16rem;
	}
}
@media (max-width: 599px) {
	body.studio-style-modern-clean .studio-hero-collage {
		padding-block: var(--wp--preset--spacing--50);
	}
	body.studio-style-modern-clean .studio-hero-collage__grid {
		grid-template-columns: 1.15fr 1fr;
	}
}

body.studio-style-modern-clean .studio-services-thumbs {
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .studio-services-thumbs > .alignwide {
	gap: var(--wp--preset--spacing--40);
}
body.studio-style-modern-clean .studio-services-thumbs__card {
	padding: 0;
	overflow: hidden;
	border-color: var(--wp--preset--color--border);
	box-shadow: none;
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .studio-services-thumbs__card > :not(.wp-block-image):not(.studio-services-thumbs__label) {
	padding-inline: var(--wp--preset--spacing--40);
}
body.studio-style-modern-clean .studio-services-thumbs__card > :last-child {
	padding-bottom: var(--wp--preset--spacing--40);
}
body.studio-style-modern-clean .studio-services-thumbs__card h3 {
	margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
}
body.studio-style-modern-clean .studio-services-thumbs__card h3::before {
	display: none;
}
body.studio-style-modern-clean .studio-services-thumbs__card .wp-block-image img {
	border-radius: 0;
	box-shadow: none;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
body.studio-style-modern-clean .studio-services-thumbs__label {
	display: block;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding-inline: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}
body.studio-style-modern-clean .studio-services-thumbs > .alignwide > .studio-services-thumbs__card:nth-child(even) {
	background-color: var(--wp--preset--color--surface);
	border-color: transparent;
}

body.studio-style-modern-clean .studio-projects-visual {
	background-color: var(--wp--preset--color--surface);
}
/* 1+2 collage: dominant column height = stack of two smalls; shared gap; edge-aligned */
body.studio-style-modern-clean .studio-projects-visual .wp-block-columns {
	align-items: stretch !important;
	gap: var(--wp--preset--spacing--40) !important;
}
body.studio-style-modern-clean .studio-projects-visual .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	min-height: 0;
	align-self: stretch;
}
body.studio-style-modern-clean .studio-projects-visual .wp-block-column > .wp-block-image {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 0;
	margin: 0;
}
body.studio-style-modern-clean .studio-projects-visual .wp-block-column:first-child > .wp-block-image {
	/* single dominant fills full column height to match the two-small stack */
	flex: 1 1 auto;
	height: 100%;
}
body.studio-style-modern-clean .studio-projects-visual .wp-block-image img {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	aspect-ratio: auto !important; /* layout owns crop; accept any HiRes photo */
	object-fit: cover;
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .studio-projects-visual figcaption,
body.studio-style-modern-clean .studio-gallery-visual figcaption {
	flex: 0 0 auto;
	box-sizing: content-box;
	min-height: 1.4em;
	margin-top: var(--wp--preset--spacing--20);
	margin-bottom: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}
body.studio-style-modern-clean .studio-gallery-visual .wp-block-gallery {
	gap: var(--wp--preset--spacing--40);
}
body.studio-style-modern-clean .studio-gallery-visual .wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 0 !important;
}
body.studio-style-modern-clean .studio-gallery-visual .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--base);
}


body.studio-style-modern-clean .studio-testimonials-balanced {
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .studio-testimonials-balanced .is-style-card {
	height: 100%;
	border-color: var(--wp--preset--color--border);
	box-shadow: none;
	background-color: var(--wp--preset--color--surface);
}
body.studio-style-modern-clean .studio-testimonials-balanced .studio-rating {
	color: var(--wp--preset--color--secondary);
}
body.studio-style-modern-clean .studio-testimonials-balanced .is-style-card > .wp-block-quote::before {
	color: var(--wp--preset--color--secondary);
	font-size: 2.5em;
}

body.studio-style-modern-clean .studio-cta-contact {
	border-block: var(--wp--custom--border-width--thin) solid var(--wp--preset--color--border);
	background-color: var(--wp--preset--color--surface);
}

@media (max-width: 781px) {
	body.studio-style-modern-clean .wp-site-blocks > footer.wp-block-template-part .alignfull {
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--40) !important;
	}
	body.studio-style-modern-clean .wp-site-blocks > footer.wp-block-template-part .wp-block-columns {
		gap: var(--wp--preset--spacing--40) !important;
	}
	body.studio-style-modern-clean .studio-projects-visual .wp-block-columns {
		gap: var(--wp--preset--spacing--40) !important;
	}
}
@media (max-width: 599px) {
	/* stacked 1+2: keep intentional asymmetry via consistent cover crops, no leftover white band */
	body.studio-style-modern-clean .studio-projects-visual .wp-block-column > .wp-block-image {
		flex: 0 0 auto;
		height: auto;
	}
	body.studio-style-modern-clean .studio-projects-visual .wp-block-image img {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3 !important;
	}
	body.studio-style-modern-clean .studio-projects-visual .wp-block-column:first-child .wp-block-image img {
		aspect-ratio: 16 / 10 !important;
	}
	body.studio-style-modern-clean .wp-site-blocks > footer.wp-block-template-part .alignfull {
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: var(--wp--preset--spacing--30) !important;
	}
	body.studio-style-modern-clean .studio-services-thumbs__card > :not(.wp-block-image):not(.studio-services-thumbs__label) {
		padding-inline: var(--wp--preset--spacing--30);
	}
	body.studio-style-modern-clean .studio-services-thumbs__label {
		padding-inline: var(--wp--preset--spacing--30);
	}
	body.studio-style-modern-clean .studio-testimonials-balanced {
		padding-block: var(--wp--preset--spacing--50);
	}
}

body.studio-style-modern-clean .wp-site-blocks > header.wp-block-template-part {
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}
body.studio-style-modern-clean .studio-trust .studio-trust-item {
	box-shadow: none;
}
body.studio-style-modern-clean .studio-features {
	background-color: var(--wp--preset--color--base);
}

/* Modern Family Dental visual refinements (continuous flow & unboxed composition) */
body.studio-style-modern-clean .studio-header-family {
	background-color: var(--wp--preset--color--base);
}
body.studio-style-modern-clean .studio-header-family .wp-block-navigation .wp-block-navigation-item__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

body.studio-style-modern-clean .studio-hero-family {
	position: relative;
	background-image: radial-gradient(ellipse 70% 65% at 85% 50%, color-mix(in srgb, var(--wp--preset--color--surface) 75%, transparent) 0%, var(--wp--preset--color--base) 100%);
}

body.studio-style-modern-clean .studio-hero-family .studio-hero-media-column {
	position: relative;
}

body.studio-style-modern-clean .studio-hero-family .wp-block-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	box-shadow: none !important;
	border-radius: 12px;
}

@media (min-width: 900px) {
	body.studio-style-modern-clean .studio-hero-family .wp-block-image img {
		max-height: 430px;
		-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.02) 4%, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.35) 15%, rgba(0, 0, 0, 0.7) 22%, black 28%, black 100%);
		mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.02) 4%, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.35) 15%, rgba(0, 0, 0, 0.7) 22%, black 28%, black 100%);
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		border-top-right-radius: 12px;
		border-bottom-right-radius: 12px;
	}
}

body.studio-style-modern-clean .studio-services-family .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: transform 0.2s ease;
}

body.studio-style-modern-clean .studio-services-family .wp-block-column:hover {
	transform: translateY(-2px);
}

body.studio-style-modern-clean .studio-services-family .wp-block-column > p:last-child {
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--20);
}

@media (min-width: 900px) {
	body.studio-style-modern-clean .studio-services-family .wp-block-columns {
		gap: 0 !important;
	}
	body.studio-style-modern-clean .studio-services-family .wp-block-columns > .wp-block-column {
		padding-inline: var(--wp--preset--spacing--30) !important;
	}
	body.studio-style-modern-clean .studio-services-family .wp-block-columns > .wp-block-column:first-child {
		padding-left: 0 !important;
	}
	body.studio-style-modern-clean .studio-services-family .wp-block-columns > .wp-block-column:not(:last-child) {
		border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 60%, transparent);
	}
	body.studio-style-modern-clean .studio-services-family .wp-block-columns > .wp-block-column:last-child {
		padding-right: 0 !important;
	}
}

body.studio-style-modern-clean .studio-office-tour .wp-block-image img,
body.studio-style-modern-clean .studio-life-stages .wp-block-image img,
body.studio-style-modern-clean .studio-cta-family .wp-block-image img {
	border-radius: 12px !important;
	box-shadow: none !important;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

body.studio-style-modern-clean .studio-testimonials-contrast .wp-block-image img {
	border-radius: 12px !important;
	box-shadow: none !important;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

body.studio-style-modern-clean .studio-team-family .wp-block-column .wp-block-image img {
	border-radius: 12px !important;
	box-shadow: none !important;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

body.studio-style-modern-clean .studio-team-family .wp-block-column:hover .wp-block-image img {
	transform: translateY(-2px);
}

/* Inner Pages Hero & Editorial Layouts for Modern Family Dental */
body.studio-style-modern-clean .studio-inner-hero {
	background: linear-gradient(180deg, var(--wp--preset--color--surface) 0%, color-mix(in srgb, var(--wp--preset--color--surface) 96%, var(--wp--preset--color--primary) 4%) 100%);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}

body.studio-style-modern-clean .studio-inner-hero h1 {
	color: var(--wp--preset--color--contrast);
	letter-spacing: -0.025em;
}

body.studio-style-modern-clean .studio-inner-hero p {
	color: var(--wp--preset--color--muted);
}

/* Navigation: Active item states based on WordPress native body classes */
body.studio-style-modern-clean.page-id-89 .studio-header-family .wp-block-navigation a[href*="/services/"],
body.studio-style-modern-clean.single-studio_service .studio-header-family .wp-block-navigation a[href*="/services/"],
body.studio-style-modern-clean.page-id-652 .studio-header-family .wp-block-navigation a[href*="/team/"],
body.studio-style-modern-clean.single-studio_doctor .studio-header-family .wp-block-navigation a[href*="/team/"],
body.studio-style-modern-clean.page-id-519 .studio-header-family .wp-block-navigation a[href*="/new-patients/"],
body.studio-style-modern-clean.page-id-516 .studio-header-family .wp-block-navigation a[href*="/smile-gallery/"],
body.studio-style-modern-clean.page-id-659 .studio-header-family .wp-block-navigation a[href*="/locations/"],
body.studio-style-modern-clean.single-studio_clinic .studio-header-family .wp-block-navigation a[href*="/locations/"],
body.studio-style-modern-clean.page-id-93 .studio-header-family .wp-block-navigation a[href*="/contact/"] {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 0.35em !important;
	text-decoration-thickness: 2px !important;
}

/* Mobile footer density polish for Modern Family Dental */
@media (max-width: 600px) {
	body.studio-style-modern-clean .studio-footer-family {
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: calc(var(--wp--preset--spacing--40) + 60px) !important;
	}
	body.studio-style-modern-clean .studio-footer-family .wp-block-columns {
		gap: var(--wp--preset--spacing--30) !important;
	}
	body.studio-style-modern-clean .studio-footer-family .wp-block-column {
		gap: var(--wp--preset--spacing--10) !important;
	}
	body.studio-style-modern-clean .studio-footer-family .wp-block-column p {
		line-height: 1.6 !important;
	}
	body.studio-style-modern-clean .studio-footer-family hr.wp-block-separator {
		margin-top: var(--wp--preset--spacing--30) !important;
		margin-bottom: var(--wp--preset--spacing--20) !important;
	}
}
