/**
 * How It Works Section Styles
 *
 * Section: "Get on the Road in 4 Simple Steps"
 * Responsive 4-step process cards, interactive buttons, floating pills, and organic curved mask hero.
 *
 * @package Horizontal_Traders
 */

.ht-hiw-section {
	position: relative;
	background-color: #ffffff;
	padding: 4.5rem 0 4rem;
	overflow: hidden;
}

.ht-hiw-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ht-hiw-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 2.5rem;
	align-items: center;
}

/* Header */
.ht-hiw-subtitle {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #01757f;
	margin-bottom: 0.5rem;
}

.ht-hiw-title {
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1.18;
	color: #00152e;
	margin: 0 0 1rem 0;
	letter-spacing: -0.025em;
}

.ht-hiw-title-accent {
	color: #01757f;
	font-style: italic;
	font-weight: 800;
}

.ht-hiw-lead {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #475569;
	max-width: 620px;
	margin-bottom: 2.25rem;
}

/* 4 Steps Container */
.ht-hiw-steps {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
	position: relative;
}

.ht-hiw-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
}

.ht-hiw-step__icon-wrap {
	position: relative;
	margin-bottom: 1.1rem;
}

.ht-hiw-step__icon-circle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e6f9fb 0%, #d2e3eb 100%);
	color: #01757f;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
	box-shadow: 0 4px 12px rgba(1, 117, 127, 0.12);
}

.ht-hiw-step:hover .ht-hiw-step__icon-circle {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 20px rgba(1, 117, 127, 0.28);
	background: linear-gradient(135deg, #01757f 0%, #02667c 100%);
	color: #ffffff;
}

.ht-hiw-step__badge {
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #01757f;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.ht-hiw-step__body {
	padding-right: 0.5rem;
}

.ht-hiw-step__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #00152e;
	margin: 0 0 0.4rem 0;
	line-height: 1.3;
}

.ht-hiw-step__desc {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #64748b;
	margin: 0;
}

.ht-hiw-step__arrow {
	position: absolute;
	top: 20px;
	right: -8px;
	color: #94a3b8;
	opacity: 0.65;
	pointer-events: none;
}

/* Actions & Support Row */
.ht-hiw-actions {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	padding-top: 0.5rem;
}

.ht-hiw-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: linear-gradient(135deg, #01757f 0%, #02667c 100%);
	color: #ffffff !important;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.8rem 1.6rem;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(1, 117, 127, 0.3);
}

.ht-hiw-btn:hover {
	background: #00152e;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 21, 46, 0.35);
}

.ht-hiw-btn svg {
	transition: transform 0.2s ease;
}

.ht-hiw-btn:hover svg {
	transform: translateX(3px);
}

.ht-hiw-support {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.ht-hiw-support__icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: #e6f9fb;
	color: #01757f;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-hiw-support__info {
	display: flex;
	flex-direction: column;
}

.ht-hiw-support__label {
	font-size: 0.875rem;
	font-weight: 700;
	color: #00152e;
	line-height: 1.2;
}

.ht-hiw-support__sub {
	font-size: 0.8125rem;
	color: #64748b;
	margin: 0;
	line-height: 1.35;
}

.ht-hiw-support__link {
	color: #01757f;
	font-weight: 600;
	text-decoration: none;
	margin-left: 0.25rem;
}

.ht-hiw-support__link:hover {
	color: #02667c;
	text-decoration: underline;
}

/* Right Visual Column */
.ht-hiw-visual {
	position: relative;
}

.ht-hiw-visual__mask-container {
	position: relative;
	width: 100%;
	height: 460px;
	border-radius: 200px 32px 32px 200px;
	overflow: hidden;
	box-shadow: 0 20px 40px -15px rgba(0, 21, 46, 0.15);
	background: #e2e8f0;
}

.ht-hiw-visual__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ht-hiw-visual:hover .ht-hiw-visual__img {
	transform: scale(1.04);
}

/* Handwritten script badge */
.ht-hiw-visual__script-badge {
	position: absolute;
	top: 2rem;
	right: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	font-family: 'Brush Script MT', cursive, 'Caveat', sans-serif;
	transform: rotate(-4deg);
	pointer-events: none;
	z-index: 2;
}

.ht-hiw-visual__script-badge span {
	font-size: 2.2rem;
	line-height: 0.95;
	letter-spacing: 0.02em;
}

.ht-hiw-visual__script-badge em {
	font-size: 1.9rem;
	font-style: italic;
	color: #06c1d5;
}

/* Floating Card */
.ht-hiw-floating-card {
	position: absolute;
	bottom: 2rem;
	left: -20px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 14px;
	padding: 0.85rem 1.15rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	box-shadow: 0 14px 30px rgba(0, 21, 46, 0.12);
	z-index: 3;
	max-width: 250px;
	animation: htFloat 4s ease-in-out infinite;
}

@keyframes htFloat {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

/* The floating card bobs indefinitely; stop it for users who have asked the
   system to reduce motion. */
@media (prefers-reduced-motion: reduce) {
	.ht-hiw-floating-card {
		animation: none;
	}
}

.ht-hiw-floating-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e6f9fb;
	color: #01757f;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-hiw-floating-card__text {
	display: flex;
	flex-direction: column;
}

.ht-hiw-floating-card__title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #00152e;
	line-height: 1.2;
}

.ht-hiw-floating-card__sub {
	font-size: 0.75rem;
	color: #64748b;
	line-height: 1.3;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
	.ht-hiw-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.ht-hiw-visual__mask-container {
		height: 380px;
		border-radius: 32px;
	}

	.ht-hiw-floating-card {
		left: 1.5rem;
		bottom: 1.5rem;
	}
}

@media (max-width: 768px) {
	.ht-hiw-section {
		padding: 3.5rem 0;
	}

	.ht-hiw-title {
		font-size: 1.85rem;
	}

	.ht-hiw-steps {
		flex-direction: column;
		gap: 1.5rem;
	}

	.ht-hiw-step {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.2rem;
		width: 100%;
	}

	.ht-hiw-step__icon-wrap {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.ht-hiw-step__arrow {
		display: none;
	}

	.ht-hiw-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 1.25rem;
	}

	.ht-hiw-btn {
		justify-content: center;
	}

	.ht-hiw-visual__mask-container {
		height: 280px;
		border-radius: 20px;
	}

	.ht-hiw-visual__script-badge {
		top: 1rem;
		right: 1rem;
		transform: rotate(-3deg) scale(0.85);
	}
}
