/* ---------- Services launcher (header grid button + full-screen overlay) ---------- */

.renater-launcher-btn {
	--hover-tint: color-mix(in srgb, var(--renater-navy) 13%, #fff);
	--active-tint: color-mix(in srgb, var(--renater-navy) 13%, #fff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	margin-left: 0.75rem;
	padding: 0 1.1rem 0 0.9rem;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	color: var(--renater-navy);
	cursor: pointer;
	/* A visible ring and a light tint, so the button reads as something to press. */
	background: color-mix(in srgb, var(--renater-navy) 7%, #fff);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--renater-navy) 28%, transparent);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.4s var(--renater-ease);
}

.renater-launcher-btn:hover,
.renater-launcher-btn:focus-visible {
	background-color: color-mix(in srgb, var(--renater-navy) 13%, #fff);
	box-shadow: inset 0 0 0 2px var(--renater-navy);
	transform: translateY(-1px);
}

.renater-launcher-btn:focus-visible {
	outline: 3px solid var(--renater-sky);
	outline-offset: 2px;
}

.renater-launcher-btn__icon {
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	fill: currentColor;
	overflow: visible;
}

/* The label is always visible: the button reads as "Services RENATER", not as a lone icon. */
.renater-launcher-btn__label {
	margin-left: 0.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
}

.renater-launcher-btn__icon rect {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.45s var(--renater-ease), fill 0.3s ease;
	/* A diagonal wave runs through the squares a few times after the page loads, then stops. */
	animation: renater-launcher-wave 5s ease-in-out calc(1.6s + var(--wave, 0s)) 3;
}

@keyframes renater-launcher-wave {
	0%,
	24%,
	100% {
		fill: currentColor;
		transform: scale(1);
	}

	10% {
		fill: var(--renater-teal);
		transform: scale(1.45);
	}
}

/* Hover: the whole grid lights up and swells. */
.renater-launcher-btn:hover .renater-launcher-btn__icon rect,
.renater-launcher-btn:focus-visible .renater-launcher-btn__icon rect {
	animation: none;
	fill: var(--renater-sky);
	transform: scale(1.2);
}

.renater-launcher-btn__icon rect:nth-child(2),
.renater-launcher-btn__icon rect:nth-child(4) { --wave: 0.12s; transition-delay: 0.04s; }
.renater-launcher-btn__icon rect:nth-child(3),
.renater-launcher-btn__icon rect:nth-child(5),
.renater-launcher-btn__icon rect:nth-child(7) { --wave: 0.24s; transition-delay: 0.08s; }
.renater-launcher-btn__icon rect:nth-child(6),
.renater-launcher-btn__icon rect:nth-child(8) { --wave: 0.36s; transition-delay: 0.12s; }
.renater-launcher-btn__icon rect:nth-child(9) { --wave: 0.48s; transition-delay: 0.16s; }

/* In the mobile menu sheet the button sits at the left of its row. */
.fr-header__menu-links .renater-launcher-btn {
	margin-left: 0;
}

@media (prefers-reduced-motion: reduce) {
	.renater-launcher-btn {
		transition: none;
	}

	.renater-launcher-btn__icon rect {
		animation: none;
	}
}

/*
 * Eco-designed: plain white ground, no gradient, blur, glow or continuous animation.
 * Colour comes only from the small service pictograms. Transitions are limited to
 * opacity and transforms (no filters, no backdrop effects).
 */
.renater-launcher {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 5rem 1.5rem 3rem;
	color: var(--renater-ink);
	background: #fff;
	opacity: 0;
	clip-path: circle(0 at var(--renater-x, 95%) var(--renater-y, 5%));
	/* Closing: the circle shrinks, and the fade comes last so a white edge never cuts across the page. */
	transition: clip-path 0.6s var(--renater-ease), opacity 0.25s ease 0.35s;
}

.renater-launcher[hidden] {
	display: none;
}

.renater-launcher.is-open {
	opacity: 1;
	clip-path: circle(150vmax at var(--renater-x, 95%) var(--renater-y, 5%));
	transition: clip-path 0.7s var(--renater-ease), opacity 0.2s ease;
}

/* Closing: content leaves at once instead of waiting for its entrance delays. */
.renater-launcher:not(.is-open) .renater-launcher__kicker,
.renater-launcher:not(.is-open) .renater-launcher__title,
.renater-launcher:not(.is-open) .renater-launcher__item {
	transition-duration: 0.15s;
	transition-delay: 0s;
}

.renater-launcher__inner {
	width: 100%;
	max-width: 72rem;
}

.renater-launcher__kicker,
.renater-launcher__title {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.5s var(--renater-ease) 0.2s, transform 0.6s var(--renater-ease) 0.2s;
}

.renater-launcher__kicker {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--renater-navy);
}

.renater-design .renater-launcher__title {
	margin: 0 0 3rem;
	font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--renater-ink);
	transition-delay: 0.26s;
}

.renater-launcher__title em {
	font-style: normal;
	color: var(--renater-navy);
}

/* Two columns: the services stacked on the left, the portal (large) and the network status on the right. */
.renater-launcher__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 1rem;
	align-items: stretch;
}

.renater-launcher__layout:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.renater-launcher__grid {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.renater-launcher__grid--aside {
	grid-template-rows: 1fr;
}

.renater-launcher__item {
	padding: 0;
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 0.5s var(--renater-ease), transform 0.6s var(--renater-ease);
	transition-delay: calc(0.32s + var(--i) * 60ms);
}

.renater-launcher__link {
	--hover-tint: transparent;
	--active-tint: transparent;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 11rem;
	padding: 1.5rem;
	border-radius: 1rem;
	color: var(--renater-ink);
	text-decoration: none;
	background: #fff;
	background-image: none;
	box-shadow: inset 0 0 0 1.5px rgba(3, 26, 48, 0.2);
	transition: transform 0.4s var(--renater-ease), box-shadow 0.25s ease;
}

.renater-launcher__link::after {
	content: none;
}

.renater-launcher__link:hover,
.renater-launcher__link:focus-visible {
	transform: translateY(-5px);
	box-shadow: inset 0 0 0 2px var(--renater-navy);
	outline: 0;
}

.renater-launcher__logo {
	display: flex;
	height: 3.6rem;
}

.renater-launcher__logo img {
	width: auto;
	height: 100%;
	max-width: 100%;
	transition: transform 0.4s var(--renater-ease);
}

.renater-launcher__link:hover .renater-launcher__logo img {
	transform: scale(1.1);
}

.renater-launcher__name {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.renater-launcher__arrow {
	position: absolute;
	top: 1.1rem;
	right: 1.25rem;
	font-size: 1.2rem;
	color: var(--renater-navy);
	opacity: 0;
	transform: translate(-0.4rem, 0.4rem);
	transition: opacity 0.25s ease, transform 0.4s var(--renater-ease);
}

.renater-launcher__link:hover .renater-launcher__arrow,
.renater-launcher__link:focus-visible .renater-launcher__arrow {
	opacity: 1;
	transform: none;
}

.renater-launcher.is-open .renater-launcher__kicker,
.renater-launcher.is-open .renater-launcher__title,
.renater-launcher.is-open .renater-launcher__item {
	opacity: 1;
	transform: none;
}

.renater-launcher__close {
	--hover-tint: #fff;
	--active-tint: #fff;
	position: fixed;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--renater-ink);
	cursor: pointer;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(3, 26, 48, 0.35);
	transition: transform 0.4s var(--renater-ease), box-shadow 0.25s ease;
}

.renater-launcher__close:hover,
.renater-launcher__close:focus-visible {
	transform: rotate(90deg);
	box-shadow: inset 0 0 0 2px var(--renater-navy);
}

.renater-launcher__close-icon::before,
.renater-launcher__close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.4rem;
	height: 2px;
	margin: -1px 0 0 -0.7rem;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
}

.renater-launcher__close-icon::after {
	transform: rotate(-45deg);
}

/* Keep the scrollbar's space reserved so the page does not jump when the launcher locks scrolling. */
html {
	scrollbar-gutter: stable;
}

body.renater-launcher-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.renater-launcher {
		clip-path: none;
		opacity: 0;
		transition: opacity 0.2s ease;
	}

	.renater-launcher.is-open {
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.renater-launcher__kicker,
	.renater-launcher__title,
	.renater-launcher__item {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}
}

/* Main column: compact horizontal tiles. */
.renater-launcher__grid--main .renater-launcher__link,
.renater-launcher__grid--aside .renater-launcher__item:not(.is-featured) .renater-launcher__link {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 1.25rem;
	min-height: 5.5rem;
	padding: 1rem 1.5rem;
}

.renater-launcher__grid--main .renater-launcher__logo,
.renater-launcher__grid--aside .renater-launcher__item:not(.is-featured) .renater-launcher__logo {
	flex: 0 0 3.2rem;
	height: 3.2rem;
}

/* The portal: a RENATER blue card with a soft network pattern, big name, a line of text and a call to action. */
.renater-launcher__item.is-featured,
.renater-launcher__item.is-featured .renater-launcher__link {
	height: 100%;
}

.renater-launcher__item.is-featured .renater-launcher__link {
	--hover-tint: transparent;
	justify-content: flex-start;
	gap: 0.9rem;
	min-height: 15rem;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	overflow: hidden;
	color: #fff;
	/* The same RENATER blue as the home band. */
	background:
		radial-gradient(70% 90% at 100% 0%, rgba(87, 188, 194, 0.4), transparent 65%),
		linear-gradient(135deg, #00457c 0%, #0a68a8 60%, #2a8fbd 100%);
	box-shadow: none;
}

/* Dotted network behind the content. */
.renater-launcher__item.is-featured .renater-launcher__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.5px, transparent 2px) 0 0 / 38px 38px,
		radial-gradient(circle, rgba(87, 188, 194, 0.5) 1.5px, transparent 2px) 19px 19px / 38px 38px;
	opacity: 0.22;
	-webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 65%);
	mask-image: linear-gradient(135deg, #000 0%, transparent 65%);
	pointer-events: none;
}

