/*
Theme Name: FootBros Block Theme
Theme URI: https://footbros.co.uk/
Author: FootBros
Author URI: https://footbros.co.uk/
Description: Original Gutenberg block theme for the FootBros socks, shoes, sales, swaps and community marketplace.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
Text Domain: footbros-theme
License: Proprietary
*/

:root {
	--fb-navy-950: #080e1c;
	--fb-navy-900: #04224e;
	--fb-blue-700: #0349b8;
	--fb-blue-600: #045edd;
	--fb-blue-500: #0878f9;
	--fb-cyan-400: #00a7ff;
	--fb-ice-100: #dce9f7;
	--fb-ice-50: #f3f8fd;
	--fb-silver-400: #b2b4b8;
	--fb-white: #ffffff;
	--fb-shadow-sm: 0 0.4rem 1.2rem rgb(4 34 78 / 10%);
	--fb-shadow-md: 0 0.9rem 2.4rem rgb(4 34 78 / 16%);
	--fb-shadow-lg: 0 1.75rem 5rem rgb(4 34 78 / 24%);
	--fb-blue-gradient: linear-gradient(135deg, var(--fb-navy-900) 0%, var(--fb-blue-600) 58%, var(--fb-cyan-400) 100%);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-wrap: anywhere;
	background:
		radial-gradient(circle at 8% 0%, rgb(0 167 255 / 10%), transparent 28rem),
		radial-gradient(circle at 100% 18%, rgb(4 94 221 / 8%), transparent 34rem),
		var(--fb-ice-50);
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--fb-cyan-400);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer {
	margin-top: auto;
}

.fb-site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	backdrop-filter: blur(16px);
	background: rgb(255 255 255 / 94%);
	border-bottom: 1px solid rgb(4 94 221 / 18%);
	box-shadow: 0 0.35rem 1.4rem rgb(4 34 78 / 9%);
}

.admin-bar .fb-site-header {
	top: 32px;
}

.fb-site-logo,
.fb-site-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.fb-site-logo img,
.wp-block-site-logo img {
	display: block;
	width: clamp(10.5rem, 16vw, 15rem);
	height: auto;
	max-height: 5.25rem;
	object-fit: contain;
}

.fb-site-header .wp-block-navigation-item__content {
	position: relative;
	text-decoration: none;
}

.fb-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset: auto 0 -0.45rem;
	height: 0.17rem;
	border-radius: 999px;
	background: var(--fb-blue-gradient);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease;
}

.fb-site-header .wp-block-navigation-item__content:hover::after,
.fb-site-header .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
}

.fb-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		linear-gradient(112deg, rgb(8 14 28 / 98%), rgb(4 34 78 / 97%) 52%, rgb(4 94 221 / 94%));
}

.fb-hero::before,
.fb-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	filter: blur(1px);
}

.fb-hero::before {
	width: min(46vw, 38rem);
	aspect-ratio: 1;
	right: -12rem;
	top: -13rem;
	background: rgb(0 167 255 / 32%);
}

.fb-hero::after {
	width: min(32vw, 24rem);
	aspect-ratio: 1;
	left: -10rem;
	bottom: -13rem;
	background: rgb(4 94 221 / 26%);
}

.fb-kicker {
	color: var(--fb-blue-600);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.76rem;
	font-weight: 850;
}

.fb-hero .fb-kicker,
.fb-footer .fb-kicker {
	color: var(--fb-cyan-400);
}

.fb-panel,
.fb-feature-card,
.fb-category-card,
.fb-content-card {
	border: 1px solid rgb(4 94 221 / 16%);
	border-radius: var(--wp--custom--radius--large);
	background: var(--fb-white);
	box-shadow: var(--fb-shadow-sm);
}

.fb-panel {
	box-shadow: var(--fb-shadow-lg);
}

.fb-feature-card,
.fb-category-card,
.fb-content-card {
	height: 100%;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fb-feature-card::before {
	content: "";
	display: block;
	width: 3.75rem;
	height: 0.28rem;
	margin-bottom: 1rem;
	border-radius: 999px;
	background: var(--fb-blue-gradient);
}

.fb-feature-card:hover,
.fb-category-card:hover,
.fb-content-card:hover {
	transform: translateY(-0.25rem);
	border-color: rgb(4 94 221 / 42%);
	box-shadow: var(--fb-shadow-md);
}

.fb-category-card {
	position: relative;
	overflow: hidden;
	min-height: 17rem;
}

.fb-category-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 0.35rem;
	background: var(--fb-blue-gradient);
}

.fb-category-card::after {
	content: "";
	position: absolute;
	inset: auto -3rem -4rem auto;
	width: 10rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgb(0 167 255 / 13%);
}

.fb-stat-strip {
	border-block: 1px solid rgb(4 94 221 / 16%);
}

.fb-listing-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.fb-listing-meta > * {
	padding: 0.4rem 0.7rem;
	border: 1px solid rgb(4 94 221 / 15%);
	border-radius: 999px;
	background: var(--fb-ice-100);
	color: var(--fb-navy-900);
	font-size: 0.85rem;
	font-weight: 750;
}

.fb-listing-image img,
.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--large);
}

.fb-query-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid rgb(4 94 221 / 14%);
	border-radius: var(--wp--custom--radius--large);
	background: var(--fb-white);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.fb-query-card:hover {
	transform: translateY(-0.2rem);
	box-shadow: var(--fb-shadow-md);
}

