/* WordPress integration fixes loaded after the approved presentation styles. */
@media (max-width: 999px) {
	#offcanvas.ct-panel {
		background:
			radial-gradient(circle at 85% 10%, rgba(255, 216, 0, 0.14), transparent 34%),
			#0a0a0a;
		color: #fff;
	}

	#offcanvas .ct-panel-actions,
	#offcanvas .ct-panel-content,
	#offcanvas .ct-panel-content-inner {
		background: transparent;
		color: inherit;
	}

	#offcanvas .ct-toggle-close,
	#offcanvas .mobile-menu a,
	#offcanvas .ct-header-cta a,
	#offcanvas .ct-social-box a {
		color: #fff;
	}

	#offcanvas .mobile-menu .current-menu-item > a,
	#offcanvas .mobile-menu .current_page_item > a {
		color: #ffd800;
	}

	#offcanvas .mobile-menu a {
		min-height: 48px;
	}
}

/* Native WordPress contact flow. Keep the approved form composition stable. */
.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px 20px;
	align-items: start;
	width: min(100%, 700px);
	margin-inline: auto;
}

.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-field-container,
.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-field,
.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] input[type="email"] {
	width: 100% !important;
	min-width: 0 !important;
}

.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-field,
.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit-container {
	padding: 0 !important;
	margin: 0 !important;
}

.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit-container {
	display: flex;
	align-items: stretch;
}

.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit {
	white-space: nowrap;
}

.tb-form-message {
	grid-column: 1 / -1;
	min-height: 24px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}

.ct-wpforms-inline-fields .tb-form-message {
	text-align: center;
}

.tb-form-message:empty {
	display: none;
}

.tb-form-message.is-success {
	color: #067647;
}

.tb-form-message.is-error {
	color: #b42318;
}

form[data-thebox-form-ready="true"][aria-busy="true"] .wpforms-submit {
	cursor: wait;
	opacity: 0.76;
}

form.comment-form[data-thebox-form-ready="true"] .comment-form-cookies-consent {
	display: none;
}

form.comment-form[data-thebox-form-ready="true"] .tb-form-message {
	width: 100%;
	margin-top: 14px;
}

form.comment-form[data-thebox-form-ready="true"] button[disabled] {
	cursor: wait;
	opacity: 0.76;
}

@media (max-width: 689px) {
	.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit-container,
	.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit {
		width: 100%;
	}

	.ct-wpforms-inline-fields form[data-thebox-form-ready="true"] .wpforms-submit {
		justify-content: center;
	}

	.ct-wpforms-inline-fields .tb-form-message {
		text-align: left;
	}
}

/* Proof of experience below the client marquee. */
.tb-proof-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	width: min(1180px, calc(100% - 48px));
	margin: 18px auto 0;
	background: #e6e6e6;
	border: 1px solid #e6e6e6;
	border-radius: 22px;
	overflow: hidden;
}

.tb-proof-stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 118px;
	padding: 22px 28px;
	background: #fff;
}

.tb-proof-stat strong {
	color: #111;
	font-size: clamp(29px, 3vw, 44px);
	line-height: 1;
	letter-spacing: -0.045em;
}

.tb-proof-stat span {
	margin-top: 9px;
	color: #595959;
	font-size: 14px;
	line-height: 1.35;
}

/* Real client testimonials, without carousel controls. */
.tb-testimonials {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	width: 100%;
}

.tb-testimonial {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	margin: 0;
	padding: clamp(32px, 4vw, 48px);
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 25px;
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.055);
	overflow: hidden;
}

.tb-testimonial::before {
	position: absolute;
	top: 0;
	left: clamp(32px, 4vw, 48px);
	width: 52px;
	height: 4px;
	background: #ffd800;
	border-radius: 0 0 4px 4px;
	content: "";
}

.tb-testimonial::after {
	position: absolute;
	top: 18px;
	right: 31px;
	color: rgba(255, 216, 0, 0.2);
	font-family: Georgia, serif;
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	content: "“";
	pointer-events: none;
}

