/* ==========================================================================
   Atlas Sport — redesigned footer
   Paired with atlas-footer.php / atlas-footer.js
   Mobile-first: the link columns are accordions under 992px and become the
   5-column desktop row above it.
   ========================================================================== */

.atlas-ft,
.atlas-ft *,
.atlas-ft *::before,
.atlas-ft *::after { box-sizing: border-box; }

.atlas-ft {
	--ft-green: #5aa93f;          /* icon badges */
	--ft-green-dark: #2f7d34;     /* headings */
	--ft-green-btn: #43a047;      /* CTA button */
	--ft-text: #41504a;
	--ft-muted: #55645b;
	--ft-placeholder: #a7b3a9;
	--ft-rule: #c9d5c1;
	--ft-hairline: #edf1e9;
	--ft-card: 0 18px 36px rgba(60, 90, 50, .10);

	position: relative;
	clear: both;
	width: 100%;
	margin: 0;
	padding: 0;
	background: linear-gradient(180deg, #fff 0%, #fff 22%, #fafcf8 34%, #f4f9f0 100%);
	color: var(--ft-text);
	font-family: 'Open Sans', Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.atlas-ft a { color: var(--ft-text) !important; text-decoration: none; }
.atlas-ft a:hover,
.atlas-ft a:focus-visible { color: var(--ft-green-dark) !important; }
.atlas-ft ul { margin: 0; padding: 0; list-style: none; }
.atlas-ft li::before { content: none !important; } /* kill the theme's tick bullets */
.atlas-ft__svg { display: block; width: 100%; height: 100%; }

/* --- shared pieces ------------------------------------------------------ */

.atlas-ft__badge {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--ft-green);
	color: #fff;
}
.atlas-ft__badge .atlas-ft__svg { width: 23px; height: 23px; }

.atlas-ft__chev { display: flex; flex: 0 0 auto; color: #93ab8b; }
.atlas-ft__chev .atlas-ft__svg { width: 17px; height: 17px; }

/* --- decorative scenery ------------------------------------------------- */

.atlas-ft__scene {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.atlas-ft__hill {
	position: absolute;
	border-radius: 50%;
}
.atlas-ft__hill--l { bottom: -160px; left: -120px; width: 520px; height: 260px; background: #f1f8eb; }
.atlas-ft__hill--r { bottom: -172px; right: -140px; width: 540px; height: 272px; background: #edf5e6; }
.atlas-ft__hill--c { bottom: -130px; left: 90px; width: 340px; height: 200px; background: #f7fbf3; }

.atlas-ft__cloudwrap,
.atlas-ft__treewrap,
.atlas-ft__bushwrap { position: absolute; display: block; }
.atlas-ft__cloud { display: block; width: 100%; height: auto; }
.atlas-ft__tree,
.atlas-ft__bush { display: block; width: 100%; height: auto; }

.atlas-ft__cloudwrap--1 { left: 82px; top: 2px; width: 78px; }
.atlas-ft__cloudwrap--2 { right: 62px; top: 14px; width: 104px; }
.atlas-ft__treewrap--1 { right: 44px; bottom: 12px; width: 70px; }
.atlas-ft__treewrap--2 { right: 2px; bottom: 16px; width: 42px; }
.atlas-ft__treewrap--3 { left: 2px; bottom: 14px; width: 38px; }
.atlas-ft__bushwrap { display: none; }

/* --- layout ------------------------------------------------------------- */

.atlas-ft__top { position: relative; padding: 14px 22px 26px; }

.atlas-ft__grid {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.atlas-ft__brand { display: flex; justify-content: center; }
.atlas-ft__logo { display: block; width: 330px; max-width: 100%; }
.atlas-ft__logo img { display: block; width: 100%; height: auto; }

/* Playground illustration sits on the hill line, under the content. */
.atlas-ft__playground {
	position: relative;
	z-index: 1;
	display: block;
	width: 320px;
	max-width: 78%;
	height: auto;
	margin: -6px 0 0 34px;
}

/* --- link / social columns (accordions on mobile) ----------------------- */

.atlas-ft__col {
	background: #fff;
	border-radius: 18px;
	padding: 22px 24px;
	box-shadow: var(--ft-card);
}

.atlas-ft__colhead {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: 1;
}
.atlas-ft__coltitle {
	font-size: 23px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--ft-green-dark);
	white-space: nowrap;
}
.atlas-ft__caret {
	display: flex;
	flex: 0 0 auto;
	margin-left: auto;
	width: 24px;
	height: 24px;
	color: var(--ft-green-btn);
	transition: transform .22s ease;
}
.atlas-ft__col.is-closed .atlas-ft__caret { transform: rotate(-90deg); }
.atlas-ft__col.is-closed .atlas-ft__colbody { display: none; }

.atlas-ft__rule { display: none; }

.atlas-ft__links { margin-top: 10px; }
.atlas-ft__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 0;
	border-bottom: 1px solid var(--ft-hairline);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

/* --- social row --------------------------------------------------------- */

.atlas-ft__social {
	display: flex;
	gap: 11px;
	justify-content: space-between;
	margin-top: 18px;
}
.atlas-ft__social a {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border: 1px solid #e2ead9;
	border-radius: 16px;
	background: #fff;
	color: #2f8f37;
	box-shadow: 0 5px 13px rgba(60, 90, 50, .07);
	transition: transform .18s ease, box-shadow .18s ease;
}
.atlas-ft__social a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60, 90, 50, .12); }
.atlas-ft__social .atlas-ft__svg { width: 27px; height: 27px; }

/* --- handwritten note --------------------------------------------------- */

.atlas-ft__note {
	position: relative;
	height: 72px;
	margin-top: 14px;
	color: #4aa845;
}
.atlas-ft__notehook { position: absolute; left: 44px; top: 0; display: block; width: 42px; height: 40px; }
.atlas-ft__notehook svg,
.atlas-ft__noteheart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.atlas-ft__notetext {
	position: absolute;
	left: 92px;
	top: 28px;
	font-family: 'Caveat', cursive;
	font-size: 33px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transform: rotate(-7deg);
	transform-origin: left center;
}
.atlas-ft__noteheart {
	position: absolute;
	left: 298px;
	top: 26px;
	display: block;
	width: 26px;
	height: 26px;
	transform: rotate(14deg);
}

/* --- catalogue card ----------------------------------------------------- */

.atlas-ft__catalog {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 8px;
	padding: 16px 0 2px;
	border-top: 1px solid var(--ft-hairline);
}
.atlas-ft__catalogtext { display: flex; flex-direction: column; gap: 2px; }
.atlas-ft__catalogtext strong {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--ft-green-dark);
}
.atlas-ft__catalogtext span { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ft-muted); }
.atlas-ft__catalog .atlas-ft__chev { margin-left: auto; }

/* --- call-back card ----------------------------------------------------- */

.atlas-ft__cta {
	order: -1; /* on mobile the CTA leads */
	background: #fff;
	border-radius: 18px;
	padding: 24px 24px 26px;
	box-shadow: 0 18px 36px rgba(60, 90, 50, .12);
}
.atlas-ft__ctahead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.atlas-ft__ctahead .atlas-ft__badge { width: 52px; height: 52px; }
.atlas-ft__ctatitle {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.015em;
	color: var(--ft-green-dark);
}
.atlas-ft__ctacopy { margin: 0 0 18px; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--ft-muted); }
.atlas-ft__form { margin: 0; }

.atlas-ft__field {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding: 15px 16px;
	border: 1px solid #e6ebe2;
	border-radius: 12px;
	background: #fbfcfa;
}
.atlas-ft__fieldicon { display: flex; flex: 0 0 auto; width: 21px; height: 21px; color: var(--ft-placeholder); }
.atlas-ft__field input {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ft-text);
}
.atlas-ft__field input:focus { outline: none; }
.atlas-ft__field input::placeholder { color: var(--ft-placeholder); opacity: 1; }
.atlas-ft__field:focus-within { border-color: #bcd6b3; }

.atlas-ft__submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 18px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--ft-green-btn);
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(63, 154, 61, .26);
	transition: background-color .18s ease;
}
.atlas-ft__submit:hover { background: #3d9241; }
.atlas-ft__submitarrow { position: absolute; right: 22px; display: flex; width: 23px; height: 23px; }

/* --- certifications ----------------------------------------------------- */

.atlas-ft__certicon { display: flex; flex: 0 0 auto; width: 19px; height: 19px; color: var(--ft-green); }

/* --- trust strip -------------------------------------------------------- */

.atlas-ft__trust {
	position: relative;
	z-index: 3;
	background: #fbfcf9;
	border-bottom: 5px solid #165c33;
}
.atlas-ft__trust ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 0;
	padding: 20px 14px;
}
.atlas-ft__trust li {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 0 12px;
	border-left: 1px solid #e6ece0;
}
.atlas-ft__trust li:nth-child(odd) { border-left: 0; }
.atlas-ft__trusticon { display: flex; flex: 0 0 auto; width: 25px; height: 25px; color: #16653a; }
.atlas-ft__trusttext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: #263b2e;
}

