/* Infinity Group Catalog — follows the Figma layout of Infinity Sands Group (Montserrat, background #302c42,
   cards #211f2f / #383253, panel gradient #433d60 → #211e2e, lilac accent #c0b7e8 → #8176af, text #f5f7f9).
   The mockups are 1920 px wide with a 1720 px column; sizes scale down with clamp() for narrower Divi rows. */

.igc-catalog {
	--igc-bg: #302c42;
	--igc-card: #211f2f;
	--igc-card2: #383253;
	--igc-dark: #211e2e;
	--igc-text: #f5f7f9;
	--igc-muted: #a9a4c4;
	--igc-accent: #c0b7e8;
	--igc-accent2: #8176af;
	--igc-grad: linear-gradient(90deg, #c0b7e8, #8176af);
	--igc-grad-btn: linear-gradient(90deg, #8176af, #c0b7e8);
	--igc-font: 'Montserrat', Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	font-family: var(--igc-font);
	color: var(--igc-text);
	-webkit-font-smoothing: antialiased;
}
.igc-catalog *,
.igc-catalog *::before,
.igc-catalog *::after { box-sizing: inherit; }
.igc-catalog h1,
.igc-catalog h2,
.igc-catalog h3,
.igc-catalog p,
.igc-catalog ul,
.igc-catalog dl,
.igc-catalog dd,
.igc-catalog figure { margin: 0; padding: 0; }
.igc-catalog h1,
.igc-catalog h2,
.igc-catalog h3 { color: var(--igc-text); font-family: var(--igc-font); }
.igc-catalog ul { list-style: none; }
.igc-catalog a { text-decoration: none; }
.igc-catalog img { display: block; max-width: none; }
.igc-catalog :focus-visible { outline: 2px solid var(--igc-accent); outline-offset: 3px; }
.igc-empty { padding: 20px; border: 1px dashed var(--igc-accent); }

/* Text in the lilac gradient (first words of headings, numbers). */
.igc-grad {
	background: var(--igc-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--igc-accent);
}

.igc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 64px;
	padding: 0 44px;
	border-radius: 32px;
	background: var(--igc-grad);
	font: 600 20px/1.2 var(--igc-font);
	color: var(--igc-dark) !important;
	transition: filter .25s, transform .25s, box-shadow .25s;
}
.igc-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(129, 118, 175, .35); }

/* ======================= Category page [infinity_group_products] ======================= */

.igc-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 820px);
	gap: clamp(32px, 3vw, 56px);
	align-items: start;
	padding: clamp(48px, 6.5vw, 130px) 0 0;
}
/* The soft lilac glow behind the photo. */
.igc-hero::before {
	content: '';
	position: absolute;
	right: -6%;
	top: -10%;
	width: 64%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(129, 118, 175, .35), rgba(129, 118, 175, 0));
	pointer-events: none;
}
.igc-hero > * { position: relative; }
.igc-hero-title { font: 700 clamp(44px, 5vw, 96px)/1.2 var(--igc-font); overflow-wrap: anywhere; }
.igc-hero-lead { margin-top: clamp(20px, 2.6vw, 50px) !important; max-width: 700px; font-size: clamp(17px, 1.25vw, 24px); line-height: 1.5; opacity: .85; }
.igc-hero-arrow {
	position: relative;
	display: block;
	width: 120px;
	height: 24px;
	margin-top: clamp(28px, 3vw, 60px);
	transition: transform .25s;
}
.igc-hero-arrow::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(245, 247, 249, .8); }
.igc-hero-arrow::after { content: ''; position: absolute; right: 1px; top: 5px; width: 12px; height: 12px; border-top: 2px solid rgba(245, 247, 249, .8); border-right: 2px solid rgba(245, 247, 249, .8); transform: rotate(45deg); }
.igc-hero-arrow:hover { transform: translateX(8px); }
.igc-hero-photo {
	aspect-ratio: 820 / 620;
	border-radius: clamp(30px, 3.1vw, 60px);
	overflow: hidden;
	background: var(--igc-card2);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.igc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.igc-page { padding: clamp(48px, 5.7vw, 110px) 0 clamp(60px, 6vw, 120px); }

.igc-intro {
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
	gap: clamp(28px, 3.1vw, 60px);
	align-items: center;
	padding: clamp(36px, 3.1vw, 60px) clamp(36px, 5.2vw, 100px);
	border-radius: 130px;
	background: var(--igc-card);
}
.igc-intro-title { font: 700 clamp(28px, 2.1vw, 40px)/1.2 var(--igc-font); }
.igc-intro-text { font-size: clamp(16px, 1.15vw, 22px); line-height: 1.55; opacity: .8; }

.igc-chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 50px; }
.igc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	padding: 0 30px;
	border-radius: 28px;
	background: var(--igc-card2);
	font: 500 clamp(15px, 1.05vw, 20px)/1.2 var(--igc-font);
	color: var(--igc-text) !important;
	transition: background .25s, color .25s;
}
.igc-chip:hover { background: #453e66; }
.igc-chip.is-active { background: var(--igc-grad); color: var(--igc-dark) !important; }

.igc-cat { margin-top: clamp(60px, 7.8vw, 150px); scroll-margin-top: 40px; }
.igc-chips + .igc-cat,
.igc-intro + .igc-cat { margin-top: clamp(48px, 5vw, 100px); }

.igc-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(300px, 21.9vw, 420px);
	border-radius: clamp(30px, 2.6vw, 50px);
	overflow: hidden;
	background: var(--igc-card2);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.igc-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.igc-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33, 30, 46, .95), rgba(33, 30, 46, .05)); }
