/*--------------------------------------------------------------
# Site Footer
# Dark footer with brand name, social links, newsletter form,
# navigation columns, contact info, and bottom copyright bar.
--------------------------------------------------------------*/

/* ── Footer base ── */
.site-footer {
	position: relative;
	background-color: black;
	background-image: url('../images/thepointspartner-card.webp');
	background-size: 80%;
	background-position: center;
	background-repeat: no-repeat;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--tpp-font-body);
	overflow: hidden;
}

/* Dark overlay over the card photo, which also lifts its colour a little.
   No blur since 1 Dec 2026 (Anish: it was 2px, then 1px, then none). */
.site-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.45);
	-webkit-backdrop-filter: saturate(1.4);
	backdrop-filter: saturate(1.4);
	z-index: 0;
}

/* Ensure all footer content sits above the overlay */
.site-footer > * {
	position: relative;
	z-index: 1;
}

/* ── Shared container ── */
.footer__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* ──────────────────────────────────────────────
   Top band — Brand name + Follow Us + socials
   ────────────────────────────────────────────── */
.footer__top {
	padding: 72px 0 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__top .footer__container {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
}

/* Large brand name */
.footer__brand-name {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: var(--tpp-white);
	display: block;
}

/* Social section */
.footer__social {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.footer__social-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--tpp-font-body);
	font-size: 1.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
}

.footer__social-line {
	display: inline-block;
	width: 40px;
	height: 1.5px;
	background: rgba(255, 255, 255, 0.4);
}

.footer__social-icons {
	display: flex;
	align-items: center;
	gap: 15px;
}

.footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.75);
	transition: all var(--tpp-transition);
}

.footer__social-link svg {
	width: 24px;
	height: 24px;
}

.footer__social-link:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--tpp-white);
}

/* The network's name, shown under the icon only on hover (or keyboard
   focus). It's aria-hidden because the link's aria-label already gives
   screen readers the same name. */
.footer__social-link {
	position: relative;
}

.footer__social-name {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translate(-50%, -4px);
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	color: var(--tpp-white);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--tpp-transition), transform var(--tpp-transition);
}

.footer__social-link:focus-visible .footer__social-name {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Only on devices with a real mouse: on a phone a tap counts as "hover"
   and would leave the word stuck on screen after coming back. */
@media (hover: hover) {
	.footer__social-link:hover .footer__social-name {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* ──────────────────────────────────────────────
   Middle section — 4-column grid
   ────────────────────────────────────────────── */
.footer__middle {
	padding: 56px 0 64px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}

/* Column heading */
.footer__col-title {
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--tpp-white);
	margin: 0 0 20px;
}

.footer__col-title--newsletter {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	max-width: 300px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 48px;
}

.footer__col-title--contact {
	margin-top: 28px;
}

/* ── Newsletter form ── */
.footer__newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__input-wrap {
	position: relative;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__input-wrap--submit {
	display: flex;
	align-items: center;
}

.footer__input.footer__input {
	width: 100%;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 36px 0;
	font-family: var(--tpp-font-body);
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.6);
	outline: none;
	transition: color var(--tpp-transition);
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.footer__input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

/* Message under the newsletter field (js/footer-newsletter.js).
   No display rule here: it would override the [hidden] attribute. */
.footer__newsletter-msg {
	margin: 0;
	font-family: var(--tpp-font-body);
	font-size: 0.9rem;
	color: var(--tpp-accent);
}

.footer__newsletter-msg.is-error {
	color: #FF8A80;
}

.footer__input.footer__input:focus {
	color: var(--tpp-white);
}

.footer__input:focus::placeholder {
	color: rgba(255, 255, 255, 0.2);
}

/* Submit button */
.footer__submit {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	/* Orange, like the pop-up's "Send me the deals" (grey glass until 29 Nov 2026) */
	border: 1px solid var(--tpp-accent);
	background: var(--tpp-accent);
	color: var(--tpp-black);
	cursor: pointer;
	transition: all var(--tpp-transition);
	overflow: hidden;
}

.footer__submit:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
	transform: scale(1.04);
}

/* Arrow slide-up animation (matches text-reveal hover) */
.footer__submit-icon {
	position: relative;
	width: 38px;
	height: 38px;
	overflow: hidden;
}

.footer__submit-arrow {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
	will-change: transform;
}

/* Secondary starts behind: bottom-left, out of view */
.footer__submit-arrow--secondary {
	transform: translate(-100%, 100%);
}

/* On hover: both shift diagonally up-right */
.footer__submit:hover .footer__submit-arrow--primary {
	transform: translate(100%, -100%);
}

.footer__submit:hover .footer__submit-arrow--secondary {
	transform: translate(0, 0);
}

/* ── Link columns ── */
.footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__links a {
	font-family: var(--tpp-font-body);
	font-size: 0.95rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
	text-decoration: none;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	transition: color var(--tpp-transition);
}

.footer__links a:hover {
	color: var(--tpp-white);
}

/* ── Address & contact ── */
.footer__address,
.footer__contact-info {
	font-family: var(--tpp-font-body);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	margin: 0;
}

.footer__contact-info a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--tpp-transition);
}

