/**
 * Homepage banner. Markup: inc/home-hero.php ([ec_hero]).
 * Loaded only on pages whose content carries [ec_hero].
 *
 * Desktop/tablet: text over the left of the picture, vertically centred,
 * dark (#333e48, as the old Slider Revolution slides) or white per banner
 * (.ec-hero--light). Phones (since 2026-11-20): text over the TOP of the
 * picture, same colour choice - needs a tall phone picture with room at the
 * top (a wide picture is too short to hold the text).
 *
 * No aspect-ratio here on purpose: the <img> and the phone <source> carry
 * their own width/height, so the browser reserves the right box for either
 * picture before it loads (no layout shift) and nothing is cropped.
 */

.ec-hero {
	position: relative;
	margin: 0 0 32px;
	overflow: hidden;
}

.ec-hero__media,
.ec-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

.ec-hero__body {
	position: absolute;
	top: 50%;
	left: 3%;
	max-width: 40%;
	transform: translateY(-50%);
}

.ec-hero__headline {
	margin: 0 0 24px;
	color: #333e48;
	font-size: clamp(26px, 3.4vw, 46px);
	font-weight: 300;
	line-height: 1.1;
}

.ec-hero .ec-hero__btn {
	display: inline-block;
	padding: 14px 40px;
	border-radius: 999px;
	background-color: #fed700;
	color: #333e48;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ec-hero .ec-hero__btn:hover,
.ec-hero .ec-hero__btn:focus-visible {
	background-color: #333e48;
	color: #fff;
}

.ec-hero .ec-hero__btn:focus-visible {
	outline: 2px solid #333e48;
	outline-offset: 3px;
}

.ec-hero--light .ec-hero__headline {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.ec-hero--light .ec-hero__btn:hover,
.ec-hero--light .ec-hero__btn:focus-visible {
	background-color: #fff;
	color: #333e48;
}

.ec-hero--light .ec-hero__btn:focus-visible {
	outline-color: #fff;
}

/* Phones (2026-11-20, owner): text OVER the top of the picture, as a true
   banner. The phone picture (1080 x 1350) keeps the people below the top. */
@media (max-width: 767px) {
	.ec-hero {
		margin-bottom: 24px;
	}

	/* Headline at the top, button at the base of the picture (owner: below
	   the handhelds, over the feet), same 16px inset top and bottom. */
	.ec-hero__body {
		top: 16px;
		right: 16px;
		bottom: 16px;
		left: 16px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
		max-width: none;
		transform: none;
	}

	.ec-hero__headline {
		margin-bottom: 0;
		font-size: 22px;
	}

	.ec-hero .ec-hero__btn {
		padding: 11px 26px;
		font-size: 15px;
	}
}

/* -------------------------------------------------------------------------
 * Homepage tiles + finder links (2026-11-20, homepage revision v3)
 * Page 5130: tiles row el_class "ec-home-tiles" (Electro ad blocks),
 * finder row el_class "ec-home-finders" (two 1/2 columns, [ec_finder_link]).
 * Owner: refine what is there; every box on one grid, one gap size.
 * Grid: column inner padding 15px puts the finder boxes on the tile edges;
 * both rows use the same gap below each box (30px, phones 16px).
 * ---------------------------------------------------------------------- */

/* Tiles: Electro centres the content (.da-media margin:auto), caps the text
   at 130px and gives the action line a 30px line-height at xl, so each tile
   started at a different point and "Shop / Nostalgia" split with a gap. */
/* The row itself carries .da-block too (el_class "da-block columns-3"), so
   Electro's 1.643em bottom margin made the tiles-to-finders gap 23px bigger
   than the gaps between tiles (measured on staging 2026-11-20). */
.ec-home-tiles.da-block,
.ec-home-tiles .da-block {
	margin-bottom: 0;
}

.ec-home-tiles .da-media {
	width: 100%;
	margin: 0;
	align-items: center;
}

.ec-home-tiles .da-media-left img {
	width: 100%;
	height: auto;
	aspect-ratio: 190 / 150;
	object-fit: contain;
}

/* Electro sets height:100% on the text column, which parked the text at the
   top of the box on phones while the image sat in the middle. */
.ec-home-tiles .da-media-body {
	max-width: none;
	height: auto;
	align-self: center;
}

.ec-home-tiles .da-action {
	margin-top: 6px;
	line-height: 1.4;
}

.ec-home-tiles > .wpb_column,
.ec-home-finders > .wpb_column {
	margin-bottom: 30px;
}

/* Equal heights: the row is a flex row (equal_height in WPBakery); carry
   the height down to the grey box. */
.ec-home-tiles .vc_column-inner,
.ec-home-tiles .wpb_wrapper,
.ec-home-tiles .da-block,
.ec-home-tiles .da {
	height: 100%;
}

/* Tablet: 2 x 2 (4 across spilled text and arrows out of the boxes). */
@media (min-width: 768px) and (max-width: 1199px) {
	.ec-home-tiles > .wpb_column {
		width: 50%;
	}
}

/* Finder links: same look as the row on handheld product pages
   (css/product-single.css / css/compare-page.css .ec-hs-pdp-link, which do
   not load here - change all three together). Square corners and the tile
   padding, so the icon starts where the tile images start. */
.ec-home-finders .ec-hs-pdp-link {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 12px 16px;
	background: #f5f5f5;
	color: #333e48;
	font-size: 12px;
	line-height: 1.35;
	text-decoration: none;
	transition: background 0.15s;
}

.ec-home-finders .ec-hs-pdp-link:hover,
.ec-home-finders .ec-hs-pdp-link:focus {
	background: #efefef;
	color: #333e48;
	text-decoration: none;
}

.ec-home-finders .ec-hs-pdp-link__icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #ce1d76;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ec-home-finders .ec-hs-pdp-link__text {
	flex: 1 1 auto;
}

.ec-home-finders .ec-hs-pdp-link__text strong {
	font-weight: 700;
}

.ec-home-finders .ec-hs-pdp-link__cta {
	flex: 0 0 auto;
	font-family: "DM Mono", ui-monospace, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ce1d76;
	white-space: nowrap;
}

.ec-home-finders .wpb_wrapper {
	height: 100%;
}

/* Phones: stacked, smaller tile image, one 16px gap throughout. */
@media (max-width: 767px) {
	.ec-home-tiles > .wpb_column,
	.ec-home-finders > .wpb_column {
		margin-bottom: 16px;
	}

	.ec-home-tiles .da-media-left {
		flex: 0 0 110px;
		max-width: 110px;
	}

	.ec-home-finders .ec-hs-pdp-link {
		flex-wrap: wrap;
	}

	.ec-home-finders .ec-hs-pdp-link__text {
		flex-basis: calc(100% - 30px);
	}

	.ec-home-finders .ec-hs-pdp-link__cta {
		margin-left: 30px;
	}
}
