/*
Theme Name: Flat Four Syndicate
Theme URI: https://flatfoursyndicate.com/
Author: Flat Four Syndicate
Description: Public block theme for Flat Four Syndicate: a simple, invitation-oriented landing page and join form. Member functionality is provided by the Flat Four Syndicate Portal plugin.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffs-theme
*/

/* ---------------------------------------------------------------------------
   Homepage: classic air-cooled Volkswagen flavor.
   --------------------------------------------------------------------------- */

.ffs-home {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f3e9d2;
	/* Subtle "garage floor" texture using layered dots. */
	background-image: radial-gradient( rgba(33, 29, 24, 0.05) 1.5px, transparent 1.5px );
	background-size: 22px 22px;
	overflow: hidden;
}

/* Soft chrome-like glow behind the hero. */
.ffs-home::before {
	content: "";
	position: absolute;
	top: -20%;
	left: 50%;
	width: min(900px, 120vw);
	height: min(900px, 120vw);
	transform: translateX(-50%);
	background: radial-gradient( circle, rgba(230, 169, 44, 0.22), transparent 60% );
	pointer-events: none;
}

.ffs-hero {
	position: relative;
	background: #fbf5e6;
	border: 2px solid #211d18;
	border-radius: 22px;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
	box-shadow: 12px 12px 0 0 #211d18;
	max-width: 760px;
}

.ffs-eyebrow {
	margin: 0;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #c2402d;
}

.ffs-hero-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.65rem, 2.5vw, 1.1rem);
}

.ffs-hero-brand .ffs-logo {
	margin: 0;
	flex-shrink: 0;
}

.ffs-hero-brand .ffs-logo img {
	display: block;
	width: 128px;
	height: 128px;
	object-fit: contain;
}

.ffs-title {
	margin: 0;
	text-transform: uppercase;
	color: #211d18;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 3px 3px 0 rgba(230, 169, 44, 0.55);
}

/* Three-color racing stripe under the title. */
.ffs-stripes {
	height: 12px;
	width: clamp(180px, 40%, 320px);
	margin: 0.4rem auto 0.6rem;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		#c2402d 0 33.34%,
		#e6a92c 33.34% 66.67%,
		#3f7d96 66.67% 100%
	);
}

.ffs-tagline {
	margin: 0;
	font-weight: 600;
	color: #211d18;
}

/* Understated centered label listing the models. */
.ffs-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.1rem 0 0;
	color: #6f6452;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ffs-badge__text {
	display: inline;
	text-align: center;
}

.ffs-badge__row,
.ffs-badge__sep {
	display: inline;
}

/* Short stripe flourishes on either side of the label. */
.ffs-badge::before,
.ffs-badge::after {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 999px;
	background: #c2402d;
	flex-shrink: 0;
}

.ffs-badge::after {
	background: #3f7d96;
}

/* Chunky CTA with a hard offset shadow. */
.ffs-cta .wp-block-button__link {
	border: 2px solid #211d18;
	box-shadow: 4px 4px 0 0 #211d18;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.ffs-cta .wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 0 #211d18;
}

.ffs-cta .wp-block-button__link:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 0 #211d18;
}

/* Secondary "ghost" CTA: outline on the cream hero. */
.ffs-cta--ghost .wp-block-button__link {
	background-color: transparent;
	color: #211d18;
}

.ffs-cta--ghost .wp-block-button__link:hover {
	background-color: #211d18;
	color: #fbf5e6;
}

/* Racing-stripe band along the top of the footer. */
footer.wp-block-group {
	border-top: 6px solid transparent;
	border-image: linear-gradient(
			90deg,
			#c2402d 0 33.34%,
			#e6a92c 33.34% 66.67%,
			#3f7d96 66.67% 100%
		)
		1;
}

@media (max-width: 600px) {
	.ffs-hero {
		box-shadow: 8px 8px 0 0 #211d18;
	}

	.ffs-hero-brand {
		flex-direction: column;
		gap: 0.85rem;
	}

	.ffs-hero-brand .ffs-logo img {
		width: 96px;
		height: 96px;
	}

	.ffs-hero-brand .ffs-title {
		text-align: center;
	}

	.ffs-badge__text {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.3rem;
	}

	.ffs-badge__sep {
		display: none;
	}
}

