/* Figma: East Daley - Key Pages v2, node 98:22 (hero 98:24, card one 98:37, card two 98:62) */
.eda-hero {
	--eda-hero-blue: #043667;
	--eda-hero-gold: #a7802e;
	/* Content follows the row, so it sits on the site grid like other elements */
	position: relative;
	padding: 89px 0 71px;
	color: var(--eda-hero-blue);
	font-family: source-sans-pro, sans-serif;
	letter-spacing: 0; /* theme body text is 0.02em; Figma uses 0 */
}

/* Full-bleed background layer, centred on the row and stretched to the viewport */
.eda-hero__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background-color: #f8f9fa;
	background-size: cover;
	background-position: left top;
}

.eda-hero__bg::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
  right: 0;
  background-image: linear-gradient(to right, #eff2f5 0%, rgba(247, 247, 247, .74) 100%);
	pointer-events: none;
}

@media screen and (min-width:1024px) {

  .eda-hero__bg::after {
    background: linear-gradient(to right, #eff2f5 0%, rgba(247, 247, 247, .74) 70%, rgba(247, 247, 247, 0) 100%);
  }
}

.eda-hero__inner {
  position: relative;
  z-index: 1;
}

.eda-hero__eyebrow,
.eda-hero-card__eyebrow {
	margin: 0;
	font-size: 17px;
	line-height: 32px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.eda-hero .eda-hero__title {
	max-width: 695px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 72px;
	line-height: 64.4px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}

.eda-hero__intro {
	max-width: 655px;
	margin: 37px 0 0;
	font-size: 23px;
	line-height: 1.379;
}

/* Cards */
.eda-hero__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 504px));
	gap: 31px;
	margin-top: 34px;
}

.eda-hero-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px 17px 28px 36px; /* Figma body copy runs to 17px from the right edge */
}

.eda-hero .eda-hero-card {
  text-decoration: none;
}
/* the card is a link when it has a URL; the :hover selectors below keep theme link colours off it */

.eda-hero .eda-hero-card:focus-visible {
  outline: 3px solid var(--eda-hero-gold);
  outline-offset: 3px;
}

.eda-hero .eda-hero-card--one,
.eda-hero a.eda-hero-card--one:hover {
	background: var(--eda-hero-blue);
	color: #fff;
	border-radius: 5px;
}

.eda-hero .eda-hero-card--two,
.eda-hero a.eda-hero-card--two:hover {
	background: #fff;
	color: var(--eda-hero-blue);
	border-radius: 2px;
	box-shadow: 5px 4px 4px rgba(0, 0, 0, .05);
}

.eda-hero-card__lines {
	position: absolute;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.eda-hero-card--one .eda-hero-card__lines {
  right: 2.5px;
}

.eda-hero-card--two .eda-hero-card__lines {
  bottom: 4.5px;
}
.eda-hero-card > :not(.eda-hero-card__lines) {
  position: relative; z-index: 1;
}

.eda-hero-card__icon {
	display: flex;
	align-items: flex-end;
	height: 46px;
}

.eda-hero-card__icon img {
  display: block;
  max-height: 46px;
  width: auto;
}

.eda-hero-card__eyebrow {
  margin-top: 13px;
}

.eda-hero-card--one .eda-hero-card__eyebrow {
  color: rgba(255, 255, 255, .67);
}

.eda-hero-card--two .eda-hero-card__eyebrow {
  color: var(--eda-hero-gold);
}

.eda-hero .eda-hero-card__title {
	max-width: 432px;
	margin: 23px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 35px;
	line-height: 35.3px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}

.eda-hero-card__text {
	max-width: 451px;
	margin: 23px 0 40px;
	font-size: 22px;
	line-height: 28px;
	letter-spacing: -.25px;
}

.eda-hero-card--two .eda-hero-card__text {
  max-width: 398px;
}

.eda-hero-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 256px;
	max-width: 100%;
	height: 56px;
	gap: 10px;
	margin-top: auto;
	padding: 0 24px;
	border: 1px solid;
	border-radius: 45px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .72px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.eda-hero-card__arrow {
	flex: none;
	stroke: var(--eda-hero-gold);
	transition: stroke .2s;
}

.eda-hero-card--one .eda-hero-card__arrow {
  stroke: var(--eda-hero-blue);
}

a.eda-hero-card:hover .eda-hero-card__arrow,
a.eda-hero-card:focus-visible .eda-hero-card__arrow {
	stroke: currentColor;
}

.eda-hero-card--one .eda-hero-card__btn {
	background: #fff;
	border-color: #fff;
	color: var(--eda-hero-blue);
}

a.eda-hero-card--one:hover .eda-hero-card__btn,
a.eda-hero-card--one:focus-visible .eda-hero-card__btn {
	background: transparent;
	color: #fff;
}

.eda-hero-card--two .eda-hero-card__btn {
	border-width: 2px;
	border-color: var(--eda-hero-gold);
	color: var(--eda-hero-gold);
	letter-spacing: .9px;
}

a.eda-hero-card--two:hover .eda-hero-card__btn,
a.eda-hero-card--two:focus-visible .eda-hero-card__btn {
	background: var(--eda-hero-gold);
	color: #fff;
}

@media (max-width: 1024px) {

	.eda-hero .eda-hero__title {
    font-size: 56px;
    line-height: 1;
  }

	.eda-hero .eda-hero-card__title {
    font-size: 30px;
    line-height: 1.1;
  }

	.eda-hero-card__text {
    font-size: 19px;
    line-height: 1.4;
  }
}

@media (max-width: 767px) {

	.eda-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

	.eda-hero__bg::after {
    width: 100%;
  }

	.eda-hero .eda-hero__title {
    font-size: 40px;
  }

	.eda-hero__intro {
    margin-top: 20px;
    font-size: 19px;
  }

	.eda-hero__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

	.eda-hero-card {
    padding: 28px 24px;
  }

	.eda-hero .eda-hero-card__title {
    font-size: 28px;
  }

	.eda-hero-card__text {
    font-size: 18px;
    margin-bottom: 28px;
  }
}
