/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--alem-black: #0a0a0a;
	--alem-red: #f20d0d;
	--alem-red-dark: #a80808;
	--alem-red-action: #e00c0c; /* Logo red nudged to keep white button text at 4.5:1. */
	--alem-green: #2f8f2f;
	--alem-green-dark: #1f7a1f;
	--alem-white: #fff;
	--alem-grey-50: #f5f5f5;
	--alem-grey-100: #e6e6e6;
	--alem-grey-400: #8a8a8a;
	--alem-grey-600: #5c5c5c;
	--alem-grey-800: #2a2a2a;
	--alem-grey-900: #161616;
	--alem-on-dark: #d9d9d9;
	--alem-font: tajawal, system-ui, -apple-system, "Segoe UI", sans-serif;
	--alem-radius: 12px;
	--alem-radius-sm: 8px;
	--alem-pill: 999px;
	--alem-shadow: 0 8px 24px rgb(10 10 10 / 10%);
	--alem-shadow-lg: 0 16px 40px rgb(10 10 10 / 18%);
	--alem-container: 1280px;
	--alem-narrow: 760px;
	--alem-gutter: 16px;
	--alem-header: 60px;
	--alem-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--alem-z-header: 50;
	--alem-z-bar: 60;
	--alem-z-drawer: 100;
	--alem-z-skip: 200;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

html {
	overflow-x: clip;
	scroll-behavior: smooth;
	scroll-padding-block-start: calc(var(--alem-header) + 16px);
	text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img,
svg,
video {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

button,
input,
select,
textarea {
	color: inherit;
	font: inherit;
}

table {
	border-collapse: collapse;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

body {
	overflow-x: clip;
	background: var(--alem-white);
	color: var(--alem-black);
	font-family: var(--alem-font);
	font-size: 1rem;
	line-height: 1.7;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--alem-red);
	outline-offset: 3px;
}

/* The drawer panel takes focus on open so screen readers land inside it; it is a container, not a control. */
.alem-drawer__panel:focus {
	outline: none;
}

input,
select,
textarea {
	font-size: max(16px, 1rem);
}

.screen-reader-text {
	position: absolute;
	overflow: hidden;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

.alem-skip {
	position: absolute;
	inset-block-start: -100px;
	inset-inline-start: 16px;
	z-index: var(--alem-z-skip);
	padding: 10px 16px;
	border-radius: var(--alem-radius-sm);
	background: var(--alem-black);
	color: var(--alem-white);
	font-weight: 700;
	text-decoration: none;
}

.alem-skip:focus {
	inset-block-start: 16px;
}

.alem-icon {
	flex: none;
}

.alem-ltr {
	unicode-bidi: isolate;
	white-space: nowrap;
}

/* Below the width where a classic scrollbar could flip the breakpoint back and forth. */
@media (width >= 720px) {
	:root {
		--alem-gutter: 24px;
	}
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.alem-container {
	inline-size: 100%;
	max-inline-size: var(--alem-container);
	margin-inline: auto;
	padding-inline: var(--alem-gutter);
}

.alem-container--narrow {
	max-inline-size: var(--alem-narrow);
}

/* Reading column: starts where the page heading starts instead of sitting centred. */
.alem-container--read > * {
	max-inline-size: var(--alem-narrow);
}

.alem-section {
	padding-block: 4.5rem;
}

.alem-section--tight {
	padding-block: 3rem;
}

/* Back-to-back plain sections read as one block, so the second drops its top spacing. */
.alem-section--tight:not(.alem-section--grey, .alem-section--black) + .alem-section--tight:not(.alem-section--grey, .alem-section--black) {
	padding-block-start: 0;
}

.alem-section--grey {
	background: var(--alem-grey-50);
}

.alem-section--grey + .alem-section--grey {
	padding-block-start: 0;
}

.alem-section--red {
	background: var(--alem-red-dark);
	color: var(--alem-white);
}

.alem-section--black {
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-section--black :focus-visible,
.alem-section--red :focus-visible {
	outline-color: var(--alem-white);
}

@media (width >= 1024px) {
	.alem-section {
		padding-block: 6rem;
	}

	.alem-section--tight {
		padding-block: 4rem;
	}
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Buttons */

.alem-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 52px;
	padding: 11px 28px;
	border: 2px solid transparent;
	border-radius: var(--alem-pill);
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	transition: transform 0.2s var(--alem-ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.alem-btn .alem-icon {
	inline-size: 1.15em;
	block-size: 1.15em;
}

.alem-btn--red,
.alem-btn--call {
	border-color: var(--alem-red-action);
	background: var(--alem-red-action);
	color: var(--alem-white);
}

.alem-btn--green,
.alem-btn--whatsapp {
	border-color: var(--alem-green);
	background: var(--alem-green);
	color: var(--alem-white);
}

.alem-btn--black {
	border-color: var(--alem-black);
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-btn--white {
	border-color: var(--alem-white);
	background: var(--alem-white);
	color: var(--alem-black);
}

.alem-btn--outline,
.alem-btn--email {
	border-color: currentcolor;
	background: transparent;
}

.alem-btn--wa .alem-icon {
	color: var(--alem-green);
}

.alem-btn--trail {
	flex-direction: row-reverse;
}

.alem-btn--sm {
	min-block-size: 44px;
	padding: 7px 19px;
	font-size: 1rem;
}

.alem-btn:active {
	transform: scale(0.98);
}

@media (hover: hover) {
	.alem-btn:hover {
		transform: translateY(-2px);
	}

	.alem-btn--red:hover,
	.alem-btn--call:hover {
		border-color: var(--alem-red-dark);
		background: var(--alem-red-dark);
	}

	.alem-btn--green:hover,
	.alem-btn--whatsapp:hover {
		border-color: var(--alem-green-dark);
		background: var(--alem-green-dark);
	}

	.alem-btn--black:hover {
		border-color: var(--alem-grey-800);
		background: var(--alem-grey-800);
	}

	.alem-btn--white:hover {
		border-color: var(--alem-grey-50);
		background: var(--alem-grey-50);
	}

	.alem-btn--outline:hover {
		background: var(--alem-black);
		color: var(--alem-white);
	}
}

.alem-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border: 1px solid var(--alem-grey-100);
	border-radius: 50%;
	background: var(--alem-white);
	color: var(--alem-black);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
	.alem-icon-btn:hover {
		border-color: var(--alem-black);
		background: var(--alem-black);
		color: var(--alem-white);
	}
}

.alem-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--alem-red-dark);
	font-weight: 800;
	text-decoration: none;
}

@media (hover: hover) {
	.alem-link:hover {
		text-decoration: underline;
	}
}

/* Top bar */

.alem-topbar {
	display: none;
	background: var(--alem-black);
	color: var(--alem-white);
	font-size: 0.875rem;
}

.alem-topbar__in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-block-size: 38px;
}

.alem-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 28px;
	color: var(--alem-white);
	text-decoration: none;
}

.alem-topbar__item .alem-icon {
	color: var(--alem-red);
}

.alem-topbar__lang {
	margin-inline-start: auto;
	font-weight: 700;
}

@media (width >= 1200px) {
	.alem-topbar {
		display: block;
	}
}

/* Header */

.alem-header {
	position: sticky;
	inset-block-start: 0;
	z-index: var(--alem-z-header);
	background: var(--alem-white);
	box-shadow: 0 1px 0 var(--alem-grey-100);
	transition: box-shadow 0.2s;
}

.alem-header.is-scrolled {
	box-shadow: 0 6px 24px rgb(10 10 10 / 12%);
}

.admin-bar .alem-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 0);
}

.alem-header__in {
	display: flex;
	align-items: center;
	gap: 16px;
	min-block-size: var(--alem-header);
}

.alem-brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-block-size: 44px;
	text-decoration: none;
}

.alem-brand__mark {
	inline-size: 40px;
}

.alem-brand__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.alem-brand__ar,
.alem-brand__en {
	inline-size: 92px;
}

/* Phones keep the header to one compact row so the fixed action bar and the page share the screen. */
@media (width >= 1024px) {
	:root {
		--alem-header: 76px;
	}

	.alem-brand {
		gap: 10px;
	}

	.alem-brand__mark {
		inline-size: 50px;
	}

	.alem-brand__ar,
	.alem-brand__en {
		inline-size: 112px;
	}
}

.alem-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.alem-header__cta {
	display: none;
}

