/* GC Hero & Info Cards — mirrored image/copy hero band + a row of edge-glow info cards. */

@keyframes gc-hic-reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

.gc-hic {
  --hic-ink: #14212B;
  --hic-blue: #5BA7DB;
  --hic-muted: #5A6B75;
  --hic-card-bg: #FFFFFF;
  --hic-border: #DCEEFA;
  --hic-glow-op: 0.45;
  position: relative;
  padding: 64px 48px;
  box-sizing: border-box;
}

.gc-hic *,
.gc-hic *::before,
.gc-hic *::after { box-sizing: border-box; }

.gc-hic [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  animation: gc-hic-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .gc-hic [data-reveal] { opacity: 1; translate: none; animation: none; }
}

.gc-hic-inner {
  width: 100%;
  max-width: var(--gc-hic-max, none);
  margin-inline: auto;
}

/* Edge to edge band plus a cap on the content inside it. */
.gc-hic--full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.gc-hic-top {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  align-items: center;
  gap: 80px;
  padding-bottom: 90px;
}

.gc-hic--img-right .gc-hic-top { grid-template-columns: 1fr 0.82fr; }
.gc-hic--img-right .gc-hic-media { order: 1; }
.gc-hic--img-right .gc-hic-copy { order: 0; text-align: left; }

/* Grid items default to min-width:auto. A fixed media height plus an image
   with an intrinsic ratio gives the item a transferred minimum width of
   height x ratio, which a 1fr track cannot shrink below, so the column ends
   up wider than the section and the content runs off the right edge. */
.gc-hic-top > * { min-width: 0; }
.gc-hic-media img { min-width: 0; }

.gc-hic-media {
  aspect-ratio: 1 / 1.03;
  border-radius: var(--gc-radius-md, 16px);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--hic-blue) 60%, transparent);
}

.gc-hic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-hic-copy { text-align: right; }

.gc-hic-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--gc-font-body, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hic-blue);
  margin: 0 0 14px;
}

.gc-hic-eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: .28;
}

.gc-hic-title {
  font-family: var(--gc-font-heading, 'Manrope', system-ui, sans-serif);
  font-weight: 700;
  color: var(--hic-ink);
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0 0 22px;
}

.gc-hic-title em {
  font-style: normal;
  color: var(--hic-blue);
}

.gc-hic-sub {
  font-family: var(--gc-font-body, 'Inter', system-ui, sans-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hic-ink);
  margin: 0 0 0 auto;
  max-width: 480px;
}

.gc-hic--img-right .gc-hic-sub { margin: 0; }

.gc-hic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gc-hic-card {
  position: relative;
  background: var(--hic-card-bg);
  border: 1px solid var(--hic-border);
  border-radius: var(--gc-radius-md, 16px);
  padding: 32px 28px;
  overflow: hidden;
  box-shadow: var(--gc-shadow-card, 0 10px 28px -8px rgba(20, 33, 43, 0.12));
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Top accent sweep — hidden until hover, the theme's recurring brand cue. */
.gc-hic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hic-blue), #6EC1E4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 1;
}

/* Idle breathing glow — a separate pseudo-element so it never fights the
   entrance reveal animation or the hover glow on the card itself. */
.gc-hic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.gc-hic-card:nth-child(2)::after { animation-delay: 1.1s; }
.gc-hic-card:nth-child(3)::after { animation-delay: 2.3s; }

/* Bare icon — no shared coloured tile, consistent with GC Hover Cards. */
.gc-hic-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: var(--hic-blue);
  margin: 0 0 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.gc-hic-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.gc-hic-card h3 {
  font-family: var(--gc-font-heading, 'Manrope', system-ui, sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--hic-ink);
  margin: 0 0 10px;
  transition: color 0.25s ease;
}

.gc-hic-card h3 em {
  font-style: normal;
  color: var(--hic-blue);
}

.gc-hic-card p {
  font-family: var(--gc-font-body, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hic-muted);
  margin: 0;
}

@media (hover: hover) {
  .gc-hic-card:hover,
  .gc-hic-card:focus-visible {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--hic-blue) 55%, var(--hic-border));
    box-shadow:
      0 30px 60px -22px rgba(20, 33, 43, 0.4),
      0 0 32px color-mix(in srgb, var(--hic-blue) calc(var(--hic-glow-op) * 100%), transparent);
  }
  .gc-hic-card:hover::before,
  .gc-hic-card:focus-visible::before { transform: scaleX(1); }
  .gc-hic-card:hover .gc-hic-icon,
  .gc-hic-card:focus-visible .gc-hic-icon { transform: scale(1.12) rotate(-4deg); }
  .gc-hic-card:hover h3,
  .gc-hic-card:focus-visible h3 { color: var(--hic-blue); }
}

