/**
 * TJ Organics Custom Footer - Responsive Stylesheet
 * Matches Desktop 4-Column & Mobile Accordion Organic Farm Design
 */

:root {
	--tjf-bg-1: #084727;
	--tjf-bg-2: #05331b;
	--tjf-accent: #f5b82e;
	--tjf-text: #ffffff;
	--tjf-logo-h: 56px;
}

.tjf-footer {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--tjf-bg-1) 0%, var(--tjf-bg-2) 100%);
	color: var(--tjf-text);
	font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;
	width: 100%;
	clear: both;
	z-index: 10;
}

.tjf-footer *,
.tjf-footer *::before,
.tjf-footer *::after {
	box-sizing: border-box;
}

/* Top-Right Botanical Leaf Line-Art */
.tjf-top-leaves {
	position: absolute;
	top: 0;
	right: 0;
	width: 220px;
	height: 155px;
	pointer-events: none;
	z-index: 1;
}

.tjf-top-leaves svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Main Container & Balanced 4-Column Grid */
.tjf-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 52px 32px 14px;
	position: relative;
	z-index: 3;
}

.tjf-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.95fr 0.8fr 1.15fr;
	gap: 32px;
	align-items: start;
}

.tjf-col {
	min-width: 0;
}

/* Column 1: Brand & Contact Info */
.tjf-col-brand {
	padding-right: 30px;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.tjf-brand-header {
	margin-bottom: 6px;
}

.tjf-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: var(--tjf-text) !important;
}

.tjf-brand-logo {
	height: var(--tjf-logo-h, 56px);
	width: auto;
	max-width: 180px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

.tjf-brand-name {
	font-size: 27px;
	font-weight: 800;
	color: var(--tjf-text);
	letter-spacing: -0.3px;
	line-height: 1.15;
}

.tjf-tagline {
	margin: 10px 0 0 !important;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 400;
}

.tjf-accent-bar {
	display: block;
	width: 40px;
	height: 2.5px;
	background-color: var(--tjf-accent);
	border-radius: 2px;
}

.tjf-tagline-bar {
	margin: 9px 0 20px;
}

.tjf-col-bar {
	margin: 9px 0 18px;
}

/* Contact List */
.tjf-contact-list {
	list-style: none !important;
	margin: 0 0 22px !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tjf-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin: 0 !important;
	padding: 0 !important;
}

.tjf-contact-icon {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tjf-text);
	margin-top: 1px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tjf-contact-item:hover .tjf-contact-icon {
	border-color: var(--tjf-accent);
	background: rgba(245, 184, 46, 0.12);
}

.tjf-contact-icon svg {
	width: 17px;
	height: 17px;
	display: block;
}

.tjf-contact-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.tjf-phone-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tjf-contact-text a {
	color: rgba(255, 255, 255, 0.92) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.tjf-contact-text a:hover {
	color: var(--tjf-accent) !important;
}

/* Social Media Buttons */
.tjf-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tjf-social-btn {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tjf-text) !important;
	text-decoration: none !important;
	transition: all 0.22s ease;
}

.tjf-social-btn svg {
	width: 17px;
	height: 17px;
	display: block;
}

.tjf-social-btn:hover {
	background: var(--tjf-accent);
	border-color: var(--tjf-accent);
	color: #05331b !important;
	transform: translateY(-2px);
}

/* Columns 2, 3, 4: Headings & Link Lists */
.tjf-col-header {
	background: transparent !important;
	border: none !important;
	padding: 0;
	margin: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	color: var(--tjf-text);
	cursor: default;
	box-shadow: none !important;
	outline: none;
}

.tjf-col-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.tjf-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tjf-accent);
}

.tjf-header-icon svg {
	width: 19px;
	height: 19px;
	display: block;
}

.tjf-col-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--tjf-text);
}

.tjf-accordion-chevron {
	display: none;
}

.tjf-link-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10.5px;
}

.tjf-link-list li {
	margin: 0 !important;
	padding: 0 !important;
}

.tjf-link-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88) !important;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.tjf-link-chevron {
	width: 14px;
	height: 14px;
	min-width: 14px;
	color: rgba(255, 255, 255, 0.65);
	transition: transform 0.2s ease, color 0.2s ease;
}

.tjf-link-list a:hover {
	color: var(--tjf-accent) !important;
	transform: translateX(3px);
}

.tjf-link-list a:hover .tjf-link-chevron {
	color: var(--tjf-accent);
	transform: translateX(2px);
}

