/**
 * Homepage CTA Section Component
 *
 * Full-width orange banner with centered content and CTA buttons
 * Appears below the homepage intro section
 * Matches legacy homepage CTA visual design
 *
 * Structure:
 * - .home-cta (full-width wrapper)
 * - .home-cta__inner (centered container)
 * - .home-cta__block (content block)
 * - .home-cta__title (optional heading)
 * - .home-cta__text (optional body text)
 * - .home-cta__buttons (button container)
 * - .home-cta__button (individual CTA button)
 */

/* ==========================================================================
   CTA Section Container
   ========================================================================== */

/**
 * Full-width orange background wrapper
 * Generous vertical padding for visual impact
 */
.home-cta {
	position: relative;
	width: 100%;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: var(--spacing-unit) 0;
	margin: var(--spacing-unit) 0;
}

/**
 * Centered content container
 * Matches site-wide max-width
 */
.home-cta__inner {
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* ==========================================================================
   Content Block
   ========================================================================== */

/**
 * Content block wrapper
 * Centered horizontally with max-width for readability
 */
.home-cta__block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 800px;
	width: 100%;
}

/**
 * Optional heading in the CTA block
 * Large, bold, white text
 */
.home-cta__title {
	color: var(--color-white);
	font-size: 32px;
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-tight);
	margin: 0 0 var(--spacing-half) 0;
}

/**
 * Optional body text in the CTA block
 * Slightly larger than base font size for emphasis
 */
.home-cta__text {
	color: var(--color-white);
	font-size: var(--font-size-large);
	line-height: var(--line-height-content);
	margin: 0 0 var(--spacing-half) 0;
}

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

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

/* ==========================================================================
   CTA Buttons
   ========================================================================== */

/**
 * Button container
 * Supports one or two buttons side-by-side
 */
.home-cta__buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--spacing-small);
	justify-content: center;
	align-items: center;
	margin-top: var(--spacing-half);
}

/**
 * Primary CTA Button (Pink background)
 * Matches legacy .btn style
 */
.home-cta__button {
	display: inline-block;
	position: relative;
	background-color: var(--color-secondary);
	color: var(--color-white);
	border-radius: var(--radius-button);
	border: 0;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-base);
	text-decoration: none;
	line-height: var(--line-height-none);
	padding: 10px 20px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

/**
 * Secondary/White Button Variant
 * White background with pink text and border
 * Matches legacy .btn--white style
 */
.home-cta__button--white {
	background-color: var(--color-white);
	color: var(--color-secondary);
	border: 2px solid var(--color-pink);
	border-radius: var(--radius-button-small);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-small);
}

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

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

@media screen and (max-width: 1024px) {
	/**
	 * Reduce padding slightly on tablet
	 */
	.home-cta {
		padding: var(--spacing-unit) 0;
	}

	.home-cta__title {
		font-size: var(--font-size-h2);
	}

	.home-cta__text {
		font-size: var(--font-size-base);
	}
}

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

@media screen and (max-width: 875px) {
	/**
	 * Stack content vertically
	 * Reduce spacing for mobile
	 */
	.home-cta {
		padding: var(--spacing-unit) 0;
		margin: var(--spacing-half) 0;
	}

	.home-cta__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

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

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

	/**
	 * Stack buttons vertically on mobile
	 * Full width for better touch targets
	 */
	.home-cta__buttons {
		flex-direction: column;
		width: 100%;
		gap: var(--spacing-small);
	}

	.home-cta__button {
		width: 100%;
		max-width: 300px;
		text-align: center;
	}
}

