/*
 * GC Card Grid Type 1 — immersive image tile grid.
 * Root: .gc-cg1 (was #verticals in Gencore Home/snippet2.html).
 * Driven by the --cg-* custom property contract; per-card accent set inline via --accent.
 */

.gc-cg1 {
  --cg-cols: 3; --cg-gap: 24px; --cg-ratio: 4 / 3;
  --cg-scrim: 15,26,34; --cg-scrim-op: 0.9;
  --cg-heading: #14212B; --cg-eyebrow: #3D82B3;
  --cg-title: #FFFFFF; --cg-desc: rgba(255,255,255,.82);
  --cg-trace-w: 2px; --cg-trace-speed: 4s; --cg-trace-display: block;
  font-family: var(--gc-font-body, "Inter", system-ui, sans-serif);
  color: var(--cg-heading); line-height: 1.6; padding: 88px 0;
  -webkit-font-smoothing: antialiased;
}
.gc-cg1 *, .gc-cg1 *::before, .gc-cg1 *::after { box-sizing: border-box; }
.gc-cg1-inner { width: 100%; max-width: var(--cg-max, none); margin-inline: auto; padding-inline: var(--cg-pad, 48px); }
.gc-cg1-icon { font-size: 1.15rem; line-height: 1; }

.gc-cg1 h2 { font-family: var(--gc-font-heading, "Manrope", system-ui, sans-serif); font-weight: 800; line-height: 1.2; margin: 0 0 0.35em; font-size: clamp(1.6rem,1.35rem + 1vw,2.25rem); }
.gc-cg1 h3 { font-family: var(--gc-font-heading, "Manrope", system-ui, sans-serif); font-weight: 800; line-height: 1.2; margin: 0; font-size: 1.375rem; }
.gc-cg1 p { margin: 0 0 1em; }

.gc-cg1-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.gc-cg1-header .gc-cg1-eyebrow { margin-bottom: 16px; }
.gc-cg1-header h2 { margin-bottom: 0.35em; color: var(--cg-heading); }
.gc-cg1-header p { color: var(--gc-muted, #5A6B75); font-size: 16px; margin: 0; }

.gc-cg1-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--gc-radius-pill, 999px);
	font-size: 12px;
	font-weight: 700;
	background: color-mix(in srgb, var(--cg-eyebrow) 16%, transparent);
	color: var(--cg-eyebrow);
}