.gc-hic-card:focus-visible { outline: 3px solid var(--hic-blue); outline-offset: -3px; }

@media (max-width: 900px) {
  .gc-hic { padding: 52px 32px; }
  .gc-hic-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .gc-hic-copy,
  .gc-hic--img-right .gc-hic-copy { text-align: left; }
  .gc-hic-sub,
  .gc-hic--img-right .gc-hic-sub { margin: 0; max-width: none; }
  .gc-hic-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gc-hic { padding: 42px 20px; }
  .gc-hic-top { gap: 24px; padding-bottom: 32px; }
  .gc-hic-media { aspect-ratio: 16/9; border-radius: var(--gc-radius-sm, 12px); border-width: 1px; }
  .gc-hic-eyebrow { font-size: 10.5px; gap: 10px; letter-spacing: 0.16em; margin: 0 0 10px; }
  .gc-hic-title { font-size: 1.6rem; margin: 0 0 14px; }
  .gc-hic-sub { font-size: 15px; line-height: 1.5; }
  .gc-hic-cards { gap: 12px; }
  .gc-hic-card { padding: 20px 18px; border-radius: var(--gc-radius-sm, 14px); box-shadow: none; }
  .gc-hic-card::after { display: none; }
  .gc-hic-icon { margin: 0 0 12px; }
  .gc-hic-icon svg { width: 28px; height: 28px; }
  .gc-hic-card h3 { font-size: 17px; margin: 0 0 8px; }
  .gc-hic-card p { font-size: 14.5px; line-height: 1.5; }
}

@media (max-width: 480px) {
  .gc-hic { padding: 40px 16px; }
  .gc-hic-top { gap: 20px; padding-bottom: 26px; }
  .gc-hic-title { font-size: 1.45rem; }
  .gc-hic-sub { font-size: 15px; }
  .gc-hic-card { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-hic-card { transition: none; }
  .gc-hic-card::after { animation: none; }
  .gc-hic-card:hover { transform: none; }
}


/* ---- Careers / About treatment (moved out of page-scoped CSS) ---- */

.gc-hic-media {
	aspect-ratio: auto;
	height: var(--gcab-media-h, 420px);
	border: 1px solid color-mix(in srgb, var(--gcab-accent) 70%, transparent);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--gcab-accent) 22%, transparent),
		0 0 34px color-mix(in srgb, var(--gcab-accent) 48%, transparent),
		0 0 82px color-mix(in srgb, var(--gcab-accent) 19%, transparent);
}

.gc-hic-top {
	align-items: center;
	gap: clamp(32px, 3.4vw, 64px);
	padding-bottom: clamp(40px, 4vw, 56px);
}

.gc-hic { padding-bottom: 64px;
}

.gc-hic-copy,
.gc-hic--img-right .gc-hic-copy {
	text-align: right;
	justify-self: end;
	max-width: 62ch;
}

.gc-hic-copy .gc-hic-eyebrow { text-align: right;
}

.gc-hic-sub {
	font-style: normal;
	font-weight: 400;
	color: var(--gc-muted, #5A6B75);
	margin: 0 0 0 auto;
	max-width: 58ch;
}

/* ---- Career progression: vertical rail ----
   A real ladder read top to bottom. The rail draws itself down as the section
   enters,
each step fades up behind it,
and the nodes fill on hover. Wide
   measure: the rail sits left and the copy runs the width of the band. */

.gc-hic-cards {
	position: relative;
	display: block;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: clamp(52px, 5vw, 74px);
	border: 0;
}

/* The rail. Scales from the top once the section is in view. */
.gc-hic-cards::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 18px;
	bottom: 28px;
	width: 1px;
	background: linear-gradient(180deg,
		var(--gcab-accent),
		color-mix(in srgb, var(--gcab-accent) 12%, transparent));
	transform: scaleY(0);
	transform-origin: top;
	animation: gc-hicrail 1.1s cubic-bezier(.22, 1, .36, 1) .1s forwards;
}

@keyframes gc-hicrail { to { transform: scaleY(1); }
}

.gc-hic-card {
	position: relative;
	display: block;
	grid-template-columns: none;
	gap: 0;
	padding: 0 0 clamp(26px, 2.4vw, 36px);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	opacity: 0;
	transform: translateY(14px);
	animation: gc-hicstep .6s cubic-bezier(.22, 1, .36, 1) forwards;
	transition: none;
}

@keyframes gc-hicstep { to { opacity: 1; transform: none; }
}

.gc-hic-cards .gc-hic-card:nth-child(1) { animation-delay: .30s;
}

.gc-hic-cards .gc-hic-card:nth-child(2) { animation-delay: .48s;
}

.gc-hic-cards .gc-hic-card:nth-child(3) { animation-delay: .66s; padding-bottom: 0;
}

