/* ══════════════════════════════════════════════
FOOTER — HIGH-SPECIFICITY OVERRIDES
All link color/decoration rules use double-ID (#site-footer#site-footer)
to beat Divi's `a, .et-db #et-boc .et-l a` rule (specificity 1,2,1).
Double-ID gives specificity 2,x,x which always wins.
══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
#site-footer {
	--ft-accent:     #2C67FF;
	--ft-accent-glow: rgba(20, 147, 101, 0.25);
	--ft-text:       #ffffff;
	--ft-text-faint: #6b7a8d;
	--ft-tr:         0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SHELL ── */
#site-footer {
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
	color: var(--ft-text);
	box-sizing: border-box;
}
#site-footer *, #site-footer *::before, #site-footer *::after {
	box-sizing: border-box;
}
#site-footer ul  { list-style: none; margin: 0; padding: 0; }
#site-footer button { background: none; border: none; font: inherit; }

/* ── ALL LINKS — highest-priority base reset ──
   Double-ID beats Divi's (1,2,1) with (2,1,0)
── */
#site-footer#site-footer a,
#site-footer#site-footer a:link,
#site-footer#site-footer a:visited {
	color: inherit;
	text-decoration: none;
}
#site-footer#site-footer a:hover {
	color: inherit;
	text-decoration: none;
}

/* ── FOOTER INNER ── */
#site-footer .footer-inner {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	padding-top: 100px;
}

/* ════════════════════════════════════════════
TOP ROW
════════════════════════════════════════════ */
#site-footer .footer-brand-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 32px;
}
#site-footer .footer-logo        { display: flex; align-items: center; flex-shrink: 0; }
#site-footer .footer-logo__img   { height: 40px; width: auto; display: block; }
#site-footer .footer-brand-right { display: flex; align-items: center; gap: 20px; }
#site-footer .footer-app-label   { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
#site-footer .footer-app-label__title { font-size: 13px; font-weight: 600; color: var(--ft-text); }
#site-footer .footer-app-label__sub   { font-size: 11px; color: var(--ft-text-faint); }
#site-footer .footer-apps        { display: flex; gap: 8px; flex-shrink: 0; }

#site-footer .footer-apps .app-store-img,
#site-footer .footer-apps picture,
#site-footer .footer-apps img {
	height: 32px;
	width: auto;
	display: block;
	transition: transform var(--ft-tr), opacity var(--ft-tr);
}
#site-footer .app-store-img:hover { transform: translateY(-2px); opacity: 0.88; }

/* ── SOCIAL BUTTONS ── */
#site-footer .social-btn {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--ft-accent);
	border: 1px solid var(--ft-accent);
	display: flex; align-items: center; justify-content: center;
	color: #ffffff;
	font-size: 16px;
	transition: transform var(--ft-tr), box-shadow var(--ft-tr);
}
#site-footer .social-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px var(--ft-accent-glow); }
#site-footer .social-btn--sm   { width: 36px; height: 36px; border-radius: 8px; font-size: 14px; }

/* ════════════════════════════════════════════
NAV GRID
════════════════════════════════════════════ */
#site-footer .footer-nav {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 40px 24px;
	padding: 40px 0 44px;
	align-items: start;
}

/* Column title */
#site-footer .footer-col__title {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ft-text) !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	background-image: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 40%, transparent 100%);
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: bottom;
	margin-bottom: 18px;
	user-select: none;
	position: relative;
}
@media (min-width: 769px) {
	#site-footer .footer-col__title::after {
		content: "";
		position: absolute;
		bottom: -1px; left: 0;
		width: 24px; height: 2px;
		background: var(--ft-accent);
		border-radius: 2px;
	}
}

#site-footer .footer-col__chevron {
	display: none;
	width: 16px; height: 16px;
	color: var(--ft-text-faint);
	transition: transform var(--ft-tr);
	flex-shrink: 0;
}

/* Column links */
#site-footer .footer-col__links {
	display: flex;
	flex-direction: column;
	gap: 11px;
}
#site-footer .footer-col__links li a {
	font-size: 14px;
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.4;
	position: relative;
	padding-bottom: 2px;
	transition: color var(--ft-tr);
}
/* high-priority color for nav links */
#site-footer#site-footer .footer-col__links li a,
#site-footer#site-footer .footer-col__links li a:link,
#site-footer#site-footer .footer-col__links li a:visited {
	color: var(--ft-text);
	text-decoration: none;
}
#site-footer#site-footer .footer-col__links li a:hover {
	color: var(--ft-text);
}
#site-footer .footer-col__links li a::after {
	content: ""; position: absolute; bottom: 0; left: 0;
	width: 0; height: 1px;
	background: rgba(255,255,255,0.6);
	transition: width var(--ft-tr);
}
#site-footer .footer-col__links li a:hover::after { width: 100%; }

