/**
 * Master Footer & Pre-Footer CTA Stylesheet
 *
 * Styles for:
 * 1. Pre-Footer CTA Banner ("Ready to Hit the Road?")
 * 2. Master 5-Column Navigation Grid
 * 3. Newsletter Subscription Bar
 * 4. Trust & Industry Accreditations Bar
 * 5. Bottom Copyright Bar
 *
 * @package Horizontal_Traders
 */

.ht-site-footer {
	background-color: #00152e;
	color: #94a3b8;
	position: relative;
	overflow: hidden;
}

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

/* ==========================================================================
   1. Pre-Footer Call to Action Banner
   ========================================================================== */

.ht-pre-footer-cta {
	padding: 3rem 0 2rem;
	background-color: #ffffff;
}

.ht-pre-footer-cta__card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	padding: 3.5rem 3rem;
	box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
}

.ht-pre-footer-cta__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 21, 46, 0.96) 0%, rgba(0, 21, 46, 0.88) 45%, rgba(0, 21, 46, 0.4) 100%);
	z-index: 1;
}

.ht-pre-footer-cta__script {
	position: absolute;
	top: 2rem;
	right: 2.5rem;
	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-pre-footer-cta__script span {
	font-size: 2.2rem;
	line-height: 0.95;
	letter-spacing: 0.02em;
}

.ht-pre-footer-cta__script em {
	font-size: 1.9rem;
	font-style: italic;
	color: #38bdf8;
}

.ht-pre-footer-cta__inner {
	position: relative;
	z-index: 2;
	max-width: 620px;
}

.ht-pre-footer-cta__title {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 1rem 0;
	letter-spacing: -0.025em;
}

.ht-pre-footer-cta__desc {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #e2e8f0;
	margin: 0 0 2rem 0;
}

.ht-pre-footer-cta__actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.ht-btn-cta-primary {
	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: 700;
	padding: 0.85rem 1.65rem;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(1, 117, 127, 0.35);
}

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

.ht-btn-cta-primary svg,
.ht-btn-cta-secondary svg {
	transition: transform 0.2s ease;
}

.ht-btn-cta-primary:hover svg,
.ht-btn-cta-secondary:hover svg {
	transform: translateX(4px);
}

.ht-btn-cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	color: #ffffff !important;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.85rem 1.65rem;
	border-radius: 8px;
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: all 0.25s ease;
}

.ht-btn-cta-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	transform: translateY(-2px);
}

/* ==========================================================================
   2. Main 5-Column Navigation
   ========================================================================== */

.ht-main-footer {
	padding: 4.5rem 0 3.5rem;
}

.ht-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1.35fr;
	gap: 2.25rem;
}

.ht-footer-col--brand {
	display: flex;
	flex-direction: column;
}

.ht-footer-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	margin-bottom: 1.25rem;
}

.ht-footer-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.ht-footer-logo-text__main {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #ffffff;
}

.ht-footer-logo-text__sub {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #06c1d5;
}

.ht-footer-brand-desc {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #94a3b8;
	margin: 0 0 1.75rem 0;
	max-width: 320px;
}

.ht-footer-socials {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ht-footer-social-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.25s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.ht-footer-social-btn:hover {
	background: #01757f;
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(1, 117, 127, 0.35);
}

.ht-footer-col__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1.35rem 0;
	position: relative;
	letter-spacing: -0.01em;
}

.ht-footer-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ht-footer-nav__link,
.ht-footer-nav__list a {
	font-size: 0.875rem;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.ht-footer-nav__link:hover,
.ht-footer-nav__list a:hover {
	color: #06c1d5;
	transform: translateX(3px);
}

/* Contact Details Column */
.ht-footer-contact-items {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.ht-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.ht-footer-contact-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(1, 117, 127, 0.25);
	color: #06c1d5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.ht-footer-contact-detail {
	display: flex;
	flex-direction: column;
}

.ht-footer-contact-primary {
	font-size: 0.92rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
	line-height: 1.25;
}

.ht-footer-contact-primary:hover {
	color: #06c1d5;
}

.ht-footer-contact-sub {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 0.15rem;
}

/* ==========================================================================
   3. Newsletter Subscription Bar
   ========================================================================== */

.ht-footer-newsletter-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2.25rem 0;
	background: rgba(255, 255, 255, 0.02);
}

.ht-footer-newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.ht-footer-newsletter__info {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 440px;
}

.ht-footer-newsletter__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(1, 117, 127, 0.25);
	color: #06c1d5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-footer-newsletter__text {
	display: flex;
	flex-direction: column;
}

