/* ============================================================
   JADA + DAVID — PUBLIC WEBSITE FOOTER

   Configuration-driven website footer.

   Content:
   /site/includes/navigation.php

   Renderer:
   /site/components/footer.php

   SECTION DIRECTORY
   ------------------------------------------------------------
   01 — Footer foundation
   02 — Introduction
   03 — Navigation groups
   04 — Navigation links
   05 — Bottom bar
   06 — Logo
   07 — Copyright
   08 — Back to top
   09 — Tablet
   10 — Mobile
   11 — Reduced motion
   ============================================================ */


/* ============================================================
   01 — FOOTER FOUNDATION
   ============================================================ */

.jd-site-footer--expanded {

	width: 100%;

	margin: 0;
	padding: 50px 0 25px;

	background: var(--site-cream, #f7f4ee);
	color: var(--site-charcoal, #202020);

	border-top: 1px solid var(--site-border, #e6e2dc);

	font-family: var(--site-font-primary);

	text-align: left;

}


.jd-site-footer--expanded > .jd-site-container {

	max-width: 1320px;

}


/* ============================================================
   02 — INTRODUCTION
   ============================================================ */

.jd-footer-intro {

	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	
	align-items: center;
	
	gap: 40px;
	
	padding-bottom: 35px;

	border-bottom: 1px solid var(--site-border);

}


.jd-footer-headline {
	
	grid-column: span 2;

	margin: 0;
	padding: 0;

	color: var(--site-charcoal);

	font-family: var(--site-font-primary);
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 300;

	line-height: 1.08;
	letter-spacing: -1.5px;

	text-align: left;

}


.jd-footer-headline span {

	display: block;

}


.jd-footer-introduction {

	max-width: 420px;

	margin: 0;
	padding: 0 0 5px;

	color: var(--site-grey);

	font-family: var(--site-font-primary);
	font-size: 16px;
	font-weight: 400;

	line-height: 1.7;

	text-align: left;

}


/* ============================================================
   03 — NAVIGATION GROUPS

   Groups automatically wrap as the configuration grows.
   ============================================================ */

.jd-footer-groups {

	display: grid;

	grid-template-columns:
		repeat(auto-fit, minmax(min(200px, 100%), 1fr));

	align-items: start;

	gap: 40px;

	padding: 45px 0 55px;

}


.jd-footer-group {

	min-width: 0;

	margin: 0;
	padding: 0;

	text-align: left;

}


.jd-footer-group-title {

	margin: 0 0 20px;
	padding: 0;

	color: var(--site-grey);

	font-family: var(--site-font-secondary);
	font-size: 11px;
	font-weight: 600;

	line-height: 1.4;

	letter-spacing: 1.8px;
	text-transform: uppercase;

	text-align: left;

}


/* ============================================================
   04 — NAVIGATION LINKS
   ============================================================ */

.jd-site-footer--expanded .jd-footer-list {

	display: flex;

	flex-direction: column;

	gap: 10px;

	list-style: none;

	margin: 0;
	padding: 0;

}


.jd-site-footer--expanded .jd-footer-list li {

	list-style: none;

	margin: 0;
	padding: 0;

}


.jd-site-footer--expanded .jd-footer-list a {

	display: inline-block;

	padding: 2px 0;

	color: var(--site-charcoal);

	font-family: var(--site-font-primary);
	font-size: 17px;
	font-weight: 400;

	line-height: 1.5;

	text-decoration: none;

	overflow-wrap: anywhere;

	transition: color .2s ease;

}


.jd-site-footer--expanded .jd-footer-list a:hover {

	color: var(--site-coral-dark);

	text-decoration: underline;
	text-underline-offset: 4px;

}


/* ============================================================
   05 — BOTTOM BAR
   ============================================================ */

.jd-site-footer--expanded .jd-site-footer-bottom {

	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr)
		minmax(0, 1fr);

	align-items: center;

	gap: 25px;

	margin: 0;
	padding: 28px 0 0;

	border-top: 1px solid var(--site-border);

}


/* ============================================================
   06 — FOOTER LOGO
   ============================================================ */

.jd-footer-logo {

	display: inline-flex;

	align-items: center;
	justify-content: flex-start;

	justify-self: start;

	width: fit-content;

	text-decoration: none;

}


.jd-footer-logo img {

	display: block;

	width: 110px;
	max-width: 100%;
	height: auto;

}


/* ============================================================
   07 — COPYRIGHT
   ============================================================ */

.jd-footer-copyright {

	display: flex;

	flex-direction: column;
	align-items: center;

	gap: 3px;

	color: var(--site-grey);

	font-family: var(--site-font-primary);
	font-size: 13px;
	font-weight: 400;

	line-height: 1.5;

	text-align: center;

}


/* ============================================================
   08 — BACK TO TOP
   ============================================================ */

.jd-footer-back-to-top {

	display: inline-flex;

	align-items: center;
	justify-content: flex-end;
	justify-self: end;

	gap: 12px;

	min-height: 44px;

	color: var(--site-charcoal);

	font-family: var(--site-font-secondary);
	font-size: 10px;
	font-weight: 600;

	letter-spacing: 1.3px;

	text-decoration: none;

	transition: color .2s ease;

}


.jd-footer-back-to-top svg {

	flex-shrink: 0;

	width: 20px;
	height: 20px;

	color: var(--site-coral-dark);

	transition: transform .2s ease;

}


.jd-footer-back-to-top:hover {

	color: var(--site-coral-dark);

}


.jd-footer-back-to-top:hover svg {

	transform: translateY(-4px);

}


/* ============================================================
   09 — TABLET
   ============================================================ */

@media (max-width: 1024px) {

	.jd-site-footer--expanded {

		padding: 60px 0 25px;

	}


	.jd-footer-intro {

		gap: 35px;

		padding-bottom: 40px;

	}


	.jd-footer-headline {

		font-size: clamp(28px, 3.5vw, 38px);
		
	}


	.jd-footer-introduction {

		font-size: 17px;

	}


	.jd-footer-groups {

		gap: 30px;

		padding: 40px 0;

	}

}


/* ============================================================
   10 — MOBILE
   ============================================================ */

@media (max-width: 650px) {
	
	.jd-footer-headline {
	
		grid-column: auto;
	
	}

	.jd-site-footer--expanded {

		padding: 45px 0 25px;

	}


	.jd-footer-intro {

		grid-template-columns: minmax(0, 1fr);

		gap: 22px;

		padding-bottom: 35px;

	}


	.jd-footer-headline {

		font-size: clamp(26px, 6vw, 32px);

		letter-spacing: -.8px;

	}


	.jd-footer-introduction {

		max-width: 100%;

		padding: 0;

		font-size: 17px;

		line-height: 1.6;

	}


	.jd-footer-groups {

		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 32px 20px;

		padding: 35px 0;

	}


	.jd-footer-group-title {

		margin-bottom: 12px;

		font-size: 10px;

		letter-spacing: 1.3px;

	}


	.jd-site-footer--expanded .jd-footer-list {

		gap: 7px;

	}


	.jd-site-footer--expanded .jd-footer-list a {

		font-size: 16px;

	}


	.jd-site-footer--expanded .jd-site-footer-bottom {

		grid-template-columns:
			minmax(0, 1fr)
			minmax(0, 1fr);

		gap: 22px 15px;

		padding-top: 25px;

	}


	.jd-footer-logo img {

		width: 95px;

	}


	.jd-footer-copyright {

		grid-column: 1 / -1;
		grid-row: 2;

		align-items: flex-start;

		font-size: 12px;

		text-align: left;

	}


	.jd-footer-back-to-top {

		grid-column: 2;
		grid-row: 1;

		gap: 8px;

		font-size: 9px;

		letter-spacing: .8px;

	}

}


@media (max-width: 360px) {

	.jd-footer-groups {

		grid-template-columns: minmax(0, 1fr);

	}

}


/* ============================================================
   11 — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	.jd-site-footer--expanded *,
	.jd-site-footer--expanded *::before,
	.jd-site-footer--expanded *::after {

		transition: none !important;

	}


	.jd-footer-back-to-top:hover svg {

		transform: none;

	}

}