.igc-banner-text { position: relative; z-index: 1; max-width: 900px; padding: clamp(36px, 3.6vw, 70px); }
.igc-banner-num { display: block; font: 700 clamp(48px, 3.75vw, 72px)/1 var(--igc-font); }
.igc-banner-title { margin-top: clamp(16px, 1.5vw, 28px) !important; font: 700 clamp(30px, 2.5vw, 48px)/1.15 var(--igc-font); }
.igc-banner-sub { margin-top: 18px !important; max-width: 640px; font-size: clamp(16px, 1.15vw, 22px); line-height: 1.5; opacity: .85; }

/* Products in two columns with a thin line between them. */
.igc-panel {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(40px, 5vw, 100px);
	row-gap: 60px;
	margin-top: 40px;
	padding: 50px;
	border-radius: 40px;
	background: linear-gradient(90deg, #433d60, #211e2e);
}
.igc-panel::before { content: ''; position: absolute; left: 50%; top: 50px; bottom: 50px; width: 2px; background: rgba(245, 247, 249, .12); }
.igc-item { display: grid; grid-template-columns: minmax(0, 340px) 60px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.igc-item-photo { aspect-ratio: 340 / 230; border-radius: 24px; overflow: hidden; background: var(--igc-card2); }
.igc-item-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.igc-item:hover .igc-item-photo img { transform: scale(1.05); }
.igc-item-arrow { position: relative; display: block; height: 2px; margin-top: 40px; background: rgba(245, 247, 249, .8); }
.igc-item-arrow::after { content: ''; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid rgba(245, 247, 249, .8); border-right: 2px solid rgba(245, 247, 249, .8); transform: rotate(45deg); }
.igc-item-body { padding-top: 20px; }
.igc-item-title { font: 600 clamp(19px, 1.25vw, 24px)/1.2 var(--igc-font); }
.igc-item-text { margin-top: 14px !important; font-size: clamp(15px, .95vw, 18px); line-height: 1.5; opacity: .75; }

@media (max-width: 1500px) {
	.igc-item { grid-template-columns: minmax(0, 220px) 40px minmax(0, 1fr); column-gap: 16px; }
	.igc-item-arrow { margin-top: 30px; }
	.igc-item-body { padding-top: 12px; }
}
@media (max-width: 1180px) {
	.igc-panel { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 36px; }
	.igc-panel::before { display: none; }
}
@media (max-width: 980px) {
	.igc-hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
	.igc-hero::before { width: 110%; right: -40%; top: 30%; }
	.igc-hero-title { font-size: 40px; }
	.igc-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; border-radius: 32px; padding: 30px 26px; }
	.igc-intro-title { font-size: 26px; }
	.igc-chips { gap: 10px; margin-top: 28px; }
	.igc-chip { min-height: 44px; padding: 0 18px; font-size: 14px; }
	.igc-banner { min-height: 280px; border-radius: 28px; }
	.igc-banner::after { background: linear-gradient(0deg, rgba(33, 30, 46, .95) 10%, rgba(33, 30, 46, .25)); }
	.igc-banner { align-items: flex-end; }
	.igc-banner-text { padding: 28px 24px; }
	.igc-banner-num { font-size: 40px; }
	.igc-banner-title { font-size: 26px; margin-top: 10px !important; }
	.igc-banner-sub { font-size: 15px; margin-top: 10px !important; }
	.igc-panel { margin-top: 16px; padding: 20px; border-radius: 28px; row-gap: 22px; }
	.igc-item { grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; }
	.igc-item-photo { border-radius: 16px; }
	.igc-item-arrow { display: none; }
	.igc-item-body { padding-top: 2px; }
	.igc-item-title { font-size: 17px; }
	.igc-item-text { margin-top: 6px !important; font-size: 14px; }
}

/* ======================= Home page block [infinity_group_catalog] ======================= */

.igc-home {
	display: grid;
	grid-template-columns: minmax(0, 640px) minmax(0, 1000px);
	justify-content: space-between;
	gap: 60px;
	align-items: center;
	padding: 0;
}
.igc-eyebrow { font: 600 18px/1.2 var(--igc-font); letter-spacing: 2px; text-transform: uppercase; color: var(--igc-accent); }
.igc-home-title { margin-top: 28px !important; font: 700 clamp(36px, 2.9vw, 56px)/1.15 var(--igc-font); }
.igc-home-lead { margin-top: 30px !important; max-width: 600px; font-size: clamp(17px, 1.15vw, 22px); line-height: 1.55; opacity: .8; }
.igc-stats { display: flex; gap: 10px; margin-top: 60px !important; }
.igc-stats > div { width: 200px; }
.igc-stats dt { display: inline-block; font: 700 clamp(52px, 3.75vw, 72px)/1 var(--igc-font); }
.igc-stats dd { margin-top: 12px !important; font: 500 18px/1.2 var(--igc-font); }
.igc-home .igc-quote { margin-top: 70px; min-width: 260px; }

/* Running columns: each track holds the cards twice and moves by half of its height. */
.igc-marquee {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px;
	height: 900px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
	mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
}
.igc-mtrack { display: flex; flex-direction: column; gap: 22px; animation: igc-up 60s linear infinite; }
.igc-mcol--1 .igc-mtrack { animation-duration: 64s; animation-delay: -12s; }
.igc-mcol--2 .igc-mtrack { animation-name: igc-down; animation-duration: 56s; }
/* Same speed as the left column: its cards are shifted by half the list, so the two never match. */
.igc-mcol--3 .igc-mtrack { animation-duration: 64s; animation-delay: -12s; }
.igc-marquee:hover .igc-mtrack,
.igc-marquee:focus-within .igc-mtrack { animation-play-state: paused; }
/* 11px = half of the gap, so the second copy lands exactly where the first one started. */
@keyframes igc-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }
@keyframes igc-down { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }

.igc-mcard {
	position: relative;
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 310 / 400;
	border-radius: 30px;
	overflow: hidden;
	background: var(--igc-card2);
	color: var(--igc-text) !important;
}
.igc-mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.igc-mcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33, 30, 46, .05), rgba(33, 30, 46, .92)); transition: background .3s; }
.igc-mcard-num { position: absolute; z-index: 1; left: 26px; top: 24px; font: 700 22px/1.2 var(--igc-font); }
.igc-mcard-text { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 26px; }
.igc-mcard-title { display: block; font: 700 clamp(19px, 1.25vw, 24px)/1.15 var(--igc-font); }
.igc-mcard-meta { display: block; margin-top: 8px; font: 500 15px/1.2 var(--igc-font); color: var(--igc-accent); }
a.igc-mcard:hover img { transform: scale(1.06); }
a.igc-mcard:hover::after { background: linear-gradient(180deg, rgba(129, 118, 175, .15), rgba(33, 30, 46, .92)); }

@media (max-width: 1280px) {
	.igc-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
	.igc-marquee { gap: 20px; height: 760px; }
	.igc-mtrack { gap: 16px; }
	@keyframes igc-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
	@keyframes igc-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
	.igc-mcard { border-radius: 22px; }
	.igc-mcard-num { left: 18px; top: 16px; font-size: 18px; }
	.igc-mcard-text { left: 18px; right: 18px; bottom: 18px; }
	.igc-stats > div { width: 150px; }
}

/* Phones: text, then two ribbons of cards running sideways in opposite directions, then the button. */
@media (max-width: 980px) {
	.igc-home { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.igc-eyebrow { font-size: 13px; }
	.igc-home-title { margin-top: 12px !important; font-size: 30px; }
	.igc-home-lead { margin-top: 16px !important; font-size: 15px; }
	.igc-stats { margin-top: 28px !important; gap: 8px; }
	.igc-stats > div { width: auto; flex: 1 1 0; }
	.igc-stats dt { font-size: 40px; }
	.igc-stats dd { margin-top: 6px !important; font-size: 13px; }
	.igc-home .igc-quote { order: 3; width: 100%; margin-top: 32px; min-height: 56px; font-size: 17px; }
	.igc-home-text { display: contents; }
	.igc-marquee {
		order: 2;
		display: flex;
		flex-direction: column;
		gap: 30px;
		height: auto;
		margin: 36px -16px 0;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	}
	.igc-mcol--3 { display: none; }
	.igc-mtrack { flex-direction: row; gap: 16px; width: max-content; animation-name: igc-left; animation-duration: 50s; }
	.igc-mcol--2 .igc-mtrack { animation-name: igc-right; animation-duration: 46s; }
	@keyframes igc-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
	@keyframes igc-right { from { transform: translateX(calc(-50% - 8px)); } to { transform: translateX(0); } }
	.igc-mcard { width: 200px; border-radius: 24px; aspect-ratio: 200 / 260; }
	.igc-mcard-num { left: 16px; top: 14px; font-size: 16px; }
	.igc-mcard-text { left: 16px; right: 16px; bottom: 16px; }
	.igc-mcard-title { font-size: 17px; }
	.igc-mcard-meta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.igc-catalog *,
	.igc-catalog *::before,
	.igc-catalog *::after { transition: none !important; }
	.igc-mtrack { animation: none !important; }
	.igc-marquee { overflow-y: auto; }
}
