/* =============================================================
 * SUPERFLY — FOOTER
 * The shop's statement and address on the left, two link columns
 * hard against the right, and the word SUPERFLY across the bottom
 * with a light that follows the cursor.
 *
 * The light: the word is drawn TWICE in one <svg> (parts/footer.html),
 * once in near-black and once filled with a radial gradient whose
 * centre is moved to the pointer by assets/js/footer.js — so only the
 * letters catch it and the glow reads as light on metal.
 * -------------------------------------------------------------
 *  BUILT IN JOHOR BAHRU,                    SERVICE      LEGAL
 *  FITTED ON BIKES EVERYWHERE               FAQ          Contact
 *  Rims, suspension and brakes …            Fitting …    Terms …
 *  WORKSHOP        TALK TO US
 *  3 Jalan Tiong … 07-350 7086
 *  ─────────────────────────────────────────────────────────────
 *  [logo] f ig yt                    © 2026 Superfly · SST line
 *  S U P E R F L Y  ← the word, bleeding off both edges
 * ============================================================= */

/* The block theme leaves a gap above the footer (its own block spacing),
   which showed as a strip of page background between the last section and
   this one. Close it, and let the footer start straight out of the section
   above instead of drawing another line across the page. */
.wp-site-blocks > footer,
footer.wp-block-template-part {
	margin-top: 0;
	margin-block-start: 0;
}

.sf-pf {
	--pf-bg:     #0a0a0a;
	--pf-text:   #f2f2f4;
	--pf-muted:  rgba(242, 242, 244, 0.78);
	--pf-faint:  rgba(242, 242, 244, 0.42);
	--pf-line:   rgba(242, 242, 244, 0.16);
	--pf-link:   #878787;            /* the footer links, a shade below the body text */
	--pf-accent: #ec1e79;
	--pf-accent-rgb: 236, 30, 121;   /* the same magenta, for rgba() — keep in step */
	--pf-wash-rgb: 246, 139, 188;    /* the accent lightened halfway to white, for the
	                                    top wash. A tint, not the accent: dropping the
	                                    accent's own alpha only makes it darker against
	                                    #0a0a0b, it never makes it read as a light pink. */
	--pf-title:  "Archivo Black", "Arial Black", sans-serif;
	--pf-body:   "Archivo", "Inter", sans-serif;
	--pf-tech:   "Chakra Petch", "Archivo", sans-serif;
	--pf-mono:   "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	position: relative;
	overflow: hidden;                /* the word is cut by the footer */
	box-sizing: border-box;
	background: var(--pf-bg);
	border-top: 1px solid var(--pf-line);
	color: var(--pf-text);
	font-family: var(--pf-body);
	isolation: isolate;
}

.sf-pf *,
.sf-pf *::before,
.sf-pf *::after {
	box-sizing: border-box;
}

/* ---- the magenta wash along the top edge ---- */
/* A band of the brand magenta fading to nothing, so the footer opens out
   of the section above instead of starting on a hard line. It is a
   pseudo-element rather than a second background-image on .sf-pf because
   the footer's background is a flat colour the word is drawn against —
   layering a gradient into it would tint the letters' own near-blacks.

   z-index 0 puts it on the same level as .sf-pf__word, and a ::before
   paints before its element's children, so it sits UNDER the word and
   over the background. Do not give it a negative z-index: .sf-pf sets
   isolation: isolate, so -1 would drop it behind the footer's own
   background and disappear entirely. */
.sf-pf::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: clamp(80px, 9vw, 150px);
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(var(--pf-wash-rgb), 0.10) 0%,
		rgba(var(--pf-wash-rgb), 0.04) 40%,
		rgba(var(--pf-wash-rgb), 0.01) 70%,
		rgba(var(--pf-wash-rgb), 0)    100%
	);
}

/* the hairline the footer starts on, picking up the same tint so the wash
   does not stop dead against a neutral grey line */
.sf-pf {
	border-top-color: rgba(var(--pf-wash-rgb), 0.16);
}

/* ---- the word ---- */
/* taller than the room it is given and pinned low, so the letters bleed
   off both sides and are cut along the bottom */
.sf-pf__word {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(-150px, -10vw, -60px);   /* dropped, so it clears the text above */
	width: 100%;
	height: clamp(220px, 27vw, 430px);
	z-index: 0;
	pointer-events: none;            /* the light is driven by the footer */
}

.sf-pf__word text {
	font-family: var(--pf-title);
	font-size: 250px;
}

