/*
Theme Name: Tampa Bay Marine Center
Theme URI: https://tbmarinecenter.com
Description: Child theme of Twenty Twenty-Five for the Tampa Bay Marine Center site rebuild.
Author: WP Buddha
Author URI: https://wpbuddha.net
Template: twentytwentyfive
Version: 1.1.8
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbmarinecenter
*/

/* Keep page content flush with the site header. */
.wp-site-blocks > main {
	margin-block-start: 0 !important;
}

/* The parent theme draws a solid outline on every :focus, so clicking a link or
   button with the mouse leaves a white box around it. Restrict the outline to
   keyboard focus (:focus-visible) — mouse/touch clicks no longer box, but
   keyboard tabbing still shows a visible focus ring for accessibility. */
.wp-site-blocks *:focus:not(:focus-visible) {
	outline: none !important;
}

/* Header menu: normal weight, with a subtle pipe between items on the desktop
   (horizontal) menu. Skipped on the mobile overlay, where items stack. */
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 400;
}

@media (min-width: 782px) {
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item:not(:last-child)::after {
		content: "|";
		margin-inline-start: 0.9em;
		color: currentColor;
		opacity: 0.35;
	}
}

/* Mobile hamburger: WordPress ships a 2-bar menu icon. Replace it with a
   4-line version drawn as evenly spaced bars. */
.wp-block-navigation__responsive-container-open svg {
	display: none;
}

.wp-block-navigation__responsive-container-open::before {
	content: "";
	display: block;
	width: 26px;
	height: 20px;
	background-image: repeating-linear-gradient(
		to bottom,
		currentColor 0,
		currentColor 2px,
		transparent 2px,
		transparent 6px
	);
}

/* Mobile menu overlay: WordPress core forces `background-color:#fff` on any nav
   without an explicit background (see wp-includes/blocks/navigation/style.css,
   specificity 0,5,0, and it's inlined after this file). Our links are white
   (textColor: base), so the overlay opened as a blank white screen. Force the
   deep-navy background with !important and keep the links white. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #071a2b !important;
}

.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff !important;
}

.wp-block-post-content,
.wp-block-post-content > :first-child {
	margin-block-start: 0 !important;
}

/* ---------------------------------------------------------------------------
 * Homepage hero slider
 * ------------------------------------------------------------------------- */
body.home .wp-block-post-featured-image,
body.home .wp-block-post-title {
	display: none;
}

body.home main.wp-block-group {
	margin-top: 0 !important;
}

body.home main.wp-block-group > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.tbmc-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	align-items: center;
	min-height: clamp(620px, 76vh, 820px);
	overflow: hidden;
	background: #07131f;
	color: #fff;
}

.tbmc-hero__slides,
.tbmc-hero__slide,
.tbmc-hero__shade {
	position: absolute;
	inset: 0;
}

.tbmc-hero__slide {
	opacity: 0;
	transform: scale(1.035);
	transition: opacity 0.9s ease, transform 7s ease;
}

.tbmc-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.tbmc-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbmc-hero__shade {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(4, 15, 25, 0.9) 0%, rgba(4, 15, 25, 0.66) 42%, rgba(4, 15, 25, 0.14) 75%),
		linear-gradient(0deg, rgba(4, 15, 25, 0.65) 0%, transparent 45%);
}

.tbmc-hero__content {
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 160px));
	margin-inline: auto;
	padding-block: 100px 140px;
}

.tbmc-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tbmc-hero__eyebrow::before {
	content: "";
	width: 38px;
	height: 3px;
	background: #39b9ef;
}

