/* ProSiteGuide Lite — minimal base styles. Elementor handles page design. */

:root {
	--psg-primary: #1D4ED8;
	--psg-primary-dark: #1E3A8A;
	--psg-ink: #0F172A;
	--psg-text: #334155;
	--psg-muted: #475569;
	--psg-line: #E2E8F0;
	--psg-surface: #F8FAFC;
	--psg-radius: 14px;
	--psg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--psg-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--psg-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--psg-primary);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--psg-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--psg-ink);
	line-height: 1.2;
	margin: 1.6em 0 0.5em;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

p, ul, ol, figure, blockquote, table {
	margin: 0 0 1.25em;
}

blockquote {
	border-left: 3px solid var(--psg-primary);
	padding-left: 1.25rem;
	color: var(--psg-muted);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	border: 1px solid var(--psg-line);
	padding: 0.7rem 0.9rem;
	text-align: left;
}

th {
	background: var(--psg-surface);
}

:focus-visible {
	outline: 2px solid var(--psg-primary);
	outline-offset: 2px;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 100000;
	background: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.container--narrow {
	max-width: 808px;
}

.site-main {
	padding: 56px 0 80px;
}

.site-main--elementor {
	padding: 0;
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid var(--psg-line);
	background: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
	flex-wrap: wrap;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--psg-ink);
	text-decoration: none;
}

.custom-logo {
	display: block;
	max-height: 44px;
	width: auto;
}

.site-nav .menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.site-nav a {
	color: var(--psg-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--psg-primary);
}

.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0 0 12px;
}

.nav-toggle,
.nav-toggle-label {
	display: none;
}

.psg-menu-hint {
	font-size: 0.9rem;
}

@media (max-width: 860px) {
	.nav-toggle-label {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--psg-line);
		border-radius: 10px;
		cursor: pointer;
		font-size: 1.2rem;
		color: var(--psg-ink);
	}

	.site-nav {
		display: none;
		width: 100%;
		padding-bottom: 16px;
	}

	.nav-toggle:checked ~ .site-nav {
		display: block;
	}

	.site-nav .menu {
		flex-direction: column;
		gap: 4px;
	}

	.site-nav a {
		display: block;
		padding: 10px 0;
	}
}

/* ---------- Posts ---------- */
.entry-title {
	margin-top: 0;
}

.entry-meta {
	color: var(--psg-muted);
	font-size: 0.9rem;
}

.entry-thumbnail img {
	border-radius: var(--psg-radius);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.page-header {
	margin-bottom: 40px;
}

.page-title {
	margin-top: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.card {
	border: 1px solid var(--psg-line);
	border-radius: var(--psg-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.card__body {
	padding: 20px 22px 24px;
}

.card__cat {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--psg-primary);
}

.card__title {
	font-size: 1.2rem;
	margin: 6px 0 8px;
}

.card__title a {
	color: var(--psg-ink);
	text-decoration: none;
}

.card__excerpt {
	color: var(--psg-muted);
	font-size: 0.95rem;
	margin: 0;
}

.pagination,
.nav-links {
	display: flex;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--psg-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--psg-text);
}

.page-numbers.current {
	background: var(--psg-primary);
	border-color: var(--psg-primary);
	color: #fff;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	font: inherit;
	padding: 12px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 10px;
}

button,
input[type="submit"] {
	font: inherit;
	font-weight: 600;
	background: var(--psg-primary);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	background: var(--psg-primary-dark);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--psg-line);
	background: var(--psg-surface);
	font-size: 0.9rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.site-footer__copy {
	margin: 0;
	color: var(--psg-muted);
}

.footer-menu a {
	color: var(--psg-muted);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--psg-ink);
}

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text,
figcaption { font-size: 0.85rem; color: var(--psg-muted); }
