/* HVACB — insights section.

   Block-safe rewrite. Native core blocks, so:

     .ins__wash            ->  .ins:before
     .ins__eyebrow i       ->  .ins__eyebrow:before
     .ins__hub-badge b     ->  .ins__hub-badge:before
     .ins__card-dot        ->  .ins__card-meta .ins__card-category:before
     arrow <svg> x7        ->  .ins__card-arrow / .ins__mini-arrow :before  (mask)
     external-link <svg>   ->  .ins__card-hub:before                        (mask)
     style="--cc"          ->  .ins__card--1 .. --4
     style="background:"   ->  .ins__card-tag--purple / --orange / --green / --blue

   STRETCHED LINK: each card used to be one <a> wrapping the whole thing, which
   a core/group cannot express (groups take no href). The card is now a group,
   and the title's own link is stretched over it with an absolutely-positioned
   ::after. The whole card stays clickable, and screen readers now announce just
   the title as the link text instead of the entire card contents.
*/

/* Neutralise theme + block-layout margins inside the section. */
.ins p,
.ins h2,
.ins h3 { margin: 0; }
.ins > *,
.ins .wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }
.ins .wp-block-image { margin: 0; }

.ins {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 6vw, 5.5rem) clamp(18px, 4vw, 48px);
	background: #F7F6FC;

	--ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M10 4l6 6-6 6'/%3E%3C/svg%3E");
	--ico-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.ins * { box-sizing: border-box; }

/* Was .ins__wash. */
.ins:before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 50% 40% at 100% 0%, rgba(75, 59, 143, .07), transparent 55%),
		radial-gradient(ellipse 40% 35% at 0% 100%, rgba(217, 106, 43, .06), transparent 55%);
}

.ins .ins__in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

/* ---------- Head ---------- */

.ins .ins__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, auto);
	gap: clamp(20px, 4vw, 48px);
	align-items: end;
	margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.ins .ins__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 16px;
	padding: 8px 18px;
	border-radius: 999px;
	background: linear-gradient(105deg, #3A2C7A 0%, #6B4FB8 42%, #D96A2B 100%);
	box-shadow: 0 12px 28px -10px rgba(75, 59, 143, .5);
}

.ins .ins__eyebrow:before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	flex: none;
	animation: insPing 2.4s ease-out infinite;
}

@keyframes insPing {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
	70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ins .ins__h2 {
	font-size: clamp(26px, 3.4vw, 46px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1.05;
	margin: 0;
	color: #14121F;
}

.ins .ins__h2 em {
	font-style: normal;
	background: linear-gradient(104deg, #4B3B8F, #8A5CC4 50%, #D96A2B);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ins .ins__hub-badge { margin-top: 10px; }

.ins .ins__hub-badge a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(95, 211, 160, .1);
	border: 1.5px solid rgba(95, 211, 160, .3);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 11px;
	font-weight: 700;
	color: #2C8F63;
	text-decoration: none;
	transition: background .3s;
}

.ins .ins__hub-badge a:hover { background: rgba(95, 211, 160, .18); }

.ins .ins__hub-badge a:before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #5FD3A0;
	flex: none;
	animation: insPulse 2s ease-in-out infinite;
}

@keyframes insPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .3; }
}

.ins .ins__view-all { align-self: flex-end; }

.ins .ins__view-all a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #4B3B8F;
	text-decoration: none;
	white-space: nowrap;
	padding: 9px 18px;
	border-radius: 10px;
	border: 1.5px solid rgba(75, 59, 143, .22);
	background: rgba(75, 59, 143, .04);
	transition: all .25s;
}

.ins .ins__view-all a:hover {
	background: rgba(75, 59, 143, .1);
	border-color: rgba(75, 59, 143, .4);
}

.ins .ins__view-all a:after {
	content: "";
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: var(--ico-arrow) no-repeat center / 13px 13px;
	mask: var(--ico-arrow) no-repeat center / 13px 13px;
}

/* ---------- Grids ---------- */