@media (width >= 560px) {
	.alem-header__cta {
		display: inline-flex;
	}
}

/* Desktop navigation */

.alem-nav {
	display: none;
	margin-inline-start: auto;
}

.alem-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
}

.alem-nav__item {
	position: relative;
}

.alem-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-block-size: 44px;
	padding: 6px 10px;
	border: 0;
	border-radius: var(--alem-radius-sm);
	background: none;
	color: var(--alem-black);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.alem-nav__link[aria-current="page"] {
	color: var(--alem-red-dark);
}

.alem-nav__link .alem-icon {
	transition: transform 0.2s;
}

.alem-nav__item.is-open .alem-nav__link .alem-icon {
	transform: rotate(180deg);
}

.alem-nav__sub {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	visibility: hidden;
	overflow: hidden;
	min-inline-size: 230px;
	padding: 11px 8px 8px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow-lg);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* Top accent drawn inside the rounded box so it follows the corners instead of curling. */
.alem-nav__sub::before {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 3px;
	background: var(--alem-red);
	content: "";
}

.alem-nav__item.is-open .alem-nav__sub,
.alem-nav__item:focus-within .alem-nav__sub {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.alem-nav__sub a {
	display: flex;
	align-items: center;
	min-block-size: 44px;
	padding: 6px 12px;
	border-radius: var(--alem-radius-sm);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
	.alem-nav__link:hover,
	.alem-nav__sub a:hover {
		background: var(--alem-grey-50);
		color: var(--alem-red-dark);
	}

	.alem-nav__item:hover .alem-nav__sub {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
}

@media (width >= 1200px) {
	.alem-nav {
		display: block;
	}

	.alem-header__actions {
		margin-inline-start: 8px;
	}

	.alem-burger {
		display: none;
	}
}

/* Nine items have to share the row with the logo and the quote button on laptops: tighter links, and the call button waits for wide screens (the number stays in the top bar). */
@media (1200px <= width < 1440px) {
	.alem-nav__link {
		padding-inline: 6px;
		font-size: 0.875rem;
	}

	.alem-header__actions .alem-icon-btn:not(.alem-burger) {
		display: none;
	}
}

/* Drawer */

.alem-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--alem-z-drawer);
}

.alem-drawer[hidden] {
	display: none;
}

.alem-drawer__backdrop {
	position: absolute;
	inset: 0;
	padding: 0;
	border: 0;
	background: rgb(10 10 10 / 60%);
	opacity: 0;
	transition: opacity 0.25s;
}

.alem-drawer.is-open .alem-drawer__backdrop {
	opacity: 1;
}

.alem-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	inline-size: min(88vw, 360px);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow-lg);
	transform: translateX(100%);
	transition: transform 0.3s var(--alem-ease);
}

.alem-drawer.is-open .alem-drawer__panel {
	transform: none;
}

.alem-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-block-end: 1px solid var(--alem-grey-100);
}

.alem-drawer__logo {
	inline-size: 64px;
}

.alem-drawer__nav {
	padding-block: 8px;
}

.alem-drawer__link,
.alem-drawer__lang {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	inline-size: 100%;
	min-block-size: 48px;
	padding: 8px 20px;
	border: 0;
	background: none;
	color: var(--alem-black);
	font-size: 1.0625rem;
	font-weight: 700;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.alem-drawer__link .alem-icon {
	transition: transform 0.2s;
}

.alem-drawer__item.is-open > .alem-drawer__link .alem-icon {
	transform: rotate(180deg);
}

.alem-drawer__sub {
	display: none;
	padding-block: 4px;
	background: var(--alem-grey-50);
}

.alem-drawer__item.is-open .alem-drawer__sub {
	display: block;
}

.alem-drawer__sub a {
	display: flex;
	align-items: center;
	min-block-size: 44px;
	padding-inline: 36px 20px;
	font-weight: 500;
	text-decoration: none;
}

.alem-drawer__lang {
	justify-content: flex-start;
}

.alem-drawer__foot {
	display: grid;
	gap: 10px;
	margin-block-start: auto;
	padding: 16px;
	border-block-start: 1px solid var(--alem-grey-100);
}

.alem-drawer__foot .alem-btn {
	inline-size: 100%;
}

/* Hours and the phone each on their own line under the buttons. */
.alem-drawer__meta {
	display: grid;
	justify-items: center;
	gap: 2px;
	color: var(--alem-grey-600);
	font-size: 0.875rem;
}

.alem-drawer__meta li {
	display: flex;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.alem-drawer__meta .alem-icon {
	flex: none;
	color: var(--alem-red);
}

.alem-drawer__meta a {
	display: inline-flex;
	align-items: center;
	min-block-size: 36px;
	color: var(--alem-black);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

/* Section headings */

.alem-head {
	max-inline-size: 760px;
	margin-block-end: 40px;
}

.alem-head--center {
	margin-inline: auto;
	text-align: center;
}

.alem-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-end: 10px;
	color: var(--alem-red-dark);
	font-size: 0.9375rem;
	font-weight: 800;
}

.alem-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.375rem);
	font-weight: 800;
	line-height: 1.3;
	text-wrap: balance;
}

.alem-head p:not(.alem-eyebrow) {
	margin-block-start: 12px;
	color: var(--alem-grey-600);
	font-size: 1.0625rem;
	text-wrap: pretty;
}

.alem-section--red .alem-eyebrow {
	color: rgb(255 255 255 / 85%);
}

.alem-section--black .alem-eyebrow {
	color: var(--alem-red);
}

.alem-section--red .alem-head p:not(.alem-eyebrow),
.alem-section--black .alem-head p:not(.alem-eyebrow) {
	color: rgb(255 255 255 / 82%);
}

.alem-subtitle {
	margin-block-end: 24px;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	text-wrap: balance;
}

/* On this page: the parts of a long page as a list of jump links, each a full-width row. */

.alem-toc {
	padding: 6px 20px;
	border: 1px solid var(--alem-grey-100);
	border-radius: var(--alem-radius);
	background: var(--alem-white);
}

.alem-toc__label {
	margin-block: 12px 2px;
	color: var(--alem-grey-600);
	font-size: 0.875rem;
	font-weight: 800;
}

.alem-toc__list li + li {
	border-block-start: 1px solid var(--alem-grey-100);
}

.alem-toc__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-block-size: 48px;
	padding-block: 10px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s;
}

.alem-toc__link .alem-icon {
	flex: none;
	color: var(--alem-red);
}

.alem-toc__link[aria-current="true"] {
	color: var(--alem-red-dark);
}

@media (hover: hover) {
	.alem-toc__link:hover {
		color: var(--alem-red-dark);
	}
}

/* Hero */

.alem-hero {
	position: relative;
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-hero__media {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 10;
}

/* Only the thin red edge is drawn, so the photo loads over black and never flashes red. */
.alem-hero__media::before {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: calc(100% + 8px);
	background: var(--alem-red);
	content: "";
	clip-path: polygon(0 calc(100% - 9px), 100% calc(95% - 9px), 100% calc(95% + 1px), 0 100%);
}

/* The spark that runs along the edge once (motion preferences). */
.alem-hero__spark {
	display: none;
}

.alem-hero__media img {
	position: relative;
	z-index: 1;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;

	/* A gentle diagonal that stays below the brand strip at the bottom of the photo. */
	clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.alem-hero__in {
	position: relative;
	z-index: 2;
	padding-block: 44px 32px;
}

.alem-hero__content {
	max-inline-size: 620px;
}

.alem-hero__eyebrow {
	color: var(--alem-red);
	font-size: 0.9375rem;
	font-weight: 800;
}

.alem-hero h1 {
	margin-block: 14px 16px;
	font-size: clamp(1.9rem, 4.2vw, 3.25rem);
	font-weight: 900;
	line-height: 1.25;
	text-wrap: balance;
}

/* Text widths are in em, not ch: while the font loads, browsers count 1ch as half an em, so a ch width
   wraps an extra line and the page jumps when the font arrives. 1ch of Tajawal is 0.552em. */
.alem-hero__lead {
	max-inline-size: 32em;
	color: var(--alem-on-dark);
	font-size: 1.0625rem;
	text-wrap: pretty;
}

/* Services in one row, the dot comes from CSS so the panel holds the words only. */
.alem-hero__services {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 14px 0 0;
	padding: 0;
	color: var(--alem-white);
	font-size: 0.9375rem;
	font-weight: 700;
	list-style: none;
}

.alem-hero__services li:not(:last-child)::after {
	margin-inline: 8px;
	color: var(--alem-red);
	content: "·";
}

.alem-hero__actions {
	display: grid;
	gap: 12px;
	margin-block-start: 24px;
}

.alem-hero :focus-visible {
	outline-color: var(--alem-white);
}

.alem-trust {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	margin-block-start: 28px;
	padding-block-start: 24px;
	border-block-start: 1px solid rgb(255 255 255 / 15%);
}

.alem-trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ececec;
	font-size: 0.9375rem;
	font-weight: 700;
}

.alem-trust .alem-icon {
	color: var(--alem-red);
}

.alem-picker {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-block-start: 32px;
	padding: 16px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	color: var(--alem-black);
}

.alem-picker__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.0625rem;
	font-weight: 800;
}