.tb-testimonial > p {
	position: relative;
	z-index: 1;
	max-width: 94%;
	margin: 0;
	color: #171717;
	font-size: clamp(20px, 1.75vw, 26px);
	font-weight: 650;
	line-height: 1.42;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.tb-testimonial footer {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: auto;
	padding-top: 27px;
	border-top: 1px solid #ececec;
}

.tb-testimonial__logo {
	display: grid !important;
	place-items: center;
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid #ebebeb;
	border-radius: 50%;
}

.tb-testimonial__logo img {
	display: block;
	width: 40px;
	height: 40px;
	padding: 5px;
	object-fit: contain;
}

.tb-testimonial__logo .tb-testimonial__logo--mototours {
	width: 62px;
	height: 42px;
	max-width: none;
	padding: 0;
	transform: scale(1.55);
}

.tb-testimonial__author {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tb-testimonial footer strong {
	color: #111;
	font-size: 16px;
	line-height: 1.25;
}

.tb-testimonial footer small {
	color: #666;
	font-size: 13px;
	line-height: 1.35;
}

/* Detailed 360 service. */
.tb-service-detail {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
	align-items: center;
	gap: clamp(34px, 6vw, 82px);
	width: min(1180px, calc(100% - 48px));
	margin: clamp(70px, 9vw, 120px) auto;
	padding: clamp(24px, 3vw, 38px);
	background: #111;
	border-radius: 28px;
	overflow: hidden;
}

.tb-service-detail__media img {
	display: block;
	width: 100%;
	min-height: 430px;
	object-fit: cover;
	border-radius: 20px;
}

.tb-service-detail__content {
	padding: 18px clamp(10px, 2vw, 28px) 18px 0;
	color: #fff;
}

.tb-service-detail__content > span,
.tb-portfolio-heading > span,
.tb-portfolio-immersive > div > span,
.tb-work-card > div > span {
	display: inline-block;
	margin-bottom: 13px;
	color: #8a7400;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tb-service-detail__content > span,
.tb-portfolio-immersive > div > span {
	color: #ffd800;
}

.tb-service-detail__content h2 {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.tb-service-detail__content p,
.tb-service-detail__content li {
	color: #d9d9d9;
	font-size: 16px;
	line-height: 1.65;
}

.tb-service-detail__content ul {
	margin: 22px 0 30px;
	padding-left: 20px;
}

.tb-service-detail__content a,
.tb-portfolio-immersive a,
.tb-projects-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 23px;
	color: #111;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	background: #ffd800;
	border-radius: 14px;
	transition: transform 180ms ease, background-color 180ms ease;
}

.tb-service-detail__content a:hover,
.tb-portfolio-immersive a:hover,
.tb-projects-cta a:hover {
	color: #111;
	background: #ffe54d;
	transform: translateY(-2px);
}

/* Project archive built with original The Box work. */
.tb-projects-content {
	width: min(1180px, calc(100% - 48px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
}

.tb-projects-lead {
	max-width: 840px;
	margin: 0 auto clamp(74px, 10vw, 124px) !important;
	color: #333;
	font-size: clamp(20px, 2.2vw, 30px);
	line-height: 1.5;
	text-align: center;
	letter-spacing: -0.025em;
}

.tb-portfolio-section {
	margin: 0 0 clamp(88px, 11vw, 148px);
	scroll-margin-top: 110px;
}

.tb-portfolio-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
	column-gap: clamp(28px, 7vw, 100px);
	align-items: end;
	margin-bottom: 38px;
}

.tb-portfolio-heading > span {
	grid-column: 1 / -1;
}

.tb-portfolio-heading h2 {
	margin: 0;
	color: #111;
	font-size: clamp(34px, 4.2vw, 62px);
	line-height: 1.03;
	letter-spacing: -0.05em;
}

.tb-portfolio-heading p {
	margin: 0 0 5px;
	color: #5d5d5d;
	font-size: 16px;
	line-height: 1.65;
}

.tb-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.tb-work-card {
	margin: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.045);
	transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 260ms ease;
}

.tb-work-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09);
}

.tb-work-card > img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #f2f2f2;
}

.tb-work-card > div {
	padding: 25px 25px 30px;
}

.tb-work-card > div > span {
	margin-bottom: 9px;
}

