/*
Theme Name: Themify Ultra Child
Description: Child theme for Themify Ultra — custom CSS including mobile refinements.
Template: themify-ultra
Version: 1.0.0
*/

/*
 * Parent and framework styles load first; Themify enqueues this file as
 * theme-style-child. Add overrides below.
 */

/* Builder button hover / gradient overrides: loaded after generated CSS via functions.php (tf_load_styles). */

/*
 * Touch: avoid double-tap delay on actionable links (legacy WebKit; harmless elsewhere).
 */
.themify_builder_content a,
.themify_builder_content button {
	touch-action: manipulation;
}

/*
 * “VIEW MORE” (homepage): rounded bar matching Get Started (~15px on tb_y243238).
 * Rounding only .module-text exposed dark subrow (#0a0a0a) and mismatched parent pinks (#f37 vs #ff0062).
 * Fix: paint pink + radius on the link columns (yywi552 / 05o7624); clear darker wrappers; transparent module fill.
 * IDs are unique on page 22 (single occurrence each in Builder JSON).
 */
.themify_builder_content-22 .tb_34e5552,
.themify_builder_content-22 .tb_4fed624,
.themify_builder_content-22 .tb_6bu3624 {
	background-color: transparent !important;
}

.themify_builder_content-22 .tb_yywi552.module_column,
.themify_builder_content-22 .tb_05o7624.module_column {
	background-color: #ff0062 !important;
	border-radius: 15px;
	box-sizing: border-box;
	overflow: hidden;
}

/* Clickable column (.tb_link_outline): framework adds a blue hover ring — not needed on VIEW MORE bar. */
.themify_builder_content-22 .tb_yywi552.module_column.tb_link_outline:hover,
.themify_builder_content-22 .tb_05o7624.module_column.tb_link_outline:hover {
	outline: none !important;
}

.themify_builder_content-22 .tb_yywi552.module_column.tb_link_outline,
.themify_builder_content-22 .tb_05o7624.module_column.tb_link_outline {
	-webkit-tap-highlight-color: transparent;
}

.themify_builder_content-22 .tb_7vdg110.module-text,
.themify_builder_content-22 .tb_l0qb624.module-text {
	background-color: transparent !important;
	background-image: none !important;
}

/*
 * Mobile VIEW MORE row (tb_l0qb624): Builder adds border-top: 19px solid #000 — removed so radius
 * stays clean; compact padding is set in the mobile block below (not 20px+19px — that was too tall).
 */
.themify_builder_content-22 .tb_l0qb624.module-text {
	border-top: none !important;
}

/*
 * “What we do.” (Builder row 22, subrow tb_v8o1293): column layout + vertical rhythm for the three
 * text modules lives in functions.php (n92-what-we-do-after-builder) so it loads after Builder CSS.
 * Third column module ID was tb_2cx6688; re-saving copy created tb_6wbo939 — keep both in rules there.
 */
.themify_builder_content-22 .tb_gual389.module-text pre,
.themify_builder_content-22 .tb_2cx6688.module-text pre,
.themify_builder_content-22 .tb_6wbo939.module-text pre {
	display: none !important;
}

.themify_builder_content-22 .tb_1u5x423.module-text p,
.themify_builder_content-22 .tb_gual389.module-text p,
.themify_builder_content-22 .tb_2cx6688.module-text p,
.themify_builder_content-22 .tb_6wbo939.module-text p {
	line-height: 1.5;
	margin-top: 0 !important;
}

