/**
 * New Realm Transportation LLC — Recent Hauls Section Styles
 *
 * 3-column image gallery cards showing portfolio projects.
 *
 * @package NewRealm
 * @since   1.0.0
 */

/* ignoring loop detection */
.hauls-section {
	background-color: var(--color-white, #ffffff);
	padding: 4.5rem 0;
	color: var(--color-dark);
}

.hauls-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 4rem;
	gap: 2rem;
}

.hauls-section__title-wrap {
	max-width: 600px;
}

.hauls-section__eyebrow {
	display: inline-block;
	color: var(--color-maroon);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.hauls-section__title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--color-dark);
	margin: 0;
	letter-spacing: -0.75px;
}

.hauls-section__btn-top {
	flex-shrink: 0;
	margin-bottom: 0.25rem;
}

/* 3-Column Grid */
.hauls-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

/* Portfolio Card */
.haul-card {
	flex: 1 1 300px;
	background-color: var(--color-white);
	border-radius: var(--border-radius, 8px);
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--color-border);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.haul-card__img-wrapper {
	position: relative;
	width: 100%;
	padding-top: 66.67%; /* 3:2 Aspect Ratio */
	overflow: hidden;
	background-color: var(--color-border);
}

.haul-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.haul-card__content {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.haul-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-dark);
	margin-top: 0;
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.haul-card__route-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-maroon);
}

.haul-card__route-arrow {
	color: var(--color-gold);
	display: inline-flex;
	align-items: center;
}

/* Card Hover States */
.haul-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	border-color: rgba(128, 0, 32, 0.15);
}

.haul-card:hover .haul-card__img {
	transform: scale(1.05);
}

/* Mobile Bottom Button */
.hauls-section__btn-bottom-wrap {
	display: none;
	justify-content: center;
	margin-top: 2rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
	.hauls-section {
		padding: 3.5rem 0;
	}
	.hauls-section__title {
		font-size: 2.5rem;
	}
	.hauls-grid {
		gap: 2rem;
	}
}

@media screen and (max-width: 768px) {
	.hauls-section {
		padding: 3rem 0;
	}
	
	.hauls-section__header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 3rem;
	}

	.hauls-section__title {
		font-size: 2.15rem;
	}

	.hauls-section__btn-top {
		display: none; /* Hide top button on mobile, show at bottom instead */
	}

	.hauls-section__btn-bottom-wrap {
		display: flex;
	}

	.haul-card__content {
		padding: 1.5rem;
	}
}

@media screen and (max-width: 480px) {
	.hauls-section__title {
		font-size: 1.85rem;
	}
}