.ins .ins__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.ins .ins__bottom {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

/* ---------- Cards ---------- */

.ins .ins__card,
.ins .ins__mini {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #FFFFFF;
	border: 1.5px solid rgba(75, 59, 143, .13);
	box-shadow: 0 4px 20px -6px rgba(75, 59, 143, .12), 0 1px 4px -1px rgba(75, 59, 143, .08);
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
	display: flex;
	flex-direction: column;
}

.ins .ins__mini { border-radius: 14px; }

.ins .ins__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px -12px rgba(75, 59, 143, .22), 0 2px 8px -2px rgba(75, 59, 143, .1);
}

.ins .ins__mini:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px -10px rgba(75, 59, 143, .2), 0 2px 6px -2px rgba(75, 59, 143, .09);
}

/* Per-card accent, was style="--cc:...". */
.ins .ins__card--1 { --cc: #4B3B8F; }
.ins .ins__card--2 { --cc: #A8481A; }
.ins .ins__card--3 { --cc: #2C8F63; }
.ins .ins__card--4 { --cc: #1A6B9A; }

/* Visual */
.ins .ins__card-visual,
.ins .ins__mini-visual {
	position: relative;
	overflow: hidden;
	flex: none;
	line-height: 0;
	background: #F0EEF8;
}

.ins .ins__card-visual img,
.ins .ins__mini-visual img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.ins .ins__card:hover .ins__card-visual img,
.ins .ins__mini:hover .ins__mini-visual img { transform: scale(1.02); }

.ins .ins__card-tag,
.ins .ins__mini-badge {
	position: absolute;
	top: 11px;
	left: 11px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 5px;
	color: #FFFFFF;
	z-index: 2;
	backdrop-filter: blur(8px);
	line-height: 1.4;
}

.ins .ins__mini-badge { top: 9px; left: 9px; font-size: 9px; padding: 3px 8px; }

/* Were inline background declarations. */
.ins .ins__tag--purple { background: rgba(75, 59, 143, .85); }
.ins .ins__tag--orange { background: rgba(168, 72, 26, .85); }
.ins .ins__tag--green  { background: rgba(44, 143, 99, .9); }
.ins .ins__tag--blue   { background: rgba(26, 107, 154, .9); }

.ins .ins__card-read {
	position: absolute;
	top: 11px;
	right: 11px;
	font-size: 9.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, .95);
	background: rgba(0, 0, 0, .35);
	backdrop-filter: blur(8px);
	border-radius: 5px;
	padding: 3px 8px;
	z-index: 2;
	line-height: 1.4;
}

/* Body */
.ins .ins__card-body {
	padding: 15px 18px 17px;
	flex: 1;
	display: flex;
	flex-direction: column;
	border-top: 1px solid rgba(75, 59, 143, .07);
}

.ins .ins__mini-body {
	padding: 12px 14px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid rgba(75, 59, 143, .07);
}

.ins .ins__card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }

.ins .ins__card-source {
	font-size: 10px;
	font-weight: 700;
	color: #5FD3A0;
	background: rgba(95, 211, 160, .1);
	border: 1px solid rgba(95, 211, 160, .22);
	border-radius: 999px;
	padding: 2px 8px;
}

.ins .ins__card-category {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--cc);
}

/* Was span.ins__card-dot. */
.ins .ins__card-category:before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #C4B8D8;
	flex: none;
}

.ins .ins__card-title {
	font-size: clamp(13.5px, 1.35vw, 15.5px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.35;
	color: #2D1B69;
	margin: 0 0 auto;
}

.ins .ins__mini-title {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: -.018em;
	color: #2D1B69;
	margin: 0;
	line-height: 1.3;
	flex: 1;
}

/* Stretched link — the title anchor covers the whole card. */
.ins .ins__card-title a,
.ins .ins__mini-title a { color: inherit; text-decoration: none; }

.ins .ins__card-title a:after,
.ins .ins__mini-title a:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.ins .ins__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(75, 59, 143, .07);
}

