/* =========================================================================
   NISSU site footer
   ========================================================================= */

.rw-footer {
	--rwh-footer-bg: var(--rwh-navy, #08323f);
	--rwh-footer-text: rgba(255, 255, 255, 0.86);

	position: relative;
	background: var(--rwh-footer-bg);
	color: var(--rwh-footer-text);
	font-family: var(--rwh-font);
	padding: 36px 20px 26px;
}

@media (min-width: 768px) {
	.rw-footer {
		padding-inline: 32px;
	}
}

.rw-footer * {
	box-sizing: border-box;
}

/* ---------- top strip ---------- */

/*
   The Nkumba colour rule across the head of the footer. Stretched to the full
   width with background-size: 100% 100% — the artwork is three solid bands, so
   scaling loses no detail and the band proportions are preserved. A fixed
   height keeps it a consistent rule instead of thinning to nothing on a phone,
   which is what a plain <img> would do at 2084x13.

   It sits flush at the top edge, so the footer's own top padding starts below.
*/
.rw-footer__strip {
	height: clamp(5px, 0.55vw, 9px);
	margin: -36px -20px 36px;
	background-image: var(--rw-footer-strip);
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

@media (min-width: 768px) {
	.rw-footer__strip {
		margin-inline: -32px;
	}
}

@media (max-width: 560px) {
	.rw-footer__strip {
		margin-top: -30px;
	}
}

/* The footer sits in a narrower block than the rest of the site (1280px), so
   the content reads as a centred slab rather than running to the edges — the
   reference does the same. Deliberately NOT --rwh-container: this inset is
   footer-only, so the footer's left edge sits inboard of the header's. */
.rw-footer__inner {
	width: 100%;
	max-width: 1150px;
	margin-inline: auto;
}

/* ---------- columns ---------- */

.rw-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

@media (min-width: 700px) {
	.rw-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Four columns: About / Explore / Get in touch / Follow Us.
   The About column carries a paragraph so it takes the flexible width; the
   three list columns are narrower and fixed, which keeps their left edges
   aligned rather than letting the grid stretch them apart. */
@media (min-width: 1000px) {
	.rw-footer__cols {
		grid-template-columns: minmax(0, 1.6fr) 200px 220px 160px;
		gap: 40px;
	}
}

/* Between the two-up and four-up breakpoints, three columns reads better than
   two — the Follow Us column is short and would otherwise sit alone on a row. */
@media (min-width: 820px) and (max-width: 999px) {
	.rw-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rw-footer__col--offices {
		grid-column: 1 / -1;
	}
}

.rw-footer__heading {
	margin: 0 0 10px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}


/* ---------- offices ---------- */

.rw-footer__office + .rw-footer__office {
	margin-top: 20px;
}

.rw-footer__address {
	margin: 0;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.55;
}

.rw-footer__phone,
.rw-footer__contact a,
.rw-footer__list a,
.rw-footer__also-list a {
	color: var(--rwh-footer-text);
	text-decoration: none;
	transition: color 180ms ease;
}

.rw-footer__phone {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.875rem;
	line-height: 1.55;
}

.rw-footer__phone:hover,
.rw-footer__contact a:hover,
.rw-footer__list a:hover,
.rw-footer__also-list a:hover,
.rw-footer__phone:focus-visible,
.rw-footer__contact a:focus-visible,
.rw-footer__list a:focus-visible,
.rw-footer__also-list a:focus-visible {
	color: #fff;
	text-decoration: none;
}

.rw-footer__badge {
	margin-top: 22px;
}

.rw-footer__badge img {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
}

/* ---------- link list ---------- */

.rw-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-footer__list li {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.rw-footer__list a {
	font-size: 0.84375rem;
	line-height: 1.5;
}

/* ---------- contact ---------- */

.rw-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-footer__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.rw-footer__contact svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: #fff;
	opacity: 0.9;
}

.rw-footer__hours {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* ---------- social ---------- */

.rw-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.rw-footer__social li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	color: #fff;
	transition: background-color 180ms ease, transform 180ms ease;
}

.rw-footer__social svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.rw-footer__social a:hover,
.rw-footer__social a:focus-visible {
	background: var(--rwh-red, #b06105);
	transform: translateY(-1px);
}

/* ---------- also of interest ---------- */

.rw-footer__also {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	margin-top: 30px;
}

.rw-footer__also-title {
	margin: 0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

.rw-footer__also-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-footer__also-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-footer__also-list a {
	font-size: 0.84375rem;
}

/* ---------- bottom ---------- */

.rw-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 30px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* The logo is navy artwork, so on navy it needs a light plate. */
.rw-footer__logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 5px 9px;
	border-radius: 3px;
	background: #fff;
	text-decoration: none;
}

.rw-footer__logo .rw-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-height: 34px;
}

.rw-footer__logo .rw-logo__text {
	display: none;
}

.rw-footer__logo .rw-logo__mark {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
}

.rw-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8125rem;
	line-height: 1.55;
}

/* ---------- back to top ---------- */

.rw-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rwh-navy, #08323f);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(13, 26, 62, 0.34);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 220ms ease, transform 220ms ease, background-color 180ms ease;
}

.rw-to-top[hidden] {
	display: none;
}

.rw-to-top.is-visible {
	opacity: 1;
	transform: none;
}

.rw-to-top:hover,
.rw-to-top:focus-visible {
	background: var(--rwh-red, #b06105);
}

.rw-to-top svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.rw-footer :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.rw-to-top,
	.rw-footer__social a {
		transition: none;
	}
}

@media (max-width: 560px) {
	.rw-footer {
		padding-top: 30px;
	}

	.rw-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.rw-to-top {
		right: 14px;
		bottom: 14px;
	}
}

/* Developer credit — opposite end of the bottom bar from the logo. */

.rw-footer__credit {
	margin: 0 0 0 auto;
	text-align: right;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.rw-footer__credit a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 180ms ease;
}

.rw-footer__credit a:hover,
.rw-footer__credit a:focus-visible {
	color: #fff;
}

/* Must come after the base .rw-footer__credit rule above, or the auto
   margin wins on equal specificity. Stacked bar: nothing to sit opposite. */
@media (max-width: 560px) {
	.rw-footer__credit {
		margin-left: 0;
		text-align: left;
	}
}

/* Focus-after-click keeps the fill (the global reset blanks :focus). */
.rw-to-top:focus { background: var(--rwh-red, #b06105); }

/* ==========================================================================
 * NISSU footer — minimal
 *
 * Two rows: logo + inline nav + social, then a rule and the legal line.
 * Appended after the ported rules so it wins on order without needing higher
 * specificity.
 * ======================================================================= */

.ns-footer {
	background: var(--nissu-surface-alt, #f4f6f7);
	border-top: 1px solid var(--nissu-border, #dde3e7);
	color: var(--nissu-text, #3d4855);
	padding: 0;
}
.ns-footer__inner {
	max-width: var(--nissu-content-width, 1200px);
	margin-inline: auto;
	padding: 30px clamp(20px, 5vw, 40px) 22px;
}

/* ---- row 1 ---- */
.ns-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 34px;
	padding-bottom: 20px;
}
.ns-footer__logo { display: inline-flex; align-items: center; flex: none; }
.ns-footer__logo img { max-height: 34px; width: auto; }

.ns-footer__nav { flex: 1 1 auto; }
.ns-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}
.ns-footer__list a {
	color: var(--nissu-text, #3d4855);
	text-decoration: none;
	font-size: 0.88rem;
	transition: color 150ms ease;
}
.ns-footer__list a:hover,
.ns-footer__list a:focus-visible { color: var(--nissu-primary, #b06105); }

.ns-footer__social {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 14px;
	flex: none;
}
.ns-footer__social a { color: var(--nissu-text, #3d4855); display: inline-flex; transition: color 150ms ease; }
.ns-footer__social a:hover,
.ns-footer__social a:focus-visible { color: var(--nissu-primary, #b06105); }
.ns-footer__social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---- row 2 ---- */
.ns-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 22px;
	padding-top: 16px;
	border-top: 1px solid var(--nissu-border, #dde3e7);
}
.ns-footer__copy,
.ns-footer__contactline,
.ns-footer__credit {
	margin: 0;
	font-size: 0.79rem;
	color: color-mix(in srgb, var(--nissu-text, #3d4855) 72%, transparent);
}
.ns-footer__contactline a { color: inherit; text-decoration: none; }
.ns-footer__contactline a:hover { color: var(--nissu-primary, #b06105); }
.ns-footer__contactline span { opacity: 0.5; margin: 0 4px; }
.ns-footer__credit { margin-left: auto; }
.ns-footer__credit a { color: inherit; text-decoration: none; }
.ns-footer__credit a:hover { color: var(--nissu-primary, #b06105); }

@media (max-width: 700px) {
	.ns-footer__credit { margin-left: 0; }
	.ns-footer__nav { flex-basis: 100%; }
}
