/*
Theme Name: Footwear 2.0
Theme URI: https://footwear.se/
Author: Mikael Linder
Description: Premium blocktema för Footwear.se – beslut, guider, verktyg och tydligt märkt kommersiellt innehåll.
Version: 2.2.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: footwear-v2
*/

@font-face {
	font-display: swap;
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	src: url("./assets/fonts/archivo-variable-regular.woff2") format("woff2");
}

/* Bas */

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
}

* {
	box-sizing: border-box;
}

img,
svg {
	height: auto;
	max-width: 100%;
}

a {
	text-decoration-color: var(--wp--preset--color--signal);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--cobalt);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
}

.screen-reader-text:focus {
	background: var(--wp--preset--color--surface);
	border: 2px solid var(--wp--preset--color--ink);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--ink);
	display: block;
	font-weight: 700;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.fw-main,
.fw-article,
.fw-page,
.fw-archive {
	min-width: 0;
}

.wp-site-blocks > .wp-block-template-part + main {
	margin-block-start: 0;
}

/* Sidhuvud */

.fw-site-header {
	backdrop-filter: blur(16px);
	background: rgb(255 255 255 / 0.94);
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: relative;
	z-index: 50;
}

.fw-header-inner {
	min-height: 74px;
}

.fw-logo {
	align-items: center;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	font-family: var(--wp--preset--font-family--display);
	font-style: normal;
	gap: 0.68rem;
	text-decoration: none;
}

.fw-logo-copy {
	display: grid;
	gap: 0.18rem;
}

.fw-logo:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.fw-logo-mark {
	flex: 0 0 auto;
	height: 42px;
	width: 42px;
}

.fw-logo-word {
	font-size: 1.12rem;
	font-weight: 850;
	letter-spacing: 0.015em;
	line-height: 1;
}

.fw-logo-tld {
	color: var(--wp--preset--color--cobalt);
	font-weight: 800;
}

.fw-logo-sub {
	color: var(--wp--preset--color--slate);
	font-size: 0.59rem;
	font-weight: 720;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.fw-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.94rem;
	font-weight: 720;
	font-style: normal;
	text-decoration: none;
}

.fw-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--cobalt);
}

.fw-nav .current-menu-item > .wp-block-navigation-item__content,
.fw-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--signal);
	text-decoration-thickness: 4px;
	text-underline-offset: 0.42rem;
}

/* Hero */