/* the emboss: the word is drawn three times - a dark edge below, a light
   edge above, the face over both. The two edges are blurred, so instead
   of a hard second outline they read as light falling on a rounded edge.
   Only the edges are blurred and neither of them ever changes, so the
   blur is painted once and kept; the face and the moving light above it
   stay sharp and cost nothing to redraw. */
.sf-pf__word-lo {                             /* the shadow, nudged down-right */
	fill: #000000;
	opacity: 0.7;
	filter: blur(3px);
}

.sf-pf__word-hi {                             /* the highlight, nudged up-left */
	fill: #23232a;
	filter: blur(3px);
}

.sf-pf__word-base { fill: #171717; }          /* the face, just off the background */

/* the lit copy is hidden until the pointer is over the word itself —
   moving across the sign-up or the links lights nothing */
.sf-pf__word-lit {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.sf-pf.is-lit .sf-pf__word-lit { opacity: 1; }

.sf-pf__in {
	position: relative;
	z-index: 1;
	max-width: 1800px;
	margin-inline: auto;
	/* THE SIDES ARE --sf-gutter SINCE 2026-11-17, so the footer columns line
	   up with the content of whatever page is above them. They were
	   clamp(20px, 3.4vw, 62px), a ramp of their own, which measured 60.52
	   against the page content at 74.76 on a 1770px client once every page
	   went full bleed -- a 14px step that reads as the footer being slightly
	   narrow on EVERY page, this part being shared by all of them.
	   The top and bottom are the footer own values and are untouched. */
	padding: clamp(48px, 6vw, 84px) var(--sf-gutter) clamp(26px, 3vw, 40px);
}

.sf-pf__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(40px, 6vw, 120px);
	padding-bottom: 100px;
}

/* ---- the statement ---- */
.sf-pf__lead { max-width: 760px; }

.sf-pf__shout {
	margin: 0 0 32px;                /* the line that sat here is gone */
	max-width: 34ch;                 /* two lines at most, like the reference */
	font-family: var(--pf-title);
	font-weight: 400;
	font-size: clamp(20px, 1.6vw, 30px);
	line-height: 1.08;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--pf-text);
}

/* ---- the sign-up ---- */
.sf-pf__form {
	display: flex;
	align-items: stretch;
	gap: clamp(14px, 1.6vw, 26px);
	max-width: 620px;
}

.sf-pf__field {
	display: flex;
	flex: 1;
}

.sf-pf__field input {
	width: 100%;
	padding: 20px;
	background: none;
	border: 1px solid var(--pf-line);
	font-family: var(--pf-body);
    font-size: clamp(13.5px, 0.98vw, 14.5px);
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    line-height: 1.25;
	transition: border-color 0.2s ease;
}

.sf-pf__field input::placeholder { color: var(--pf-muted); }
.sf-pf__field input:focus { border-color: var(--pf-accent); outline: none; }

.sf-pf__signup {
	padding: 20px 30px;
	min-width: 150px;
	background: var(--pf-accent);
	border: 0;
	color: #fff;
	font-family: var(--pf-body);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.sf-pf__signup:hover { filter: brightness(1.12); }

/* the field's label is for screen readers only. WordPress normally
   defines this class, but it is spelled out here so the word "Email
   address" can never appear above the box if that style is missing. */
.sf-pf .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* the honeypot: out of sight for a person, still fillable by a bot */
.sf-pf__pot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* what happens after you press Sign up */
.sf-pf__note {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-left: 2px solid var(--pf-accent);
	background: rgba(236, 30, 121, 0.08);
	font-family: var(--pf-mono);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--pf-text);
}

.sf-pf__note[hidden] { display: none; }

.sf-pf__small {
    margin: 26px 0 0;
    max-width: 66ch;
    font-family: var(--pf-body);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--pf-link);
	line-height: 2em;
}

.sf-pf__small a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sf-pf__small a:hover { color: var(--pf-accent); }

/* ---- the two columns ---- */
.sf-pf__nav {
	display: flex;
	flex: none;
	gap: clamp(40px, 5vw, 96px);
}

.sf-pf__nav > div { min-width: 150px; }

.sf-pf__h {
	margin: 0 0 20px;
	font-family: var(--pf-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-accent);
}

.sf-pf__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pf__list li { margin: 0 0 9px; }         /* 9 + an 18px line = 27px apart */

.sf-pf__list a {
	color: var(--pf-link);
	text-decoration: none;
	font-size: clamp(13.5px, 0.98vw, 14.5px);
	line-height: 1.25;
	transition: color 0.2s ease;
}

.sf-pf__list a:hover,
.sf-pf__list a:focus-visible { color: var(--pf-text); }