.fb-query-card .wp-block-post-featured-image {
	margin: 0;
	background: linear-gradient(135deg, var(--fb-ice-100), var(--fb-white));
}

.fb-query-card .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.fb-query-card__body {
	padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
}

.wp-element-button,
.wp-block-button__link {
	box-shadow: 0 0.45rem 1rem rgb(4 94 221 / 20%);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--fb-blue-gradient);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
	background: transparent;
	box-shadow: none;
}

.fb-footer {
	border-top: 0.3rem solid var(--fb-blue-600);
	background:
		radial-gradient(circle at 85% 12%, rgb(0 167 255 / 20%), transparent 23rem),
		var(--fb-navy-950) !important;
}

.fb-footer .wp-block-site-logo {
	display: inline-flex;
	padding: 0.3rem 0.65rem;
	border-radius: 0.85rem;
	background: var(--fb-white);
}

.fb-footer .wp-block-site-logo img {
	width: min(13rem, 55vw);
}

.fb-footer a {
	color: var(--fb-white);
}

.fb-footer a:hover {
	color: var(--fb-cyan-400);
}

.woocommerce ul.products li.product,
.woocommerce div.product,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout form.checkout {
	border-radius: var(--wp--custom--radius--large);
}

.woocommerce ul.products li.product {
	padding: 1rem;
	border: 1px solid rgb(4 94 221 / 14%);
	background: var(--fb-white);
	box-shadow: var(--fb-shadow-sm);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 0.7rem;
	background: var(--fb-blue-gradient);
	color: var(--fb-white);
	font-weight: 800;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--fb-navy-900);
	color: var(--fb-white);
}

@media (max-width: 782px) {
	.admin-bar .fb-site-header {
		top: 46px;
	}

	.fb-site-header {
		position: relative;
		top: 0;
	}

	.fb-site-logo img,
	.wp-block-site-logo img {
		width: clamp(9.5rem, 44vw, 12.5rem);
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 1.25rem;
		background: var(--fb-white);
		color: var(--fb-navy-950);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.fb-feature-card,
	.fb-category-card,
	.fb-content-card,
	.fb-query-card,
	.fb-site-header .wp-block-navigation-item__content::after {
		transition: none;
	}
}


.fb-site-header .fb-app-nav {
	margin-left: auto;
}

.fb-site-header .wp-block-shortcode {
	margin: 0;
}

.fb-site-header .fb-app-nav__link {
	color: var(--fb-navy-900) !important;
}


/* =========================================================================
   Header navigation contrast repair — 1.1.4
   ========================================================================= */

.fb-site-header {
	color: var(--fb-navy-950);
}

.fb-site-header .wp-block-group.alignwide {
	overflow: visible;
}

.fb-site-header .fb-app-nav__link {
	color: var(--fb-navy-900) !important;
	opacity: 1 !important;
}

.fb-site-header .fb-app-nav__link:hover,
.fb-site-header .fb-app-nav__link:focus-visible,
.fb-site-header .fb-app-nav__link.is-current,
.fb-site-header .fb-app-nav__link[aria-current="page"] {
	background: var(--fb-blue-gradient) !important;
	color: var(--fb-white) !important;
}

.fb-site-header .fb-app-nav__link--account {
	background: var(--fb-blue-600) !important;
	color: var(--fb-white) !important;
}

.fb-site-header .fb-app-nav__toggle {
	border-color: var(--fb-blue-600);
	background: var(--fb-white);
	color: var(--fb-navy-900);
}

.fb-site-header .fb-app-nav__toggle:hover,
.fb-site-header .fb-app-nav__toggle:focus-visible,
.fb-site-header .fb-app-nav__toggle[aria-expanded="true"] {
	background: var(--fb-navy-900);
	color: var(--fb-white);
}

.fb-site-header .wp-block-navigation-item__content,
.fb-site-header .wp-block-navigation-item__label {
	color: var(--fb-navy-900) !important;
	opacity: 1 !important;
}

.fb-site-header .wp-block-navigation-item__content:hover,
.fb-site-header .wp-block-navigation-item__content:focus-visible {
	color: var(--fb-blue-600) !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--fb-white) !important;
	color: var(--fb-navy-950) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--fb-navy-900) !important;
}

.wp-block-navigation__responsive-container-open {
	color: var(--fb-navy-900) !important;
}

.wp-block-navigation__responsive-container-open:hover,
.wp-block-navigation__responsive-container-open:focus-visible {
	color: var(--fb-blue-600) !important;
}

@media (max-width: 940px) {
	.fb-site-header .fb-app-nav__links {
		background: var(--fb-white);
	}

	.fb-site-header .fb-app-nav__link {
		color: var(--fb-navy-900) !important;
	}
}


/* Launch-repair additions — 1.1.5 */
.fb-demo-badge {
	display: inline-flex;
	align-items: center;
	margin-right: .45rem;
	padding: .18rem .5rem;
	border-radius: 999px;
	background: #00a7ff;
	color: #080e1c;
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

body.login-action-login,
body.login-action-register,
body.login-action-lostpassword {
	color: #080e1c;
}

.fb-legal-review {
	border-left: .35rem solid #00a7ff;
}


/* Control Centre compatibility — 1.2.0 */
.fb-footer-shortcode {
	width: 100%;
}

.fb-footer-shortcode .fb-managed-footer {
	margin: 0;
}