/* ---- Immersive card grid tiles (scoped to .gc-cg1) ---- */
.gc-cg1 .gc-cg1-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--cg-gap);
}
.gc-cg1 .gc-cg1-card {
	position: relative;
	display: block;
	flex: 0 1 calc((100% - (var(--cg-cols) - 1) * var(--cg-gap)) / var(--cg-cols));
	aspect-ratio: var(--cg-ratio);
	border-radius: 18px;
	overflow: hidden;
	color: var(--gc-white, #FFFFFF);
	text-decoration: none;
	isolation: isolate;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.gc-cg1 .gc-cg1-media { position: absolute; inset: 0; z-index: 0; }
.gc-cg1 .gc-cg1-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gc-cg1 .gc-cg1-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top,
		rgba(var(--cg-scrim), var(--cg-scrim-op)) 0%,
		rgba(var(--cg-scrim), .4) 34%,
		rgba(var(--cg-scrim), 0) 64%);
	transition: opacity 0.5s ease;
}
.gc-cg1 .gc-cg1-body {
	position: absolute;
	z-index: 2;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.gc-cg1 .gc-cg1-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 24%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: color-mix(in srgb, var(--accent) 35%, #ffffff);
	transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.5, 1), background 0.3s ease;
}
.gc-cg1 .gc-cg1-icon svg { width: 23px; height: 23px; }
.gc-cg1 .gc-cg1-card h3 { color: var(--cg-title); font-size: 1.25rem; }
.gc-cg1 .gc-cg1-reveal {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.gc-cg1 .gc-cg1-reveal-inner { overflow: hidden; min-height: 0; }
.gc-cg1 .gc-cg1-card p {
	margin: 0 0 10px;
	color: var(--cg-desc);
	font-size: 13.5px;
	line-height: 1.5;
}
.gc-cg1 .gc-cg1-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: var(--gc-white, #FFFFFF);
}
.gc-cg1 .gc-cg1-link svg { width: 15px; height: 15px; color: var(--accent); transition: transform 0.3s ease; }

@media (hover: hover) {
	.gc-cg1 .gc-cg1-card:hover,
	.gc-cg1 .gc-cg1-card:focus-visible {
		transform: translateY(-6px);
		box-shadow: 0 22px 40px -18px rgba(15, 26, 34, 0.5), 0 14px 40px -24px color-mix(in srgb, var(--accent) 50%, transparent);
	}
	.gc-cg1 .gc-cg1-card:hover .gc-cg1-media img,
	.gc-cg1 .gc-cg1-card:focus-visible .gc-cg1-media img { transform: scale(1.06); }
	.gc-cg1 .gc-cg1-card:hover .gc-cg1-reveal,
	.gc-cg1 .gc-cg1-card:focus-visible .gc-cg1-reveal { grid-template-rows: 1fr; opacity: 1; }
	.gc-cg1 .gc-cg1-card:hover .gc-cg1-icon,
	.gc-cg1 .gc-cg1-card:focus-visible .gc-cg1-icon {
		transform: scale(1.08);
		background: color-mix(in srgb, var(--accent) 36%, transparent);
	}
	.gc-cg1 .gc-cg1-card:hover .gc-cg1-link svg { transform: translateX(4px); }

	.gc-cg1--tilt .gc-cg1-card {
		--cg-rx: 0deg;
		--cg-ry: 0deg;
		--cg-tz: 0px;
		transform: perspective(var(--cg-persp, 1100px)) rotateX(var(--cg-rx)) rotateY(var(--cg-ry)) translate3d(0, 0, var(--cg-tz));
		transform-style: preserve-3d;
	}
	.gc-cg1--tilt .gc-cg1-card:hover,
	.gc-cg1--tilt .gc-cg1-card:focus-visible {
		--cg-tz: calc(var(--cg-lift, -6px) * -1);
		transform: perspective(var(--cg-persp, 1100px)) rotateX(var(--cg-rx)) rotateY(var(--cg-ry)) translate3d(0, var(--cg-lift, -6px), var(--cg-tz));
	}
	.gc-cg1--tilt .gc-cg1-card.is-tilting {
		transition: transform 0.12s ease-out, box-shadow 0.5s ease;
		will-change: transform;
	}
}
@media (hover: none) {
	.gc-cg1 .gc-cg1-reveal { grid-template-rows: 1fr; opacity: 1; }
}
.gc-cg1 .gc-cg1-card:focus-visible { outline: 3px solid var(--gc-white, #FFFFFF); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.gc-cg1 .gc-cg1-card,
	.gc-cg1 .gc-cg1-media img,
	.gc-cg1 .gc-cg1-icon,
	.gc-cg1 .gc-cg1-link svg,
	.gc-cg1 .gc-cg1-reveal { transition: none; }
	.gc-cg1 .gc-cg1-reveal { grid-template-rows: 1fr; opacity: 1; }
	.gc-cg1 .gc-cg1-card:hover { transform: none; }
	.gc-cg1 .gc-cg1-card:hover .gc-cg1-media img { transform: none; }
}

@media (max-width: 960px) {
	.gc-cg1 .gc-cg1-grid { --cg-cols: 2; }
}
@media (max-width: 640px) {
	.gc-cg1 { padding: 56px 0; --cg-gap: 14px; }
	.gc-cg1-header { margin-bottom: 32px; }
	.gc-cg1-header h2 { font-size: 1.6rem; }
	.gc-cg1-header p { font-size: 15px; line-height: 1.5; }
	.gc-cg1-eyebrow { font-size: 11px; padding: 4px 10px; }
	.gc-cg1-header .gc-cg1-eyebrow { margin-bottom: 12px; }
	.gc-cg1-inner { padding-inline: 20px; }
	.gc-cg1 .gc-cg1-grid { --cg-cols: 2; }
	.gc-cg1 .gc-cg1-card { aspect-ratio: 3 / 4; border-radius: 14px; }
	.gc-cg1 .gc-cg1-body { padding: 12px; gap: 6px; }
	.gc-cg1 .gc-cg1-reveal { display: none; }
	.gc-cg1 .gc-cg1-icon { width: 32px; height: 32px; }
	.gc-cg1 .gc-cg1-icon svg { width: 16px; height: 16px; }
	.gc-cg1 .gc-cg1-card h3 { font-size: 0.95rem; line-height: 1.25; }
	.gc-cg1 .gc-cg1-card::after { display: none; }
}
@media (max-width: 480px) {
	.gc-cg1 { padding: 48px 0; }
	.gc-cg1-inner { padding-inline: 16px; }
	.gc-cg1-header h2 { font-size: 1.45rem; }
	.gc-cg1 .gc-cg1-body { padding: 10px; }
	.gc-cg1 .gc-cg1-card h3 { font-size: 0.9rem; }
}

/* ---- Trace border (Task 1 Step 4) ---- */
@property --cg-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes gc-cg-trace { to { --cg-angle: 360deg; } }
.gc-cg1-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: var(--cg-trace-display); border-radius: inherit; padding: var(--cg-trace-w);
  background: conic-gradient(from var(--cg-angle),
    transparent 0deg, transparent 280deg,
    var(--accent) 320deg, color-mix(in srgb, var(--accent) 60%, #fff) 340deg,
    var(--accent) 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gc-cg-trace var(--cg-trace-speed) linear infinite;
}
@media (prefers-reduced-motion: reduce) { .gc-cg1-card::after { animation: none; } }


/* ---- Careers / About treatment. Scoped to the page class carried in
   the Elementor data, so it travels with an export and leaves Home alone. ---- */

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 { padding: var(--gcab-pad-y) 0;
}

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 .gc-cg1-card { border-radius: var(--gcab-radius);
}

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 .gc-cg1-card::after { display: none;
}

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 .gc-cg1-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: var(--cg-gap);
	align-items: stretch;
}

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 .gc-cg1-card {
	aspect-ratio: auto;
	height: var(--gcab-tile-h);
}

.gc-about :is(.gc-about,
.gc-about ) .gc-cg1 .gc-cg1-card:first-child {
	grid-row: 1 / span 2;
	height: calc(var(--gcab-tile-h) * 2 + var(--cg-gap, 24px));
}

@media (max-width: 640px) {
	.gc-about :is(.gc-about,
	.gc-about ) .gc-cg1 .gc-cg1-grid { grid-template-columns: minmax(0, 1fr);
	}
	.gc-about :is(.gc-about,
	.gc-about ) .gc-cg1 .gc-cg1-card:first-child { grid-row: auto; height: var(--gcab-tile-h);
	}
}


/* Self-contained design tokens. Everything this widget needs is declared on
   its own root, so it styles itself wherever it is dropped: no page class, no
   body class, no shared stylesheet. The accent follows the widget's own
   Elementor colour control. */
.gc-cg1 {
	--gcab-accent: var(--cg-eyebrow, #3D82B3);
	--gcab-glow: var(--cg-eyebrow, #3D82B3);
	--gcab-line: var(--gc-line, #E1E9EE);
	--gcab-shadow: var(--gc-shadow-card, 0 10px 28px -8px rgba(20, 33, 43, 0.12));
	--gcab-radius: var(--gc-radius-md, 16px);
	--gcab-pad-y: 64px;
	--gcab-gutter: 48px;
	--gcab-eyebrow-size: 11.5px;
	--gcab-eyebrow-gap: 14px;
	--gcab-eyebrow-mb: 14px;
	--gcab-h1: clamp(2rem, 1.55rem + 2.1vw, 3rem);
	--gcab-h2: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
	--gcab-lead: 16px;
	--gcab-media-h: 420px;
	--gcab-tile-h: 236px;
	--gcab-staff-h: 230px;
	--gcab-glow-edge: 1px solid color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 70%, transparent);
	--gcab-glow-ring:
		0 0 0 1px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 22%, transparent),
		0 0 34px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 48%, transparent),
		0 0 82px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 19%, transparent);
	--gcab-glow-ring-hover:
		0 0 0 1px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 34%, transparent),
		0 0 46px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 48%, transparent),
		0 0 102px color-mix(in srgb, var(--cg-eyebrow, #3D82B3) 24%, transparent);
}

@media (max-width: 640px) {
	.gc-cg1 {
		--gcab-pad-y: 42px;
		--gcab-gutter: 20px;
		--gcab-eyebrow-size: 10.5px;
		--gcab-eyebrow-gap: 10px;
		--gcab-eyebrow-mb: 12px;
		--gcab-h1: clamp(1.75rem, 7vw, 2.1rem);
		--gcab-h2: 1.6rem;
		--gcab-lead: 15px;
		--gcab-radius: 14px;
		--gcab-media-h: 240px;
		--gcab-tile-h: 200px;
		--gcab-staff-h: 190px;
	}
}

/* Eyebrow: one spec across every Gencore widget. Inter 11.5/600/.16em,
   uppercase, no pill and no trailing rule. */
.gc-cg1-eyebrow {
	display: block;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	font-family: var(--gc-font-body, "Inter", system-ui, sans-serif);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--cg-eyebrow);
	margin-bottom: 14px;
}

.gc-cg1-eyebrow::before,
.gc-cg1-eyebrow::after { display: none; }

@media (max-width: 640px) {
	.gc-cg1-eyebrow { font-size: 10.5px; padding: 0; margin-bottom: 12px; }
}