.alem-picker__label .alem-icon {
	color: var(--alem-red);
}

.alem-picker .alem-chips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	inline-size: 100%;
}

.alem-picker__btn {
	inline-size: 100%;
}

.alem-hero .alem-picker :focus-visible {
	outline-color: var(--alem-black);
}

@media (width >= 640px) {
	.alem-hero__actions {
		display: flex;
		flex-wrap: wrap;
	}

	.alem-picker .alem-chips {
		display: flex;
		inline-size: auto;
	}

	.alem-picker__btn {
		inline-size: auto;
		margin-inline-start: auto;
	}
}

@media (width >= 1024px) {
	.alem-hero__media {
		position: absolute;
		inset-block: 0;
		inset-inline-end: 0;
		inline-size: 56%;
		aspect-ratio: auto;
	}

	/* A 12px red edge along the diagonal on the text side, kept inside the hero box. */
	.alem-hero__media::before {
		inset-block: 0;
		inset-inline: -12px 0;
		block-size: auto;
		clip-path: polygon(calc(84% - 11px) 0, calc(84% + 2px) 0, 100% 100%, calc(100% - 13px) 100%);
	}

	.alem-hero__media--left img {
		object-position: 0% 50%;
	}

	.alem-hero__media--right img {
		object-position: 100% 50%;
	}

	.alem-hero__media img {
		clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
	}

	.alem-hero__in {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-block-size: 660px;
		padding-block: 96px 0;
		container-type: inline-size;
	}

	/*
	 * The photo is widest at the bottom (56vw plus the 12px red edge), where the trust list sits.
	 * Room from the container edge to that point is 50cqi - 6vw - 12px; 32px more keeps a gap.
	 */
	.alem-trust {
		max-inline-size: calc(50cqi - 6vw - 44px);
	}

	.alem-hero__content {
		inline-size: 47%;
	}

	.alem-hero__lead {
		font-size: 1.125rem;
	}

	.alem-picker {
		margin-block: 52px -44px;
		padding: 18px 24px;
		box-shadow: var(--alem-shadow-lg);
	}
}

/* Chips */

.alem-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.alem-chip {
	min-block-size: 44px;
	padding: 6px 16px;
	border: 2px solid var(--alem-grey-100);
	border-radius: var(--alem-pill);
	background: var(--alem-white);
	color: var(--alem-black);
	font-size: 0.9375rem;
	font-weight: 800;
	cursor: pointer;
	direction: ltr;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.alem-chip.is-active {
	border-color: var(--alem-red-dark);
	background: var(--alem-red-dark);
	color: var(--alem-white);
}

@media (hover: hover) {
	.alem-chip:hover {
		border-color: var(--alem-red);
		color: var(--alem-red-dark);
		transform: translateY(-1px);
	}

	.alem-chip.is-active:hover {
		color: var(--alem-white);
	}
}

/* Quick paths */

/* Only wide screens let the capacity picker hang over the next section; the extra space makes room for it. */
@media (width >= 1024px) {
	.alem-paths {
		padding-block-start: calc(44px + 4rem);
	}
}

/* Flex so a short last row sits centred under the full rows. */
.alem-paths__grid {
	--alem-per-row: 1;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.alem-paths__grid > * {
	flex: 0 0 calc((100% - (var(--alem-per-row) - 1) * 20px) / var(--alem-per-row));
}

@media (width >= 600px) {
	.alem-paths__grid {
		--alem-per-row: 2;
	}
}

@media (width >= 1024px) {
	.alem-paths__grid {
		--alem-per-row: 3;
	}
}

@media (width >= 1280px) {
	.alem-paths__grid {
		--alem-per-row: 4;
	}
}

.alem-path {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 12px;
	padding: 32px 24px 28px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	transition: transform 0.25s var(--alem-ease), box-shadow 0.25s;
}

.alem-path::before {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 4px;
	background: var(--alem-red);
	content: "";
}

.alem-path__icon {
	display: grid;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 14px;
	background: rgb(242 13 13 / 10%);
	color: var(--alem-red-dark);
	place-items: center;
}

.alem-path h3 {
	font-size: 1.25rem;
	font-weight: 800;
}

.alem-path p {
	flex: 1;
	color: var(--alem-grey-600);
}

.alem-path .alem-btn {
	align-self: flex-start;
}

@media (hover: hover) {
	.alem-path:hover {
		box-shadow: var(--alem-shadow-lg);
		transform: translateY(-4px);
	}
}

@media (width >= 1024px) {
	.alem-paths {
		padding-block-start: calc(44px + 5rem);
	}
}

/* Numbers */

.alem-stats {
	position: relative;
	overflow: hidden;
	padding-block: 56px;
	background: var(--alem-red-dark);
	color: var(--alem-white);
}

.alem-stats::before {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 5%) 0 14px, transparent 14px 28px);
	content: "";
	pointer-events: none;
}

.alem-stats__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.alem-stat {
	padding: 24px 16px;
	border-radius: var(--alem-radius);
	background: rgb(10 10 10 / 22%);
	text-align: center;
}

.alem-stat .alem-icon {
	margin-inline: auto;
	margin-block-end: 10px;
}

.alem-stat__num {
	font-size: clamp(2.1rem, 4vw, 3.25rem);
	font-weight: 900;
	line-height: 1.1;
}

.alem-stat__label {
	margin-block-start: 6px;
	color: rgb(255 255 255 / 92%);
	font-weight: 700;
}

@media (width >= 1024px) {
	.alem-stats {
		padding-block: 72px;
	}

	.alem-stats__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
	}
}

/* Generator cards */

.alem-gens__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-block-end: 32px;
}

.alem-gens__head .alem-head {
	margin-block-end: 0;
}

.alem-gens__filter {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.alem-gens__filter-label {
	margin-inline-end: 4px;
	font-weight: 800;
}

.alem-gens__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.alem-gens__note {
	margin-block-start: 24px;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--alem-red);
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	font-weight: 700;
}

/* Phones see three featured cards before the link to the full list; a capacity match still shows. */
@media (width < 768px) {
	.alem-gens__grid--home > :nth-child(n + 4):not(.is-match) {
		display: none;
	}
}

@media (600px <= width < 1024px) {
	.alem-gens__grid--related > :nth-child(3) {
		display: none;
	}
}

@media (width >= 1024px) {
	.alem-gens__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.alem-gens__filter {
		display: flex;
	}
}

.alem-gens__more {
	margin-block-start: 40px;
	text-align: center;
}

.alem-gen {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	transition: transform 0.25s var(--alem-ease), box-shadow 0.25s, opacity 0.25s, border-color 0.25s;
}

.alem-gen.is-match {
	border-color: var(--alem-red);
}

.alem-gen[hidden] {
	display: none;
}

.alem-gen__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--alem-grey-100);
}

.alem-gen__media img,
.alem-use__media img,
.alem-article-card__media img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.alem-gen__badges {
	position: absolute;
	inset-block-start: 12px;
	inset-inline: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.alem-gen .alem-gen__match {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-end: 12px;
	display: none;
}

.alem-gen.is-match .alem-gen__match {
	display: inline-flex;
}

.alem-gen__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 11px;
	padding: 20px;
}

.alem-gen__title {
	font-size: 1.125rem;
	font-weight: 800;
}

.alem-gen__title a {
	text-decoration: none;
}

