/* ==========================================================================
   Catalyst footer v3 (2026-04-19) — shared component

   Used on home (mobile-v3.php) and product pages. Renders a white rounded
   container with rainbow-arch outline, coral wordmark + column titles, dark
   links, pill subscribe. Self-contained: includes its own max-width cap so
   it looks the same whether its parent is .home-v3 (home) or the WP main
   wrapper (product page). On desktop, the footer is a centered narrow
   island — "same as the home mobile view on desktop" per Victor 2026-04-19.
   ========================================================================== */

.home-v3__footer {
	max-width: 428px;             /* cap even on desktop so footer reads as mobile island */
	margin: 0 auto;
	padding: 16px 0 0;
	background: transparent;
	box-sizing: border-box;
	font-family: "Satoshi Variable", "Satoshi", "Helvetica Neue", Helvetica, sans-serif;
	color: #454545;
}

/* Colorful rainbow divider above the footer, matching the home. Only rendered
   when there is no divider already in the page (e.g. on product pages). */
.home-v3__footer::before {
	content: "";
	display: block;
	height: 3px;
	width: 100%;
	background: linear-gradient(
		90deg,
		rgba(234, 238, 235, 1) 0%,
		rgba(160, 194, 212, 1) 37%,
		rgba(253, 147, 152, 1) 59%,
		rgba(238, 107, 67, 1) 80%
	);
}
/* When rendered inside .home-v3 (home page), the dedicated .home-v3__divider
   above already draws the rainbow line, so suppress this pseudo to avoid a
   double line. */
.home-v3 > .home-v3__footer::before {
	display: none;
}

.home-v3__footer-inner {
	position: relative;
	background: #ffffff;
	border-radius: 38px 38px 0 0;
	padding: 32px 28px 36px;
	overflow: hidden;
	margin-top: 16px;
}
/* Rainbow-arch outline decoration (footer-arch.webp exported from Figma 1:479). */
.home-v3__footer-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../../images/home-2026-04/footer-arch.webp");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center top;
	pointer-events: none;
	z-index: 0;
}
.home-v3__footer-inner > * { position: relative; z-index: 1; }

.home-v3__footer-wordmark {
	font-family: "Satoshi Variable", "Satoshi", "Helvetica Neue", sans-serif;
	font-weight: 700;
	font-size: 64px;
	line-height: 1;
	letter-spacing: -0.025em;
	color: #EB622F;
	margin-bottom: 28px;
}
.home-v3__footer-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
	row-gap: 28px;
	margin-bottom: 28px;
}
.home-v3__footer-col--wide { grid-column: 1 / -1; }
.home-v3__footer-col-title {
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.15em;
	color: #EB622F;
	margin-bottom: 10px;
}
.home-v3__footer-link {
	display: block;
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.8;
	color: #454545;
	text-decoration: none;
}
.home-v3__footer-link:hover { color: #0D0D0D; }

/* Pill subscribe: white email input joined to black Subscribe button */
.home-v3__footer-subscribe {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border: 1px solid #B2B2B2;
	border-radius: 40px;
	overflow: hidden;
	margin-top: 4px;
}
.home-v3__footer-subscribe-input {
	flex: 1;
	padding: 12px 20px;
	background: transparent;
	border: none;
	outline: none;
	color: #454545;
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-size: 16px;
	font-weight: 400;
	min-width: 0;
}
.home-v3__footer-subscribe-input::placeholder { color: #B2B2B2; }
.home-v3__footer-subscribe-btn {
	background: #0D0D0D;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 40px;
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	flex-shrink: 0;
}
.home-v3__footer-subscribe-hint {
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-size: 11px;
	color: #B2B2B2;
	margin-top: 12px;
}

.home-v3__footer .sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* ==========================================================================
   SITE-WIDE VIEWPORT GATE — Catalyst home + all other pages (2026-04-20)
   Phone (<600): shows .home--mobile (mobile-island footer-v3)
   Tablet + desktop (≥600): shows .home--desktop (cfooter desktop layout)
   ========================================================================== */
.home--mobile { display: block; }
.home--desktop { display: none; }
@media (min-width: 600px) {
	.home--mobile { display: none; }
	.home--desktop { display: block; }
}

/* ==========================================================================
   DESKTOP FOOTER (.cfooter*) — unscoped so it works on every page
   (home.css has .home-v3d .cfooter* rules for the home-page wrapper; these
   generic rules handle every other page that renders the partial outside
   the .home-v3d wrapper.)
   ========================================================================== */

.cfooter {
	background: #ffffff;
	border-top: 1px solid var(--c-border, #dcd8d4);
	padding: 72px 0 48px;
	width: 100%;
	color: var(--c-text-body, #454545);
	font-family: "Satoshi Variable", "Satoshi", "Helvetica Neue", Helvetica, sans-serif;
}
.cfooter__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 48px;
	box-sizing: border-box;
}

/* Top band */
.cfooter__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--c-border, #dcd8d4);
	margin-bottom: 48px;
}
.cfooter__brand { display: flex; align-items: flex-start; }
.cfooter__logo { width: 360px; height: auto; display: block; }
.cfooter__signup { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cfooter__tagline {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--c-text-body, #454545);
	text-align: right;
	max-width: 360px;
}
.cfooter__subscribe {
	display: flex; align-items: stretch;
	background: #ffffff;
	border: 1px solid var(--c-border, #dcd8d4);
	border-radius: 40px;
	overflow: hidden;
	width: 420px; max-width: 100%;
}
.cfooter__subscribe-input {
	flex: 1; padding: 14px 22px;
	background: transparent; border: none; outline: none;
	color: var(--c-text-body, #454545);
	font-family: inherit; font-size: 15px;
	min-width: 0;
}
.cfooter__subscribe-input::placeholder { color: #b2b2b2; }
.cfooter__subscribe-btn {
	background: var(--c-carbon, #0d0d0d);
	color: #ffffff; border: none;
	padding: 14px 28px; border-radius: 40px;
	font-family: inherit; font-weight: 500; font-size: 13px;
	cursor: pointer; flex-shrink: 0;
}

/* Socials — plain glyphs, no circles, under the subscribe pill */
.cfooter__socials { display: flex; gap: 20px; align-items: center; margin-top: 4px; }
.cfooter__social {
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--c-text-body, #454545); text-decoration: none;
	transition: color 0.15s;
}
.cfooter__social:hover { color: var(--c-burnt, #eb622e); }
.cfooter__social svg { width: 22px; height: 22px; display: block; }

/* Columns */
.cfooter__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cfooter__col-title {
	font-weight: 500; font-size: 11px; letter-spacing: 0.18em;
	color: var(--c-burnt, #eb622e);
	text-transform: uppercase; margin-bottom: 18px;
}
.cfooter__link {
	display: block;
	font-weight: 400; font-size: 14px; line-height: 2;
	color: var(--c-text-body, #454545); text-decoration: none;
}
.cfooter__link:hover { color: var(--c-carbon, #0d0d0d); }

/* Tablet: 2-col grid + stacked top band */
@media (max-width: 1024px) {
	.cfooter__cols { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
	.cfooter__top { grid-template-columns: 1fr; gap: 36px; }
	.cfooter__signup { align-items: flex-start; }
	.cfooter__tagline { text-align: left; }
	.cfooter__logo { width: 280px; }
}