.fw-hero {
	background-color: var(--wp--preset--color--night);
	background-image: radial-gradient(circle at 78% 18%, rgb(36 89 209 / 0.24), transparent 34%), linear-gradient(145deg, #0a1526, #0c1b30 58%, #09111e);
	color: var(--wp--preset--color--surface);
	margin-top: 0;
	overflow: hidden;
	padding-block: clamp(2.25rem, 4vw, 3.5rem);
	position: relative;
}

.fw-hero::after {
	background-image: repeating-linear-gradient(135deg, transparent 0 30px, rgb(246 196 69 / 0.045) 30px 32px);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.fw-hero-grid {
	align-items: start;
	display: grid !important;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 0.95fr) minmax(25rem, 0.9fr);
	position: relative;
	z-index: 1;
}

.fw-hero-copy {
	max-width: 48rem;
}

.fw-hero-kicker,
.fw-kicker {
	align-items: center;
	display: flex;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.76rem;
	font-weight: 820;
	gap: 0.55rem;
	letter-spacing: 0.13em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.fw-hero-kicker::before,
.fw-kicker::before {
	background: var(--wp--preset--color--signal);
	content: '';
	height: 5px;
	width: 28px;
}

.fw-hero h1 {
	color: var(--wp--preset--color--surface);
	font-size: clamp(2.65rem, 6.2vw, 5.25rem);
	font-style: normal;
	letter-spacing: -0.055em;
	line-height: 0.98;
	margin: 0;
	max-width: 12ch;
}

.fw-hero-lead {
	color: rgb(255 255 255 / 0.84);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.5;
	max-width: 40rem;
}

.fw-hero .wp-block-button__link {
	background: var(--wp--preset--color--signal);
	border: 2px solid var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
}

.fw-hero .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.fw-hero .is-style-outline .wp-block-button__link {
	background: rgb(10 21 38 / 0.4);
	border-color: rgb(255 255 255 / 0.72);
	color: var(--wp--preset--color--surface);
}

.fw-hero-proof {
	color: rgb(255 255 255 / 0.68);
	font-size: 0.88rem;
	font-weight: 650;
}

.fw-hero-side {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.fw-hero-visual {
	background: #111820;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.3);
	display: block;
	margin: 0;
	overflow: hidden;
}

.fw-hero-visual img {
	aspect-ratio: 2 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.fw-hero-tool {
	background: rgb(255 255 255 / 0.97);
	border: 1px solid rgb(255 255 255 / 0.45);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.32);
	color: var(--wp--preset--color--ink);
	max-height: none;
	overflow: visible;
	padding: clamp(1rem, 2vw, 1.35rem);
}

.fw-hero-tool > :first-child {
	margin-top: 0;
}

.fw-hero-tool > :last-child {
	margin-bottom: 0;
}

.fw-hero-tool > .fw-kicker {
	margin-bottom: 0.45rem;
}

.fw-hero-tool > h2 {
	font-size: clamp(1.65rem, 2.5vw, 2.15rem);
	margin-block: 0 0.65rem;
}

.fw-hero-tool > .wp-block-buttons {
	margin-top: 0.75rem;
}

.fw-hero-tool > .has-small-font-size {
	margin-top: 0.65rem;
}

.fw-hero-tool .fwc-tool {
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: clamp(1rem, 3vw, 1.45rem);
}

.fw-hero-tool .fwc-tool-head h2 {
	font-size: 1.45rem;
}

.fw-hero-tool .fwc-tool-head > p:last-child,
.fw-hero-tool .fwc-choice-group:nth-of-type(2),
.fw-hero-tool .fwc-choice-group:nth-of-type(3),
.fw-hero-tool .fwc-button--quiet {
	display: none;
}

.fw-hero-tool .fwc-choice-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fw-hero-tool .fwc-form::after {
	color: var(--wp--preset--color--slate);
	content: 'Fortsätt med underlag och prioritet på den fullständiga skoväljaren.';
	display: block;
	font-size: 0.82rem;
	margin-top: 0.8rem;
}

.fw-hero-tool .fwc-actions,
.fw-hero-tool .fwc-form-error,
.fw-hero-tool .fwc-result {
	display: none !important;
}

.fw-hero-tool .fwc-choice-grid label span {
	font-size: 0.88rem;
}

.fw-hero-tool-link {
	display: block;
	font-weight: 800;
	margin: 0.5rem 1.45rem 1.25rem;
}

.fw-hero-steps {
	counter-reset: hero-step;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fw-hero-steps li {
	border-top: 1px solid var(--wp--preset--color--line);
	counter-increment: hero-step;
	font-size: 0.88rem;
	padding: 0.55rem 0 0.55rem 2.25rem;
	position: relative;
}

.fw-hero-steps li::before {
	align-items: center;
	background: var(--wp--preset--color--signal);
	border-radius: 50%;
	color: var(--wp--preset--color--ink);
	content: counter(hero-step);
	display: flex;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.76rem;
	font-weight: 850;
	height: 1.65rem;
	justify-content: center;
	left: 0;
	position: absolute;
	top: 0.6rem;
	width: 1.65rem;
}

/* Förtroenderad och huvudsektioner */

.fw-proof-strip {
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
	margin: 0;
	padding-block: 1rem;
}

.fw-proof-grid {
	display: grid !important;
	gap: 0.7rem 1.5rem;
	grid-template-columns: repeat(4, 1fr);
}

.fw-proof-item {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

.fw-section {
	padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.fw-section--surface {
	background: var(--wp--preset--color--surface);
}

.fw-section--night {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--surface);
}

.fw-section--night h2,
.fw-section--night h3,
.fw-section--night a {
	color: var(--wp--preset--color--surface);
}

.fw-section-head {
	align-items: end;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.fw-section-head > div {
	max-width: 48rem;
}

.fw-section-head h2 {
	margin: 0.25rem 0 0;
}

.fw-section-head p:last-child {
	color: var(--wp--preset--color--slate);
}

.fw-section-link {
	font-weight: 800;
	white-space: nowrap;
}

/* Ingångskort */

.fw-entry-grid {
	display: grid !important;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fw-entry-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	min-height: 20rem;
	overflow: hidden;
	padding: 1.25rem;
	position: relative;
}

.fw-entry-card::before {
	background-position: center;
	background-size: cover;
	border-radius: 12px;
	content: '';
	display: block;
	filter: saturate(0.88);
	height: 9rem;
	margin-bottom: 1.2rem;
	transition: transform 220ms ease, filter 220ms ease;
}

.fw-entry-card:hover::before {
	filter: saturate(1.05);
	transform: scale(1.025);
}

.fw-entry-card--fit::before {
	background-image: url("./assets/images/skostorlek.webp");
}

.fw-entry-card--work::before {
	background-image: url("./assets/images/arbetsskor.webp");
}

.fw-entry-card--sport::before {
	background-image: url("./assets/images/hero_start.webp");
}

.fw-entry-card--types::before {
	background-image: url("./assets/images/skor-pa-rad.webp");
}

.fw-entry-card h3 {
	font-size: 1.35rem;
	margin: 0 0 0.55rem;
}

.fw-entry-card h3 a {
	text-decoration: none;
}

.fw-entry-card h3 a::after {
	content: '';
	inset: 0;
	position: absolute;
}

.fw-entry-card p {
	color: var(--wp--preset--color--slate);
	margin: 0;
}

.fw-entry-card .fw-arrow {
	color: var(--wp--preset--color--cobalt);
	font-weight: 850;
	margin-top: auto;
	padding-top: 1rem;
}

.fw-entry-card .fw-arrow,
.fw-entry-card > p {
	position: relative;
	z-index: 1;
}

/* Artikelkort och arkiv */

.fw-post-grid.wp-block-post-template {
	gap: 1rem;
}

.fw-article-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.fw-article-card:hover {
	box-shadow: 0 18px 52px rgb(17 24 32 / 0.1);
	transform: translateY(-3px);
}

.fw-article-card .wp-block-post-featured-image {
	background: #e9e8e3;
	margin: 0;
}

.fw-article-card .wp-block-post-featured-image:empty,
.fw-article-card .wp-block-post-featured-image:not(:has(img)) {
	display: none;
}

.fw-article-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	display: block;
	object-fit: cover;
	transition: transform 280ms ease;
	width: 100%;
}

.fw-article-card:hover .wp-block-post-featured-image img {
	transform: scale(1.025);
}

.fw-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.2rem;
}

.fw-card-body .wp-block-post-terms {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fw-card-body .wp-block-post-terms a {
	color: var(--wp--preset--color--cobalt);
	text-decoration: none;
}

.fw-card-body .wp-block-post-title {
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.14;
	margin: 0.6rem 0;
}

.fw-card-body .wp-block-post-title a {
	text-decoration: none;
}

.fw-card-body .wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
	font-size: 0.94rem;
}

.fw-card-body .wp-block-post-date {
	color: var(--wp--preset--color--slate);
	font-size: 0.8rem;
	margin-top: auto;
	padding-top: 0.8rem;
}

/* Redaktionell sida och artikel */

.fw-page-hero,
.fw-archive-hero,
.fw-article-hero {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: clamp(2.8rem, 6vw, 5rem);
}

.fw-page-hero h1,
.fw-archive-hero h1,
.fw-article-hero h1 {
	font-size: clamp(2.35rem, 6vw, 4.8rem);
	margin: 0;
	max-width: 18ch;
}

.fw-article-meta {
	align-items: center;
	color: var(--wp--preset--color--slate);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.86rem;
	gap: 0.5rem 1rem;
	margin-top: 1rem;
}

.fw-article-meta .wp-block-post-terms a {
	color: var(--wp--preset--color--cobalt);
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.fw-article-featured {
	margin-top: clamp(-3.5rem, -4vw, -2.2rem);
	position: relative;
	z-index: 2;
}

.fw-article-featured img {
	border-radius: 20px;
	box-shadow: 0 22px 60px rgb(17 24 32 / 0.16);
	max-height: 38rem;
	object-fit: cover;
	width: 100%;
}

.fw-content-wrap {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.fw-content-wrap .wp-block-post-content > p:first-child,
.fw-content-wrap .wp-block-post-content > .has-large-font-size:first-child {
	color: #273341;
	font-size: clamp(1.18rem, 2.2vw, 1.45rem);
	line-height: 1.55;
}

.fw-content-wrap .wp-block-post-content h2 {
	margin-top: clamp(2.6rem, 6vw, 4.5rem);
}

.fw-content-wrap .wp-block-post-content h3 {
	margin-top: 2rem;
}

.fw-content-wrap .wp-block-post-content li + li {
	margin-top: 0.5rem;
}

.fw-content-wrap .wp-block-post-content figure.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

.fw-content-wrap .wp-block-post-content table {
	border-collapse: collapse;
	min-width: 34rem;
	width: 100%;
}

.fw-content-wrap .wp-block-post-content th,
.fw-content-wrap .wp-block-post-content td {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.75rem;
	text-align: left;
}

.fw-content-wrap .wp-block-post-content th {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--surface);
}

.fw-post-nav {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 3rem;
	padding-top: 1.5rem;
}

.fw-post-nav a {
	font-weight: 800;
}

/* Sporta-samband och annonsyta */

.fw-sister-panel {
	align-items: center;
	background: var(--wp--preset--color--night);
	border-radius: 20px;
	color: var(--wp--preset--color--surface);
	display: grid !important;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: clamp(1.4rem, 4vw, 2.4rem);
}

.fw-sister-panel h2,
.fw-sister-panel a {
	color: var(--wp--preset--color--surface);
}

.fw-sister-panel h2 {
	margin: 0 0 0.55rem;
}

.fw-sister-panel p {
	color: rgb(255 255 255 / 0.74);
	margin: 0;
}

.fw-sister-panel .wp-block-button__link {
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}

/* Sökning och paginering */

.wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--surface);
	border: 1px solid #7a858f;
	border-radius: 10px;
	padding: 0.25rem;
}

.wp-block-search__input {
	background: transparent;
	border: 0;
	font: inherit;
	min-height: 46px;
}

.wp-block-query-pagination {
	gap: 0.6rem;
	margin-top: 2rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	align-items: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	display: inline-flex;
	min-height: 44px;
	padding: 0.4rem 0.75rem;
	text-decoration: none;
}

/* Sidfot */

.fw-site-footer {
	background: var(--wp--preset--color--night);
	color: rgb(255 255 255 / 0.78);
	padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.fw-site-footer h2,
.fw-site-footer h3,
.fw-site-footer a,
.fw-site-footer .wp-block-site-title a {
	color: var(--wp--preset--color--surface);
}

.fw-footer-grid {
	display: grid !important;
	gap: 2rem;
	grid-template-columns: 1.5fr repeat(3, 1fr);
}

.fw-footer-about {
	max-width: 28rem;
}

.fw-footer-about p {
	color: rgb(255 255 255 / 0.65);
}

.fw-footer-heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.fw-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fw-footer-links li + li {
	margin-top: 0.55rem;
}

.fw-footer-links a {
	text-decoration-color: rgb(246 196 69 / 0.7);
}

.fw-footer-bottom {
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: 0.78rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
}

/* Responsivitet */

@media (max-width: 1040px) {
	.fw-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.88fr);
	}

	.fw-entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fw-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.fw-site-header {
		backdrop-filter: none;
	}

	.fw-header-inner {
		min-height: 66px;
	}

	.fw-hero-grid {
		grid-template-columns: 1fr;
	}

	.fw-hero-copy {
		max-width: 42rem;
	}

	.fw-hero-side {
		max-width: 42rem;
	}

	.fw-hero-tool {
		max-height: none;
		max-width: 34rem;
	}

	.fw-proof-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fw-section-head {
		align-items: start;
		flex-direction: column;
		gap: 0.8rem;
	}

	.fw-sister-panel {
		grid-template-columns: 1fr;
	}

	.fw-post-grid.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.fw-logo-mark {
		height: 36px;
		width: 36px;
	}

	.fw-logo-word {
		font-size: 0.98rem;
	}

	.fw-logo-sub {
		font-size: 0.52rem;
		letter-spacing: 0.09em;
	}

	.fw-hero h1 {
		font-size: clamp(2.45rem, 11.5vw, 3.45rem);
	}

	.fw-hero-visual img {
		aspect-ratio: 4 / 5;
		object-position: center;
	}

	.fw-hero .wp-block-buttons {
		gap: 0.7rem;
	}

	.fw-hero .wp-block-button__link {
		padding-inline: 0.8rem;
	}

	.fw-hero-tool .fwc-choice-grid {
		grid-template-columns: 1fr 1fr;
	}

	.fw-proof-grid,
	.fw-entry-grid,
	.fw-footer-grid,
	.fw-post-grid.wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.fw-proof-item {
		text-align: left;
	}

	.fw-entry-card {
		min-height: 0;
	}

	.fw-page-hero h1,
	.fw-archive-hero h1,
	.fw-article-hero h1 {
		font-size: clamp(2.2rem, 12vw, 3.6rem);
	}

	.fw-article-featured {
		margin-top: -1.5rem;
	}

	.fw-article-featured img {
		border-radius: 12px;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--night) !important;
		color: var(--wp--preset--color--surface) !important;
		padding: 1.25rem;
	}

	.wp-block-navigation__responsive-container.is-menu-open a,
	.wp-block-navigation__responsive-container.is-menu-open button {
		color: var(--wp--preset--color--surface) !important;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