.tb-work-card h3 {
	margin: 0 0 10px;
	color: #111;
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.tb-work-card p {
	margin: 0;
	color: #656565;
	font-size: 15px;
	line-height: 1.6;
}

.tb-portfolio-immersive {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
	align-items: center;
	gap: clamp(34px, 6vw, 82px);
	padding: clamp(24px, 4vw, 52px);
	color: #fff;
	background: #111;
	border-radius: 28px;
}

.tb-portfolio-immersive > img {
	display: block;
	width: 100%;
	min-height: 420px;
	object-fit: cover;
	border-radius: 20px;
}

.tb-portfolio-immersive h2 {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.tb-portfolio-immersive p {
	margin: 0 0 28px;
	color: #d7d7d7;
	line-height: 1.7;
}

.tb-portfolio-more {
	max-width: 900px;
	margin: -45px auto 0 !important;
	color: #555;
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.tb-projects-cta {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto clamp(70px, 10vw, 120px);
	padding: clamp(50px, 8vw, 100px) clamp(28px, 7vw, 90px);
	text-align: center;
	background: #f4f4f4;
	border-radius: 28px;
}

.tb-projects-cta p {
	margin: 0 0 10px;
	color: #846e00;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tb-projects-cta h2 {
	max-width: 790px;
	margin: 0 auto 30px;
	color: #111;
	font-size: clamp(35px, 5vw, 68px);
	line-height: 1.04;
	letter-spacing: -0.05em;
}

.ct-social-box a[href="#"] {
	display: none !important;
}

.tb-service-detail :focus-visible,
.tb-portfolio-immersive :focus-visible,
.tb-projects-cta :focus-visible {
	outline: 3px solid #111;
	outline-offset: 4px;
}

@media (max-width: 999px) {
	.tb-proof-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-testimonials,
	.tb-service-detail,
	.tb-portfolio-immersive {
		grid-template-columns: 1fr;
	}

	.tb-service-detail__content {
		padding: 0 8px 12px;
	}

	.tb-portfolio-heading {
		grid-template-columns: 1fr;
		gap: 17px;
	}

	.tb-portfolio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-portfolio-immersive > img {
		min-height: 360px;
	}
}

@media (max-width: 689px) {
	.tb-proof-stats,
	.tb-service-detail,
	.tb-projects-content,
	.tb-projects-cta {
		width: min(1180px, calc(100% - 30px)) !important;
	}

	.tb-proof-stat {
		min-height: 100px;
		padding: 18px;
	}

	.tb-proof-stat span {
		font-size: 12px;
	}

	.tb-testimonials,
	.tb-portfolio-grid {
		grid-template-columns: 1fr;
	}

	.tb-testimonial {
		min-height: 0;
		padding: 28px 24px;
	}

	.tb-testimonial::before {
		left: 24px;
	}

	.tb-testimonial::after {
		top: 16px;
		right: 18px;
		font-size: 78px;
	}

	.tb-testimonial > p {
		max-width: 100%;
		font-size: 21px;
		line-height: 1.42;
	}

	.tb-testimonial footer {
		margin-top: 30px;
		padding-top: 22px;
	}

	.tb-service-detail {
		gap: 28px;
		margin-block: 62px;
		padding: 15px 15px 26px;
		border-radius: 22px;
	}

	.tb-service-detail__media img,
	.tb-portfolio-immersive > img {
		min-height: 270px;
		border-radius: 16px;
	}

	.tb-service-detail__content h2,
	.tb-portfolio-immersive h2 {
		font-size: 38px;
	}

	.tb-projects-lead {
		margin-bottom: 78px !important;
		font-size: 20px;
		text-align: left;
	}

	.tb-portfolio-section {
		margin-bottom: 82px;
	}

	.tb-portfolio-heading {
		margin-bottom: 25px;
	}

	.tb-portfolio-heading h2 {
		font-size: 39px;
	}

	.tb-work-card > div {
		padding: 23px 22px 27px;
	}

	.tb-portfolio-immersive {
		gap: 28px;
		padding: 15px 15px 29px;
		border-radius: 22px;
	}

	.tb-portfolio-immersive > div {
		padding-inline: 8px;
	}

	.tb-portfolio-more {
		margin-top: -32px !important;
		text-align: left;
	}

	.tb-projects-cta {
		padding: 54px 24px;
		border-radius: 22px;
	}

	.tb-projects-cta h2 {
		font-size: 39px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tb-work-card,
	.tb-service-detail__content a,
	.tb-portfolio-immersive a,
	.tb-projects-cta a {
		transition: none;
	}
}