/* ---- the bar, on top of the word ---- */
.sf-pf__bar {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;          /* the badge is deleted on this site, so there is nothing to space apart */
	gap: 30px;
}

.sf-pf__badge {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2vw, 34px);
}

.sf-pf__badge img {
	width: clamp(120px, 10vw, 150px);
	height: auto;
}

.sf-pf__social {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pf__social a {
	color: var(--pf-text);
	text-decoration: none;
	font-size: 17px;
	transition: color 0.2s ease;
}

.sf-pf__social a:hover { color: var(--pf-accent); }

.sf-pf__legal {
	text-align: right;
	font-size: 13.5px;
	line-height: 1.6;
	color: #878787 ;
}

.sf-pf__legal p { margin: 0; }
.sf-pf__legal span { color: var(--pf-faint); }

.sf-pf__addr {
	margin: 0 0 4px;
	font-style: normal;
    color: #878787;
}

.sf-pf__tel {
	color: #878787;  
	text-decoration: none;
	transition: color 0.2s ease;
}

.sf-pf__tel:hover { color: var(--pf-accent); }

/* ---- the one piece of movement: it settles in as you reach it ---- */
.sf-pf.is-ready .sf-pf__top > *,
.sf-pf.is-ready .sf-pf__bar {
	opacity: 0;
	transform: translateY(10px);
}

.sf-pf.is-in .sf-pf__top > *,
.sf-pf.is-in .sf-pf__bar {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sf-pf.is-in .sf-pf__top > :nth-child(2) { transition-delay: 0.06s; }
.sf-pf.is-in .sf-pf__bar { transition-delay: 0.12s; }

/* ---- phones + tablets ---- */
@media (max-width: 1100px) {
	.sf-pf__top {
		flex-direction: column;
		gap: 52px;
		padding-bottom: 40px;
	}

	.sf-pf__nav { width: 100%; justify-content: flex-start; }
	.sf-pf__shout { max-width: none; }
}

@media (max-width: 640px) {
	.sf-pf__form { flex-direction: column; }
	.sf-pf__signup { width: 100%; }

	.sf-pf__bar { flex-direction: column; align-items: flex-start; gap: 22px; }
	.sf-pf__legal { text-align: left; }
	.sf-pf__nav { flex-direction: column; gap: 34px; }

	/* ---- the word, stood up ----
	   Across the bottom there is no room for it on a phone: the svg is
	   scaled to cover a 375px-wide box, so `slice` throws away both ends
	   and all you see is the middle of the word. Turned a quarter-turn it
	   runs down the right-hand edge instead, where the footer is tall and
	   the space is free.

	   The box is laid out unrotated and then turned about its own centre,
	   so every number below describes the word BEFORE the quarter-turn:
	   --band is the short side (the width of the stripe once it is stood
	   up) and the long side is four times it, matching the 1200x300
	   viewBox exactly so `slice` has nothing left to cut.

	   The turn is ANTICLOCKWISE, so the word reads bottom-to-top: the S
	   sits at the foot of the run and the Y at the head of it, the way a
	   word set down a spine reads. Clockwise would put the Y at the
	   bottom and read the other way about.

	   `margin-right` puts that centre on the footer's right edge, offset
	   inwards by 0.28 of the stripe, so the letters run off the right the
	   way they run off both sides on a wide screen. `margin-bottom` drops
	   the whole run to the foot of the footer: turned, the word stands
	   4 x --band tall about that same centre, so holding the centre
	   1.5 x --band above the bottom edge lands the foot of the run
	   exactly on the footer's bottom edge, so the S sits ON it with no
	   dark band left under the word. That margin is the knob, and 1.5 is
	   the hinge: above it a gap opens under the S, below it the S runs
	   off the bottom the way the word does across the bottom on a wide
	   screen. */
	.sf-pf__word {
		--band: clamp(150px, 42vw, 210px);

		top: auto;
		right: 0;
		bottom: 0;
		left: auto;
		width: calc(var(--band) * 4);
		height: var(--band);
		margin-right: calc(var(--band) * -1.72);
		margin-bottom: calc(var(--band) * 1.5);
		transform: rotate(-90deg);
		transform-origin: center;
	}
}

/* no pointer to follow — or the word stood on its end, where the js hands
   the light back because the turned box no longer maps to the letters:
   leave it softly lit rather than dark */
@media (hover: none), (max-width: 640px) {
	.sf-pf__word-lit { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
	.sf-pf__word-lit { transition: none; }

	.sf-pf.is-ready .sf-pf__top > *,
	.sf-pf.is-ready .sf-pf__bar { opacity: 1; transform: none; }
}
