/*
 * Services Page Template Styles
 *
 * Long-form services page styling: generous whitespace, centered hero,
 * rounded video, two-column "fit" cards, CSS-counter numbered steps,
 * and a soft form card. Loaded via page-services.php template.
 *
 * Every selector is scoped under .tww-services-page so it cannot bleed
 * into the rest of the site. To apply, set the page template to
 * "Services Page" in the WP editor's Page Attributes panel.
 *
 * Editor block conventions (Additional CSS classes on Group blocks):
 *   tww-hero        — hero block (heading + intro paragraph + CTA)
 *   tww-video       — wrapper around the YouTube embed
 *   tww-fit         — two-column "Who this is for" section
 *   tww-fit-card    — each column within tww-fit
 *   tww-steps       — "How it works" container (resets counter)
 *   tww-step        — each numbered step (increments counter)
 *   tww-outcomes    — outcomes list ("What you walk away with")
 *   tww-form-card   — wrapper around the inquiry form
 */

/* ==========================================================================
   Content rhythm
   ========================================================================== */

.tww-services-page .entry-content {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Narrow the default text column for readability; wider blocks opt in
   via the tww-* classes below or core's alignwide/alignfull. */
.tww-services-page .entry-content > p,
.tww-services-page .entry-content > h2,
.tww-services-page .entry-content > h3,
.tww-services-page .entry-content > h4,
.tww-services-page .entry-content > ul,
.tww-services-page .entry-content > ol {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.tww-services-page .entry-content > h2 {
	margin-top: 96px;
	margin-bottom: 24px;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: center;
	text-wrap: balance;
}

.tww-services-page .entry-content > h3 {
	margin-top: 32px;
	margin-bottom: 16px;
	font-size: 22px;
	font-weight: 700;
	text-wrap: balance;
}

/* Section headings nested inside Genesis Blocks GB Containers — match the
   centered style used by loose-direct-child section headings above so a
   section's H2 looks the same whether it's a direct child of entry-content
   or wrapped in a GB Container. */
.tww-services-page .gb-container-content > h2 {
	margin: 64px auto 24px;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: center;
	text-wrap: balance;
	max-width: 760px;
}

/* Section subheading H3 sitting inside a Group block that's a sibling of
   the section H2 (e.g., "Done means your team can maintain it…"). Lighter
   weight and muted color give it a tagline feel under the bold section H2. */
.tww-services-page .gb-container-content > .wp-block-group > h3:first-child {
	margin: 0 auto 32px;
	font-size: 22px;
	font-weight: 400;
	color: #4b5563;
	text-align: center;
	text-wrap: balance;
	max-width: 760px;
}

.tww-services-page .entry-content > p {
	font-size: 18px;
	line-height: 1.7;
	color: #1f2937;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.tww-services-page .tww-hero {
	max-width: 880px !important;
	margin: 48px auto 64px;
	padding: 0 24px;
	text-align: center;
}

/* H1 in the hero renders as a small eyebrow tag — the page topic.
   The visual hero headline is the H2 below it. */
.tww-services-page .tww-hero h1 {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #6b7280;
	margin: 0 auto 24px;
	max-width: 100%;
	line-height: 1.3;
}

/* H2 in the hero is the big Loom-style headline. */
.tww-services-page .tww-hero h2 {
	font-family: area-normal, system-ui, sans-serif;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 200;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 auto 32px;
	max-width: 100%;
	text-wrap: balance;
	color: #1a1a1a;
}

.tww-services-page .tww-hero h2 em,
.tww-services-page .tww-hero h2 i {
	font-style: italic;
	font-weight: 200;
}

.tww-services-page .tww-hero p {
	font-size: 20px;
	line-height: 1.6;
	color: #4b5563;
	max-width: 680px;
	margin: 0 auto 32px;
	text-wrap: balance;
}

.tww-services-page .tww-hero .wp-block-buttons {
	justify-content: center;
}

/* ==========================================================================
   Video
   ========================================================================== */

.tww-services-page .tww-video {
	max-width: 960px !important;
	margin: 64px auto 96px;
	padding: 0 24px;
}

.tww-services-page .tww-video .wp-block-embed,
.tww-services-page .tww-video .wp-block-embed__wrapper {
	margin: 0;
}

.tww-services-page .tww-video .wp-block-embed iframe,
.tww-services-page .tww-video iframe {
	width: 100%;
	border-radius: 16px;
	box-shadow:
		0 4px 12px rgba(15, 23, 42, 0.08),
		0 24px 60px rgba(15, 23, 42, 0.12);
	display: block;
}

/* ==========================================================================
   Who this is for — two-column cards
   ========================================================================== */

.tww-services-page .tww-fit {
	max-width: 1100px !important;
	margin: 48px auto 96px;
	padding: 0 24px;
}

.tww-services-page .tww-fit .wp-block-columns {
	gap: 24px;
	margin-bottom: 0;
}

.tww-services-page .tww-fit-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px 32px 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tww-services-page .tww-fit-card h2,
.tww-services-page .tww-fit-card h3,
.tww-services-page .tww-fit-card h4,
.tww-services-page .tww-fit-card h5,
.tww-services-page .tww-fit-card h6 {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #1a1a1a;
}

.tww-services-page .tww-fit-card ul,
.tww-services-page .tww-fit-card ol {
	margin: 0;
	padding-left: 20px;
}

.tww-services-page .tww-fit-card li {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 12px;
	color: #1f2937;
}

.tww-services-page .tww-fit-card li:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   How it works — CSS-counter numbered steps
   ========================================================================== */

.tww-services-page .tww-steps {
	counter-reset: tww-step;
	max-width: 960px !important;
	margin: 48px auto 96px;
	padding: 0 24px;
}

.tww-services-page .tww-step {
	counter-increment: tww-step;
	display: grid;
	grid-template-columns: 140px 1fr;
	column-gap: 32px;
	padding: 32px 0;
	margin: 0 !important;
	border-top: 1px solid #e5e7eb;
	max-width: 100% !important;
}

.tww-services-page .tww-step:first-of-type {
	border-top: none;
	padding-top: 8px;
}

.tww-services-page .tww-step::before {
	content: counter(tww-step, decimal-leading-zero);
	font-family: area-normal, system-ui, sans-serif;
	font-size: 88px;
	font-weight: 200;
	line-height: 1;
	color: #d1d5db;
	letter-spacing: -0.03em;
	grid-column: 1;
	grid-row: 1;
	align-self: start;
}

.tww-services-page .tww-step > * {
	grid-column: 2;
	max-width: 100% !important;
	margin-left: 0;
	margin-right: 0;
}

.tww-services-page .tww-step h3 {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.tww-services-page .tww-step p {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.7;
	color: #374151;
}

.tww-services-page .tww-step p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Outcomes list — "What you walk away with"
   ========================================================================== */

.tww-services-page .tww-outcomes {
	list-style: none;
	max-width: 760px !important;
	margin: 32px auto 64px;
	padding: 0 24px;
}

.tww-services-page .tww-outcomes li {
	position: relative;
	padding: 14px 0 14px 30px;
	font-size: 17px;
	line-height: 1.6;
	border-bottom: 1px solid #f3f4f6;
}

.tww-services-page .tww-outcomes li:last-child {
	border-bottom: none;
}

.tww-services-page .tww-outcomes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232563eb'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.tww-services-page .tww-outcomes li strong {
	color: #1a1a1a;
	font-weight: 700;
}

/* ==========================================================================
   Pricing callout — "Projects start at $5,000, flat fee…"
   Apply class "tww-price-callout" to the pricing paragraph.
   ========================================================================== */

.tww-services-page .tww-price-callout {
	max-width: 720px !important;
	margin: 40px auto 64px !important;
	padding: 28px 36px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 16px;
	text-align: center;
	font-size: 17px;
	line-height: 1.6;
	color: #1f2937;
}

.tww-services-page .tww-price-callout strong {
	color: #1a1a1a;
	font-weight: 700;
}

/* ==========================================================================
   Prose section — centered heading + constrained paragraph column
   (e.g. "Why build it with you instead of for you?")
   Apply class "tww-prose" to the GB Container wrapping the section.
   ========================================================================== */

.tww-services-page .tww-prose .gb-container-content > h2 {
	text-align: center;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 auto 24px;
	max-width: 760px;
	text-wrap: balance;
}

.tww-services-page .tww-prose .gb-container-content > p {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: 18px;
	line-height: 1.7;
	color: #374151;
	text-align: center;
}

/* ==========================================================================
   Form card — "What could work better?"
   ========================================================================== */

.tww-services-page .tww-form-card {
	max-width: 880px !important;
	margin: 48px auto 96px;
	padding: 48px 48px 40px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
}

.tww-services-page .tww-form-card h2 {
	margin-top: 0 !important;
	margin-bottom: 24px !important;
	text-align: left !important;
	font-size: 32px !important;
}

.tww-services-page .tww-form-card .gform_wrapper,
.tww-services-page .tww-form-card form {
	margin: 0;
}

.tww-services-page .tww-form-card input[type="text"],
.tww-services-page .tww-form-card input[type="email"],
.tww-services-page .tww-form-card select,
.tww-services-page .tww-form-card textarea {
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	font-family: area-normal, system-ui, sans-serif;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tww-services-page .tww-form-card input[type="text"]:focus,
.tww-services-page .tww-form-card input[type="email"]:focus,
.tww-services-page .tww-form-card select:focus,
.tww-services-page .tww-form-card textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tww-services-page .tww-form-card label,
.tww-services-page .tww-form-card .gfield_label {
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}

/* Make the form's submit button match the theme's blue pill button.
   The site's submit-button rule forces dark; we re-override to blue here. */
.tww-services-page .tww-form-card button[type="submit"],
.tww-services-page .tww-form-card input[type="submit"],
.tww-services-page .tww-form-card .gform_button {
	background-color: #2563eb !important;
	color: #ffffff !important;
}

.tww-services-page .tww-form-card button[type="submit"]:hover,
.tww-services-page .tww-form-card input[type="submit"]:hover,
.tww-services-page .tww-form-card .gform_button:hover {
	background-color: #1d4ed8 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.tww-services-page .entry-content > h2 {
		margin-top: 64px;
		font-size: 28px;
	}

	.tww-services-page .tww-hero {
		margin: 24px auto 40px;
	}

	.tww-services-page .tww-hero h1 {
		font-size: clamp(32px, 9vw, 44px);
	}

	.tww-services-page .tww-hero p {
		font-size: 17px;
	}

	.tww-services-page .tww-video {
		margin: 32px auto 64px;
	}

	.tww-services-page .tww-video iframe {
		border-radius: 12px;
	}

	.tww-services-page .tww-fit {
		margin: 32px auto 64px;
	}

	.tww-services-page .tww-fit .wp-block-columns {
		flex-direction: column;
		gap: 16px;
	}

	.tww-services-page .tww-fit-card {
		padding: 24px;
	}

	.tww-services-page .tww-steps {
		margin: 32px auto 64px;
	}

	.tww-services-page .tww-step {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 40px 0;
	}

	.tww-services-page .tww-step::before {
		grid-column: 1;
		grid-row: auto;
		font-size: 56px;
		margin-bottom: 8px;
	}

	.tww-services-page .tww-step > * {
		grid-column: 1;
	}

	.tww-services-page .tww-step h3 {
		font-size: 22px;
	}

	.tww-services-page .tww-form-card {
		padding: 28px 20px;
		border-radius: 16px;
		margin: 32px 16px 64px;
	}

	.tww-services-page .tww-form-card h2 {
		font-size: 24px !important;
	}
}