.ins .ins__card-hub {
	font-size: 10.5px;
	font-weight: 700;
	color: #5FD3A0;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Was the inline external-link <svg>. */
.ins .ins__card-hub:before {
	content: "";
	flex: none;
	width: 11px;
	height: 11px;
	background-color: currentColor;
	-webkit-mask: var(--ico-ext) no-repeat center / 11px 11px;
	mask: var(--ico-ext) no-repeat center / 11px 11px;
}

/* Was div.ins__card-arrow wrapping an <svg>. */
.ins .ins__card-arrow,
.ins .ins__mini-arrow {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid rgba(75, 59, 143, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s;
	flex: none;
}

.ins .ins__mini-arrow { width: 20px; height: 20px; }

.ins .ins__card-arrow:before,
.ins .ins__mini-arrow:before {
	content: "";
	width: 12px;
	height: 12px;
	background-color: #4B3B8F;
	transition: background-color .3s;
	-webkit-mask: var(--ico-arrow) no-repeat center / 12px 12px;
	mask: var(--ico-arrow) no-repeat center / 12px 12px;
}

.ins .ins__mini-arrow:before { width: 10px; height: 10px; -webkit-mask-size: 10px 10px; mask-size: 10px 10px; }

.ins .ins__card:hover .ins__card-arrow,
.ins .ins__mini:hover .ins__mini-arrow { background: #4B3B8F; border-color: #4B3B8F; }

.ins .ins__card:hover .ins__card-arrow:before,
.ins .ins__mini:hover .ins__mini-arrow:before { background-color: #fff; }

.ins .ins__mini-foot { display: flex; align-items: center; justify-content: space-between; }
.ins .ins__mini-read { font-size: 10px; font-weight: 600; color: #8A8697; }

/* ---------- Strip ---------- */

.ins .ins__strip {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(18px, 2.2vw, 28px);
	border-radius: 16px;
	background: linear-gradient(135deg, #0B0918 0%, #1F1040 50%, #2D1B69 100%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 3vw, 40px);
	flex-wrap: wrap;
	overflow: hidden;
	position: relative;
}

.ins .ins__strip:before {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(75, 59, 143, .5), transparent 70%);
	top: -110px;
	left: -50px;
	pointer-events: none;
}

.ins .ins__strip:after {
	content: "";
	position: absolute;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(217, 106, 43, .25), transparent 70%);
	bottom: -90px;
	right: -40px;
	pointer-events: none;
}

.ins .ins__strip-text { position: relative; z-index: 1; }

.ins .ins__strip-text h3 {
	font-size: clamp(15px, 1.7vw, 21px);
	font-weight: 800;
	letter-spacing: -.03em;
	color: #FFFFFF;
	margin: 0 0 4px;
}

.ins .ins__strip-text p {
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
	margin: 0;
	font-weight: 500;
	max-width: 48ch;
}

.ins .ins__strip-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.ins .ins__strip-actions .wp-block-button__link {
	padding: 11px 20px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .25s, box-shadow .25s;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 0;
}

.ins .ins__strip-btn--primary .wp-block-button__link {
	background: linear-gradient(105deg, #4B3B8F, #8A5CC4);
	color: #FFFFFF;
	box-shadow: 0 8px 20px -8px rgba(75, 59, 143, .6);
}

.ins .ins__strip-btn--primary .wp-block-button__link:hover {
	background: linear-gradient(105deg, #4B3B8F, #8A5CC4);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -8px rgba(75, 59, 143, .75);
}

.ins .ins__strip-btn--primary .wp-block-button__link:after {
	content: "";
	width: 12px;
	height: 12px;
	background-color: #fff;
	-webkit-mask: var(--ico-arrow) no-repeat center / 12px 12px;
	mask: var(--ico-arrow) no-repeat center / 12px 12px;
}

.ins .ins__strip-btn--ghost .wp-block-button__link {
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .8);
	border: 1.5px solid rgba(255, 255, 255, .18);
}

.ins .ins__strip-btn--ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .14);
	color: #FFFFFF;
}

@media (max-width: 820px) {
	.ins .ins__grid { grid-template-columns: minmax(0, 1fr); }
	.ins .ins__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ins .ins__head { grid-template-columns: minmax(0, 1fr); }
	.ins .ins__view-all { align-self: flex-start; }
	.ins .ins__strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
	.ins .ins__bottom { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.ins .ins__card,
	.ins .ins__mini,
	.ins .ins__card-visual img,
	.ins .ins__mini-visual img { transition: none; }
	.ins .ins__eyebrow:before,
	.ins .ins__hub-badge a:before { animation: none; }
}