.themify_builder_content-22 .tb_1u5x423.module-text,
.themify_builder_content-22 .tb_gual389.module-text,
.themify_builder_content-22 .tb_2cx6688.module-text,
.themify_builder_content-22 .tb_6wbo939.module-text {
	margin-bottom: 1.5rem !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/*
 * Production column: keep text within the same gutters as branding/exposure (Builder margins load after child theme).
 */
.themify_builder_content-22 .tb_v8o1293 .tb_af5r293.sub_column .tb_6wbo939.module-text {
	box-sizing: border-box !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

.themify_builder_content-22 .tb_v8o1293 .tb_af5r293 .tb_text_wrap {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Desktop width + subrow layout: see functions.php (n92-what-we-do-after-builder) — loads after Builder CSS. */

/* -------------------------------------------------------------------------
   Mobile / small tablets (Themify grids use max-width: 680px)
   ------------------------------------------------------------------------- */
@media (max-width: 680px) {
	/* VIEW MORE pink bar: tighter vertical padding (closer to Get Started / pill CTAs). */
	.themify_builder_content-22 .tb_l0qb624.module-text {
		padding-top: 0.65rem !important;
		padding-bottom: 0.65rem !important;
	}

	.themify_builder_content-22 .tb_l0qb624.module-text .tb_text_wrap {
		padding-bottom: 0 !important;
		padding-top: 0 !important;
	}

	.themify_builder_content-22 .tb_l0qb624.module-text h3 {
		line-height: 1.15;
		margin-bottom: 0 !important;
		margin-top: 0 !important;
	}

	/*
	 * Horizontal spacing for text/modules without insetting full-bleed row backgrounds.
	 * Do NOT pad #body / #footerwrap — that reveals the page background as white “bars”
	 * beside row background images. Pad inner columns instead.
	 */
	.themify_builder_content .module_row .row_inner {
		box-sizing: border-box;
		max-width: 100%;
		padding-left: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-left, 0px));
		padding-right: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-right, 0px));
	}

	/*
	 * “What we do” row: Builder sets padding-left:27px; padding-right:0 — production column looked full-bleed.
	 * Let row_inner gutters handle horizontal inset only.
	 */
	.themify_builder_content-22 .tb_tus0999.module_row {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.themify_builder_content-22 .tb_v8o1293 .tb_af5r293.sub_column .tb_6wbo939.module-text {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Blog / archives / classic content (no Builder inside #content) */
	#content:not(:has(.themify_builder_content)) {
		box-sizing: border-box;
		padding-left: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-left, 0px));
		padding-right: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-right, 0px));
	}

	/* Footer: inset copy/widgets; keep #footerwrap background full width */
	#footer {
		box-sizing: border-box;
		padding-left: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-left, 0px));
		padding-right: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-right, 0px));
	}

	/* Embeds and wide media inside content */
	.post-content iframe,
	.themify_builder_content iframe,
	.post-content embed,
	.post-content object {
		max-width: 100%;
	}

	/*
	 * iOS Safari zooms focused inputs if computed font-size is under ~16px.
	 * Keeps your skin’s scale but not below 16px.
	 */
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):not([type="range"]),
	select,
	textarea {
		font-size: max(1em, 16px);
	}

	/*
	 * Homepage (Builder ID 22): hero + creative studio CTAs left-aligned; compact width; labels on one line.
	 * “What we do” LEARN MORE: separate rules below (centered, intrinsic width).
	 */
	.themify_builder_content-22 .tb_jtgd2.module-buttons,
	.themify_builder_content-22 .tb_z9in643.module-buttons,
	.themify_builder_content-22 .tb_k98v637.module-buttons {
		align-items: center;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-left: 0 !important;
		margin-right: auto !important;
		max-width: 50% !important;
		width: auto !important;
	}

	.themify_builder_content-22 .tb_jtgd2.module-buttons .module-buttons-item,
	.themify_builder_content-22 .tb_z9in643.module-buttons .module-buttons-item,
	.themify_builder_content-22 .tb_k98v637.module-buttons .module-buttons-item {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.themify_builder_content-22 .tb_jtgd2.module-buttons .module-buttons-item a,
	.themify_builder_content-22 .tb_z9in643.module-buttons .module-buttons-item a,
	.themify_builder_content-22 .tb_k98v637.module-buttons .module-buttons-item a {
		align-items: center;
		box-sizing: border-box;
		display: inline-flex;
		justify-content: center;
		padding-left: 1.15em !important;
		padding-right: 1.15em !important;
		text-align: center;
		white-space: nowrap;
	}

	/* Get Started: left-aligned; padding so label doesn’t touch border */
	.themify_builder_content-22 .tb_y243238.module-buttons {
		align-items: center;
		display: flex;
		justify-content: flex-start;
		margin-left: 0 !important;
		margin-right: auto !important;
		max-width: min(90%, 20rem) !important;
		width: auto !important;
	}

	.themify_builder_content-22 .tb_y243238.module-buttons .module-buttons-item a {
		align-items: center;
		box-sizing: border-box;
		display: inline-flex;
		justify-content: center;
		padding-left: 1.15em !important;
		padding-right: 1.15em !important;
		text-align: center;
		white-space: nowrap;
	}

	/* “Let’s talk” + Get Started: extra vertical separation; stack from the left */
	.themify_builder_content-22 .tb_2p80238 > .row_inner {
		align-items: flex-start !important;
		flex-direction: column;
		gap: clamp(2.5rem, 8vw, 4rem);
	}

	.themify_builder_content-22 .tb_2p80238 .tb_wx2l238.module-text {
		margin-bottom: 1.5rem !important;
		padding-bottom: 0;
		width: 100%;
	}

	/*
	 * “What we do” LEARN MORE (tb_93jn741): theme CSS used max-width ~13.6% / 33% — far too narrow on
	 * mobile (text stacks letter-by-letter). Center block; width = label + padding only.
	 */
	.themify_builder_content-22 .tb_93jn741.module-buttons {
		align-items: center !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		justify-content: center !important;
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100% !important;
		width: fit-content !important;
	}

	.themify_builder_content-22 .tb_93jn741.module-buttons .module-buttons-item {
		flex: 0 0 auto;
		max-width: none !important;
		width: auto !important;
	}

	.themify_builder_content-22 .tb_93jn741.module-buttons .module-buttons-item a {
		align-items: center !important;
		box-sizing: border-box !important;
		display: inline-flex !important;
		justify-content: center !important;
		max-width: none !important;
		padding: 0.55em 0.75em !important;
		text-align: center !important;
		white-space: nowrap !important;
		width: auto !important;
	}

	/*
	 * “Our work.” black section: reduce top dead space (Builder uses ~14% row padding on mobile).
	 * Modules jfj8995 / ea55522 use fadeInDown — disable aggressive entrance motion.
	 */
	.themify_builder_content-22 .tb_1cr0573,
	.themify_builder_content-22 .tb_h08k624 {
		padding-top: 6% !important;
	}

	.themify_builder_content-22 .tb_jfj8995.module-text,
	.themify_builder_content-22 .tb_ea55522.module-text {
		padding-top: 0 !important;
	}

	/* Paul Rand: slightly larger quote; smaller attribution */
	.themify_builder_content-22 .tb_xg55306.module-text .tb_text_wrap > h2:first-child {
		box-sizing: border-box;
		font-size: clamp(11px, 3.35vw, 1.9rem) !important;
		letter-spacing: -0.03em;
		line-height: 1.2;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		text-align: center !important;
		white-space: nowrap;
	}

	.themify_builder_content-22 .tb_xg55306.module-text .tb_text_wrap > h2:nth-child(2) {
		font-size: clamp(9px, 2.15vw, 1rem) !important;
		line-height: 1.2;
		margin-right: 0 !important;
		margin-top: 0.5em;
		text-align: center !important;
	}

	/* “plan strategically / deliver powerfully” link (line break from content) */
	.themify_builder_content-22 a.linkHomepage {
		line-height: 1.25;
	}
}

/*
 * “Our work.” — disable Builder entrance animation on all viewports (fadeInDown on text module).
 * Spacing tweak above is mobile-only; animation off everywhere so it’s not jarring on resize.
 */
.themify_builder_content-22 .tb_jfj8995.module-text.module,
.themify_builder_content-22 .tb_ea55522.module-text.module,
.themify_builder_content-22 .tb_jfj8995.module-text .tb_text_wrap,
.themify_builder_content-22 .tb_ea55522.module-text .tb_text_wrap,
.themify_builder_content-22 .tb_jfj8995.module-text :is(h1, h2, h3, h4, p),
.themify_builder_content-22 .tb_ea55522.module-text :is(h1, h2, h3, h4, p) {
	animation: none !important;
	animation-duration: 0s !important;
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}
