/*
Theme Name: PilingGear
Theme URI: https://pilinggear.com/
Author: PilingGear
Description: Lightweight industrial B2B theme for the PilingGear parts catalog.
Version: 0.4.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: pilinggear
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--pg-dark: #10161a;
	--pg-dark-2: #182126;
	--pg-dark-3: #222d33;
	--pg-orange: #f05a0a;
	--pg-orange-hover: #d84c00;
	--pg-orange-soft: #fff2e9;
	--pg-white: #ffffff;
	--pg-bg: #f4f6f7;
	--pg-bg-2: #e9edef;
	--pg-border: #dce1e4;
	--pg-text: #162027;
	--pg-text-muted: #667078;
	--pg-blue: #173f78;
	--pg-blue-soft: #edf3fb;
	--pg-radius-sm: 0.25rem;
	--pg-radius-md: 0.45rem;
	--pg-radius-lg: 0.75rem;
	--pg-container: 90rem;
	--pg-header-height: 4.875rem;
	--pg-shadow-sm: 0 0.4rem 1.2rem rgba(16, 22, 26, 0.08);
	--pg-shadow-md: 0 1rem 2.75rem rgba(16, 22, 26, 0.14);
	--pg-transition: 180ms ease;
	font-family: Inter, Arial, Helvetica, sans-serif;
	color: var(--pg-text);
	background: var(--pg-white);
	font-synthesis: none;
	line-height: 1.55;
}

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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--pg-text);
	background: var(--pg-white);
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
}

body.pg-nav-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--pg-text);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

p {
	color: var(--pg-text-muted);
}

:focus-visible {
	outline: 0.2rem solid #ff7a2f;
	outline-offset: 0.2rem;
}

::selection {
	color: var(--pg-white);
	background: var(--pg-orange);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	inset-inline-start: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	color: var(--pg-text);
	background: var(--pg-white);
	box-shadow: var(--pg-shadow-md);
	font-weight: 700;
}

.pg-icon {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
}

.pg-main {
	min-height: 60vh;
	padding-block: clamp(3rem, 7vw, 6.5rem);
}

.pg-content {
	max-width: 50rem;
}

.pg-entry + .pg-entry {
	margin-block-start: 4rem;
	padding-block-start: 4rem;
	border-block-start: 1px solid var(--pg-border);
}

.pg-entry__title {
	margin-block-end: 1.5rem;
	font-size: clamp(2.25rem, 6vw, 4rem);
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