.gc-hic-card::before,
.gc-hic-card::after { display: none;
}

/* The node,
sitting on the rail. */
.gc-hic-icon {
	position: absolute;
	left: calc(clamp(52px, 5vw, 74px) * -1);
	top: 0;
	display: grid;
	place-items: center;
	width: 37px;
	height: 37px;
	margin: 0;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--gcab-accent) 32%, transparent);
	border-radius: 50%;
	background: var(--gc-bg, #F4F8FB);
	color: var(--gcab-accent);
	transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s cubic-bezier(.34, 1.4, .5, 1);
}

.gc-hic-icon svg { width: 18px; height: 18px;
}

.gc-hic-card:hover .gc-hic-icon {
	background: var(--gcab-accent);
	border-color: var(--gcab-accent);
	color: #fff;
	transform: scale(1.08);
}

.gc-hic-card h3 {
	margin: 3px 0 10px;
	font-family: var(--gc-font-heading, "Manrope", system-ui, sans-serif);
	font-weight: 700;
	font-size: clamp(21px, 1.9vw, 27px);
	line-height: 1.18;
	letter-spacing: -.022em;
	color: var(--gc-ink, #14212B);
	text-wrap: balance;
	transition: color .25s ease;
}

.gc-hic-card:hover,
.gc-hic-card:focus-visible {
	transform: none;
	background: none;
	border: 0;
	box-shadow: none;
}

.gc-hic-card:hover h3,
.gc-hic-card:focus-visible h3 { color: var(--gcab-accent);
}

.gc-hic-card:focus-visible .gc-hic-icon {
	background: var(--gcab-accent);
	border-color: var(--gcab-accent);
	color: #fff;
	transform: scale(1.08);
}

.gc-hic-card h3 em {
	font-style: normal;
	color: var(--gcab-accent);
}

.gc-hic-card p {
	margin: 0;
	max-width: none;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--gc-muted, #5A6B75);
}

@media (max-width: 640px) {
	.gc-hic-cards { padding-left: 46px;
	}
	.gc-hic-cards::before { left: 16px;
	}
	.gc-hic-icon { left: -46px; width: 33px; height: 33px;
	}
	.gc-hic-icon svg { width: 16px; height: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gc-hic-cards::before { animation: none; transform: scaleY(1);
	}
	.gc-hic-card { animation: none; opacity: 1; transform: none;
	}
	.gc-hic-icon { transition: none;
	}
	.gc-hic-card:hover .gc-hic-icon { transform: none;
	}
}


/* 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-hic {
	--gcab-accent: var(--hic-blue, #5BA7DB);
	--gcab-glow: var(--hic-blue, #5BA7DB);
	--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(--hic-blue, #5BA7DB) 70%, transparent);
	--gcab-glow-ring:
		0 0 0 1px color-mix(in srgb, var(--hic-blue, #5BA7DB) 22%, transparent),
		0 0 34px color-mix(in srgb, var(--hic-blue, #5BA7DB) 48%, transparent),
		0 0 82px color-mix(in srgb, var(--hic-blue, #5BA7DB) 19%, transparent);
	--gcab-glow-ring-hover:
		0 0 0 1px color-mix(in srgb, var(--hic-blue, #5BA7DB) 34%, transparent),
		0 0 46px color-mix(in srgb, var(--hic-blue, #5BA7DB) 48%, transparent),
		0 0 102px color-mix(in srgb, var(--hic-blue, #5BA7DB) 24%, transparent);
}

@media (max-width: 640px) {
	.gc-hic {
		--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 trailing rule. */
.gc-hic-eyebrow {
	display: block;
	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;
	margin-bottom: 14px;
}

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

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

@media (max-width: 900px) {
	.gc-hic { --gcab-media-h: 320px; }
	.gc-hic-top { gap: 32px; padding-bottom: 40px; }
	.gc-hic-copy,
	.gc-hic--img-right .gc-hic-copy {
		text-align: left;
		justify-self: stretch;
		max-width: none;
	}
	.gc-hic-copy .gc-hic-eyebrow { text-align: left; }
	.gc-hic-sub,
	.gc-hic--img-right .gc-hic-sub { margin: 0; max-width: none; }
}

@media (max-width: 640px) {
	.gc-hic { --gcab-media-h: 240px; }
	.gc-hic-top { gap: 24px; padding-bottom: 32px; }
	.gc-hic-card h3 { font-size: 19px; }
	.gc-hic-card p { font-size: 15px; line-height: 1.6; }
}

@media (max-width: 480px) {
	.gc-hic { --gcab-media-h: 210px; }
	.gc-hic-top { gap: 20px; padding-bottom: 26px; }
	.gc-hic-card h3 { font-size: 18px; }
	.gc-hic-card p { font-size: 14.5px; }
}