.alem-gen__kva {
	color: var(--alem-red);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.alem-gen__kva span {
	color: var(--alem-grey-600);
	font-size: 1rem;
	font-weight: 800;
}

.alem-gen__specs {
	display: grid;
	gap: 4px;
	color: var(--alem-grey-600);
	font-size: 1rem;
	font-weight: 500;
}

.alem-gen__specs li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.alem-gen__specs li::before {
	flex: none;
	inline-size: 6px;
	block-size: 6px;
	margin-block-start: calc(0.85em - 3px);
	border-radius: 50%;
	background: var(--alem-grey-400);
	content: "";
}

.alem-gen .alem-btn {
	inline-size: 100%;
	margin-block-start: auto;
}

@media (hover: hover) {
	.alem-gen:hover {
		box-shadow: var(--alem-shadow-lg);
		transform: translateY(-4px);
	}

	.alem-gen__title a:hover {
		color: var(--alem-red-dark);
	}
}

.alem-badge {
	display: inline-flex;
	align-items: center;
	min-block-size: 26px;
	padding: 2px 11px;
	border-radius: var(--alem-pill);
	background: var(--alem-black);
	color: var(--alem-white);
	font-size: 0.8125rem;
	font-weight: 800;
}

.alem-badge--avail {
	background: var(--alem-black);
}

.alem-badge--match {
	background: var(--alem-red-dark);
}

/* Why Alemtiaz */

.alem-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 20px;
}

.alem-why__card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
	border: 1px solid rgb(255 255 255 / 8%);
	border-radius: var(--alem-radius);
	background: var(--alem-grey-900);
	transition: transform 0.25s var(--alem-ease), border-color 0.25s;
}

.alem-why__icon {
	display: grid;
	flex: none;
	inline-size: 52px;
	block-size: 52px;
	border-radius: 50%;
	background: var(--alem-red);
	color: var(--alem-white);
	place-items: center;
}

.alem-why__card h3 {
	margin-block-end: 5px;
	font-size: 1.125rem;
	font-weight: 800;
}

.alem-why__card p {
	color: #c9c9c9;
	font-size: 1rem;
}

@media (hover: hover) {
	.alem-why__card:hover {
		border-color: var(--alem-red);
		transform: translateY(-3px);
	}
}

@media (width >= 1024px) {
	.alem-why__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Solution cards */

.alem-uses__grid {
	--alem-per-row: 1;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.alem-uses__grid > * {
	flex: 0 0 calc((100% - (var(--alem-per-row) - 1) * 20px) / var(--alem-per-row));
}

.alem-use {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	color: inherit;
	box-shadow: var(--alem-shadow);
	text-decoration: none;
	transition: transform 0.25s var(--alem-ease), box-shadow 0.25s;
}

/* 3:2, the size the solution photos are made at. */
.alem-use__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--alem-grey-100);
}

.alem-use__icon {
	position: absolute;
	z-index: 1;
	inset-block-end: -20px;
	inset-inline-start: 16px;
	display: grid;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 12px;
	background: var(--alem-red);
	color: var(--alem-white);
	box-shadow: var(--alem-shadow);
	place-items: center;
}

.alem-use__body {
	display: block;
	padding: 32px 16px 20px;
}

.alem-use__title {
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.35;
	text-wrap: balance;
}

.alem-use p {
	margin-block-start: 6px;
	color: var(--alem-grey-600);
	font-size: 1rem;
}

@media (hover: hover) {
	.alem-use:hover {
		box-shadow: var(--alem-shadow-lg);
		transform: translateY(-4px);
	}
}

@media (width >= 600px) {
	.alem-uses__grid {
		--alem-per-row: 2;
	}
}

/* Four across on wide screens; a short last row sits centred under the full rows. */
@media (width >= 1280px) {
	.alem-uses__grid {
		--alem-per-row: 4;
	}
}

/* Clients */

/* Flex so a short last row sits centred under the full rows. */
.alem-clients {
	--alem-per-row: 2;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.alem-client {
	display: grid;
	flex: 0 0 calc((100% - (var(--alem-per-row) - 1) * 16px) / var(--alem-per-row));
	aspect-ratio: 3 / 2;
	padding: 16px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	place-items: center;
}

.alem-client img {
	inline-size: auto;
	max-inline-size: 78%;
	max-block-size: 48px;
	object-fit: contain;
	transition: transform 0.25s;
}

@media (hover: hover) {
	.alem-client:hover img {
		transform: scale(1.06);
	}
}

@media (width >= 560px) {
	.alem-clients {
		--alem-per-row: 3;
	}
}

@media (width >= 1024px) {
	.alem-clients {
		--alem-per-row: 6;
	}
}

/* Service areas */

.alem-areas__grid {
	display: grid;
	align-items: center;
	gap: 32px;
}

.alem-areas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
	gap: 8px;
	margin-block: 24px;
}

.alem-area {
	display: flex;
	align-items: center;
	gap: 8px;
	min-block-size: 44px;
	padding: 6px 14px;
	border: 1px solid var(--alem-grey-100);
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	font-size: 0.9375rem;
	font-weight: 700;
}

.alem-area .alem-icon {
	flex-shrink: 0;
	color: var(--alem-red-dark);
}

.alem-area--hq {
	grid-column: 1 / -1;
	border-color: var(--alem-black);
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-area--hq .alem-icon {
	color: var(--alem-red);
}

.alem-areas__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	border-radius: var(--alem-radius);
	box-shadow: var(--alem-shadow-lg);
}

.alem-areas__media::after {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 8px;
	background: var(--alem-red);
	content: "";
}

.alem-areas__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

@media (width >= 1024px) {
	.alem-areas__grid {
		grid-template-columns: 1.1fr 1fr;
		gap: 64px;
	}
}

/* Questions */

.alem-faq {
	display: grid;
	gap: 12px;
	max-inline-size: 840px;
	margin-inline: auto;
}

.alem-faq__item {
	overflow: hidden;
	border: 1px solid var(--alem-grey-100);
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
}

.alem-faq__item h3 {
	font-size: inherit;
	font-weight: inherit;
}

.alem-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	inline-size: 100%;
	min-block-size: 56px;
	padding: 16px 20px;
	border: 0;
	background: none;
	font-size: 1.0625rem;
	font-weight: 800;
	text-align: start;
	text-wrap: balance;
	cursor: pointer;
	transition: color 0.2s;
}

.alem-faq__q .alem-icon {
	inline-size: 40px;
	block-size: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--alem-grey-50);
	color: var(--alem-red-dark);
	transition: transform 0.25s, background-color 0.2s, color 0.2s;
}

.alem-faq__q[aria-expanded="true"] .alem-icon {
	background: var(--alem-red);
	color: var(--alem-white);
	transform: rotate(180deg);
}

.alem-faq__a {
	padding: 0 20px 20px;
	color: var(--alem-grey-800);
	line-height: 1.8;
	transition: opacity 0.2s var(--alem-ease), transform 0.2s var(--alem-ease);
}