/* Single column on the narrowest phones — two per row truncates the copy. */
@media (max-width: 420px) {
	.atlas-ft__trust ul { grid-template-columns: 1fr; gap: 14px 0; }
	.atlas-ft__trust li { border-left: 0; }
}

/* mobile: own card */
.atlas-ft__certs-m { padding: 0 22px; }
.atlas-ft__certs-m ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 4px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--ft-card);
}
.atlas-ft__certs-m li {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0 7px;
	border-left: 1px solid var(--ft-hairline);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	color: #46524b;
}
.atlas-ft__certs-m li:first-child { border-left: 0; }

.atlas-ft__certs { display: none; }

/* --- copyright bar ------------------------------------------------------ */

.atlas-ft__bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 26px 76px 34px;
	text-align: center;
}
.atlas-ft__barleaf {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid #e4ebdd;
	border-radius: 11px;
	background: #fff;
	color: var(--ft-green);
	box-shadow: 0 6px 14px rgba(60, 90, 50, .06);
}
.atlas-ft__barleaf .atlas-ft__svg { width: 21px; height: 21px; }
.atlas-ft__copy {
	max-width: 262px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #46524b;
}
.atlas-ft__copy a { color: inherit; }

/* ==========================================================================
   Tablet / small laptop (768–1359px)
   Wider than a phone but too narrow for the 5-column row (the social row plus
   the CTA card alone need ~670px, so the full row can't fit until ~1360px):
   the link groups STAY collapsible accordions, the cards go two-up, and the
   trust strip spreads to four across.
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1359px) {

	.atlas-ft__top { padding: 20px 32px 30px; }

	.atlas-ft__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
		align-items: start;
		max-width: 820px;
		margin: 0 auto;
	}
	.atlas-ft__brand { grid-column: 1 / -1; }
	.atlas-ft__cta { grid-column: 1 / -1; }

	.atlas-ft__playground { margin-left: 0; max-width: 55%; }

	.atlas-ft__trust ul {
		grid-template-columns: repeat(4, 1fr);
		padding: 20px 24px;
	}
	.atlas-ft__trust li { border-left: 1px solid #e6ece0; padding: 0 16px; }
	.atlas-ft__trust li:first-child { border-left: 0; }

	.atlas-ft__certs-m ul { padding: 20px 10px; }
	.atlas-ft__certs-m li { padding: 0 14px; font-size: 14px; }

	.atlas-ft__bar { padding: 26px 32px 34px; }
	.atlas-ft__copy { max-width: 420px; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1360px) {

	.atlas-ft { background: linear-gradient(180deg, #fff 0%, #fff 46%, #fafcf8 70%, #f4f9f0 100%); }

	.atlas-ft__top { padding: 48px 32px 40px; }

	/* hills sit lower at the edges, cresting through the middle */
	.atlas-ft__hill--l { bottom: -300px; left: -260px; width: 1180px; height: 390px; }
	.atlas-ft__hill--r { bottom: -320px; right: -300px; width: 1280px; height: 410px; }
	.atlas-ft__hill--c { bottom: -236px; left: 300px; width: 900px; height: 300px; }

	.atlas-ft__cloudwrap--1 { left: 214px; top: 118px; width: 120px; }
	.atlas-ft__cloudwrap--2 { left: 74px; right: auto; top: 176px; width: 84px; }
	.atlas-ft__treewrap--1 { left: 290px; right: auto; bottom: 40px; width: 76px; }
	.atlas-ft__treewrap--2 { left: 376px; right: auto; bottom: 44px; width: 48px; }
	.atlas-ft__treewrap--3 { left: 40px; bottom: 40px; width: 40px; }
	.atlas-ft__bushwrap { display: block; left: 440px; bottom: 40px; width: 44px; }

	/* Playground: large, anchored to the hill line, behind the columns. */
	.atlas-ft__playground {
		position: absolute;
		left: 12px;
		bottom: 0;
		width: 400px;
		max-width: none;
		margin: 0;
	}

	.atlas-ft__grid {
		display: grid;
		/* Tracks flex down with the viewport so the row never overflows
		   between 993px and the 1600px design width. */
		grid-template-columns:
			minmax(200px, 266px)
			minmax(180px, 222px)
			minmax(168px, 196px)
			minmax(290px, 322px)
			minmax(320px, 348px);
		gap: 24px;
		align-items: start;
		max-width: 1472px;
		margin: 0 auto;
	}

	.atlas-ft__trust ul {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		max-width: 1472px;
		margin: 0 auto;
		padding: 22px 64px;
	}
	.atlas-ft__trust { border-bottom-width: 6px; }
	.atlas-ft__trust li { flex: 1 1 0; gap: 16px; padding: 0 30px; border-left: 1px solid #e2e9db; }
	.atlas-ft__trust li:first-child { border-left: 0; padding-left: 0; }
	.atlas-ft__trusticon { width: 30px; height: 30px; }
	.atlas-ft__trusttext { gap: 3px; font-size: 15px; line-height: 1.35; }

	.atlas-ft__brand { display: block; margin-left: -40px; }
	.atlas-ft__logo { width: 320px; }

	/* Columns are plain text blocks on desktop, not cards. */
	.atlas-ft__col {
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}
	.atlas-ft__colhead { gap: 13px; cursor: default; pointer-events: none; }
	.atlas-ft__badge { width: 48px; height: 48px; }
	.atlas-ft__caret { display: none; }
	.atlas-ft__col.is-closed .atlas-ft__colbody { display: block; }

	.atlas-ft__rule {
		display: block;
		width: 58px;
		height: 3px;
		margin: 12px 0 14px 61px;
		border-radius: 2px;
	}
	.atlas-ft__rule--yellow { background: #f2c94c; }
	.atlas-ft__rule--green { background: #6cbb45; }

	.atlas-ft__links { margin-top: 0; }
	.atlas-ft__links a {
		padding: 13px 0;
		border-bottom: 1px dashed var(--ft-rule);
		font-size: 16px;
	}
	.atlas-ft__chev { color: #7fa374; }

	.atlas-ft__social { gap: 12px; justify-content: flex-start; margin-top: 0; }
	.atlas-ft__social a { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 4px 12px rgba(60, 90, 50, .06); }

	.atlas-ft__note { height: 62px; margin-top: 16px; }
	.atlas-ft__notehook { left: 4px; width: 34px; height: 32px; }
	.atlas-ft__notetext { left: 44px; top: 24px; font-size: 28px; }
	.atlas-ft__noteheart { left: 238px; top: 22px; width: 22px; height: 22px; }

	/* Catalogue becomes its own white card, matching the CTA. */
	.atlas-ft__catalog {
		margin-top: 2px;
		padding: 16px 18px;
		border: 0;
		border-radius: 18px;
		background: #fff;
		box-shadow: 0 14px 28px rgba(60, 90, 50, .10);
		transition: box-shadow .18s ease;
	}
	.atlas-ft__catalog:hover { box-shadow: 0 18px 34px rgba(60, 90, 50, .16); }
	.atlas-ft__catalog .atlas-ft__badge { width: 46px; height: 46px; }
	.atlas-ft__catalogtext strong { font-size: 17px; }
	.atlas-ft__catalogtext span { font-size: 14px; }
	.atlas-ft__catalog .atlas-ft__chev { color: #7fa374; }

	.atlas-ft__cta {
		order: 0;
		justify-self: end;
		width: 348px;
		padding: 28px 28px 30px;
		box-shadow: 0 26px 48px rgba(60, 90, 50, .13);
	}
	.atlas-ft__ctahead { gap: 14px; }
	.atlas-ft__ctahead .atlas-ft__badge { width: 50px; height: 50px; }
	.atlas-ft__ctatitle { font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
	.atlas-ft__ctacopy { margin-bottom: 18px; font-size: 16px; line-height: 1.55; }
	.atlas-ft__field { padding: 13px 15px; }
	.atlas-ft__field input { font-size: 14px; }
	.atlas-ft__submit { padding: 17px 20px; font-size: 18px; }

	/* Certifications move into the copyright bar. */
	.atlas-ft__certs-m { display: none; }

	.atlas-ft__bar {
		flex-direction: row;
		gap: 26px;
		padding: 18px 64px;
		border-top: 2px solid #d9e7cd;
		background: #fbfdf9;
		text-align: left;
	}
	.atlas-ft__barleaf { width: 42px; height: 42px; border: 0; border-radius: 10px; background: #f4f8f0; box-shadow: none; }
	.atlas-ft__copy { max-width: none; font-size: 15px; letter-spacing: .01em; }

	.atlas-ft__certs { display: flex; align-items: center; margin-left: auto; }
	.atlas-ft__certs li {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 0 28px;
		border-left: 1px solid #dfe7d7;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: .01em;
		white-space: nowrap;
		color: #46524b;
	}
	.atlas-ft__certs .atlas-ft__certicon { width: 24px; height: 24px; }
}

/* 993–1180px: the decorative playground crowds the first link column, and
   the handwritten note is wider than its track — trim both. */
/* Roomy screens: restore the generous horizontal padding and trust padding.
   (Below this the 5-column row uses tighter 32px gutters so it fits.) */
@media (min-width: 1520px) {
	.atlas-ft__top { padding: 54px 64px 44px; }
	.atlas-ft__trust ul { padding: 22px 64px; }
}

/* Narrow phones: keep the social row from overflowing. */
@media (max-width: 400px) {
	.atlas-ft__social { gap: 8px; }
	.atlas-ft__social a { width: 54px; height: 54px; }
	.atlas-ft__notetext { font-size: 28px; }
	.atlas-ft__noteheart { left: 250px; }
}

@media (prefers-reduced-motion: reduce) {
	.atlas-ft * { transition: none !important; }
}