/* ════════════════════════════════════════════
BOTTOM BAR
════════════════════════════════════════════ */
#site-footer .footer-bottom {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 20px 0;
	border-bottom: 1px solid rgba(255,255,255,0.15);
	flex-wrap: wrap;
}
#site-footer .footer-bottom__legal {
	display: flex; align-items: center;
	gap: 24px !important;
	flex-wrap: wrap;
}
#site-footer .footer-bottom__legal-label {
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--ft-text);
}
#site-footer .footer-bottom__legal a { position: relative; transition: color var(--ft-tr); }
#site-footer#site-footer .footer-bottom__legal a,
#site-footer#site-footer .footer-bottom__legal a:link,
#site-footer#site-footer .footer-bottom__legal a:visited {
	color: rgba(255,255,255,0.65);
	text-decoration: none;
}
#site-footer#site-footer .footer-bottom__legal a:hover { color: #ffffff; }
#site-footer .footer-bottom__legal a::after {
	content: ""; position: absolute; bottom: 0; left: 0;
	width: 0; height: 1px;
	background: rgba(255,255,255,0.6);
	transition: width var(--ft-tr);
}
#site-footer .footer-bottom__legal a:hover::after { width: 100%; }

#site-footer .footer-bottom__follow       { display: flex; align-items: center; gap: 10px; }
#site-footer .footer-bottom__follow-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-right: 4px; }

/* ════════════════════════════════════════════
COPYRIGHT ROW
════════════════════════════════════════════ */
#site-footer .footer-copyright {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 0 32px;
}
#site-footer .footer-bottom__copy { font-size: 13px; color: rgba(255,255,255,0.45); margin: 0; }
#site-footer#site-footer .footer-bottom__copy a,
#site-footer#site-footer .footer-bottom__copy a:link,
#site-footer#site-footer .footer-bottom__copy a:visited {
	color: rgba(255,255,255,0.80);
	font-weight: 600;
	text-decoration: none;
}
#site-footer#site-footer .footer-bottom__copy a:hover { color: #ffffff; }
#site-footer .footer-bottom__copy a { position: relative; transition: color var(--ft-tr); }
#site-footer .footer-bottom__copy a::after {
	content: ""; position: absolute; bottom: 0; left: 0;
	width: 0; height: 1px;
	background: rgba(255,255,255,0.6);
	transition: width var(--ft-tr);
}
#site-footer .footer-bottom__copy a:hover::after { width: 100%; }

#site-footer#site-footer .footer-system-status,
#site-footer#site-footer .footer-system-status:link,
#site-footer#site-footer .footer-system-status:visited {
	font-size: 13px;
	color: rgba(255,255,255,0.45);
	text-decoration: none;
	transition: color var(--ft-tr);
}
#site-footer#site-footer .footer-system-status:hover { color: #ffffff; }

/* ════════════════════════════════════════════
TABLET ≤ 980px
════════════════════════════════════════════ */
@media (max-width: 980px) {
	#site-footer .footer-nav   { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
	#site-footer .footer-inner { padding-top: 80px; }
}