@starting-style {
	.alem-faq__a {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.alem-faq__a p {
	max-inline-size: 38.6em;
}

.alem-faq__a > :first-child {
	padding-block-start: 14px;
	border-block-start: 1px solid var(--alem-grey-100);
}

.alem-faq__a[hidden] {
	display: none;
}

.alem-container--read .alem-faq {
	margin-inline: 0;
}

@media (hover: hover) {
	.alem-faq__q:hover {
		color: var(--alem-red-dark);
	}
}

/* Quote section and forms */

.alem-quote__grid {
	display: grid;
	gap: 40px;
}

.alem-quote__grid > .alem-form:only-child {
	grid-column: 1 / -1;
}

.alem-checklist {
	display: grid;
	gap: 12px;
	margin-block-start: 28px;
}

.alem-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #e3e3e3;
	font-weight: 500;
	text-wrap: pretty;
}

.alem-checklist .alem-icon {
	margin-block-start: 0.2em;
	color: var(--alem-red);
}

.alem-checklist--dark li {
	color: var(--alem-black);
}

@media (width >= 1024px) {
	.alem-quote__grid {
		grid-template-columns: 5fr 7fr;
		align-items: start;
		gap: 64px;
	}

	.alem-quote__side {
		position: sticky;
		inset-block-start: calc(var(--alem-header) + 24px);
	}
}

.alem-form {
	padding: 24px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	color: var(--alem-black);
	box-shadow: var(--alem-shadow-lg);
}

.alem-form__grid {
	display: grid;
	gap: 16px;
}

.alem-form.is-done .alem-form__grid {
	display: none;
}

.alem-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.alem-field--full,
.alem-form__actions {
	grid-column: 1 / -1;
}

.alem-field label {
	font-size: 0.9375rem;
	font-weight: 800;
}

.alem-field__optional {
	color: var(--alem-grey-600);
	font-size: 0.875rem;
	font-weight: 500;
}

.alem-field__error {
	color: var(--alem-red-dark);
	font-size: 0.9375rem;
	font-weight: 700;
}

.alem-field input,
.alem-field select,
.alem-field textarea {
	inline-size: 100%;
	min-block-size: 48px;
	padding: 10px 14px;
	border: 2px solid var(--alem-grey-400);
	border-radius: 10px;
	background: var(--alem-white);
	color: var(--alem-black);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.alem-field textarea {
	min-block-size: 120px;
	resize: vertical;
}

.alem-field select {
	padding-inline-end: 40px;
	background: var(--alem-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px;
	appearance: none;
}

.alem-field input:focus,
.alem-field select:focus,
.alem-field textarea:focus {
	border-color: var(--alem-red);
	outline: none;
	box-shadow: 0 0 0 3px rgb(242 13 13 / 18%);
}

.alem-field input[aria-invalid="true"],
.alem-field select[aria-invalid="true"] {
	border-color: var(--alem-red-dark);
}

.alem-field--trap {
	position: absolute;
	overflow: hidden;
	inline-size: 1px;
	block-size: 1px;
	clip-path: inset(50%);
}

.alem-form__title {
	margin-block-end: 20px;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
}

.alem-form__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	margin-block-start: 4px;
}

.alem-form__actions .alem-btn[disabled] {
	cursor: progress;
	opacity: 0.6;
}

.alem-form__alt {
	color: var(--alem-grey-600);
	font-size: 0.9375rem;
}

.alem-form__direct {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 8px;
}

.alem-form__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 44px;
	padding: 6px 16px;
	border: 1px solid var(--alem-grey-400);
	border-radius: var(--alem-pill);
	color: var(--alem-black);
	font-weight: 800;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.alem-form__pill .alem-icon {
	color: var(--alem-red-dark);
}

.alem-form__pill--wa .alem-icon {
	color: var(--alem-green-dark);
}

@media (hover: hover) {
	.alem-form__pill:hover {
		border-color: var(--alem-black);
	}
}

.alem-form__error {
	color: var(--alem-red-dark);
	font-weight: 700;
}

.alem-form__ok {
	padding: 24px 8px;
	text-align: center;
	transition: opacity 0.3s var(--alem-ease), transform 0.3s var(--alem-ease);
}

@starting-style {
	.alem-form__ok {
		opacity: 0;
		transform: scale(0.97);
	}
}

.alem-form__ok .alem-icon {
	inline-size: 68px;
	block-size: 68px;
	margin-inline: auto;
	margin-block-end: 16px;
	padding: 16px;
	border-radius: 50%;
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-form__ok:not([hidden]) .alem-icon path,
.alem-thanks__icon path {
	animation: alem-draw 0.4s var(--alem-ease) 0.1s backwards;
	stroke-dasharray: 24;
}

@keyframes alem-draw {
	from {
		stroke-dashoffset: 24;
	}
}

.alem-form__ok h3 {
	font-size: 1.375rem;
	font-weight: 800;
}

.alem-form__ok p {
	margin-block-start: 8px;
	color: var(--alem-grey-600);
}

@media (width >= 640px) {
	.alem-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.alem-form__actions {
		align-items: flex-start;
	}
}

@media (width >= 768px) {
	.alem-form {
		padding: 32px;
	}
}

/* Closing call to action */

/* A red card on the footer's black, so the page ends in one dark area instead of three bands. */
.alem-cta {
	padding-block: 4rem 1.5rem;
	background: var(--alem-black);
	color: var(--alem-white);
}

/* The quote section above is black and already spaced. */
.alem-quote + .alem-cta {
	padding-block-start: 0;
}

.alem-cta__card {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: 28px;
	padding: 36px 24px;
	border-radius: var(--alem-radius);
	background: linear-gradient(135deg, var(--alem-red-action) 0%, var(--alem-red-dark) 100%);
}

.alem-cta__mark {
	position: absolute;
	inset-block-end: -60px;
	inset-inline-end: -40px;
	inline-size: 260px;
	block-size: auto;
	opacity: 0.1;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.alem-cta__shine {
	display: none;
}

.alem-cta h2 {
	position: relative;
	max-inline-size: 14.4em;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	font-weight: 900;
	line-height: 1.35;
	text-wrap: balance;
}

.alem-cta__actions {
	position: relative;
	display: grid;
	gap: 12px;
}

.alem-cta :focus-visible {
	outline-color: var(--alem-white);
}

@media (width >= 900px) {
	.alem-cta__card {
		grid-template-columns: 1fr auto;
		align-items: center;
		padding: 48px 56px;
	}

	.alem-cta__mark {
		inset-block-end: -90px;
		inset-inline-end: 22%;
		inline-size: 340px;
	}

	.alem-cta__actions {
		display: flex;
	}
}

/* Inner page header */

.alem-page-head {
	padding-block: 40px;
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-page-head h1 {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 2.75rem);
	font-weight: 900;
	line-height: 1.25;
	text-wrap: balance;
}

.alem-page-head .alem-eyebrow {
	color: var(--alem-red);
}

.alem-page-head__intro {
	max-inline-size: 34.2em;
	margin-block-start: 12px;
	color: var(--alem-on-dark);
	font-size: 1.0625rem;
	text-wrap: pretty;
}

.alem-page-head__meta {
	margin-block-start: 12px;
	color: var(--alem-on-dark);
	font-size: 0.9375rem;
}

/* A black section right under the black page header continues it without a second gap. */
.alem-page-head + .alem-section--black {
	padding-block-start: 0;
}

.alem-page-head :focus-visible {
	outline-color: var(--alem-white);
}

.alem-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-end: 16px;
	color: var(--alem-grey-400);
	font-size: 0.875rem;
}

.alem-crumbs li:not(:last-child)::after {
	margin-inline-start: 6px;
	content: "·";
}

/* Phones drop the current page, which the heading below already names. */
.alem-crumbs li:last-child {
	display: none;
}

.alem-crumbs li:nth-last-child(2)::after {
	content: none;
}

/* Links keep the small text but a 28px tap area, without changing the line box. */
.alem-crumbs a {
	display: inline-block;
	padding-block: 4px;
	margin-block: -4px;
	color: var(--alem-on-dark);
	text-decoration: none;
}

@media (width >= 640px) {
	.alem-crumbs li:last-child {
		display: block;
	}

	.alem-crumbs li:nth-last-child(2)::after {
		content: "·";
	}
}

@media (width >= 1024px) {
	.alem-page-head {
		padding-block: 64px;
	}
}

/* Generator page */

.alem-product {
	display: grid;
	gap: 32px;
}

.alem-product__main,
.alem-figure {
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-grey-100);
	box-shadow: var(--alem-shadow);
}

.alem-product__main img,
.alem-figure img {
	inline-size: 100%;
}

.alem-product__main {
	aspect-ratio: 4 / 3;
}

.alem-product__main img {
	block-size: 100%;
	object-fit: cover;
}

.alem-figure {
	margin-block-end: 20px;
}

.alem-product__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-block-start: 10px;
}

.alem-product__thumbs img {
	border-radius: var(--alem-radius-sm);
}

.alem-product__summary {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-self: start;
	padding: 24px;
	border: 1px solid var(--alem-grey-100);
	border-radius: var(--alem-radius);
	box-shadow: var(--alem-shadow);
}

.alem-product__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.alem-product__kva {
	font-size: 2.75rem;
}

.alem-product__summary .alem-checklist {
	margin-block-start: 0;
}

.alem-product__actions {
	display: grid;
	gap: 10px;
}

.alem-product__sheet {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
}

.alem-specs {
	inline-size: 100%;
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
}

.alem-specs th,
.alem-specs td {
	padding: 14px 20px;
	border-block-end: 1px solid var(--alem-grey-100);
	text-align: start;
}

.alem-specs th {
	inline-size: 40%;
	color: var(--alem-grey-600);
	font-weight: 700;
}

.alem-specs td {
	font-weight: 800;
}

@media (width >= 768px) {
	.alem-product {
		grid-template-columns: 7fr 5fr;
	}
}

@media (width >= 1024px) {
	.alem-product {
		gap: 48px;
	}
}

/* Service and content pages */

.alem-answer {
	max-inline-size: 38.6em;
	padding: 20px 24px;
	border-inline-start: 4px solid var(--alem-red);
	border-radius: var(--alem-radius-sm);
	background: var(--alem-grey-50);
	font-size: 1.125rem;
	font-weight: 500;
}

.alem-service__actions,
.alem-actions {
	display: grid;
	gap: 12px;
}

.alem-service__actions {
	margin-block-start: 24px;
}

.alem-actions .alem-btn {
	inline-size: 100%;
}

@media (width >= 640px) {
	.alem-service__actions,
	.alem-actions {
		display: flex;
		flex-wrap: wrap;
	}

	.alem-actions .alem-btn {
		inline-size: auto;
	}
}

.alem-includes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px 24px;
}