.tbmc-hero h1 {
	max-width: 860px;
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: clamp(2.75rem, 6vw, 5.75rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 0.98;
	text-wrap: balance;
}

.tbmc-hero__summary {
	max-width: 680px;
	margin: 28px 0 0;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.65;
}

.tbmc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.tbmc-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 28px;
	border: 2px solid transparent;
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tbmc-hero__button:hover,
.tbmc-hero__button:focus-visible {
	transform: translateY(-2px);
}

.tbmc-hero__button--primary {
	background: #39b9ef;
	color: #071a2b;
}

.tbmc-hero__button--primary:hover,
.tbmc-hero__button--primary:focus-visible {
	background: #fff;
}

.tbmc-hero__button--secondary {
	border-color: rgba(255, 255, 255, 0.75);
	color: #fff;
}

.tbmc-hero__button--secondary:hover,
.tbmc-hero__button--secondary:focus-visible {
	background: #fff;
	color: #06131d;
}

.tbmc-hero__arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: grid;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(4, 15, 25, 0.35);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	place-items: center;
	cursor: pointer;
	translate: 0 -50%;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tbmc-hero__arrow:hover,
.tbmc-hero__arrow:focus-visible {
	border-color: #39b9ef;
	background: #39b9ef;
	color: #06131d;
	transform: scale(1.06);
}

.tbmc-hero__arrow--prev {
	left: 28px;
}

.tbmc-hero__arrow--next {
	right: 28px;
}

.tbmc-hero__footer {
	position: absolute;
	z-index: 3;
	right: max(80px, calc((100% - 1180px) / 2));
	bottom: 38px;
	left: max(80px, calc((100% - 1180px) / 2));
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tbmc-hero__dots {
	display: flex;
	gap: 9px;
}

.tbmc-hero__dot {
	width: 34px;
	height: 4px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.tbmc-hero__dot.is-active {
	width: 58px;
	background: #39b9ef;
}

.tbmc-hero__counter {
	margin: 0;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

@media (max-width: 781px) {
	.tbmc-hero {
		min-height: 660px;
	}

	.tbmc-hero__shade {
		background: linear-gradient(0deg, rgba(4, 15, 25, 0.92) 0%, rgba(4, 15, 25, 0.5) 72%, rgba(4, 15, 25, 0.25) 100%);
	}

	.tbmc-hero__content {
		width: calc(100% - 48px);
		padding-block: 90px 135px;
	}

	.tbmc-hero h1 {
		font-size: clamp(2.7rem, 13vw, 4.3rem);
	}

	.tbmc-hero__arrow {
		top: auto;
		bottom: 80px;
		width: 46px;
		height: 46px;
		translate: none;
	}

	.tbmc-hero__arrow--prev {
		left: 24px;
	}

	.tbmc-hero__arrow--next {
		right: 24px;
	}

	.tbmc-hero__footer {
		right: 84px;
		bottom: 35px;
		left: 24px;
	}

	.tbmc-hero__dot {
		width: 18px;
	}

	.tbmc-hero__dot.is-active {
		width: 34px;
	}

	.tbmc-hero__counter {
		display: none;
	}
}

@media (max-width: 480px) {
	.tbmc-hero__actions {
		display: grid;
	}

	.tbmc-hero__button {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbmc-hero__slide,
	.tbmc-hero__button,
	.tbmc-hero__arrow {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Site footer
 * ------------------------------------------------------------------------- */
.tbmc-footer {
	--tbmc-navy: #071a2b;
	--tbmc-navy-deep: #04111c;
	--tbmc-blue: #39b9ef;
	--tbmc-red: #ef493f;
	margin-top: 0;
	color: #d8e4eb;
	background: var(--tbmc-navy);
}

.tbmc-footer a {
	color: inherit;
}

.tbmc-footer__cta {
	position: relative;
	overflow: hidden;
	padding: 50px 24px;
	background: linear-gradient(115deg, #39b9ef, #6acbf3);
	color: var(--tbmc-navy-deep);
}

.tbmc-footer__cta::after {
	content: "";
	position: absolute;
	top: -120px;
	right: -60px;
	width: 420px;
	height: 260px;
	border: 48px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transform: rotate(-12deg);
}

.tbmc-footer__cta-inner {
	position: relative;
	z-index: 1;
	gap: 28px;
}

.tbmc-footer__eyebrow {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tbmc-footer__cta-title {
	margin: 0;
	color: var(--tbmc-navy-deep);
	font-size: clamp(1.9rem, 4vw, 3.4rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.tbmc-footer__cta-button .wp-block-button__link {
	padding: 17px 26px;
	border: 2px solid var(--tbmc-navy-deep);
	border-radius: 3px;
	background: var(--tbmc-navy-deep);
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.85rem;
	font-weight: 800;
}

.tbmc-footer__cta-button .wp-block-button__link span {
	display: inline-block;
	margin-left: 14px;
	transition: transform 0.2s ease;
}

.tbmc-footer__cta-button .wp-block-button__link:hover,
.tbmc-footer__cta-button .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--tbmc-navy-deep);
}

.tbmc-footer__cta-button .wp-block-button__link:hover span {
	transform: translateX(4px);
}

.tbmc-footer__main {
	padding: 78px 24px 66px;
	background:
		radial-gradient(circle at 8% 15%, rgba(57, 185, 239, 0.1), transparent 28%),
		var(--tbmc-navy);
}

.tbmc-footer__grid {
	gap: clamp(36px, 5vw, 76px);
}

.tbmc-footer__brand .wp-block-site-logo {
	margin-bottom: 28px;
}

.tbmc-footer__brand .wp-block-site-logo img {
	max-width: min(260px, 100%);
	padding: 9px 12px;
	background: #fff;
}

.tbmc-footer__intro {
	max-width: 430px;
	margin: 0;
	color: #a9bdc9;
	font-size: 1rem;
	line-height: 1.75;
}

.tbmc-footer__social {
	gap: 10px;
	margin-top: 28px;
}

.tbmc-footer__social .wp-social-link {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tbmc-footer__social .wp-social-link:hover {
	border-color: var(--tbmc-red);
	background: var(--tbmc-red);
	transform: translateY(-2px);
}

.tbmc-footer__column h3 {
	margin: 5px 0 25px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tbmc-footer__column h3::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	margin-top: 12px;
	background: var(--tbmc-red);
}

.tbmc-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbmc-footer__links li + li {
	margin-top: 12px;
}

.tbmc-footer__links a,
.tbmc-footer__contact a {
	color: var(--tbmc-blue);
	font-size: 0.95rem;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.18s ease;
}

.tbmc-footer__links a:hover,
.tbmc-footer__links a:focus-visible,
.tbmc-footer__contact a:hover,
.tbmc-footer__contact a:focus-visible {
	color: #ff6b61;
}

.tbmc-footer__contact p {
	margin: 0 0 18px;
	line-height: 1.65;
}

.tbmc-footer__contact p span {
	display: block;
	margin-bottom: 3px;
	color: #6f8b9b;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tbmc-footer__contact p a {
	display: inline-block;
}

.tbmc-footer__bottom {
	padding: 22px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--tbmc-navy-deep);
}

.tbmc-footer__bottom .wp-block-group {
	gap: 18px;
}

.tbmc-footer__bottom p {
	margin: 0;
	color: #76909f;
	font-size: 0.75rem !important;
}

@media (max-width: 781px) {
	.tbmc-footer__cta,
	.tbmc-footer__main {
		padding-inline: 24px;
	}

	.tbmc-footer__cta-inner {
		align-items: flex-start;
	}

	.tbmc-footer__cta-button,
	.tbmc-footer__cta-button .wp-block-button__link {
		width: 100%;
	}

	.tbmc-footer__grid {
		gap: 42px;
	}

	.tbmc-footer__brand,
	.tbmc-footer__contact {
		flex-basis: 100% !important;
	}

	/* Center the whole footer on mobile — logo and everything below it — but
	   leave the intro blurb under the logo left-aligned as designed. */
	.tbmc-footer__brand,
	.tbmc-footer__column,
	.tbmc-footer__bottom .wp-block-group {
		text-align: center;
	}

	.tbmc-footer__intro {
		text-align: left;
	}

	.tbmc-footer__brand .wp-block-site-logo img {
		margin-inline: auto;
	}

	.tbmc-footer__social {
		justify-content: center;
	}

	.tbmc-footer__column h3::after {
		margin-inline: auto;
	}

	.tbmc-footer__bottom .wp-block-group {
		justify-content: center;
	}
}

/* ---------------------------------------------------------------------------
 * Gallery page
 * ------------------------------------------------------------------------- */
body.page-id-114 .wp-block-post-featured-image,
body.page-id-114 > .wp-site-blocks main .wp-block-post-title {
	display: none;
}

body.page-id-114 main.wp-block-group {
	margin-top: 0 !important;
}

body.page-id-114 main.wp-block-group > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.page-id-114 .entry-content {
	overflow: hidden;
}

/* Page intro */
body.page-id-114 .entry-content > .wp-block-group:first-child {
	position: relative;
	isolation: isolate;
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	min-height: 390px;
	display: grid;
	align-content: center;
	padding: 80px 24px !important;
	overflow: hidden;
	background: #071a2b;
	color: #fff;
}

body.page-id-114 .entry-content > .wp-block-group:first-child::before,
body.page-id-114 .entry-content > .wp-block-group:first-child::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
}

body.page-id-114 .entry-content > .wp-block-group:first-child::before {
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.96), rgba(7, 26, 43, 0.7)),
		url("/wp-content/uploads/2026/07/DashesandMotors.png") center 44% / cover no-repeat;
}

body.page-id-114 .entry-content > .wp-block-group:first-child::after {
	z-index: -1;
	background:
		linear-gradient(90deg, #39b9ef 0 68%, #ef493f 68% 100%) left bottom / 150px 5px no-repeat;
}

body.page-id-114 .entry-content > .wp-block-group:first-child h1,
body.page-id-114 .entry-content > .wp-block-group:first-child p {
	width: min(1180px, 100%);
	margin-inline: auto !important;
	text-align: left;
}

body.page-id-114 .entry-content > .wp-block-group:first-child h1 {
	margin-bottom: 18px;
	color: #fff;
	font-size: clamp(3.2rem, 7vw, 6.5rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 0.95;
}

body.page-id-114 .entry-content > .wp-block-group:first-child p {
	max-width: 690px;
	margin-top: 0;
	color: #dce8ee;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.7;
}

/* Gallery sections */
body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) {
	max-width: none;
	padding: clamp(64px, 7vw, 100px) max(24px, calc((100vw - 1280px) / 2)) !important;
}

body.page-id-114 .entry-content > .wp-block-group:nth-child(odd):not(:first-child):not(:last-child) {
	background: #f4f8fa !important;
}

body.page-id-114 .entry-content > .wp-block-group:nth-child(even):not(:first-child):not(:last-child) {
	background: #fff !important;
}

body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2 {
	position: relative;
	margin: 0 0 36px !important;
	padding-left: 58px;
	color: #071a2b;
	font-size: clamp(1.8rem, 3vw, 2.65rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	text-align: left;
}

body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 40px;
	height: 4px;
	background: #39b9ef;
	transform: translateY(-50%);
}

body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 40px;
	width: 8px;
	height: 4px;
	background: #ef493f;
	transform: translateY(-50%);
}

body.page-id-114 .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px !important;
	width: 100%;
	max-width: 1280px !important;
}

body.page-id-114 .wp-block-gallery > .wp-block-image {
	position: relative;
	width: 100% !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #071a2b;
	box-shadow: 0 8px 26px rgba(7, 26, 43, 0.08);
}

body.page-id-114 .wp-block-gallery > .wp-block-image::after {
	content: "View";
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 7px 11px;
	border-left: 3px solid #ef493f;
	border-radius: 2px;
	opacity: 0;
	background: rgba(7, 26, 43, 0.86);
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

body.page-id-114 .wp-block-gallery > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: opacity 0.35s ease, transform 0.45s ease;
}

body.page-id-114 .wp-block-gallery > .wp-block-image:hover img,
body.page-id-114 .wp-block-gallery > .wp-block-image:focus-within img {
	opacity: 0.8;
	transform: scale(1.045);
}

body.page-id-114 .wp-block-gallery > .wp-block-image:hover::after,
body.page-id-114 .wp-block-gallery > .wp-block-image:focus-within::after {
	opacity: 1;
	transform: translateY(0);
}

/* Closing call to action */
body.page-id-114 .entry-content > .wp-block-group:last-child {
	position: relative;
	max-width: none;
	padding: clamp(70px, 8vw, 110px) 24px !important;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(57, 185, 239, 0.18), transparent 30%),
		#071a2b;
	color: #fff;
}

body.page-id-114 .entry-content > .wp-block-group:last-child h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.2rem, 5vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.045em;
}

body.page-id-114 .entry-content > .wp-block-group:last-child p {
	color: #b9cbd5;
}

body.page-id-114 .entry-content > .wp-block-group:last-child .wp-block-button__link {
	border: 2px solid #39b9ef;
	border-radius: 3px;
	background: #39b9ef;
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 800;
}

body.page-id-114 .entry-content > .wp-block-group:last-child .wp-block-button__link:hover,
body.page-id-114 .entry-content > .wp-block-group:last-child .wp-block-button__link:focus-visible {
	border-color: #ef493f;
	background: #ef493f;
	color: #fff;
}

@media (max-width: 900px) {
	body.page-id-114 .wp-block-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	body.page-id-114 .entry-content > .wp-block-group:first-child {
		min-height: 330px;
		padding-block: 60px !important;
	}

	body.page-id-114 .wp-block-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px !important;
	}

	body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2 {
		padding-left: 46px;
	}

	body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2::before {
		width: 30px;
	}

	body.page-id-114 .entry-content > .wp-block-group:not(:first-child):not(:last-child) > h2::after {
		left: 30px;
	}

	body.page-id-114 .wp-block-gallery > .wp-block-image::after {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Service pages: dashes, wraps, wiring, and upholstery
 * ------------------------------------------------------------------------- */
body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .wp-block-post-featured-image,
body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .wp-block-post-title {
	display: none;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) main.wp-block-group {
	margin-top: 0 !important;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) main.wp-block-group > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content {
	overflow: hidden;
}

/* Shared service heroes */
body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child,
body.page-id-106 .entry-content > .wp-block-cover:first-child {
	position: relative;
	isolation: isolate;
	display: grid;
	width: 100vw;
	min-height: clamp(430px, 52vw, 610px);
	max-width: none;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	padding: 80px max(28px, calc((100vw - 1180px) / 2)) !important;
	align-content: center;
	overflow: hidden;
	background: #071a2b;
	color: #fff;
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child::before,
body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child::after,
body.page-id-106 .entry-content > .wp-block-cover:first-child::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

body.page-id-106 .entry-content > .wp-block-cover:first-child .wp-block-cover__image-background,
body.page-id-106 .entry-content > .wp-block-cover:first-child .wp-block-cover__background {
	display: none;
}

body.page-id-106 .entry-content > .wp-block-cover:first-child {
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.93) 0%, rgba(7, 26, 43, 0.56) 62%, rgba(7, 26, 43, 0.25)),
		url("/wp-content/uploads/2026/07/DashesandMotors.png") center / cover no-repeat;
}

body.page-id-107 .entry-content > .wp-block-group:first-child::before {
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.94), rgba(7, 26, 43, 0.56)),
		url("/wp-content/uploads/2026/07/IMG_3038.jpg") center 48% / cover no-repeat;
}

body.page-id-108 .entry-content > .wp-block-group:first-child::before {
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.95), rgba(7, 26, 43, 0.5)),
		url("/wp-content/uploads/2026/07/Wiring8.jpg") center / cover no-repeat;
}

