/**
 * Homepage Intro Section Component
 *
 * "Welkom bij de Ontmoeting" block
 * Two-column layout with text and image
 * Matches legacy "welcome" section visual design
 *
 * Structure:
 * - .home-intro (wrapper)
 * - .home-intro__inner (container)
 * - .home-intro__text (text column)
 * - .home-intro__title (red heading)
 * - .home-intro__content (body text)
 * - .home-intro__link (CTA button)
 * - .home-intro__image (image column)
 */

/* ==========================================================================
   Intro Section Container
   ========================================================================== */

/**
 * Wrapper section
 * Generous vertical spacing
 * Legacy: 50px top, 100px bottom
 */
.home-intro {
	position: relative;
	margin: 80px 0 100px 0;
}

.home-intro__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-unit);
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* ==========================================================================
   Text Column
   ========================================================================== */

/**
 * Left column with text content
 * 45% width on desktop
 */
.home-intro__text {
	flex: 0 0 48%;
	display: flex;
	flex-direction: column;
}

/**
 * Main heading
 * Large red heading matching legacy style
 * Legacy: color $color-red-light (#CF3835), font-size 46px
 */
.home-intro__title {
	color: var(--color-red-light);
	font-size: 46px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 var(--spacing-half) 0;
}

/**
 * Body text content area
 */
.home-intro__content {
	margin-bottom: 30px;
	line-height: var(--line-height-content);
}

.home-intro__content p {
	margin: 0 0 var(--spacing-small) 0;
}

.home-intro__content p:last-child {
	margin-bottom: 0;
}

/**
 * CTA Button
 * Pink outlined button style matching "Meer over ons"
 * Matches .btn--white from legacy theme
 */
.home-intro__link {
	display: inline-block;
	position: relative;
	background: var(--color-white);
	color: var(--color-secondary);
	border-radius: var(--radius-button-small);
	border: 2px solid var(--color-pink);
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	line-height: 1;
	padding: 10px 20px;
	align-self: flex-start;
	margin-top: 20px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.home-intro__link:hover,
.home-intro__link:focus {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

/* ==========================================================================
   Image Column
   ========================================================================== */

/**
 * Right column with image
 * 45% width on desktop
 * Legacy: Has overlaid title at bottom with arrow icon
 */
.home-intro__image {
	flex: 0 0 48%;
	min-height: 300px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 8px;
	overflow: hidden;
	padding: 40px;
	position: relative;
	display: flex;
	align-items: flex-end;
}

.home-intro__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
}

/**
 * Image overlay title
 * Positioned at bottom with arrow icon
 * Legacy: font-family $font-secondary, font-size 30px, color white
 */
.home-intro__image-title {
	font-family: var(--font-family);
	font-size: 30px;
	color: var(--color-white);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
}

/**
 * Arrow icon after image title
 * Legacy: content '\e907' (font-icon), font-size 40px, padding-right 20px
 * Note: Using CSS arrow as fallback until icon font is implemented
 */
.home-intro__image-title::after {
	content: '→';
	color: var(--color-white);
	font-size: 40px;
	padding-left: 15px;
	line-height: 1;
}

/* ==========================================================================
   Responsive: Tablet (max-width: 1024px)
   ========================================================================== */

@media screen and (max-width: 1024px) {
	/**
	 * Reduce spacing and font sizes slightly on tablet
	 */
	.home-intro {
		margin: var(--spacing-half) 0 var(--spacing-1-5x) 0;
	}

	.home-intro__inner {
		gap: var(--spacing-half);
	}

	.home-intro__title {
		font-size: 38px;
	}

	.home-intro__content {
		margin-bottom: var(--spacing-half);
		font-size: var(--font-size-small);
	}

	.home-intro__image {
		min-height: 250px;
	}
}

/* ==========================================================================
   Responsive: Mobile (max-width: 875px)
   ========================================================================== */

@media screen and (max-width: 875px) {
	/**
	 * Stack vertically on mobile
	 * Image below text for better content flow
	 */
	.home-intro {
		margin: var(--spacing-half) 0 var(--spacing-unit) 0;
	}

	.home-intro__inner {
		flex-direction: column;
		gap: var(--spacing-half);
	}

	.home-intro__text {
		flex: 1 1 auto;
		width: 100%;
	}

	.home-intro__title {
		font-size: 32px;
	}

	.home-intro__content {
		margin-bottom: var(--spacing-half);
		font-size: var(--font-size-base);
	}

	.home-intro__image {
		flex: 1 1 auto;
		width: 100%;
		min-height: 250px;
	}

	/**
	 * Center button on mobile
	 * Legacy: left: 50%; transform: translateX(-50%)
	 */
	.home-intro__link {
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
}