.ht-footer-newsletter__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.2rem;
}

.ht-footer-newsletter__desc {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #94a3b8;
	margin: 0;
}

.ht-footer-newsletter__form {
	flex: 1;
	max-width: 440px;
}

.ht-footer-newsletter__input-group {
	display: flex;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ht-footer-newsletter__input {
	flex: 1;
	border: none;
	padding: 0.8rem 1rem;
	font-family: inherit;
	font-size: 0.875rem;
	color: #00152e;
	outline: none;
}

.ht-footer-newsletter__input::placeholder {
	color: #94a3b8;
}

.ht-footer-newsletter__btn {
	background: linear-gradient(135deg, #01757f 0%, #02667c 100%);
	color: #ffffff;
	border: none;
	padding: 0.8rem 1.25rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.ht-footer-newsletter__btn:hover {
	background: #00152e;
}

.ht-footer-newsletter__response {
	margin-top: 8px;
	font-size: 0.825rem;
	font-weight: 600;
	line-height: 1.4;
	display: none;
}

.ht-footer-newsletter__response.ht-success {
	display: block;
	color: #34d399;
}

.ht-footer-newsletter__response.ht-error {
	display: block;
	color: #f87171;
}

.ht-footer-newsletter__script {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	color: #ffffff;
	font-family: 'Brush Script MT', cursive, 'Caveat', sans-serif;
	transform: rotate(-3deg);
	pointer-events: none;
}

.ht-footer-newsletter__script span {
	font-size: 1.75rem;
	line-height: 0.95;
	letter-spacing: 0.02em;
}

.ht-footer-newsletter__script em {
	font-size: 1.55rem;
	font-style: italic;
	color: #06c1d5;
}

/* ==========================================================================
   4. Trust & Industry Accreditations Bar
   ========================================================================== */

.ht-footer-trust-wrap {
	padding: 2.25rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ht-footer-trust-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.ht-footer-trust-badges {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.ht-footer-trust-badge {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ht-footer-trust-badge__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(1, 117, 127, 0.2);
	color: #06c1d5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-footer-trust-badge__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.ht-footer-trust-badge__text strong {
	font-size: 0.85rem;
	font-weight: 700;
	color: #ffffff;
}

.ht-footer-trust-badge__text span {
	font-size: 0.75rem;
	color: #64748b;
}

/* Industry Accreditations */
.ht-footer-accreditations {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.ht-footer-accred-logo--tic {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.ht-footer-accred-brand {
	font-size: 1.6rem;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.ht-footer-accred-caption {
	font-size: 0.65rem;
	color: #94a3b8;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ht-footer-accred-logo--afta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ht-footer-accred-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #00152e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.ht-footer-accred-afta-lbl {
	display: flex;
	flex-direction: column;
	font-size: 0.625rem;
	font-weight: 700;
	color: #94a3b8;
	line-height: 1.15;
	letter-spacing: 0.04em;
}

/* ==========================================================================
   5. Bottom Copyright Bar
   ========================================================================== */

.ht-bottom-footer {
	padding: 1.5rem 0 2rem;
}

.ht-bottom-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.ht-bottom-footer__copyright p {
	font-size: 0.8125rem;
	color: #64748b;
	margin: 0;
}

.ht-bottom-footer__brand-motto {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #94a3b8;
}

.ht-bottom-footer__legal-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.ht-bottom-footer__legal-list a {
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 500;
}

.ht-bottom-footer__legal-list a:hover,
.ht-bottom-footer__legal-list a:focus-visible {
	color: #06c1d5;
}

.ht-bottom-footer__line {
	width: 40px;
	height: 2px;
	background: #01757f;
	border-radius: 2px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1260px) {
	.ht-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}

	.ht-footer-col--brand {
		grid-column: span 3;
	}

	.ht-footer-trust-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.ht-pre-footer-cta {
		padding: 2.5rem 0 1.5rem;
	}

	.ht-pre-footer-cta__card {
		padding: 2.25rem 1.5rem;
		border-radius: 16px;
	}

	.ht-pre-footer-cta__script {
		display: none;
	}

	.ht-pre-footer-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-btn-cta-primary,
	.ht-btn-cta-secondary {
		justify-content: center;
	}

	.ht-main-footer {
		padding: 3rem 0 2.5rem;
	}

	.ht-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ht-footer-col--brand {
		grid-column: span 1;
	}

	.ht-footer-newsletter {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-footer-newsletter__form {
		max-width: 100%;
	}

	.ht-footer-newsletter__script {
		align-items: flex-start;
	}

	.ht-footer-trust-badges {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.ht-bottom-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}