.renater-launcher__item.is-featured .renater-launcher__link:hover,
.renater-launcher__item.is-featured .renater-launcher__link:focus-visible {
	box-shadow: 0 0 0 3px var(--renater-teal), 0 28px 50px -24px rgba(3, 26, 48, 0.7);
}

.renater-launcher__item.is-featured .renater-launcher__logo {
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 1.4rem;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.renater-launcher__item.is-featured .renater-launcher__logo img {
	width: 3.4rem;
	height: 3.4rem;
}

.renater-launcher__item.is-featured .renater-launcher__name {
	margin-top: auto;
	font-size: clamp(2rem, 1.2rem + 2.5vw, 3.2rem);
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
}

.renater-launcher__tagline {
	max-width: 26rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.renater-launcher__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.6rem;
	margin-top: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	color: var(--renater-ink-2);
	background: #fff;
	transition: transform 0.35s var(--renater-ease), box-shadow 0.3s ease;
}

.renater-launcher__cta span {
	transition: transform 0.35s var(--renater-ease);
}

.renater-launcher__link:hover .renater-launcher__cta span {
	transform: translateX(0.3rem);
}

.renater-launcher__item.is-featured .renater-launcher__arrow {
	color: #fff;
}

@media (max-width: 47.99em) {
	.renater-launcher__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.renater-launcher__item.is-featured .renater-launcher__link {
		min-height: 9rem;
	}
}
