/**
 * Module: Service Section
 * Loaded when `service_section` layout is present on the page.
 * 
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--slate: #060606;
	--mist: #A5A4A4;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--indigo-deep: #001A3A;
	--indigo-tint: #F2F5F9;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
	--max: 1180px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

/* Services Detail Grid Section */
.services,
.service-section {
	background: var(--white, #FFFFFF);
	padding: 64px 0;
	position: relative;
}

.services .wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(20px, 4vw, 48px));
}

/* Section Header */
.services .head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 36px;
}

.services .head .eyebrow {
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson, #ED1C24);
	margin-bottom: 12px;
	display: inline-block;
}

.services .head h2 {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--indigo, #002B5C);
	margin: 0;
}

.services .head p {
	font-family: var(--body);
	color: var(--ink-soft, #4A5568);
	font-size: 17px;
	line-height: 1.6;
	max-width: 520px;
	margin: 0;
}

/* 3-Column Services Grid */
.svcgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line, #D9DCE1);
	border: 1px solid var(--line, #D9DCE1);
}

/* Base Service Card */
.card,
.services .card,
.service-section .card,
.svcgrid .card {
	position: relative;
	background: var(--white, #FFFFFF);
	padding: 30px 28px 26px;
	display: flex;
	flex-direction: column;
	min-height: 360px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1), background .2s;
	box-sizing: border-box;
	border: none !important;
	border-radius: 0 !important;
	outline: 1px solid var(--line, #D9DCE1);
	margin: 0;
}

.card:focus,
.svcgrid .card:focus {
	outline: 1px solid var(--line, #D9DCE1) !important;
}

.card.in,
.svcgrid .card.in {
	opacity: 1;
	transform: none;
}

.card:hover,
.svcgrid .card:hover {
	background: var(--indigo-tint, #F2F5F9);
}

/* Icon Badge */
.card .ico {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--indigo-tint, #F2F5F9);
	color: var(--indigo, #002B5C);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	transition: background .2s, color .2s;
	flex-shrink: 0;
}

.card:hover .ico {
	background: var(--indigo, #002B5C);
	color: #FFFFFF;
}

.card .ico svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card .ico img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
	transition: filter .2s;
}

.card:hover .ico img {
	filter: brightness(0) invert(1);
}

/* Subheading / For label */
.card .for,
.card .eyebrow {
	font-family: var(--display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--crimson, #ED1C24);
	margin-bottom: 6px;
}

/* Card Heading */
.card h3 {
	font-family: var(--display);
	font-size: 19px;
	font-weight: 700;
	color: var(--indigo, #002B5C);
	margin: 0 0 10px;
	line-height: 1.25;
}

/* Card Paragraph */
.card p {
	font-family: var(--body);
	color: var(--ink-soft, #4A5568);
	font-size: 14.5px;
	line-height: 1.55;
	margin: 0;
}

.card p b,
.card p strong {
	color: var(--indigo, #002B5C);
	font-weight: 600;
}

/* Included Features List */
.card .inc {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.card .inc li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-family: var(--body);
	font-size: 14px;
	color: var(--ink, #1C2230);
	line-height: 1.4;
}

.card .inc li img.feat-ico {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex: none;
	object-fit: contain;
}

/* Deadline Callout Box */
.card .due,
.services .card .due,
.service-section .card .due {
	margin-top: 16px;
	font-size: 12.5px;
	color: var(--ink-soft, #4A5568);
	background: var(--frost, #EDEDED);
	border-radius: 6px;
	padding: 8px 10px;
	line-height: 1.6;
}

.card .due b,
.services .card .due b,
.service-section .card .due b {
	color: var(--indigo, #002B5C);
	font-weight: 700;
}

/* Action Link */
.card .act {
	margin-top: auto;
	padding-top: 22px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--indigo, #002B5C);
	text-decoration: none !important;
	transition: color .15s ease;
}

.card .act svg {
	width: 14px;
	height: 14px;
	transition: transform .15s ease;
	flex-shrink: 0;
}

.card .act:hover svg {
	transform: translate(2px, -2px);
}

/* ==========================================================================
   Featured Card Variant (.card.featured)
   ========================================================================== */

.card.featured,
.services .card.featured,
.service-section .card.featured,
.svcgrid .card.featured {
	background: var(--crimson, #ED1C24);
	color: #FFFFFF;
	border: none !important;
	border-radius: 0 !important;
	outline: 1px solid var(--line, #D9DCE1);
}

.card.featured:hover,
.svcgrid .card.featured:hover {
	background: #C9151C;
}

.card.featured .ico {
	background: rgba(255, 255, 255, .16);
	color: #FFFFFF;
}

.card.featured .ico img {
	filter: brightness(0) invert(1);
}

.card.featured .for {
	color: rgba(255, 255, 255, .85);
}

.card.featured h3,
.card.featured .act {
	color: #FFFFFF;
}

.card.featured p {
	color: rgba(255, 255, 255, .9);
}

.card.featured p b,
.card.featured p strong {
	color: #FFFFFF;
}

.card.featured .inc li {
	color: #FFFFFF;
}

.card.featured .inc li img.feat-ico {
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   Ask Consultation Card Variant (.card.ask)
   ========================================================================== */

.card.ask,
.services .card.ask,
.service-section .card.ask,
.svcgrid .card.ask {
	background: var(--indigo, #002B5C);
	color: #FFFFFF;
	justify-content: center;
	align-items: flex-start;
	border: none !important;
	border-radius: 0 !important;
	outline: 1px solid var(--line, #D9DCE1);
}

.card.ask:hover,
.svcgrid .card.ask:hover {
	background: #00234B;
}

.card.ask .eyebrow,
.card.ask .for,
.on-dark .eyebrow {
	color: rgba(255, 255, 255, .85) !important;
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 12px;
	display: inline-block;
}

.card.ask h3 {
	color: #FFFFFF;
	font-size: 22px;
	margin-bottom: 10px;
}

.card.ask p {
	color: rgba(255, 255, 255, .78);
	line-height: 1.55;
}

.card.ask .btn {
	margin-top: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 14px 26px;
	border-radius: var(--radius, 6px);
	border: 2px solid rgba(255, 255, 255, .7) !important;
	color: var(--white, #FFFFFF) !important;
	background: transparent !important;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	box-sizing: border-box;
}

.card.ask .btn:hover {
	transform: translateY(-1px);
	background: var(--white, #FFFFFF) !important;
	color: var(--indigo, #002B5C) !important;
	border-color: var(--white, #FFFFFF) !important;
}

/* ==========================================================================
   Pulse Animations (for chip navigation targeting)
   ========================================================================== */

.card.pulse {
	animation: pulse 1.1s ease 2;
	z-index: 1;
}

.card.featured.pulse {
	animation-name: pulse-w;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
	}
	45% {
		box-shadow: 0 0 0 10px rgba(237, 28, 36, .35), 0 18px 40px rgba(0, 43, 92, .18);
	}
}

@keyframes pulse-w {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(0, 43, 92, 0);
	}
	45% {
		box-shadow: 0 0 0 10px rgba(255, 255, 255, .5), 0 18px 40px rgba(0, 0, 0, .25);
	}
}

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

@media (max-width: 980px) {
	.services .head {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.svcgrid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.services,
	.service-section {
		padding: 48px 0;
	}

	.svcgrid {
		grid-template-columns: 1fr;
	}

	.card,
	.services .card,
	.service-section .card,
	.svcgrid .card {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}


/* ==========================================================================
   Home Page Scoped Overrides (body.home / body.page-id-7)
   ========================================================================== */

/* Section Base */
body.home .services,
body.home .service-section,
body.page-id-7 .services,
body.page-id-7 .service-section {
	background: var(--indigo, #002B5C);
	color: var(--white, #FFFFFF);
	padding: 64px 0;
}

/* Section Header */
body.home .services .head,
body.page-id-7 .services .head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 36px;
}

body.home .services .head .eyebrow,
body.page-id-7 .services .head .eyebrow {
	color: rgba(255, 255, 255, .85);
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 12px;
	display: block;
}

body.home .services .head h2,
body.page-id-7 .services .head h2 {
	color: var(--white, #FFFFFF);
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

body.home .services .head p,
body.page-id-7 .services .head p {
	color: rgba(255, 255, 255, .78);
	font-family: var(--body);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	max-width: 520px;
	margin: 0;
}

/* Grid Container */
body.home .services .svcgrid,
body.page-id-7 .services .svcgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .14);
}

/* Base Cards */
body.home .services .card,
body.page-id-7 .services .card {
	background: var(--indigo, #002B5C);
	padding: 24px 24px 22px;
	display: flex;
	flex-direction: column;
	min-height: 200px;
	transition: background .2s;
	opacity: 1 !important;
	transform: none !important;
	outline: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--white, #FFFFFF);
	margin: 0;
	box-sizing: border-box;
}

body.home .services .card:hover,
body.page-id-7 .services .card:hover {
	background: var(--indigo-deep, #001A3A);
}

/* Card Heading */
body.home .services .card h3,
body.page-id-7 .services .card h3 {
	color: var(--white, #FFFFFF);
	font-family: var(--display);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.15;
	letter-spacing: -.01em;
}

/* Card Paragraph */
body.home .services .card p,
body.page-id-7 .services .card p {
	color: rgba(255, 255, 255, .75);
	font-family: var(--body);
	font-size: 14.5px;
	line-height: 1.55;
	flex: 1;
	margin: 0;
}

/* Action Links */
body.home .services .card a.act,
body.home .services .card a:not(.btn),
body.page-id-7 .services .card a.act,
body.page-id-7 .services .card a:not(.btn) {
	margin-top: 16px;
	padding-top: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--white, #FFFFFF);
	text-decoration: none !important;
	transition: transform .15s ease;
}

body.home .services .card a.act svg,
body.home .services .card a:not(.btn) svg,
body.page-id-7 .services .card a.act svg,
body.page-id-7 .services .card a:not(.btn) svg {
	width: 14px;
	height: 14px;
	transition: transform .15s ease;
	flex-shrink: 0;
}

body.home .services .card a.act:hover svg,
body.home .services .card a:not(.btn):hover svg,
body.page-id-7 .services .card a.act:hover svg,
body.page-id-7 .services .card a:not(.btn):hover svg {
	transform: translate(2px, -2px);
}

/* Featured Card Variant */
body.home .services .card.featured,
body.page-id-7 .services .card.featured {
	background: var(--crimson, #ED1C24);
	color: var(--white, #FFFFFF);
	outline: none !important;
	border: none !important;
	border-radius: 0 !important;
}

body.home .services .card.featured:hover,
body.page-id-7 .services .card.featured:hover {
	background: #C9151C;
}

body.home .services .card.featured p,
body.page-id-7 .services .card.featured p {
	color: rgba(255, 255, 255, .9);
}

/* Consultation Card (Last child) */
body.home .services .card:last-child,
body.page-id-7 .services .card:last-child {
	justify-content: center;
	align-items: flex-start;
}

body.home .services .card:last-child p,
body.page-id-7 .services .card:last-child p {
	color: rgba(255, 255, 255, .75);
	flex: 0;
	margin: 0;
}

body.home .services .card:last-child .btn,
body.page-id-7 .services .card:last-child .btn {
	margin-top: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	padding: 14px 26px;
	line-height: 1.6;
	border-radius: var(--radius, 6px);
	border: 2px solid rgba(255, 255, 255, .7) !important;
	color: var(--white, #FFFFFF) !important;
	background: transparent !important;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	box-sizing: border-box;
}

body.home .services .card:last-child .btn:hover,
body.page-id-7 .services .card:last-child .btn:hover {
	transform: translateY(-1px);
	background: var(--white, #FFFFFF) !important;
	color: var(--indigo, #002B5C) !important;
	border-color: var(--white, #FFFFFF) !important;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
	body.home .services .head,
	body.page-id-7 .services .head {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	body.home .services .svcgrid,
	body.page-id-7 .services .svcgrid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	body.home .services,
	body.home .service-section,
	body.page-id-7 .services,
	body.page-id-7 .service-section {
		padding: 48px 0;
	}

	body.home .services .svcgrid,
	body.page-id-7 .services .svcgrid {
		grid-template-columns: 1fr;
	}
}