.footer__contact-info a:hover {
	color: var(--tpp-white);
}

/* ──────────────────────────────────────────────
   Bottom bar — Copyright + utility links
   ────────────────────────────────────────────── */
.footer__bottom {
	padding: 40px 0;
	background: rgba(0, 0, 0, 0.25);
}

.footer__bottom .footer__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.footer__copyright {
	font-size: 0.82rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.footer__bottom-links a {
	font-size: 0.82rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color var(--tpp-transition);
}

.footer__bottom-links a:hover {
	color: var(--tpp-white);
}

.footer__bottom-sep {
	color: rgba(255, 255, 255, 0.2);
	font-size: 0.82rem;
}

/* The disclaimer. flex-basis 100% puts it on its own row under the
   copyright and links (the container wraps). The grid gap only matters if
   a second note is ever added. The text is a little brighter than the
   copyright on purpose: it's legal small print, so it has to stay easy to
   read (about 7:1 contrast on the black). */
.footer__legal {
	flex: 1 1 100%;
	display: grid;
	gap: 6px;
	margin-top: 12px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Owen asked for the disclaimer "VERY small at the bottom" (20 Nov 2026).
   It's his full Financial Disclaimer, so it runs the full width as one block
   of fine print rather than a narrow column. */
.footer__legal-note {
	margin: 0;
	font-size: 0.6875rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.5);
	text-wrap: pretty; /* avoids a single word alone on the last line */
}

.footer__legal-note strong {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≥768px) */
@media screen and (min-width: 768px) {
	.footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
		gap: 40px;
	}

	.footer__top {
		padding: 80px 0 64px;
	}

	.footer__middle {
		padding: 64px 0 72px;
	}
}

/* Desktop (≥992px) */
@media screen and (min-width: 992px) {
	.footer__grid {
		gap: 56px;
	}
}

/* Large desktop (≥1280px) */
@media screen and (min-width: 1280px) {
	.footer__top {
		padding: 88px 0 32px;
	}

	.footer__middle {
		padding: 72px 0 72px;
	}

	.footer__grid {
		gap: 64px;
	}
}

/* Mobile adjustments (≤767px) */
@media screen and (max-width: 767px) {
	.footer__top {
		padding: 48px 0 40px;
	}

	.footer__top .footer__container {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer__social {
		align-items: flex-start;
	}

	.footer__brand-name {
		font-size: clamp(2.2rem, 10vw, 3.5rem);
	}

	.footer__middle {
		padding: 40px 0 48px;
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}

	.footer__col--newsletter {
		grid-column: 1 / -1;
	}

	/* Tap targets at least 44px tall on phones (Owen's request). The links
	   themselves grow, so the list gap that used to space them goes to 0. */
	.footer__links {
		gap: 0;
	}

	.footer__links a,
	.footer__contact-info a,
	.footer__bottom-links a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.footer__col-title + .footer__links {
		margin-top: -10px;
	}

	.footer__bottom .footer__container {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	/* In the stacked (column) layout, take the full width rather than a
	   100% height basis. */
	.footer__legal {
		flex: none;
		align-self: stretch;
		margin-top: 8px;
		padding-top: 16px;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.footer__top {
		padding: 40px 0 32px;
	}

	/* Still 2 across, as on larger phones; the newsletter keeps its full
	   row from the ≤767px rule above. minmax(0, 1fr) makes the two halves
	   truly equal: plain 1fr lets a column grow to fit its longest line,
	   which pushed the grid wider than the screen. */
	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.footer__col {
		min-width: 0;
	}

	/* "Get in Touch" is alone on the last row, so it takes the full width
	   and the email address fits on one line instead of breaking mid-word. */
	.footer__col:last-child {
		grid-column: 1 / -1;
	}
}
