/* Homepage Hero Block */

.homepage-hero-section {
	width: 100vw !important;
	max-width: 100vw !important;
	position: relative;
	overflow: hidden;
	background-color: #EEEEE6;
	margin-top: 0 !important;
	padding-top: 0 !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* Remove any default WordPress block spacing and enforce full-width */
.wp-block-animal-heroes-homepage-hero,
.wp-block-animal-heroes-homepage-hero .homepage-hero-section {
	margin-top: 0 !important;
	padding-top: 0 !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.wp-block-animal-heroes-homepage-hero.alignfull,
.wp-block-animal-heroes-homepage-hero.alignwide {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.homepage-hero-section.alignfull,
.homepage-hero-section.alignwide {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.homepage-hero-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	height: 100%;
	position: relative;
	gap: 0;
}

/* Content Section */
.homepage-hero-content {
	flex: 1;
	max-width: 55%;
	z-index: 2;
	padding-left: 312px; /* Only used at >= 1600px (full desktop) */
}

/* Below 1600px: use moderate padding, nav is visible */
@media (max-width: 1600px) {
	.homepage-hero-content {
		padding-left: 40px;
		max-width: 55%;
	}
}

@media (max-width: 1024px) {
	.homepage-hero-content {
		padding-left: 20px;
		max-width: 52%;
	}
}

@media (max-width: 768px) {
	.homepage-hero-content {
		padding-left: 0 !important;
		max-width: 100% !important;
	}
}

.homepage-hero-title {
	font-size: 93px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 24px 0;
	color: #0061A3;
	font-family: 'Bricolage Grotesque', sans-serif;
}

.homepage-hero-description {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 32px 0;
	color: #3D3935;
}

/* Buttons */
.homepage-hero-buttons {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.homepage-hero-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	border-radius: 38px;
	font-size: 14px;
	font-weight: 700;
	font-family: 'Bricolage Grotesque', sans-serif;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	transition: opacity 0.3s ease, transform 0.2s ease;
	white-space: nowrap;
	color: #ffffff;
}

.homepage-hero-button:hover {
	color: #ffffff !important;
}

.homepage-hero-button-primary {
	background-color: #FF3900;
}

.homepage-hero-button-secondary {
	background-color: transparent;
	color: #FF3900;
	border: 2px solid #FF3900;
}

.homepage-hero-button:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.homepage-hero-button-secondary:hover {
	background-color: #FF3900;
	color: #ffffff;
}

.homepage-hero-arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 0.2s ease;
}

.homepage-hero-button:hover .homepage-hero-arrow {
	transform: translateX(3px);
}

.homepage-hero-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Statistics */
.homepage-hero-stats {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.homepage-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.homepage-hero-stat-number {
	font-size: 33px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	font-family: 'Bricolage Grotesque', sans-serif;
}

.homepage-hero-stat-text {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	color: #3D3935;
}

/* Desktop Image */
.homepage-hero-image {
	flex-shrink: 0;
	position: absolute;
	right: -130px !important;
	top: 0;
	bottom: 0;
	overflow: hidden;
	align-self: stretch;
	z-index: 1;
	display: flex;
	align-items: center;
	width: auto;
	height: 100%;
}

.homepage-hero-image img {
	width: auto;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: right center;
	display: block;
}

/* Mobile Image (hidden on desktop) */
.homepage-hero-mobile-image {
	display: none;
	width: 100%;
	margin-bottom: 0;
}

.homepage-hero-mobile-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Mobile Stats (hidden on desktop) */
.homepage-hero-mobile-stats {
	display: none;
}

/* Responsive */

/* Below full desktop: moderate title, image stays on right */
@media (max-width: 1600px) {
	.homepage-hero-title {
		font-size: 64px;
	}
	.homepage-hero-image {
		right: -150px !important;
	}
}

@media (max-width: 1200px) {
	.homepage-hero-title {
		font-size: 56px;
	}
	.homepage-hero-image {
		right: -150px !important;
		max-width: 46%;
	}
}

@media (max-width: 1024px) {
	.homepage-hero-inner {
		padding: 0 20px;
	}
	.homepage-hero-title {
		font-size: 48px;
	}
	.homepage-hero-image {
		max-width: 44%;
	}
	.homepage-hero-image img {
		object-fit: contain;
	}
}

/* Tablet-specific adjustments (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
	.homepage-hero-section {
		height: auto !important;
		min-height: 500px;
	}
	
	.homepage-hero-inner {
		padding: 40px 30px;
		min-height: 500px;
	}
	
	/* Ensure mobile image and stats are hidden on tablet */
	.homepage-hero-mobile-image {
		display: none !important;
	}
	
	.homepage-hero-mobile-stats {
		display: none !important;
	}
	
	/* Ensure desktop image and stats are visible */
	.homepage-hero-image {
		display: flex !important;
	}
	
	.homepage-hero-stats {
		display: flex !important;
	}
	
	.homepage-hero-content {
		max-width: 55%;
		padding-left: 0;
		flex: 0 1 auto;
		z-index: 2;
	}
	
	.homepage-hero-title {
		font-size: 56px;
		line-height: 1.1;
		margin-bottom: 20px;
	}
	
	.homepage-hero-description {
		font-size: 17px;
		margin-bottom: 28px;
	}
	
	.homepage-hero-buttons {
		margin-bottom: 28px;
		gap: 12px;
	}
	
	.homepage-hero-button {
		padding: 14px 28px;
		font-size: 13px;
	}
	
	.homepage-hero-stats {
		gap: 24px;
	}
	
	.homepage-hero-stat-number {
		font-size: 28px;
	}
	
	.homepage-hero-stat-text {
		font-size: 16px;
	}
	
	/* Better image positioning for tablet */
	.homepage-hero-image {
		position: absolute;
		right: -100px;
		width: auto;
		max-width: 45%;
		height: 100%;
		overflow: hidden;
		z-index: 1;
	}
	
	.homepage-hero-image img {
		width: auto;
		height: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: right center;
	}
}

/* Smaller tablets (768px - 900px) - tighter spacing */
@media (min-width: 769px) and (max-width: 900px) {
	.homepage-hero-content {
		max-width: 50%;
	}
	
	.homepage-hero-title {
		font-size: 48px;
	}
	
	.homepage-hero-description {
		font-size: 16px;
	}
	
	.homepage-hero-image {
		right: -100px;
		max-width: 40%;
	}
}

@media (max-width: 768px) {
	.homepage-hero-section {
		height: auto !important;
		min-height: auto;
		background-color: #EEEEE6;
	}

	.homepage-hero-inner {
		flex-direction: column;
		padding: 0;
		align-items: stretch;
	}

	/* Content section at top */
	.homepage-hero-content {
		max-width: 100%;
		width: 100%;
		padding: 40px 20px 0 20px !important;
		background-color: #EEEEE6;
		box-sizing: border-box;
	}

	/* Hide desktop stats on mobile - mobile stats are separate element */
	.homepage-hero-stats {
		display: none !important;
	}

	/* Desktop image hidden */
	.homepage-hero-image {
		display: none !important;
	}

	/* Mobile image at bottom */
	.homepage-hero-mobile-image {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
	}

	.homepage-hero-mobile-image img {
		width: 100%;
		height: auto;
		display: block;
		object-fit: cover;
	}

	.homepage-hero-title {
		font-size: 58px !important;
		line-height: 1.05;
		margin-bottom: 20px;
		color: #0061A3;
		font-weight: 700;
		padding-left: 0 !important;
	}

	.homepage-hero-description {
		font-size: 18px !important;
		line-height: 1.5;
		margin-bottom: 28px;
		color: #3D3935;
	}

	.homepage-hero-buttons {
		flex-direction: column;
		width: 100%;
		margin-bottom: 24px;
		gap: 12px;
	}

	.homepage-hero-button {
		width: 100%;
		justify-content: center;
		padding: 14px 24px;
		font-size: 14px;
		font-weight: 600;
		border-radius: 50px;
		display: flex;
		align-items: center;
		gap: 8px;
		text-decoration: none;
		transition: all 0.2s ease;
	}

	.homepage-hero-button-primary {
		background-color: #F05626 !important;
		color: #ffffff !important;
		border: none !important;
	}

	.homepage-hero-button-primary:hover {
		background-color: #d94a1f !important;
	}

	.homepage-hero-button-secondary {
		background-color: #ffffff !important;
		color: #F05626 !important;
		border: 2px solid #F05626 !important;
	}

	.homepage-hero-button-secondary:hover {
		background-color: #fff5f2;
	}

	.homepage-hero-arrow {
		display: inline-flex;
		align-items: center;
		margin-left: auto;
	}

	.homepage-hero-button-primary .homepage-hero-arrow svg {
		stroke: #ffffff;
	}

	.homepage-hero-button-secondary .homepage-hero-arrow svg {
		stroke: #F05626;
	}

}