body.page-id-109 .entry-content > .wp-block-group:first-child::before {
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.93), rgba(7, 26, 43, 0.5)),
		url("/wp-content/uploads/2026/07/Paintandwiring.png") center 20% / cover no-repeat;
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child::after,
body.page-id-106 .entry-content > .wp-block-cover:first-child::after {
	top: auto;
	right: auto;
	width: 150px;
	height: 5px;
	z-index: 2;
	background: linear-gradient(90deg, #39b9ef 0 68%, #ef493f 68%);
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child > *,
body.page-id-106 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
	width: min(1180px, 100%);
	max-width: 1180px;
	margin-right: auto !important;
	margin-left: auto !important;
	text-align: left;
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child h1,
body.page-id-106 .entry-content > .wp-block-cover:first-child h1 {
	max-width: 900px;
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.8rem, 6.5vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 0.98;
	text-align: left;
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child h2,
body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child h3 {
	margin: 0 0 12px;
	color: #39b9ef;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}

body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child h5,
body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child p {
	max-width: 700px;
	margin-right: auto !important;
	margin-left: 0 !important;
	color: #d8e5eb;
	text-align: left;
}

body:is(.page-id-107, .page-id-108) .entry-content > .wp-block-group:first-child .wp-block-gallery,
body:is(.page-id-107, .page-id-108) .entry-content > .wp-block-group:first-child .wp-block-columns,
body.page-id-107 .entry-content > .wp-block-group:first-child .wp-block-buttons {
	display: none !important;
}

/* Content rhythm */
body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child) {
	max-width: none;
	padding: clamp(65px, 7vw, 100px) max(24px, calc((100vw - 1180px) / 2)) !important;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child):nth-child(odd) {
	background: #f4f8fa;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child) > h2 {
	max-width: 950px;
	margin: 0 auto 18px !important;
	color: #071a2b;
	font-size: clamp(2rem, 4vw, 3.65rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child) > h2::after {
	content: "";
	display: block;
	width: 70px;
	height: 4px;
	margin: 20px auto 0;
	background: linear-gradient(90deg, #39b9ef 0 75%, #ef493f 75%);
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child) > p {
	max-width: 820px;
	margin-right: auto !important;
	margin-left: auto !important;
	line-height: 1.75;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content h5 {
	margin-top: 28px;
	color: #34566f;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1.6;
	text-transform: uppercase;
}

/* Overview cards directly below the hero */
body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-columns {
	gap: 16px;
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-column {
	overflow: hidden;
	border: 1px solid #dae5eb;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(7, 26, 43, 0.07);
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-column figure {
	margin: 0;
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-column img {
	box-sizing: border-box;
	width: 100%;
	height: 170px;
	padding: 30px;
	object-fit: contain;
	transition: transform 0.4s ease;
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-column:hover img {
	transform: scale(1.035);
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:nth-child(2) .wp-block-column h4 {
	margin: 0;
	padding: 20px 14px 22px;
	color: #071a2b;
	font-weight: 800;
}

body.page-id-109 .entry-content > .wp-block-group:nth-child(2) .wp-block-column {
	border-color: #17354b;
	background: #071a2b;
}

body.page-id-109 .entry-content > .wp-block-group:nth-child(2) .wp-block-column h4 {
	color: #fff;
}

/* Galleries */
body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px !important;
	width: 100%;
	max-width: 1180px !important;
	margin-top: 38px;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-id-108 .entry-content .wp-block-gallery.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery > .wp-block-image {
	width: 100% !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #071a2b;
	box-shadow: 0 8px 24px rgba(7, 26, 43, 0.09);
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: opacity 0.3s ease, transform 0.45s ease;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery > .wp-block-image:hover img {
	opacity: 0.82;
	transform: scale(1.04);
}

/* Check-list styling */
body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-columns .wp-block-list {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-list li {
	position: relative;
	padding: 12px 12px 12px 34px;
	border-bottom: 1px solid #dce6eb;
}

body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-list li::before {
	content: "✓";
	position: absolute;
	left: 8px;
	color: #ef493f;
	font-weight: 800;
}

/* Reviews and page-ending calls to action */
body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:last-child .wp-block-quote {
	display: inline-block;
	vertical-align: top;
	box-sizing: border-box;
	width: calc(50% - 12px);
	margin: 28px 8px 10px 0;
	padding: 30px;
	border: 0;
	border-top: 4px solid #39b9ef;
	background: #fff;
	box-shadow: 0 10px 30px rgba(7, 26, 43, 0.08);
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:last-child .wp-block-quote p {
	font-size: 0.95rem;
	line-height: 1.7;
}

body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:last-child .wp-block-quote cite {
	color: #ef493f;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.78rem;
	font-weight: 800;
}

body:is(.page-id-107, .page-id-108) .entry-content > .wp-block-group:last-child {
	background:
		radial-gradient(circle at 85% 15%, rgba(57, 185, 239, 0.16), transparent 30%),
		#071a2b !important;
	color: #fff;
}

body:is(.page-id-107, .page-id-108) .entry-content > .wp-block-group:last-child h2,
body:is(.page-id-107, .page-id-108) .entry-content > .wp-block-group:last-child h5 {
	color: #fff;
}

@media (max-width: 900px) {
	body.page-id-108 .entry-content .wp-block-gallery.columns-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery,
	body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content .wp-block-gallery.columns-2,
	body.page-id-108 .entry-content .wp-block-gallery.columns-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px !important;
	}

	body:is(.page-id-106, .page-id-109) .entry-content > .wp-block-group:last-child .wp-block-quote {
		display: block;
		width: 100%;
		margin-right: 0;
	}

	body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:not(:first-child) > h2 {
		font-size: clamp(1.8rem, 9vw, 2.8rem);
	}
}

/* ---------------------------------------------------------------------------
 * Contact page
 * ------------------------------------------------------------------------- */
body.page-id-105 .wp-block-post-featured-image,
body.page-id-105 .wp-block-post-title {
	display: none;
}

body.page-id-105 main.wp-block-group {
	margin-top: 0 !important;
}

body.page-id-105 main.wp-block-group > .wp-block-group.alignfull {
	padding: 0 !important;
}

body.page-id-105 .entry-content {
	display: grid;
	grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
	max-width: none;
	padding: clamp(55px, 7vw, 95px) max(24px, calc((100vw - 1180px) / 2));
	gap: clamp(45px, 7vw, 90px);
	background: #f4f8fa;
}

body.page-id-105 .entry-content > .wp-block-group {
	width: 100%;
	padding: 0 !important;
}

body.page-id-105 .entry-content > .wp-block-group:first-child {
	align-self: start;
	padding: 45px !important;
	border-radius: 6px;
	background:
		linear-gradient(rgba(7, 26, 43, 0.91), rgba(7, 26, 43, 0.91)),
		url("/wp-content/uploads/2026/07/Location.jpg") center / cover;
	color: #fff;
	box-shadow: 0 18px 45px rgba(7, 26, 43, 0.14);
}

body.page-id-105 .entry-content h2 {
	margin-top: 0;
	color: #071a2b;
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
	text-align: left;
}

body.page-id-105 .entry-content h2::after {
	content: "";
	display: block;
	width: 70px;
	height: 4px;
	margin-top: 18px;
	background: linear-gradient(90deg, #39b9ef 0 75%, #ef493f 75%);
}

body.page-id-105 .entry-content > .wp-block-group:first-child h2,
body.page-id-105 .entry-content > .wp-block-group:first-child p {
	color: #fff;
	text-align: left;
}

body.page-id-105 .entry-content > .wp-block-group:first-child > p {
	color: #bdd0da;
}

body.page-id-105 .entry-content > .wp-block-group:first-child .wp-block-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin-top: 35px;
}

body.page-id-105 .entry-content > .wp-block-group:first-child .wp-block-column {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.17);
}

body.page-id-105 .entry-content > .wp-block-group:first-child h6 {
	margin: 0 0 8px;
	color: #39b9ef;
}

body.page-id-105 .entry-content > .wp-block-group:first-child .wp-block-column p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

body.page-id-105 .entry-content > .wp-block-group:first-child a {
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Base form layout — applies to every CF7 form (home, contact, future) */
.wpcf7 form {
	display: grid;
	gap: 1.35rem;
	max-width: none;
	padding: 38px;
	border-top: 5px solid #39b9ef;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(7, 26, 43, 0.1);
	text-align: left;
}

.wpcf7 form > p {
	margin: 0;
}

.wpcf7 label {
	display: block;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
	max-width: 100%;
	box-sizing: border-box;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"] {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid #cbd9e0;
	font: inherit;
	color: #071a2b;
}

.wpcf7 textarea {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid #cbd9e0;
	font: inherit;
	color: #071a2b;
	min-height: 9rem;
	resize: vertical;
}

.wpcf7 .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 0.6rem 1rem;
	margin-top: 0.6rem;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .wpcf7-checkbox label,
.wpcf7 .wpcf7-radio label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
}

.wpcf7 .wpcf7-radio {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.6rem;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #39b9ef;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: #ef493f;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	box-sizing: border-box;
	border-color: #cbd9e0;
	border-radius: 3px;
	background: #f8fbfc;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: #39b9ef;
	box-shadow: 0 0 0 3px rgba(57, 185, 239, 0.16);
}

.wpcf7 input[type="submit"] {
	min-height: 54px;
	padding-inline: 30px;
	border-radius: 3px;
	background: #39b9ef;
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 800;
}

/* Red only on hover/keyboard focus — after a mouse click the button
   keeps :focus, so plain :focus here would leave it stuck off-blue. */
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	background: #ef493f;
	color: #fff;
}

@media (max-width: 900px) {
	body.page-id-105 .entry-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	body.page-id-105 .entry-content > .wp-block-group:first-child,
	.wpcf7 form {
		padding: 28px !important;
	}

	.wpcf7 .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------------
 * Privacy policy
 * ------------------------------------------------------------------------- */
body.page-id-110 .wp-block-post-title {
	display: none;
}

body.page-id-110 main.wp-block-group {
	margin-top: 0 !important;
}

body.page-id-110 main.wp-block-group > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.page-id-110 .entry-content > .wp-block-group {
	max-width: 900px;
	padding-top: 0 !important;
	padding-bottom: clamp(70px, 8vw, 110px) !important;
}

body.page-id-110 .entry-content h1 {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	margin: 0 calc(50% - 50vw) clamp(55px, 7vw, 85px) !important;
	padding: clamp(75px, 9vw, 125px) max(24px, calc((100vw - 900px) / 2));
	background:
		radial-gradient(circle at 84% 20%, rgba(57, 185, 239, 0.16), transparent 28%),
		#071a2b;
	color: #fff;
	font-size: clamp(3rem, 7vw, 6.2rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 0.95;
	text-align: left;
}

body.page-id-110 .entry-content h1::after {
	content: "";
	display: block;
	width: 86px;
	height: 5px;
	margin-top: 24px;
	background: linear-gradient(90deg, #39b9ef 0 75%, #ef493f 75%);
}

body.page-id-110 .entry-content h1 + p {
	margin: 0 0 55px;
	padding: 28px 30px;
	border-left: 5px solid #39b9ef;
	border-radius: 0 5px 5px 0;
	background: #f4f8fa;
	color: #34566f;
	font-size: 0.95rem;
	line-height: 1.75;
}

body.page-id-110 .entry-content h3 {
	margin: 48px 0 14px;
	padding-bottom: 13px;
	border-bottom: 1px solid #d9e4e9;
	color: #071a2b;
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

body.page-id-110 .entry-content h3::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 12px;
	border: 3px solid #39b9ef;
	border-radius: 50%;
	vertical-align: 0.1em;
}

body.page-id-110 .entry-content h3 + p {
	margin-top: 0;
}

body.page-id-110 .entry-content p {
	color: #34566f;
	font-size: 0.98rem;
	line-height: 1.8;
}

body.page-id-110 .entry-content strong {
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-weight: 800;
}

body.page-id-110 .entry-content a {
	font-weight: 600;
}

@media (max-width: 600px) {
	body.page-id-110 .entry-content h1 + p {
		padding: 22px;
	}

	body.page-id-110 .entry-content h3 {
		margin-top: 38px;
	}
}

/* ---------------------------------------------------------------------------
 * Auto-scrolling work strip (.tbmc-scroller)
 * Track holds two identical sets; the loop translates by exactly one set.
 * ------------------------------------------------------------------------- */
.tbmc-scroller {
	overflow: hidden;
	width: 100%;
}

.tbmc-scroller__track {
	display: flex;
	width: max-content;
	animation: tbmc-scroll 45s linear infinite;
}

.tbmc-scroller:hover .tbmc-scroller__track,
.tbmc-scroller:focus-within .tbmc-scroller__track {
	animation-play-state: paused;
}

.tbmc-scroller__set {
	display: flex;
	gap: 1rem;
	padding-right: 1rem;
}

.tbmc-scroller__set img {
	height: 240px;
	width: auto;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

@keyframes tbmc-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 781px) {
	.tbmc-scroller__set img {
		height: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbmc-scroller {
		overflow-x: auto;
	}

	.tbmc-scroller__track {
		animation: none;
	}

	/* No animation: the duplicate set is redundant. */
	.tbmc-scroller__set[aria-hidden="true"] {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Layout polish
 * ------------------------------------------------------------------------- */

/* Media & text: the image fills its half instead of floating at natural size */
.wp-block-media-text__media img {
	width: 100%;
	height: auto;
}

/* Home feature cards: uniform image crops */
body.home .wp-block-columns .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

/* Homepage recent-work link */
body.home .tbmc-scroller + p {
	margin-top: 34px;
}

body.home .tbmc-scroller + p a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 2px solid #071a2b;
	border-radius: 3px;
	background: #071a2b;
	color: #fff;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.home .tbmc-scroller + p a:hover,
body.home .tbmc-scroller + p a:focus-visible {
	border-color: #ef493f;
	background: #ef493f;
	color: #fff;
	transform: translateY(-2px);
}

/* Homepage information cards */
body.home .entry-content > .wp-block-group:nth-child(3) {
	max-width: none;
	padding-right: 32px;
	padding-left: 32px;
}

body.home .entry-content > .wp-block-group:nth-child(3) > .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 36px);
	width: min(1600px, 100%);
	max-width: 1600px !important;
	align-items: stretch;
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #d8e4ea;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(7, 26, 43, 0.08);
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-image {
	margin: 0;
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-image img {
	display: block;
	border-radius: 0;
}

body.home .entry-content > .wp-block-group:nth-child(3) h4 {
	margin: 0;
	padding: 24px 24px 0;
	color: #071a2b;
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
}

body.home .entry-content > .wp-block-group:nth-child(3) p {
	margin: 0;
	padding: 16px 24px 22px;
	color: #34566f;
	font-size: 1rem;
	line-height: 1.65;
	text-align: left;
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-buttons {
	width: 100%;
	margin-top: auto;
	padding: 0 24px 26px;
	box-sizing: border-box;
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-button,
body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
}

body.home .entry-content > .wp-block-group:nth-child(3) .wp-block-button__link {
	min-height: 50px;
	padding: 12px 18px;
	border-radius: 3px;
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.85rem;
	font-weight: 800;
}

@media (max-width: 1050px) {
	body.home .entry-content > .wp-block-group:nth-child(3) > .wp-block-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body.home .entry-content > .wp-block-group:nth-child(3) {
		padding-right: 24px;
		padding-left: 24px;
	}

	body.home .entry-content > .wp-block-group:nth-child(3) > .wp-block-columns {
		grid-template-columns: 1fr;
	}
}

/* Homepage about statement */
body.home .entry-content > .wp-block-group:nth-child(4) {
	position: relative;
	max-width: none;
	padding: clamp(80px, 9vw, 130px) 32px !important;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 20%, rgba(57, 185, 239, 0.12), transparent 25%),
		#f4f8fa !important;
}

body.home .entry-content > .wp-block-group:nth-child(4)::after {
	content: "TBMC";
	position: absolute;
	right: -25px;
	bottom: -65px;
	color: rgba(7, 26, 43, 0.035);
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: clamp(9rem, 20vw, 21rem);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.8;
	pointer-events: none;
}

body.home .entry-content > .wp-block-group:nth-child(4) h2,
body.home .entry-content > .wp-block-group:nth-child(4) p {
	position: relative;
	z-index: 1;
}

body.home .entry-content > .wp-block-group:nth-child(4) h2 {
	margin: 0 0 28px;
	color: #071a2b;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
}

body.home .entry-content > .wp-block-group:nth-child(4) h2::after {
	content: "";
	display: block;
	width: 76px;
	height: 5px;
	margin: 22px auto 0;
	background: linear-gradient(90deg, #39b9ef 0 75%, #ef493f 75%);
}

body.home .entry-content > .wp-block-group:nth-child(4) p {
	max-width: 980px;
	margin: 0 auto;
	color: #34566f;
	font-size: clamp(1.1rem, 1.7vw, 1.35rem);
	line-height: 1.75;
}

/* Homepage service overview */
body.home .entry-content > .wp-block-group:nth-child(5) {
	max-width: none;
	padding: clamp(80px, 9vw, 130px) max(24px, calc((100vw - 1180px) / 2)) !important;
	background:
		radial-gradient(circle at 88% 15%, rgba(57, 185, 239, 0.12), transparent 28%),
		#071a2b;
	color: #fff;
}

body.home .entry-content > .wp-block-group:nth-child(5) > h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 5vw, 4.7rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
}

body.home .entry-content > .wp-block-group:nth-child(5) > h2::after {
	content: "";
	display: block;
	width: 76px;
	height: 5px;
	margin: 22px auto 0;
	background: linear-gradient(90deg, #39b9ef 0 75%, #ef493f 75%);
}

body.home .entry-content > .wp-block-group:nth-child(5) > p {
	margin-top: 24px;
	color: #a9c0cc;
	font-size: 1.08rem;
}

body.home .entry-content > .wp-block-group:nth-child(5) > .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	max-width: 1180px;
	margin-top: 46px;
}

body.home .entry-content > .wp-block-group:nth-child(5) .wp-block-column {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.045);
}

body.home .entry-content > .wp-block-group:nth-child(5) .wp-block-list {
	margin: 0;
	padding: 10px 26px;
	list-style: none;
}

body.home .entry-content > .wp-block-group:nth-child(5) .wp-block-list li {
	position: relative;
	padding: 16px 10px 16px 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #e5edf1;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
}

body.home .entry-content > .wp-block-group:nth-child(5) .wp-block-list li:last-child {
	border-bottom: 0;
}

body.home .entry-content > .wp-block-group:nth-child(5) .wp-block-list li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	width: 9px;
	height: 9px;
	border: 2px solid #39b9ef;
	border-radius: 50%;
	transform: translateY(-50%);
}

body.home .entry-content > .wp-block-group:nth-child(5) > h3 {
	max-width: 1180px;
	margin: 48px auto 0;
	padding: 30px 34px 8px;
	border: 1px solid rgba(57, 185, 239, 0.32);
	border-bottom: 0;
	border-radius: 5px 5px 0 0;
	background: rgba(57, 185, 239, 0.08);
	color: #39b9ef;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 800;
	text-align: left;
}

body.home .entry-content > .wp-block-group:nth-child(5) > h3 + p {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 34px 32px;
	border: 1px solid rgba(57, 185, 239, 0.32);
	border-top: 0;
	border-radius: 0 0 5px 5px;
	background: rgba(57, 185, 239, 0.08);
	color: #c2d3dc;
	font-size: 1rem;
	line-height: 1.7;
	text-align: left;
}

@media (max-width: 700px) {
	body.home .entry-content > .wp-block-group:nth-child(5) > .wp-block-columns {
		grid-template-columns: 1fr;
	}

	body.home .entry-content > .wp-block-group:nth-child(5) > h3,
	body.home .entry-content > .wp-block-group:nth-child(5) > h3 + p {
		padding-right: 24px;
		padding-left: 24px;
	}
}

/* Homepage detailed service showcases */
body.home .entry-content > .wp-block-group:nth-child(6) {
	max-width: none;
	padding: clamp(75px, 8vw, 120px) 32px !important;
	background: #f4f8fa;
}

body.home .entry-content > .wp-block-group:nth-child(6) > .wp-block-media-text {
	display: flex;
	flex-direction: column;
	width: min(1500px, 100%);
	max-width: 1500px !important;
	margin: 0 auto 34px !important;
	overflow: hidden;
	border: 1px solid #d7e3e9;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(7, 26, 43, 0.08);
}

body.home .entry-content > .wp-block-group:nth-child(6) > .wp-block-media-text:last-child {
	margin-bottom: 0 !important;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__media {
	order: -1;
	width: 100%;
	height: clamp(260px, 32vw, 480px);
	margin: 0;
	overflow: hidden;
	background: #071a2b;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto 1fr auto;
	gap: 0 18px;
	padding: 30px;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > h4 {
	margin: 0;
	padding: 28px 28px 12px;
	border: 1px solid #dce7ec;
	border-bottom: 0;
	border-radius: 5px 5px 0 0;
	background: #fff;
	color: #071a2b;
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	font-weight: 800;
	line-height: 1.25;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > p {
	margin: 0;
	padding: 8px 28px 20px;
	border-right: 1px solid #dce7ec;
	border-left: 1px solid #dce7ec;
	background: #fff;
	color: #486273;
	font-size: 0.98rem;
	line-height: 1.65;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > .wp-block-buttons {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0 28px 28px;
	border: 1px solid #dce7ec;
	border-top: 0;
	border-radius: 0 0 5px 5px;
	background: #fff;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(1),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(2),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(3) {
	grid-column: 1;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(4),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(5),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(6) {
	grid-column: 2;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(7),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(8),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(9) {
	grid-column: 3;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(1),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(4),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(7) {
	grid-row: 1;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(2),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(5),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(8) {
	grid-row: 2;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(3),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(6),
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > :nth-child(9) {
	grid-row: 3;
	align-self: stretch;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-button,
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-button__link {
	min-height: 50px;
	padding: 12px 18px;
	border-radius: 3px;
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.82rem;
	font-weight: 800;
}

body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-button__link:hover,
body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-button__link:focus-visible {
	background: #ef493f;
	color: #fff;
}

@media (max-width: 900px) {
	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content {
		display: block;
		padding: 22px;
	}

	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > h4 {
		margin-top: 14px;
	}

	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > h4:first-child {
		margin-top: 0;
	}
}

@media (max-width: 560px) {
	body.home .entry-content > .wp-block-group:nth-child(6) {
		padding-right: 20px !important;
		padding-left: 20px !important;
	}

	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__media {
		height: 230px;
	}

	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > h4,
	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > p,
	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content > .wp-block-buttons {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* ---------------------------------------------------------------------------
 * Reviews
 * ------------------------------------------------------------------------- */
.tbmc-review-carousel {
	overflow: hidden;
}

.tbmc-review-carousel__viewport {
	width: min(860px, 100%);
	margin: 38px auto 0;
	overflow: hidden;
}

.tbmc-review-carousel__track {
	display: flex;
	width: 100%;
	gap: 0;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-id-106 .tbmc-review-carousel .tbmc-review-carousel__slide,
.tbmc-review-carousel .tbmc-review-carousel__slide {
	display: block;
	flex: 0 0 100%;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: clamp(28px, 5vw, 54px);
	border: 0;
	border-top: 5px solid #39b9ef;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 14px 42px rgba(7, 26, 43, 0.1);
}

.tbmc-review-carousel__slide::before {
	content: "★★★★★";
	display: block;
	margin-bottom: 20px;
	color: #ef493f;
	font-family: Arial, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.2em;
}

body.page-id-106 .tbmc-review-carousel .tbmc-review-carousel__slide p,
.tbmc-review-carousel .tbmc-review-carousel__slide p {
	margin: 0;
	color: #17354b;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.75;
}

body.page-id-106 .tbmc-review-carousel .tbmc-review-carousel__slide cite,
.tbmc-review-carousel .tbmc-review-carousel__slide cite {
	display: block;
	margin-top: 24px;
	color: #ef493f;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.tbmc-review-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 26px 0 32px;
}

.tbmc-review-carousel__arrow {
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid #b9d7e5;
	border-radius: 50%;
	background: #071a2b;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	place-items: center;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tbmc-review-carousel__arrow:hover,
.tbmc-review-carousel__arrow:focus-visible {
	border-color: #39b9ef;
	background: #39b9ef;
	color: #071a2b;
	transform: translateY(-2px);
}

.tbmc-review-carousel__count {
	min-width: 54px;
	margin: 0;
	color: #567184;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.78rem;
	font-weight: 800;
	text-align: center;
}

.tbmc-reviews-hero {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	min-height: 430px;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding: clamp(80px, 10vw, 140px) max(24px, calc((100vw - 1180px) / 2));
	background:
		linear-gradient(90deg, rgba(7, 26, 43, 0.95), rgba(7, 26, 43, 0.62)),
		url("/wp-content/uploads/2026/07/TampaBayMarineCenterSkyway.png") center / cover no-repeat;
	color: #fff;
}

body.tbmc-reviews-page .wp-block-post-title,
body.tbmc-reviews-page .wp-block-post-featured-image {
	display: none;
}

body.tbmc-reviews-page main.wp-block-group {
	margin-top: 0 !important;
}

body.tbmc-reviews-page main.wp-block-group > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.tbmc-reviews-page .entry-content {
	overflow: hidden;
}

.tbmc-reviews-hero::after {
	content: "";
	position: absolute;
	right: auto;
	bottom: 0;
	left: 0;
	width: 150px;
	height: 5px;
	background: linear-gradient(90deg, #39b9ef 0 68%, #ef493f 68%);
}

.tbmc-reviews-hero__inner {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.tbmc-reviews-hero__eyebrow {
	margin: 0 0 14px;
	color: #39b9ef;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tbmc-reviews-hero h1 {
	max-width: 850px;
	margin: 0 0 22px;
	color: #fff;
	font-size: clamp(3rem, 7vw, 6.2rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.96;
}

.tbmc-reviews-hero p:last-child {
	max-width: 700px;
	margin: 0;
	color: #d8e5eb;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.65;
}

.tbmc-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(65px, 8vw, 110px) 20px;
	box-sizing: border-box;
}

.tbmc-review-card {
	margin: 0;
	padding: clamp(28px, 4vw, 42px);
	border: 1px solid #dbe7ed;
	border-top: 5px solid #39b9ef;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(7, 26, 43, 0.07);
}

.tbmc-review-card::before {
	content: "★★★★★";
	display: block;
	margin-bottom: 18px;
	color: #ef493f;
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.17em;
}

.tbmc-review-card p {
	margin: 0;
	color: #29475c;
	font-size: 1rem;
	line-height: 1.75;
}

.tbmc-review-card cite {
	display: block;
	margin-top: 22px;
	color: #071a2b;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 800;
}

.tbmc-review-card cite span {
	display: block;
	margin-top: 5px;
	color: #6c8493;
	font-family: var(--wp--preset--font-family--open-sans, "Open Sans", sans-serif);
	font-weight: 600;
}

.tbmc-review-card cite .tbmc-online-review::before {
	content: "✓";
	display: inline-grid;
	width: 17px;
	height: 17px;
	margin-right: 6px;
	border-radius: 50%;
	background: #39b9ef;
	color: #071a2b;
	font-size: 0.68rem;
	font-weight: 900;
	line-height: 1;
	vertical-align: -2px;
	place-items: center;
}

.tbmc-reviews-cta {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding: clamp(60px, 8vw, 95px) 24px;
	background: #f1f6f8;
	text-align: center;
}

.tbmc-reviews-cta h2 {
	margin: 0 0 15px;
	color: #071a2b;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 800;
}

.tbmc-reviews-cta p {
	max-width: 650px;
	margin: 0 auto 28px;
	color: #415d70;
}

/* Cyan buttons need dark, heavier text for strong contrast. */
.entry-content .wp-block-button__link,
.wpcf7 input[type="submit"] {
	color: #071a2b !important;
	font-weight: 800 !important;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus-visible,
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	color: #fff !important;
}

@media (max-width: 1050px) {
	.tbmc-reviews-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.tbmc-reviews-grid {
		grid-template-columns: 1fr;
	}

	.tbmc-review-carousel__viewport {
		margin-top: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbmc-review-carousel__track {
		transition: none;
	}
}

/* ===========================================================================
 * Mobile layout normalization — consistent 20px side gutters
 * ---------------------------------------------------------------------------
 * On phones the sections had a mix of gutters (root padding 30px, custom
 * 24/28/32px floors, plus full-bleed vs. constrained backgrounds), so some
 * sections looked narrow and others wide. Below <=781px every top-level
 * section is made full-bleed (background reaches the screen edges) with its
 * content sitting a uniform 20px from each edge. Desktop is untouched.
 * ------------------------------------------------------------------------- */
@media (max-width: 781px) {
	/* 1. Constrained content (default alignment) → 20px gutters */
	body {
		--wp--style--root--padding-left: 20px !important;
		--wp--style--root--padding-right: 20px !important;
	}

	/* 2. Buttons never clip: wrap the label and keep 20px inside each edge */
	.wp-block-button__link {
		padding-left: 20px !important;
		padding-right: 20px !important;
		white-space: normal;
	}

	/* 3. Service pages (dashes, upholstery, wiring, wraps): every section
	   full-bleed with 20px content gutters, so heroes and the alternating
	   light-gray bands all line up. */
	body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group,
	body:is(.page-id-106, .page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-cover {
		width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* 4. Gallery page: same treatment so every category gallery is equal
	   width instead of alternating narrow/wide. */
	body.page-id-114 .entry-content > .wp-block-group {
		width: 100vw;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* 5. Home service-showcase cards: trim the section gutter and inner card
	   padding so the cards use the available width. */
	body.home .entry-content > .wp-block-group:nth-child(6) {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body.home .entry-content > .wp-block-group:nth-child(6) .wp-block-media-text__content {
		padding: 22px !important;
	}
}

/* ===========================================================================
 * Mobile menu overlay layout: logo at the top, centered menu items with
 * separators, and Get-a-Quote / Call buttons pinned to the bottom.
 * The logo + actions are injected only into the overlay (see functions.php)
 * and hidden everywhere else.
 * ------------------------------------------------------------------------- */
.tbmc-mm-logo,
.tbmc-mm-actions {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-logo,
.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-actions {
	display: block;
}

/* Overlay content is a full-height flex column with three zones: logo (top),
   menu list (middle, grows and centers itself), buttons (bottom). No magic
   heights or negative margins — the middle zone simply absorbs the slack. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 56px 24px 28px; /* top clears the close (X) button */
}

/* Zone 1 — logo, pinned at the top. */
.tbmc-mm-logo {
	order: -1;
	flex: 0 0 auto;
	margin: 0 auto 11px;
	text-align: center;
}

.tbmc-mm-logo img {
	max-width: 190px;
	height: auto;
}

/* Zone 2 — menu list fills the middle and centers its items; scrolls if it
   ever gets too tall. Selector matches core's specificity so it isn't
   overridden back to flex-start. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	order: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	width: 100%;
	gap: 0;
	margin: 0;
	overflow-y: auto;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	text-align: center;
}

/* Core forces `padding:0` on the link itself (higher specificity), so the
   vertical spacing has to live on the inner label span instead. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
	display: block;
	padding: 16px 10px;
	font-size: 1.15rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Zone 3 — Get-a-Quote / Call buttons, pinned at the bottom. */
.tbmc-mm-actions {
	order: 1;
	flex: 0 0 auto;
	width: 100%;
	padding-top: 26px;
}

.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-quote,
.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-call {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 14px;
	padding: 16px 20px;
	border-radius: 5px;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-quote {
	background: #39b9ef;
	color: #071a2b !important;
}

.wp-block-navigation__responsive-container.is-menu-open .tbmc-mm-call {
	margin-bottom: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff !important;
}

/* ---------------------------------------------------------------------------
 * Jetpack Share/Like footer — contain to the content column on every page
 * (matches the look of /reviews/)
 * ------------------------------------------------------------------------- */
#jp-post-flair {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
	padding-inline: 20px;
	padding-block: 10px 30px;
	box-sizing: border-box;
}

/* Share/Like blocks that render as direct children of the content (no
   #jp-post-flair wrapper): span any content grid and stay in the column. */
.entry-content > .sharedaddy {
	grid-column: 1 / -1;
	width: 100%;
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * Page heroes: children have different max-widths but were each centered
 * independently, so their left edges never lined up. Pin narrower elements
 * to the shared left edge instead.
 * ------------------------------------------------------------------------- */
body:is(.page-id-107, .page-id-108, .page-id-109) .entry-content > .wp-block-group:first-child h1,
body.page-id-106 .entry-content > .wp-block-cover:first-child h1 {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* The layout engine's global 760px content cap squeezes the hero h1 into a
   narrower centered box than its siblings — lift the cap so it gets the
   full 1180px box the design intends. */
body.page-id-114 .entry-content > .wp-block-group:first-child h1 {
	max-width: none;
}

/* Give the paragraph the exact same box as the h1 (same width + margins =
   same left edge), and cap the line length with right padding instead of a
   narrower centered box. */
body.page-id-114 .entry-content > .wp-block-group:first-child p {
	width: min(1180px, 100%);
	max-width: none;
	margin-inline: auto !important;
	padding-right: min(490px, max(0px, calc(100% - 690px)));
	box-sizing: border-box;
}

/* Dashes hero: the cover's inner container gets capped and centered,
   dragging the h1 off the hero's left padding edge. Let it fill. */
body.page-id-106 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: none !important;
}

/* Privacy policy: left-align the title like every other page */
body.page-id-110 .entry-content h1 {
	text-align: left;
}

/* The cover hero is display:grid with an auto track, so the inner
   container's width:100% is self-referential and collapses to content
   width. Give the grid an explicit full-width track. */
body.page-id-106 .entry-content > .wp-block-cover:first-child {
	grid-template-columns: 100%;
	justify-items: stretch;
}

/* Dashes hero subtext */
body.page-id-106 .entry-content > .wp-block-cover:first-child .tbmc-hero-sub {
	max-width: 690px;
	margin: 18px 0 0;
	margin-left: 0 !important;
	margin-right: auto !important;
	color: #dce8ee;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.7;
	text-align: left;
}

/* Dashes hero eyebrow — matches the other heroes' blue kicker */
body.page-id-106 .entry-content > .wp-block-cover:first-child .tbmc-hero-eyebrow {
	margin: 14px 0 0;
	margin-left: 0 !important;
	margin-right: auto !important;
	color: #39b9ef;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}

/* Gallery hero eyebrow — same blue kicker as the service pages, boxed
   identically to the h1/p so the left edges align. */
body.page-id-114 .entry-content > .wp-block-group:first-child h3 {
	width: min(1180px, 100%);
	max-width: none;
	margin: 0 0 14px;
	margin-inline: auto !important;
	color: #39b9ef;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}
