/* Service landing pages within The Build Guy Redesign design system. */
:root {
	--tbg-service-blue: var(--blue, #0043b0);
	--tbg-service-blue-dark: var(--blue-dark, #002f82);
	--tbg-service-navy: var(--navy, #0b1b34);
	--tbg-service-yellow: var(--yellow, #f9bb15);
	--tbg-service-warm: var(--warm, #f4f0e8);
	--tbg-service-text: var(--charcoal, #15202b);
	--tbg-service-muted: var(--muted, #607084);
	--tbg-service-white: var(--white, #fff);
}

.tbg-service-page,
.tbg-service-index {
	color: var(--tbg-service-text);
	background: var(--tbg-service-white);
	overflow: hidden;
}

.tbg-service-container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.tbg-service-page h1,
.tbg-service-page h2,
.tbg-service-page h3,
.tbg-service-index h1,
.tbg-service-index h2,
.tbg-service-index h3 {
	margin-top: 0;
	color: inherit;
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.06;
}

.tbg-service-page p,
.tbg-service-index p {
	line-height: 1.65;
}

.tbg-service-eyebrow {
	margin: 0 0 20px;
	color: var(--tbg-service-yellow);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.35 !important;
	text-transform: uppercase;
}

.tbg-service-eyebrow-blue { color: var(--tbg-service-blue); }

.tbg-service-hero {
	position: relative;
	min-height: 570px;
	color: var(--tbg-service-white);
	background-image: linear-gradient(90deg, rgba(5, 24, 50, .97) 0%, rgba(5, 24, 50, .86) 45%, rgba(5, 24, 50, .26) 100%), var(--tbg-service-hero-image);
	background-position: center;
	background-size: cover;
}

.tbg-service-hero-inner {
	display: flex;
	min-height: 570px;
	padding-block: 34px 52px;
	flex-direction: column;
}

.tbg-service-breadcrumbs {
	display: flex;
	gap: 7px;
	align-items: center;
	margin-bottom: 54px;
	color: rgba(255,255,255,.78);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.tbg-service-breadcrumbs a { color: inherit; text-decoration: none; }
.tbg-service-breadcrumbs a:hover { color: var(--tbg-service-yellow); }

.tbg-service-hero-copy { max-width: 760px; }
.tbg-service-hero h1 {
	max-width: 760px;
	margin-bottom: 22px;
	color: var(--tbg-service-white);
	font-size: clamp(44px, 5vw, 70px);
	overflow-wrap: anywhere;
}

.tbg-service-hero-copy > p:not(.tbg-service-eyebrow) {
	max-width: 650px;
	margin: 0 0 32px;
	color: rgba(255,255,255,.86);
	font-size: 18px;
}

.tbg-service-buttons {
	display: flex;
	gap: 12px;
	align-items: stretch;
	flex-wrap: wrap;
}

.tbg-service-button {
	display: inline-flex;
	box-sizing: border-box;
	min-height: 50px;
	max-width: 100%;
	padding: 13px 20px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--tbg-service-yellow);
	border-radius: 4px;
	color: #071325 !important;
	background: var(--tbg-service-yellow);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	white-space: normal;
}

.tbg-service-button:hover {
	border-color: #ffd150;
	background: #ffd150;
	transform: translateY(-1px);
}

.tbg-service-button-outline {
	min-width: 230px;
	padding-inline: 24px;
	border-color: rgba(255,255,255,.65);
	color: var(--tbg-service-white) !important;
	background: transparent;
}

.tbg-service-button-outline:hover {
	border-color: var(--tbg-service-white);
	color: var(--tbg-service-navy) !important;
	background: var(--tbg-service-white);
}

.tbg-service-button-dark { border-color: var(--tbg-service-navy); color: var(--tbg-service-white) !important; background: var(--tbg-service-navy); }
.tbg-service-button-dark:hover { border-color: #102c55; color: var(--tbg-service-white) !important; background: #102c55; }

.tbg-service-proof { background: var(--tbg-service-yellow); }
.tbg-service-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tbg-service-proof-grid > div { padding: 28px 32px; border-right: 1px solid rgba(7,26,54,.22); }
.tbg-service-proof-grid > div:first-child { padding-left: 0; }
.tbg-service-proof-grid > div:last-child { padding-right: 0; border-right: 0; }
.tbg-service-proof strong,
.tbg-service-proof span { display: block; }
.tbg-service-proof strong { margin-bottom: 6px; font-size: 16px; }
.tbg-service-proof span { font-size: 12px; font-weight: 650; }

.tbg-service-section { padding-block: 88px; }
.tbg-service-warm { background: var(--tbg-service-warm); }
.tbg-service-blue { color: var(--tbg-service-white); background: var(--tbg-service-blue); }
.tbg-service-navy { color: var(--tbg-service-white); background: var(--tbg-service-navy); }

.tbg-service-intro,
.tbg-service-budget,
.tbg-service-two-col,
.tbg-service-faq-layout,
.tbg-service-cta-inner {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(50px, 8vw, 110px);
	align-items: start;
}

.tbg-service-intro h2,
.tbg-service-budget h2,
.tbg-service-two-col h2,
.tbg-service-faq-layout h2,
.tbg-service-cta-inner h2 {
	margin-bottom: 22px;
	font-size: clamp(36px, 4vw, 56px);
	overflow-wrap: anywhere;
}

.tbg-service-reading-copy p { margin: 0 0 24px; color: var(--tbg-service-muted); font-size: 16px; }
.tbg-service-reading-copy .tbg-service-lead,
.tbg-service-lead { color: inherit; font-size: 19px; font-weight: 750; line-height: 1.45; }

.tbg-service-section-title { max-width: 760px; margin-bottom: 44px; font-size: clamp(36px, 4vw, 56px); }
.tbg-service-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tbg-service-card { position: relative; min-height: 240px; padding: 38px 38px 34px; border-top: 4px solid var(--tbg-service-blue); background: var(--tbg-service-white); }
.tbg-service-card-number { display: block; margin-bottom: 28px; color: var(--tbg-service-blue); font-size: 12px; font-weight: 850; }
.tbg-service-card h3 { margin-bottom: 13px; font-size: 24px; }
.tbg-service-card p { margin: 0; color: var(--tbg-service-muted); font-size: 15px; }

.tbg-service-visual { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .95fr); min-height: 560px; }
.tbg-service-visual-image { min-height: 510px; background-position: center; background-size: cover; }
.tbg-service-visual-panel { display: flex; padding: clamp(48px, 6vw, 78px) clamp(38px, 5vw, 66px); color: var(--tbg-service-white); background: var(--tbg-service-blue); flex-direction: column; justify-content: center; overflow: hidden; }
.tbg-service-visual-panel h2 { max-width: 100%; margin-bottom: 28px; color: var(--tbg-service-white); font-size: clamp(32px, 3.4vw, 48px); overflow-wrap: anywhere; word-break: normal; }
.tbg-service-visual-panel ul { margin: 0; padding: 0; list-style: none; }
.tbg-service-visual-panel li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid rgba(255,255,255,.28); font-size: 14px; font-weight: 700; line-height: 1.35; }
.tbg-service-visual-panel li::before { position: absolute; top: 13px; left: 0; color: var(--tbg-service-yellow); content: "✓"; font-weight: 900; }

.tbg-service-process { display: grid; margin: 46px 0 0; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; counter-reset: tbg-process; }
.tbg-service-process li { min-height: 175px; padding: 28px 22px; border-left: 1px solid #d6dce4; counter-increment: tbg-process; }
.tbg-service-process li:first-child { border-left: 4px solid var(--tbg-service-yellow); }
.tbg-service-process li::before { display: block; margin-bottom: 28px; color: var(--tbg-service-blue); content: "0" counter(tbg-process); font-size: 12px; font-weight: 850; }
.tbg-service-process h3 { margin-bottom: 10px; font-size: 21px; }
.tbg-service-process p { margin: 0; color: var(--tbg-service-muted); font-size: 13px; }

.tbg-service-budget p:not(.tbg-service-eyebrow) { color: rgba(255,255,255,.72); }
.tbg-service-budget .tbg-service-lead { color: var(--tbg-service-white); }

.tbg-service-faqs details { border-top: 1px solid #ccd2da; }
.tbg-service-faqs details:last-child { border-bottom: 1px solid #ccd2da; }
.tbg-service-faqs summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; font-size: 16px; font-weight: 800; list-style: none; }
.tbg-service-faqs summary::-webkit-details-marker { display: none; }
.tbg-service-faqs summary::after { position: absolute; top: 18px; right: 4px; color: var(--tbg-service-blue); content: "+"; font-size: 26px; }
.tbg-service-faqs details[open] summary::after { content: "−"; }
.tbg-service-faqs details p { margin: 0; padding: 0 44px 24px 0; color: var(--tbg-service-muted); }

.tbg-service-maintenance { padding-block: 66px; color: var(--tbg-service-navy); background: var(--tbg-service-yellow); }
.tbg-service-maintenance .tbg-service-eyebrow { color: var(--tbg-service-blue); }
.tbg-service-maintenance .tbg-service-cta-inner,
.tbg-service-final-cta .tbg-service-cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tbg-service-maintenance h2,
.tbg-service-final-cta h2 { max-width: 780px; margin-bottom: 13px; font-size: clamp(31px, 3.6vw, 48px); }
.tbg-service-maintenance p:not(.tbg-service-eyebrow),
.tbg-service-final-cta p:not(.tbg-service-eyebrow) { max-width: 700px; margin-bottom: 0; }
.tbg-service-final-cta { padding-block: 68px; color: var(--tbg-service-white); background: var(--tbg-service-blue); }

.tbg-service-index-hero { padding-block: 92px; color: var(--tbg-service-white); background: var(--tbg-service-navy); }
.tbg-service-index-hero h1 { max-width: 760px; color: var(--tbg-service-white); font-size: clamp(44px, 5vw, 70px); }
.tbg-service-index-hero p:not(.tbg-service-eyebrow) { max-width: 640px; color: rgba(255,255,255,.8); font-size: 18px; }
.tbg-service-index-list { display: grid; gap: 0; }
.tbg-service-index-card { border-top: 1px solid #d8dde4; }
.tbg-service-index-card:last-child { border-bottom: 1px solid #d8dde4; }
.tbg-service-index-link { display: grid; padding: 44px 24px 44px 0; color: inherit !important; grid-template-columns: 110px 1fr; text-decoration: none !important; transition: background .2s ease, padding .2s ease; }
.tbg-service-index-link:hover { padding-left: 24px; background: var(--tbg-service-warm); }
.tbg-service-index-number { color: var(--tbg-service-blue); font-size: 14px; font-weight: 850; }
.tbg-service-index-link h2 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 42px); }
.tbg-service-index-link p { max-width: 730px; margin: 0 0 16px; color: var(--tbg-service-muted); }
.tbg-service-text-link { color: var(--tbg-service-blue); font-size: 13px; font-weight: 850; }
.tbg-service-two-col .tbg-service-button { margin-top: 12px; }

@media (max-width: 960px) {
	.tbg-service-visual { grid-template-columns: 1fr; }
	.tbg-service-visual-image { min-height: 440px; }
	.tbg-service-visual-panel { min-height: 0; }
	.tbg-service-process { grid-template-columns: repeat(2, 1fr); }
	.tbg-service-process li:nth-child(3),
	.tbg-service-process li:nth-child(5) { border-left: 4px solid var(--tbg-service-yellow); }
}

@media (max-width: 760px) {
	.tbg-service-container { width: min(100% - 32px, 1180px); }
	.tbg-service-hero,
	.tbg-service-hero-inner { min-height: 620px; }
	.tbg-service-hero { background-image: linear-gradient(90deg, rgba(5,24,50,.96), rgba(5,24,50,.72)), var(--tbg-service-hero-image); }
	.tbg-service-hero-inner { padding-block: 24px 40px; }
	.tbg-service-breadcrumbs { margin-bottom: 44px; flex-wrap: wrap; }
	.tbg-service-hero h1 { font-size: clamp(38px, 11vw, 52px); }
	.tbg-service-hero-copy > p:not(.tbg-service-eyebrow) { font-size: 16px; }
	.tbg-service-buttons { flex-direction: column; align-items: stretch; }
	.tbg-service-button,
	.tbg-service-button-outline { width: 100%; min-width: 0; }
	.tbg-service-proof-grid { grid-template-columns: 1fr; }
	.tbg-service-proof-grid > div,
	.tbg-service-proof-grid > div:first-child,
	.tbg-service-proof-grid > div:last-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(7,26,54,.2); }
	.tbg-service-proof-grid > div:last-child { border-bottom: 0; }
	.tbg-service-section { padding-block: 64px; }
	.tbg-service-intro,
	.tbg-service-budget,
	.tbg-service-two-col,
	.tbg-service-faq-layout,
	.tbg-service-cta-inner,
	.tbg-service-maintenance .tbg-service-cta-inner,
	.tbg-service-final-cta .tbg-service-cta-inner { grid-template-columns: 1fr; gap: 30px; }
	.tbg-service-intro h2,
	.tbg-service-budget h2,
	.tbg-service-two-col h2,
	.tbg-service-faq-layout h2 { font-size: 38px; }
	.tbg-service-card-grid { grid-template-columns: 1fr; }
	.tbg-service-card { min-height: 0; padding: 30px 26px; }
	.tbg-service-visual-image { min-height: 340px; }
	.tbg-service-visual-panel { padding: 48px 28px; }
	.tbg-service-visual-panel h2 { font-size: clamp(30px, 9vw, 40px); }
	.tbg-service-process { grid-template-columns: 1fr; }
	.tbg-service-process li,
	.tbg-service-process li:nth-child(3),
	.tbg-service-process li:nth-child(5) { min-height: 0; border-left: 4px solid var(--tbg-service-yellow); }
	.tbg-service-maintenance,
	.tbg-service-final-cta { padding-block: 54px; }
	.tbg-service-index-link { padding: 34px 0; grid-template-columns: 50px 1fr; }
	.tbg-service-index-link:hover { padding-left: 12px; }
}

@media (max-width: 420px) {
	.tbg-service-hero h1 { font-size: 36px; }
	.tbg-service-visual-panel { padding-inline: 22px; }
	.tbg-service-visual-panel h2 { font-size: 30px; }
	.tbg-service-index-link { grid-template-columns: 1fr; gap: 14px; }
}