.alem-includes li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 700;
}

.alem-includes .alem-icon {
	margin-block-start: 0.2em;
	color: var(--alem-red-dark);
}

.alem-pill-note {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin-block-start: 20px;
	padding: 12px 18px;
	border-radius: var(--alem-radius);
	background: var(--alem-black);
	color: var(--alem-white);
	font-weight: 700;
}

.alem-pill-note .alem-icon {
	margin-block-start: 0.2em;
	color: var(--alem-red);
}

.alem-table-wrap {
	overflow: hidden;
	border-radius: var(--alem-radius);
	box-shadow: var(--alem-shadow);
}

/* Phones: each row is a card and every cell carries its column name. */
.alem-table {
	inline-size: 100%;
	background: var(--alem-white);
}

.alem-table thead {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.alem-table tr {
	display: block;
	padding: 14px 18px;
	border-block-end: 1px solid var(--alem-grey-100);
}

.alem-table td {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding-block: 4px;
	text-align: start;
}

.alem-table td::before {
	content: attr(data-label);
	color: var(--alem-grey-600);
	font-size: 0.875rem;
	font-weight: 700;
}

.alem-table td:first-child {
	font-size: 1.125rem;
	font-weight: 800;
}

.alem-table td:first-child::before {
	content: none;
}

@media (width >= 640px) {
	.alem-table thead {
		position: static;
		inline-size: auto;
		block-size: auto;
		overflow: visible;
		clip-path: none;
	}

	.alem-table tr {
		display: table-row;
		padding: 0;
	}

	.alem-table th,
	.alem-table td {
		display: table-cell;
		padding: 14px 18px;
		border-block-end: 1px solid var(--alem-grey-100);
		text-align: start;
	}

	.alem-table td::before {
		content: none;
	}

	.alem-table td:first-child {
		font-size: inherit;
		font-weight: inherit;
		white-space: nowrap;
	}

	.alem-table thead th {
		background: var(--alem-black);
		color: var(--alem-white);
		font-weight: 800;
	}
}

.alem-empty {
	padding: 32px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	font-weight: 700;
	text-align: center;
}

.alem-empty--action {
	display: grid;
	justify-items: center;
	gap: 20px;
}

.alem-prose {
	color: var(--alem-grey-800);
	font-size: 1.0625rem;
	line-height: 1.85;
}

.alem-prose :is(h2, h3, strong) {
	color: var(--alem-black);
}

.alem-prose > * + * {
	margin-block-start: 1em;
}

.alem-prose > :first-child {
	margin-block-start: 0;
}

.alem-prose > :is(p, ul, ol, h2, h3) {
	max-inline-size: 38.6em;
}

.alem-prose h2 {
	margin-block-start: 1.6em;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	text-wrap: balance;
}

.alem-prose h3 {
	margin-block-start: 1.4em;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
	font-weight: 800;
	line-height: 1.35;
	text-wrap: balance;
}

/* A heading sits close to its own text and far from the text before it. */
.alem-prose :is(h2, h3) + * {
	margin-block-start: 0.6em;
}

.alem-prose li + li {
	margin-block-start: 0.6em;
}

.alem-prose li::marker {
	color: var(--alem-red);
	font-weight: 800;
}

/* A paragraph that is entirely bold is a key point, set like the direct answer. */
.alem-prose__key {
	padding: 14px 16px;
	border-inline-start: 4px solid var(--alem-red);
	border-radius: var(--alem-radius-sm);
	background: var(--alem-grey-50);
	line-height: 1.75;
}

/* Long content in parts: each question and its answer is one card on the grey band. */
.alem-parts .alem-container,
.alem-parts__list {
	display: grid;
	gap: 16px;
}

.alem-part {
	padding: 22px 20px;
	border: 1px solid var(--alem-grey-100);
	border-radius: var(--alem-radius);
	background: var(--alem-white);
}

.alem-part h2 {
	margin-block-start: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	line-height: 1.4;
}

@media (width >= 640px) {
	.alem-part {
		padding: 32px;
	}
}

/* Desktop: the contents list stands beside the parts and follows the reader. */
@media (width >= 1024px) {
	.alem-parts .alem-container:has(> .alem-toc) {
		grid-template-columns: minmax(0, var(--alem-narrow)) minmax(0, 20rem);
		align-items: start;
		column-gap: 40px;
	}

	.alem-parts .alem-toc {
		position: sticky;
		inset-block-start: calc(var(--alem-header) + 24px);
		grid-column: 2;
		grid-row: 1;
	}

	.alem-parts__list {
		grid-column: 1;
		grid-row: 1;
	}
}

.alem-prose a[href^="tel:"],
.alem-prose a[href^="mailto:"],
.alem-prose time,
.alem-prose bdi {
	unicode-bidi: isolate;
	white-space: nowrap;
}

.alem-prose ul,
.alem-prose ol {
	padding-inline-start: 1.4em;
}

.alem-prose ul {
	list-style: disc;
}

.alem-prose ol {
	list-style: decimal;
}

.alem-prose a {
	color: var(--alem-red-dark);
	font-weight: 700;
}

.alem-prose img {
	border-radius: var(--alem-radius);
}

/* Tables scroll inside a focusable box when wider than the column, styled like the data tables. */
.alem-scroll {
	overflow-x: auto;
	max-inline-size: 100%;
	border-radius: var(--alem-radius);
}

.alem-scroll:focus-visible {
	outline: 2px solid var(--alem-red);
	outline-offset: 2px;
}

.alem-prose table {
	inline-size: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	font-variant-numeric: tabular-nums;
	line-height: 1.45;
}

.alem-prose th,
.alem-prose td {
	padding: 10px 12px;
	border-block-end: 1px solid var(--alem-grey-100);
	font-size: 0.9375rem;
	text-align: start;
	vertical-align: top;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
}

.alem-prose tr:last-child > td {
	border-block-end: 0;
}

.alem-prose th {
	font-weight: 700;
}

.alem-prose thead th {
	background: var(--alem-black);
	color: var(--alem-white);
	font-weight: 800;
}

@media (width >= 640px) {
	.alem-prose th,
	.alem-prose td {
		padding: 10px 14px;
		font-size: 1rem;
	}
}

/* Generator filters and pagination */

.alem-filters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: 12px;
	margin-block-end: 32px;
	padding: 16px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
}

.alem-filters__actions {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	gap: 14px;
}

.alem-filters .alem-btn {
	min-block-size: 48px;
}

.alem-filters__reset {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	font-weight: 700;
}

@media (width >= 640px) {
	.alem-filters {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
		padding: 20px;
	}
}

@media (width >= 1024px) {
	.alem-filters {
		grid-template-columns: repeat(4, 1fr) auto;
	}

	.alem-filters__actions {
		grid-column: auto;
	}
}

.alem-pagination {
	margin-block-start: 40px;
}

.alem-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.alem-pagination .page-numbers {
	display: inline-grid;
	min-inline-size: 44px;
	block-size: 44px;
	padding-inline: 10px;
	border-radius: var(--alem-pill);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
	font-weight: 800;
	text-decoration: none;
	place-items: center;
}

.alem-pagination .current {
	background: var(--alem-black);
	color: var(--alem-white);
}

.alem-pagination .prev .alem-icon {
	transform: scaleX(-1);
}

/* Video: beside its text on desktop; vertical footage keeps a phone-shaped frame. */

.alem-video__grid {
	display: grid;
	align-items: center;
	gap: 24px;
}

.alem-video__text p,
.alem-photos__text p {
	max-inline-size: 33.1em;
	color: var(--alem-grey-600);
	font-size: 1.0625rem;
	text-wrap: pretty;
}

.alem-video__frame {
	position: relative;
	justify-self: center;
	inline-size: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-black);
	box-shadow: var(--alem-shadow);
}

