/* ============================================================
   home.css — front page (hero + intro + process + CTA form).
   ============================================================ */

/* ---------- Hero ---------- */
.home-hero {
	position: relative;
	background: url('../img/sky.png') center top / cover no-repeat;
	overflow: hidden;
	padding-block: 0 70px;
	display: flex; flex-direction: column; justify-content: flex-start;
}
@media (min-width: 1025px) {
	.home-hero { min-height: 100vh; padding-bottom: 0; }
}
/* Curved white wave divider — white fills below the curve, flush to the bottom, behind the text. */
.home-hero__wave {
	position: absolute; left: 0; right: 0; bottom: -1px;
	width: 100%; height: 120px; display: block;
	z-index: 1; pointer-events: none;
}
.home-hero__sky { display: none; }
/* Looping sky-motion video background (falls back to the sky.png poster / CSS bg). */
.home-hero__video {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: center top;
	pointer-events: none;
}
.home-hero__inner { position: relative; z-index: 3; text-align: center; }
.home-hero__img {
	display: block; margin: -70px auto -6px;   /* pulled up so the top is cropped by the header — looks like it descends from off-screen */
	width: min(560px, 82%); height: auto;
	filter: drop-shadow(0 26px 44px rgba(0,0,0,.22));
	transform-origin: top center;   /* swings from where it hangs on the crane */
}
@media (prefers-reduced-motion: no-preference) {
	.home-hero__img { animation: wbr-sway 4.5s ease-in-out infinite; }
}
/* Pendulum sway — side to side, not up/down. */
@keyframes wbr-sway {
	0%, 100% { transform: rotate(-2.2deg); }
	50%      { transform: rotate(2.2deg); }
}
.home-hero__title {
	font-family: var(--font-accent); /* panton — handwritten */
	font-size: 100px; line-height: 1; color: var(--color-accent);
	margin: 0 0 4px; font-weight: 700; font-style: italic;
	text-shadow: 0 2px 0 rgba(255,255,255,.6);
}
.home-hero__subtitle { font-size: 22px; color: #333; margin: 0 0 26px; font-weight: var(--fw-thin); }
.home-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Intro ---------- */
.home-intro { text-align: center; }
.home-intro p {
	max-width: 900px; margin: 0 auto;
	font-size: 18px; line-height: 1.9; color: #444; font-weight: var(--fw-thin);
}

/* ---------- The Process ---------- */
.home-process__head { position: relative; text-align: center; margin-bottom: 40px; }
.home-process__watermark {
	position: absolute; inset-inline: 0; top: -40px;
	font-family: var(--font-primary);   /* FB Einstein — inherited font in the original, NOT panton */
	font-size: clamp(56px, 9vw, 120px); font-weight: 700; font-style: italic;
	/* Outline text (matches production) */
	color: transparent;
	-webkit-text-stroke: 1px var(--color-accent-2);
	text-stroke: 1px var(--color-accent-2);
	letter-spacing: 2px; user-select: none; line-height: 1;
	/* Fade the outline out towards the bottom (gradient transparency). */
	-webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
	mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
}
.home-process__title { position: relative; font-size: 50px; font-weight: var(--fw-bold); color: var(--color-accent-2); }

.home-process__list {
	position: relative; max-width: 1080px; margin-inline: auto; padding: 0;
}
/* central dotted vertical line (physical centering for exact RTL alignment) */
.home-process__list::before {
	content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%;
	width: 2px; margin-left: -1px;
	background: repeating-linear-gradient(180deg, var(--color-accent) 0 6px, transparent 6px 16px);
}
.home-process__step {
	position: relative;
	display: flex; align-items: center; gap: 18px;
	width: 50%; box-sizing: border-box;         /* exactly half so the inner edge sits on the 50% axis */
	min-height: 190px; padding: 10px 34px;
}
.home-process__step.is-left  { margin-inline-end: auto; text-align: right; }              /* right half (RTL) */
.home-process__step.is-right { margin-inline-start: auto; flex-direction: row-reverse; text-align: left; } /* left half */
.home-process__num { flex: 0 0 auto; }
.home-process__num img { width: 150px; height: 150px; display: block; }
.home-process__step-title { font-size: 20px; font-weight: var(--fw-bold); color: #111; margin-bottom: 8px; }
.home-process__step-text  { font-size: 15px; line-height: 1.7; color: #555; font-weight: var(--fw-thin); margin: 0; }
/* red dot sitting exactly ON the central axis at each step's vertical middle.
   Steps are 50% wide flush to their side, so the inner edge is the 50% axis;
   physical left/right + margin centres the 14px dot on that axis precisely. */
.home-process__step::after {
	content: ""; position: absolute; top: 50%;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--color-accent); transform: translateY(-50%);
	box-shadow: 0 0 0 4px #fff; z-index: 1;
}
.home-process__step.is-left::after  { left: 0;  margin-left: -7px; }   /* right-hand step: inner edge is its left edge */
.home-process__step.is-right::after { right: 0; margin-right: -7px; }  /* left-hand step: inner edge is its right edge */

/* ---------- Contact CTA ---------- */
.home-cta { text-align: center; border-top: 1px solid #e5e5e5; }
.home-cta__title { font-size: 30px; color: var(--color-accent); margin-bottom: 6px; }
.home-cta__subtitle { font-size: 18px; color: #444; font-weight: var(--fw-thin); margin-bottom: 28px; }

/* Lead form styles live in base.css (shared by home + contact). */

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.home-hero__title { font-size: 60px; }
	.home-process__list::before { display: none; }
	.home-process__step {
		width: 100%; margin: 0 !important; padding: 10px 0; gap: 14px;
		flex-direction: row !important; text-align: right !important;
	}
	.home-process__num img { width: 70px; height: 70px; }
	.home-process__step::after { display: none; }
	.home-process__watermark { font-size: 40px; }
	.wbr-lead-form__row { flex-direction: column; gap: 12px; }
}
