/*
 * Page-Specific Custom Styles
 *
 * These styles target specific page content via body classes (page-id-*)
 * and custom CSS classes applied to Gutenberg blocks.
 *
 * To find which page a page-id refers to, check WordPress Admin > Pages.
 */

/* ==========================================================================
   Global Content Overrides
   ========================================================================== */

.logos-section-header {
	font-size: 1.4em;
	color: #0d0d0d;
}

.posts-page-description {
	display: none;
}

.wp-block-code code {
	background-color: #fff;
	color: #0d0d0d;
}

/* Gravity Forms submit button — override GF theme system to match block buttons */
.gform-theme input[type="submit"].gform_button,
.gform_wrapper input[type="submit"].gform_button,
.gform_button.button {
	background-color: #1F2937 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 9999px !important;
	padding: 11px 32px 14px !important;
	font-family: area-normal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.gform-theme input[type="submit"].gform_button:hover,
.gform_wrapper input[type="submit"].gform_button:hover,
.gform_button.button:hover {
	background-color: #374151 !important;
	transform: translateY(-1px);
}

/* Center button groups on mobile */
@media (max-width: 768px) {
	.wp-block-buttons.is-layout-flex {
		justify-content: center;
	}
}

/* ==========================================================================
   Pricing Page (page-id-399)
   ========================================================================== */

.page-id-399 h1 {
	margin-bottom: 40px;
}

/* ==========================================================================
   About Page (page-id-318)
   ========================================================================== */

.page-id-318 .block-content-indent {
	margin-left: 0;
}

/* ==========================================================================
   Home Page (page-id-504)
   ========================================================================== */

.page-id-504 .wp-block-embed-youtube {
	max-width: 900px;
}

.page-id-504 .site-content a {
	color: #0d0d0d;
	font-size: 18px;
	font-family: area-normal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
}

.page-id-504 img.wp-image-980 {
	object-fit: contain;
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

.page-id-504 #prevent-dupes figure {
	margin: 0;
	padding: 0;
}

.page-id-504 .header-blurb {
	font-size: 14pt;
	line-height: 22pt;
}

/* Feature sections with screen recordings */

.feature-container {
	background-color: #ccc;
}

.screen-recording img {
	box-shadow: 0 0 20px 10px rgba(200, 200, 200, 0.3);
	border: 1px solid #efefef;
	display: block;
	margin: 20px;
}

.demo-group {
	background-color: #f9f9f9;
	padding: 40px;
	border-radius: 12px;
}

@media (min-width: 768px) {
	.feature-text-right {
		margin-left: 40px;
	}
}

@media (max-width: 768px) {
	.screen-recording-right .wp-block-columns,
	.screen-recording-left .wp-block-columns {
		flex-direction: column;
	}

	.screen-recording-right .wp-block-column:nth-child(1) {
		order: 1;
	}

	.screen-recording-right .wp-block-column:nth-child(2) {
		order: 2;
	}

	.screen-recording-left .wp-block-column:nth-child(1) {
		order: 2;
	}

	.screen-recording-left .wp-block-column:nth-child(2) {
		order: 1;
	}

	.screen-recording {
		margin: 0 auto;
		width: 100%;
		max-width: 100%;
		text-align: center;
	}

	.screen-recording figure {
		margin: 0 auto;
		width: 100%;
		text-align: center;
		float: none;
	}

	.screen-recording img {
		width: 100%;
		height: auto;
		max-width: 550px;
		margin: 20px auto;
		display: block;
		box-shadow: 0 0 20px 10px rgba(200, 200, 200, 0.3);
		border: 1px solid #efefef;
		object-fit: cover;
	}

	.screen-recording .alignleft,
	.screen-recording .alignright {
		float: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	.feature-text-left,
	.feature-text-right {
		margin-top: 32px;
	}

	.page-id-504 .header-blurb {
		font-size: 12pt;
		line-height: 22pt;
	}

	.header-demo-link {
		justify-content: center;
		text-align: center;
	}

	.demo-group {
		background-color: transparent;
		padding: 0;
		border-radius: 0;
	}
}
