/**
 * Module: Package Section (H&S Package)
 * Loaded dynamically when `package_section` 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;
}

/* Base Package Section */
.pack,
.package-section {
	background: #FFFFFF;
	padding: 64px 0;
	position: relative;
}

.pack .wrap,
.package-section .wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(20px, 4vw, 48px));
	box-sizing: border-box;
}

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

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

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

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

/* 4-Column Grid */
.pgrid,
.package-section .pgrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line, #D9DCE1);
	border: 1px solid var(--line, #D9DCE1);
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Package Card (.pc) with Staggered Reveal Animation */
.pc,
.package-section .pc {
	background: #FFFFFF;
	padding: 26px 24px 24px;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1), background .2s;
}

.pc.in,
.package-section .pc.in {
	opacity: 1;
	transform: none;
}

.pc:hover,
.package-section .pc:hover {
	background: var(--indigo-tint, #F2F5F9);
}

/* Icon box */
.pc .ico,
.package-section .pc .ico {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--indigo-tint, #F2F5F9);
	color: var(--indigo, #002B5C);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	flex: none;
	transition: background .2s, color .2s;
}

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

.pc .ico svg,
.package-section .pc .ico svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	display: block;
	transition: stroke .2s ease, fill .2s ease;
}

.pc .ico img,
.package-section .pc .ico img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
	transition: filter .2s ease;
}

.pc:hover .ico img,
.package-section .pc:hover .ico img {
	filter: brightness(0) invert(1);
}

/* Card Typography */
.pc h3,
.package-section .pc h3 {
	font-family: var(--display);
	font-size: 16.5px;
	font-weight: 700;
	color: var(--indigo, #002B5C);
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 8px;
}

.pc p,
.package-section .pc p {
	font-family: var(--body);
	color: var(--ink-soft, #4A5568);
	font-size: 14px;
	line-height: 1.5;
	flex: 1;
	margin: 0;
}

.pc .q,
.package-section .pc .q {
	margin-top: 12px;
	font-family: var(--display);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .075em;
	text-transform: uppercase;
	color: var(--crimson, #ED1C24);
	line-height: 1.6;
}

/* After Action Bar */
.pack .after,
.package-section .after {
	margin-top: 28px;
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--ink-soft, #4A5568);
	line-height: 1.6;
}

.pack .after .btn,
.package-section .after .btn {
	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 transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.6;
	text-decoration: none;
}

.pack .after .btn-primary,
.package-section .after .btn-primary {
	background: var(--crimson, #ED1C24);
	color: #FFFFFF;
}

.pack .after .btn-primary:hover,
.package-section .after .btn-primary:hover {
	background: #C9151C;
	transform: translateY(-1px);
	color: #FFFFFF;
}

.pack .after span,
.package-section .after span {
	font-family: var(--body);
	font-size: 15px;
	color: var(--ink-soft, #4A5568);
}

/* Responsive Media Queries */
@media (max-width: 980px) {
	.pack .head,
	.package-section .head {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pgrid,
	.package-section .pgrid {
		grid-template-columns: 1fr 1fr;
	}
}

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

	.pgrid,
	.package-section .pgrid {
		grid-template-columns: 1fr;
	}

	.pc,
	.package-section .pc {
		min-height: 0;
	}

	.pack .after,
	.package-section .after {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pc,
	.package-section .pc {
		opacity: 1 !important;
		transform: none !important;
		transition: background .2s;
	}
}