/* Certification Badges Box - Supports 1, 2, or 3 Badges Cleanly Without Overflow */
.tjf-badges-card {
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	gap: 12px;
	width: 100%;
	max-width: 390px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(4, 38, 20, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.tjf-badge-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjf-badge-item img {
	width: 100%;
	max-width: 118px;
	height: auto !important;
	max-height: 44px;
	object-fit: contain;
	display: block;
}

.tjf-badge-divider {
	width: 1px;
	height: 34px;
	background: rgba(255, 255, 255, 0.28);
	display: block;
	flex-shrink: 0;
}

.tjf-badges-mobile {
	display: none !important;
}

/* Bottom Farm Hills & Farmhouse Illustration */
.tjf-farm-landscape {
	position: relative;
	width: 100%;
	height: 92px;
	margin-top: -28px;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.tjf-hills-svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.tjf-farmhouse-svg {
	position: absolute;
	bottom: 8px;
	right: 13%;
	width: 285px;
	height: auto;
	display: block;
}

/* Bottom Copyright Bar */
.tjf-bottom-bar {
	position: relative;
	z-index: 3;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(4, 34, 18, 0.55);
	padding: 15px 0;
}

.tjf-bottom-bar .tjf-container {
	padding-top: 0;
	padding-bottom: 0;
}

.tjf-copyright {
	margin: 0 !important;
	text-align: center !important;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 400;
}

.tjf-copyright a {
	color: var(--tjf-accent) !important;
	text-decoration: none !important;
}

/* Tablet Breakpoint (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
	.tjf-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.tjf-col-brand {
		padding-right: 0;
		border-right: none;
	}
	.tjf-farm-landscape {
		margin-top: 0;
	}
}

/* Mobile Breakpoint (<= 767px) - Accordion Cards Layout */
@media (max-width: 767px) {
	.tjf-top-leaves {
		width: 145px;
		height: 105px;
	}

	.tjf-container {
		padding: 34px 16px 8px;
	}

	.tjf-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tjf-col-brand {
		padding-right: 0;
		border-right: none;
		margin-bottom: 8px;
	}

	.tjf-brand-name {
		font-size: 24px;
	}

	.tjf-socials {
		justify-content: center;
		margin-top: 18px;
		margin-bottom: 6px;
	}

	/* Accordion Pill Cards on Mobile */
	.tjf-accordion-item {
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 10px;
		background: rgba(5, 45, 23, 0.45);
		overflow: hidden;
		transition: border-color 0.25s ease, background-color 0.25s ease;
	}

	.tjf-accordion-item.is-open {
		border-color: rgba(245, 184, 46, 0.45);
		background: rgba(5, 45, 23, 0.72);
	}

	.tjf-col-header.tjf-accordion-trigger {
		padding: 13px 16px;
		cursor: pointer;
	}

	.tjf-col-title {
		font-size: 14px;
	}

	.tjf-col-bar {
		display: none !important;
	}

	.tjf-accordion-chevron {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: rgba(255, 255, 255, 0.85);
		transition: transform 0.28s ease, color 0.28s ease;
	}

	.tjf-accordion-chevron svg {
		width: 18px;
		height: 18px;
		display: block;
	}

	.tjf-accordion-item.is-open .tjf-accordion-chevron {
		transform: rotate(180deg);
		color: var(--tjf-accent);
	}

	.tjf-accordion-body {
		max-height: 0;
		overflow: hidden;
		padding: 0 16px;
		transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s ease;
	}

	.tjf-accordion-item.is-open .tjf-accordion-body {
		max-height: 560px;
		padding: 10px 16px 15px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	/* Certification Badges Centered & Fluidly Fitted Below Accordions on Mobile */
	.tjf-badges-desktop {
		display: none !important;
	}

	.tjf-badges-mobile {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 12px auto 4px !important;
		padding: 11px 10px !important;
		gap: 8px !important;
		justify-content: space-evenly !important;
		box-sizing: border-box !important;
	}

	.tjf-badges-mobile .tjf-badge-item {
		flex: 1 1 0 !important;
		min-width: 0 !important;
	}

	.tjf-badges-mobile .tjf-badge-item img {
		width: 100% !important;
		max-width: 102px !important;
		height: auto !important;
		max-height: 38px !important;
		object-fit: contain !important;
	}

	.tjf-badges-mobile .tjf-badge-divider {
		height: 28px !important;
	}

	.tjf-farm-landscape {
		height: 68px;
		margin-top: 4px;
	}

	.tjf-farmhouse-svg {
		right: 4%;
		width: 195px;
		bottom: 5px;
	}

	.tjf-bottom-bar {
		padding: 14px 44px 16px;
	}

	.tjf-copyright {
		font-size: 12.5px;
		line-height: 1.55;
	}
}