.is-portrait .alem-video__frame {
	inline-size: min(100%, calc(72svh * 9 / 16));
}

.alem-video__media {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

/* Top left in both languages, clear of the logo and the brand strip the footage carries. */
.alem-video__toggle {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 12px;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--alem-pill);
	background: rgb(10 10 10 / 60%);
	color: var(--alem-white);
	cursor: pointer;
	transition: background-color 0.2s var(--alem-ease), transform 0.2s var(--alem-ease);
}

[dir="ltr"] .alem-video__toggle {
	inset-inline: 12px auto;
}

.alem-video__toggle[hidden],
.alem-video__toggle .alem-icon--pause,
.alem-video__toggle.is-playing .alem-icon--play {
	display: none;
}

.alem-video__toggle.is-playing .alem-icon--pause {
	display: block;
}

/* Before the first play the button sits in the middle of the cover, larger and red. */
.alem-video__frame.is-idle .alem-video__toggle {
	inset: 0;
	inline-size: 64px;
	block-size: 64px;
	margin: auto;
	background: var(--alem-red);
}

.alem-video__toggle:focus-visible {
	outline: 3px solid var(--alem-white);
	outline-offset: 2px;
}

.alem-video__toggle:active {
	transform: scale(0.95);
}

@media (hover: hover) {
	.alem-video__toggle:hover {
		background: var(--alem-red);
	}
}

@media (width >= 1024px) {
	.alem-video__grid {
		grid-template-columns: minmax(0, 34rem) auto;
		justify-content: center;
		gap: 64px;
	}

	.alem-video__grid.is-landscape {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	.is-portrait .alem-video__frame {
		inline-size: min(360px, calc((100svh - 160px) * 9 / 16));
	}
}

/* Photos: one beside its text on desktop, two in a row under it, three or more in three columns, all in the same 4:3 frame. */

.alem-photos__grid {
	display: grid;
	align-items: center;
	gap: 24px;
}

.alem-photos__list {
	display: grid;
	gap: 16px;
}

.alem-photos__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-grey-100);
	box-shadow: var(--alem-shadow);
}

.alem-photos__item img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (width >= 640px) {
	.is-multi .alem-photos__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (width >= 1024px) {
	.alem-photos__grid.is-single {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		gap: 64px;
	}

	.is-multi .alem-photos__list {
		gap: 24px;
	}

	.is-many .alem-photos__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Knowledge */

.alem-articles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}

.alem-article-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
}

/* One 16:9 frame on every screen, so a designed article image shows whole. */
.alem-article-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--alem-grey-100);
}

.alem-article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.alem-article-card h2 {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.4;
}

.alem-article-card h2 a {
	text-decoration: none;
}

.alem-article-card p {
	flex: 1;
	color: var(--alem-grey-600);
}

/* Desktop: the newest article leads across the row, then three per row. */
@media (width >= 1024px) {
	.alem-articles {
		grid-template-columns: repeat(3, 1fr);
	}

	.alem-article-card:first-child {
		flex-direction: row;
		grid-column: 1 / -1;
	}

	.alem-article-card:first-child .alem-article-card__media {
		flex: 0 0 50%;
	}

	.alem-article-card:first-child .alem-article-card__body {
		justify-content: center;
		padding: 32px;
	}

	.alem-article-card:first-child h2 {
		font-size: 1.5rem;
	}
}

/* Subsidiaries */

.alem-subs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
}

.alem-sub {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 10px;
	padding: 28px 24px 24px;
	border-radius: var(--alem-radius);
	background: var(--alem-white);
	box-shadow: var(--alem-shadow);
}

.alem-sub::before {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 4px;
	background: var(--alem-red);
	content: "";
}

.alem-sub__logo img {
	max-block-size: 64px;
	inline-size: auto;
}

.alem-sub__title {
	font-size: 1.15rem;
	font-weight: 800;
}

.alem-sub__activity {
	color: var(--alem-red-dark);
	font-weight: 700;
}

.alem-sub__text {
	flex: 1;
	color: var(--alem-grey-600);
}

.alem-sub__text > * + * {
	margin-block-start: 0.75em;
}

.alem-sub__text ul {
	padding-inline-start: 1.4em;
	list-style: disc;
}

.alem-sub__text a {
	color: var(--alem-red-dark);
	font-weight: 700;
}

/* Contact, thank you, landing and 404 */

.alem-contact {
	display: grid;
	gap: 40px;
}

.alem-contact__info {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.alem-contact__list {
	display: grid;
	gap: 14px;
}

.alem-contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 700;
}

.alem-contact__list li:has(a) {
	align-items: center;
}

.alem-contact__list a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	text-decoration: none;
}

.alem-contact__list .alem-icon {
	color: var(--alem-red);
}

.alem-contact__map {
	align-self: flex-start;
	min-block-size: 44px;
}

.alem-contact .alem-social a {
	border-color: var(--alem-grey-100);
	color: var(--alem-black);
}

@media (width >= 640px) {
	.alem-contact .alem-actions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.alem-contact .alem-actions .alem-btn {
		inline-size: 100%;
	}
}

@media (width >= 1024px) {
	.alem-contact {
		grid-template-columns: 5fr 7fr;
		gap: 64px;
	}
}

.alem-thanks {
	text-align: center;
}

.alem-thanks h1 {
	font-size: clamp(1.8rem, 3.6vw, 2.5rem);
	font-weight: 900;
	line-height: 1.3;
}

.alem-thanks__icon {
	display: grid;
	inline-size: 88px;
	block-size: 88px;
	margin-inline: auto;
	margin-block-end: 20px;
	border-radius: 50%;
	background: var(--alem-black);
	color: var(--alem-white);
	place-items: center;
	animation: alem-pop 0.5s var(--alem-ease) backwards;
}

@keyframes alem-pop {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
}

/* A two-point shape path runs out and back; half way is the far end of the edge. */
@keyframes alem-spark {
	0% {
		opacity: 0;
		offset-distance: 0%;
	}

	12%,
	85% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		offset-distance: 50%;
	}
}

@keyframes alem-shine {
	20%,
	100% {
		mask-position: 100% 0;
	}
}

.alem-thanks .alem-page-head__intro {
	margin-inline: auto;
	color: var(--alem-grey-600);
}

.alem-thanks .alem-prose,
.alem-thanks .alem-actions,
.alem-thanks .alem-service__actions {
	justify-content: center;
	max-inline-size: 360px;
	margin-block-start: 24px;
	margin-inline: auto;
}

.alem-thanks .alem-prose > * {
	margin-inline: auto;
}

.alem-e404__code {
	margin-block-end: 12px;
	color: var(--alem-red);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 900;
	line-height: 1;
}

@media (width >= 640px) {
	.alem-thanks .alem-prose,
	.alem-thanks .alem-actions,
	.alem-thanks .alem-service__actions {
		max-inline-size: none;
	}
}

.alem-landing h1 {
	margin-block-end: 14px;
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1.25;
	text-wrap: balance;
}

/* Phones and tablets read the offer, then the form, then the photo. */
.alem-landing__image {
	aspect-ratio: 16 / 9;
	margin-block-end: 0;
}

.alem-landing__image img {
	block-size: 100%;
	object-fit: cover;
}

@media (width >= 1024px) {
	.alem-landing .alem-quote__grid {
		grid-template-areas:
			"offer form"
			"image form";
	}

	.alem-landing__offer {
		grid-area: offer;
	}

	.alem-landing .alem-form {
		grid-area: form;
	}

	.alem-landing__image {
		grid-area: image;
		aspect-ratio: auto;
	}
}

/* Footer */

.alem-footer {
	padding-block-start: 64px;
	background: var(--alem-black);
	color: var(--alem-on-dark);
}

/* Room for the fixed action bar, painted in the footer colour instead of a white band. */
body:has(.alem-mbar) .alem-footer {
	padding-block-end: calc(60px + env(safe-area-inset-bottom));
}

.alem-footer :focus-visible {
	outline-color: var(--alem-white);
}

.alem-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

/* Phones: generators and company side by side; the brand and contact blocks keep the full width. */
@media (width < 640px) {
	.alem-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 20px;
	}

	.alem-footer__about,
	.alem-footer__grid > :last-child {
		grid-column: 1 / -1;
	}

	.alem-footer__title {
		margin-block-end: 10px;
	}
}

.alem-footer__logo {
	inline-size: 160px;
	margin-block-end: 16px;
}

