/* Home page: Industries section (template-parts/home/industries.php). Scoped to .hi-section. Light design. */

.hi-section {
	position: relative;
	overflow: hidden;
	padding: 100px 0 110px;
	color: #0b1437;
	font-size: 16px;
	line-height: 1.6;
	background:
		radial-gradient(760px 380px at 0% 0%, rgba(43, 71, 242, .08), transparent 62%),
		radial-gradient(700px 380px at 100% 100%, rgba(225, 29, 116, .06), transparent 62%),
		linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
}
.hi-section *, .hi-section *::before, .hi-section *::after { box-sizing: border-box; }
.hi-section h2, .hi-section h3, .hi-section p, .hi-section ul { margin: 0; padding: 0; }
.hi-section ul { list-style: none; }
.hi-section svg { display: block; flex: none; }

/* 1358px box + 24px gutters = 1310px of content, the same width as the other home sections */
.hi-wrap { position: relative; width: 100%; max-width: 1358px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.hi-head__copy { max-width: 720px; }
.hi-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: #2b47f2; background: rgba(43, 71, 242, .08);
}
.hi-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hi-section .hi-head h2 { margin-top: 18px; font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.14; letter-spacing: -.015em; color: #0b1437; }
.hi-section .hi-head p { margin-top: 16px; font-size: 18px; color: #5b6485; }
.hi-section a.hi-all {
	display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 14px 24px; border-radius: 999px;
	font-weight: 600; font-size: 15px; text-decoration: none; color: #2b47f2;
	border: 1.5px solid #2b47f2; background: #fff;
	transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.hi-section a.hi-all svg { width: 18px; height: 18px; transition: transform .25s ease; }
.hi-section a.hi-all:hover, .hi-section a.hi-all:focus { color: #fff; background: #2b47f2; box-shadow: 0 14px 28px -14px #2b47f2; }
.hi-section a.hi-all:hover svg { transform: translate(3px, -3px); }

/* Grid */
.hi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* Cards: white by default, fill with a deep tint of their accent on hover */
.hi-section a.hi-card {
	position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 340px;
	padding: 22px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #0b1437;
	background: #fff; border: 1px solid #e3e8f8; box-shadow: 0 16px 40px -28px rgba(18, 36, 120, .4);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
/* hover fill */
.hi-section a.hi-card::before {
	content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .4s ease;
	background: linear-gradient(150deg, color-mix(in srgb, var(--b) 72%, #0b1437), color-mix(in srgb, var(--b) 46%, #0b1437));
}
/* spotlight that follows the pointer */
.hi-section a.hi-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease; pointer-events: none;
	background: radial-gradient(260px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 70%);
}
.hi-section a.hi-card:hover, .hi-section a.hi-card:focus-visible {
	color: #fff; transform: translateY(-8px); border-color: transparent;
	box-shadow: 0 32px 60px -26px color-mix(in srgb, var(--b) 80%, #0b1437);
}
.hi-section a.hi-card:hover::before, .hi-section a.hi-card:focus-visible::before { opacity: 1; }
.hi-section a.hi-card:hover::after, .hi-section a.hi-card:focus-visible::after { opacity: 1; }
.hi-section a.hi-card:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }

.hi-card__mark {
	position: absolute; right: -16px; bottom: 56px; z-index: -1; width: 150px; height: 150px;
	color: var(--b); opacity: .08; transform: rotate(-8deg); transition: opacity .4s ease, transform .5s ease, color .4s ease;
}
.hi-card__mark svg { width: 100%; height: 100%; stroke-width: 1.2; }
.hi-section a.hi-card:hover .hi-card__mark { color: #fff; opacity: .16; transform: rotate(0) scale(1.08); }

.hi-card__top { display: flex; align-items: center; justify-content: space-between; }
.hi-card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
	background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 14px 26px -12px var(--b);
	transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.hi-card__icon svg { width: 26px; height: 26px; }
.hi-section a.hi-card:hover .hi-card__icon { color: color-mix(in srgb, var(--b) 80%, #0b1437); background: #fff; box-shadow: 0 14px 26px -12px rgba(0, 0, 30, .5); }

.hi-card__go {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	color: #2b47f2; border: 1px solid #d8defa; transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.hi-card__go svg { width: 16px; height: 16px; }
.hi-section a.hi-card:hover .hi-card__go { color: color-mix(in srgb, var(--b) 80%, #0b1437); background: #fff; border-color: #fff; transform: rotate(45deg); }

.hi-section .hi-card h3 { margin-top: 26px; font-size: 21px; line-height: 1.25; color: #0b1437; transition: color .3s ease; }
.hi-section .hi-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: #5b6485; transition: color .3s ease; }
.hi-section a.hi-card:hover h3 { color: #fff; }
.hi-section a.hi-card:hover p { color: rgba(255, 255, 255, .86); }

.hi-section .hi-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.hi-card__tags li {
	padding: 6px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; font-weight: 500; color: #0b1437;
	background: #f5f7ff; border: 1px solid #e3e8f8; transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.hi-section a.hi-card:hover .hi-card__tags li { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); }

/* Reveal on scroll (only when JS is running) */
.hi-js .hi-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease; }
.hi-js .hi-reveal.is-in { opacity: 1; transform: none; }
.hi-js .hi-section a.hi-card.is-in:hover, .hi-js .hi-section a.hi-card.is-in:focus-visible { transform: translateY(-8px); }

/* Responsive */
@media (max-width: 1199px) {
	.hi-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.hi-section a.hi-card { min-height: 300px; padding: 26px; }
}
@media (max-width: 800px) {
	.hi-section { padding: 76px 0 84px; }
	.hi-head { flex-direction: column; align-items: flex-start; margin-bottom: 38px; }
}
@media (max-width: 600px) {
	.hi-wrap { padding: 0 18px; }
	.hi-grid { grid-template-columns: 1fr; }
	.hi-grid { gap: 14px; }
	.hi-section a.hi-card { min-height: 0; padding: 22px 20px; }
	.hi-section .hi-card__tags { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.hi-section * { transition-duration: .01ms !important; }
	.hi-js .hi-reveal { opacity: 1; transform: none; }
}
