/**
 * Alygio reklama — homepage hero (widget `ar-hero`).
 *
 * Reference (DESIGN-SPECIFICATION §5.1 + header/hero re-measurement):
 * - full-bleed cover, inner wrapper min-height 100vh, flex column,
 *   space-between (desktop/tablet) / centred (≤600px), 60px top spacer;
 * - photo with background-attachment: fixed, black overlay opacity 0.4,
 *   then the gradient-12 fade (transparent → primary-950, Task 04);
 * - bottom row = wide container with section padding above and below,
 *   row / space-between / align flex-end / gap 56px;
 *   columns 802px + 442px, shrinking proportionally below 1300px (gap 36–40px fluid);
 * - ≤1100px: row stacks, gap 28px.
 */

.ar-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--ar-neutral-000);
}

.ar-hero__media,
.ar-hero__overlay,
.ar-hero__gradient {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ar-hero__media {
	background-color: var(--ar-neutral-800);
	background-repeat: no-repeat;
	background-position: var(--ar-hero-position, 50% 50%);
	background-size: cover;
}

.ar-hero--parallax .ar-hero__media {
	background-attachment: fixed;
}

/* iOS Safari ignores fixed backgrounds on scroll containers; reduced motion
   users get a static background. */
@supports (-webkit-touch-callout: none) {

	.ar-hero--parallax .ar-hero__media {
		background-attachment: scroll;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ar-hero--parallax .ar-hero__media {
		background-attachment: scroll;
	}
}

.ar-hero__overlay {
	background-color: #000;
	opacity: var(--ar-hero-overlay, 0.4);
}

/* Reference preset gradient-12 over the dimmed photo (found in Task 04;
   it is the "teal tint" previously attributed to the photo). */
.ar-hero__gradient {
	background-image: var(--ar-gradient-cover-fade);
}

.ar-hero__inner {
	display: flex;
	box-sizing: border-box;
	min-height: 100vh;
	padding-inline: var(--ar-gutter);
	flex-direction: column;
	justify-content: space-between;
}

.ar-hero__spacer {
	flex-shrink: 0;
	height: 60px;
}

.ar-hero__row {
	display: flex;
	padding-block: var(--ar-section-padding-y);
	align-items: flex-end;
	justify-content: space-between;
	gap: 56px;
}

.ar-hero__main {
	flex: 1 1 802px;
	min-width: 0;
	--ar-animate-delay: 0.25s;
}

.ar-hero__main .ar-tag {
	display: block;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
}

.ar-hero .ar-hero__title {
	margin: 28px 0 0;
	color: var(--ar-neutral-000);
	overflow-wrap: break-word;
}

.ar-hero__aside {
	display: flex;
	flex: 0 1 442px;
	flex-direction: column;
	gap: var(--ar-space-90);
	min-width: 0;
	--ar-animate-delay: 0.5s;
}

.ar-hero .ar-hero__text {
	margin: 0;
	color: var(--ar-neutral-000);
	font-size: var(--ar-font-size-2xl);
	line-height: 1.6;
}

.ar-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ar-space-90);
}

.ar-hero__contact {
	padding-left: 12px;
	border-left: 2px solid var(--ar-primary-700);
}

.ar-hero .ar-hero__contact-label {
	margin: 0;
	color: var(--ar-primary-400);
	font-size: var(--ar-font-size-md);
	line-height: 1.2;
}

.ar-hero .ar-hero__phone,
.ar-hero .ar-hero__phone:visited {
	display: block;
	margin-top: 12px;
	color: var(--ar-neutral-000);
	font-size: var(--ar-font-size-title-5);
	line-height: 1.1;
	text-decoration: none;
}

.ar-hero .ar-hero__phone:hover {
	color: var(--ar-primary-300);
}

.ar-hero .ar-hero__phone:focus-visible {
	outline: 2px solid var(--ar-focus-ring-dark);
	outline-offset: 3px;
}

@media (max-width: 1100px) {

	.ar-hero__row {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: var(--ar-space-70);
	}

	/* In a column the basis would apply to height: reset both. */
	.ar-hero__main,
	.ar-hero__aside {
		flex-basis: auto;
	}
}

@media (max-width: 600px) {

	.ar-hero__inner {
		justify-content: center;
	}
}