/* The logo keeps its original colours on dark backgrounds: a thin white outline follows its shapes so the black parts show. */
.alem-logo-outline {
	filter: drop-shadow(0 0 1px rgb(255 255 255 / 95%)) drop-shadow(0 0 1px rgb(255 255 255 / 60%)) drop-shadow(0 0 4px rgb(255 255 255 / 16%));
}

.alem-footer__about p {
	font-size: 0.9375rem;
}

.alem-footer__badge {
	display: inline-block;
	margin-block-start: 14px;
	padding: 4px 13px;
	border: 1px solid rgb(255 255 255 / 20%);
	border-radius: var(--alem-pill);
	color: var(--alem-white);
	font-size: 0.85rem;
}

.alem-footer__title {
	margin-block-end: 18px;
	color: var(--alem-white);
	font-size: 1.0625rem;
	font-weight: 800;
}

.alem-footer__links {
	display: grid;
}

.alem-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 36px;
	color: var(--alem-on-dark);
	text-decoration: none;
	transition: color 0.2s;
}

.alem-footer__links .alem-icon {
	color: var(--alem-red);
}

.alem-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-block-end: 11px;
	font-size: 1rem;
}

.alem-footer__contact .alem-icon {
	margin-block-start: 0.2em;
	color: var(--alem-red);
}

.alem-footer__contact li:has(a) {
	align-items: center;
	margin-block-end: 8px;
}

.alem-footer__contact li:has(a) .alem-icon {
	margin-block-start: 0;
}

.alem-footer__contact a {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-block-size: 44px;
	color: var(--alem-white);
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

/* Each phone shows its number under its name. */
.alem-footer__num {
	color: var(--alem-on-dark);
	font-size: 0.875rem;
	font-weight: 400;
	unicode-bidi: isolate;
}

.alem-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 20px;
}

.alem-social a {
	display: grid;
	inline-size: 44px;
	block-size: 44px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	color: var(--alem-white);
	place-items: center;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.alem-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: 48px;
	padding-block: 20px;
	border-block-start: 1px solid rgb(255 255 255 / 12%);
	font-size: 0.9rem;
}

.alem-footer__legal,
.alem-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.alem-footer__legal a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--alem-white);
	font-weight: 700;
	text-decoration: none;
}

@media (hover: hover) {
	.alem-footer__links a:hover {
		color: var(--alem-white);
	}

	.alem-social a:hover {
		border-color: var(--alem-red);
		background: var(--alem-red);
		transform: translateY(-2px);
	}
}

@media (width >= 640px) {
	.alem-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (width >= 1024px) {
	body:has(.alem-mbar) .alem-footer {
		padding-block-end: 0;
	}

	.alem-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
		gap: 48px;
	}

	.alem-footer__links a {
		min-block-size: 32px;
	}

	.alem-footer__contact li {
		font-size: 0.9375rem;
	}

	.alem-footer__contact li:has(a) {
		margin-block-end: 11px;
	}

	.alem-footer__contact a {
		min-block-size: 24px;
	}

	.alem-footer .alem-social {
		gap: 4px;
	}
}

/* Mobile action bar and floating WhatsApp */

.alem-mbar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: var(--alem-z-bar);
	display: grid;
	grid-template-columns: 1fr 1fr 1.35fr;
	gap: 6px;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: var(--alem-white);
	box-shadow: 0 -6px 24px rgb(10 10 10 / 15%);
}

.alem-mbar--duo {
	grid-template-columns: 1fr 1fr;
}

.alem-mbar .alem-btn {
	gap: 6px;
	min-block-size: 48px;
	padding-inline: 8px;
	border: 0;
	color: var(--alem-white);
	font-size: 0.9375rem;
}

.alem-mbar .alem-icon {
	inline-size: 20px;
	block-size: 20px;
}

.alem-mbar__call {
	background: var(--alem-black);
}

.alem-mbar__wa {
	background: var(--alem-green-dark);
}

.alem-mbar__quote {
	background: var(--alem-red-dark);
}

.alem-fab {
	position: fixed;
	inset-block-end: 24px;
	inset-inline-end: 24px;
	z-index: var(--alem-z-bar);
	display: none;
	inline-size: 60px;
	block-size: 60px;
	border-radius: 50%;
	background: var(--alem-green);
	color: var(--alem-white);
	box-shadow: 0 10px 28px rgb(47 143 47 / 45%);
	place-items: center;
	transition: transform 0.2s, background-color 0.2s;
}

@media (hover: hover) {
	.alem-fab:hover {
		background: var(--alem-green-dark);
		transform: scale(1.06);
	}
}

@media (width >= 1024px) {
	.alem-mbar {
		display: none;
	}

	.alem-fab {
		display: grid;
	}
}

/* Reveal on scroll */

.js [data-alem-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.3s var(--alem-ease), transform 0.3s var(--alem-ease);
	transition-delay: calc(var(--alem-i, 0) * 60ms);
}

.js [data-alem-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   8. Direction
   ========================================================================== */

[dir="ltr"] .alem-drawer__panel {
	transform: translateX(-100%);
}

[dir="ltr"] .alem-drawer.is-open .alem-drawer__panel {
	transform: none;
}

[dir="ltr"] .alem-field select {
	background-position: right 14px center;
}

[dir="rtl"] .alem-field input[dir="ltr"] {
	text-align: right;
}

[dir="ltr"] .alem-icon--arrow {
	transform: scaleX(-1);
}

[dir="ltr"] .alem-pagination .prev .alem-icon {
	transform: none;
}

[dir="ltr"] .alem-pagination .next .alem-icon {
	transform: scaleX(-1);
}

[dir="ltr"] .alem-hero__media::before {
	clip-path: polygon(0 calc(95% - 9px), 100% calc(100% - 9px), 100% 100%, 0 calc(95% + 1px));
}

[dir="ltr"] .alem-hero__media img {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
}

@media (width >= 1024px) {
	[dir="ltr"] .alem-hero__media::before {
		clip-path: polygon(calc(16% - 2px) 0, calc(16% + 11px) 0, 13px 100%, 0 100%);
	}

	[dir="ltr"] .alem-hero__media img {
		clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
	}
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	/* A spark runs once along the red edge of the hero photo, in the reading direction on phones and down the diagonal on desktop. */
	.alem-hero__spark {
		position: absolute;
		z-index: 2;
		inset-block-start: 0;
		inset-inline-start: 0;
		display: block;
		inline-size: 80px;
		block-size: 8px;
		border-radius: var(--alem-pill);
		background: radial-gradient(closest-side, var(--alem-white), rgb(255 236 224 / 90%) 40%, rgb(255 120 100 / 40%) 75%, transparent);
		pointer-events: none;
		offset-path: polygon(100% calc(95% + 4px), 0 calc(100% + 4px));
		offset-rotate: auto;
		animation: alem-spark 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
	}

	[dir="ltr"] .alem-hero__spark {
		offset-path: polygon(0 calc(95% + 4px), 100% calc(100% + 4px));
	}

	/* Light passes over the star on the closing card now and then. */
	.alem-cta__shine {
		display: block;
		opacity: 0.5;
		mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
		mask-position: 0 0;
		mask-repeat: no-repeat;
		mask-size: 300% 100%;
		animation: alem-shine 7s ease-in-out 1.5s infinite;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.15s;
	}

	.alem-header {
		view-transition-name: alem-header;
	}

	::view-transition-group(alem-header),
	::view-transition-old(alem-header),
	::view-transition-new(alem-header) {
		animation: none;
	}
}

@media (prefers-reduced-motion: no-preference) and (width >= 1024px) {
	.alem-hero__spark {
		inline-size: 110px;
		block-size: 10px;
		offset-path: polygon(calc(84% + 6px) 0, calc(100% + 6px) 100%);
	}

	[dir="ltr"] .alem-hero__spark {
		offset-path: polygon(calc(16% - 6px) 0, -6px 100%);
	}
}

/* Without shape paths the spark would sit in a corner, so the edge stays still. */
@supports not (offset-path: polygon(0 0, 100% 100%)) {
	.alem-hero__spark {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.js [data-alem-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   9. Print
   ========================================================================== */

@media print {
	.alem-topbar,
	.alem-header,
	.alem-drawer,
	.alem-mbar,
	.alem-fab,
	.alem-cta,
	.alem-quote {
		display: none;
	}

	.js [data-alem-reveal] {
		opacity: 1;
		transform: none;
	}
}