/* ════════════════════════════════════════════
MOBILE ≤ 768px
════════════════════════════════════════════ */
@media (max-width: 768px) {
	#site-footer .footer-inner  { padding-top: 60px; }

	#site-footer .footer-brand-top   { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 28px; }
	#site-footer .footer-brand-right { flex-direction: column; align-items: flex-start; gap: 16px; }
	#site-footer .footer-app-label   { align-items: flex-start; }
	#site-footer .footer-apps        { flex-direction: row; flex-wrap: wrap; gap: 10px; }
	#site-footer .app-store-img      { height: 35px; }

	#site-footer .footer-nav {
		grid-template-columns: 1fr;
		gap: 0; padding: 0 0 8px; border-bottom: none;
	}

	/* accordion title */
	#site-footer .footer-col__title {
		padding: 16px 0; margin-bottom: 0;
		cursor: pointer; background-image: none;
	}
	#site-footer .footer-col__title::after  { display: none !important; }
	#site-footer .footer-col__chevron       { display: block; }
	#site-footer .footer-col.is-open > .footer-col__title > .footer-col__chevron { transform: rotate(180deg); }

	/* accordion links */
	#site-footer .footer-col__links {
		max-height: 0; overflow: hidden;
		transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding-bottom 0.35s;
		gap: 0; padding-bottom: 0;
	}
	#site-footer .footer-col__links li a    { padding: 10px 0; font-size: 13.5px; }
	/* high-priority inside media query too */
	#site-footer#site-footer .footer-col__links li a,
	#site-footer#site-footer .footer-col__links li a:link,
	#site-footer#site-footer .footer-col__links li a:visited {
		color: var(--ft-text);
		text-decoration: none;
	}
	#site-footer .footer-col.is-open > .footer-col__links { max-height: 800px; padding-bottom: 16px; gap: 0; }
	#site-footer .footer-col__links.footer-col__links--solutions { display: flex; grid-template-columns: unset; }

	#site-footer .footer-bottom        { align-items: flex-start; gap: 14px; padding: 20px 0; }
	#site-footer .footer-bottom__legal { gap: 14px !important; }

	/* solutions accordion */
	#site-footer .solutions-subhead { cursor: pointer; padding: 10px 0; margin-bottom: 0; }
	#site-footer .solutions-subhead .footer-col__chevron {
		display: block; width: 16px; height: 16px; flex-shrink: 0;
		color: rgba(255,255,255,0.5);
		transform: rotate(0deg); transition: transform var(--ft-tr);
	}
	#site-footer .solutions-group.is-open > .solutions-subhead .footer-col__chevron { transform: rotate(180deg); }
	#site-footer .solutions-children {
		max-height: 0 !important; overflow: hidden;
		margin-bottom: 0; padding-bottom: 0;
		transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding-bottom 0.35s, margin-bottom 0.35s;
	}
	#site-footer .solutions-group.is-open > .solutions-children {
		max-height: 600px !important; padding-bottom: 10px; margin-bottom: 4px;
	}

	/* high-priority solutions links on mobile */
	#site-footer#site-footer .solutions-children li a,
	#site-footer#site-footer .solutions-children li a:link,
	#site-footer#site-footer .solutions-children li a:visited {
		color: rgba(255,255,255,0.6);
		text-decoration: none;
	}
	#site-footer#site-footer .solutions-children li a:hover { color: #ffffff; }
}

@media (max-width: 576px) {
	#site-footer .footer-bottom { flex-direction: column; }
}

/* ════════════════════════════════════════════
DOUBLE COL
════════════════════════════════════════════ */
#site-footer .footer-col--double        { display: flex; flex-direction: column; }
#site-footer .footer-col__title--spaced { margin-top: 28px; }

@media (max-width: 768px) {
	#site-footer .footer-col__title--spaced { margin-top: 0; }
	#site-footer .footer-col--double .footer-col__title.is-open .footer-col__chevron { transform: rotate(180deg); }
	#site-footer .footer-col--double .footer-col__links {
		max-height: 0; overflow: hidden; padding-bottom: 0;
		transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding-bottom 0.35s;
	}
}

/* ════════════════════════════════════════════
SOLUTIONS — desktop
════════════════════════════════════════════ */
#site-footer .solutions-group    { list-style: none; margin-bottom: 4px; }
#site-footer .solutions-subhead  {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 6px;
}
#site-footer .solutions-children {
	list-style: none; margin: 0 0 14px 0;
	padding: 0 0 0 8px !important;
	border-left: 1.5px solid rgba(20,147,101,0.3);
	display: flex; flex-direction: column; gap: 4px;
}
#site-footer .solutions-children li a { position: relative; transition: color var(--ft-tr); }
#site-footer#site-footer .solutions-children li a,
#site-footer#site-footer .solutions-children li a:link,
#site-footer#site-footer .solutions-children li a:visited {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
}
#site-footer#site-footer .solutions-children li a:hover { color: #ffffff; }
#site-footer .solutions-children li a::after {
	content: ""; position: absolute; bottom: 0; left: 0;
	width: 0; height: 1px;
	background: rgba(255,255,255,0.6);
	transition: width var(--ft-tr);
}
#site-footer .solutions-children li a:hover::after { width: 100%; }

@media (min-width: 769px) {
	#site-footer .solutions-subhead .footer-col__chevron { display: none; }
}
