/* Brandale frontend baseline.
   Built around CSS variables — Elementor controls most layouts,
   so this is the safety net for non-Elementor pages. */

:root {
	--brandale-primary: #6366f1;
	--brandale-secondary: #0ea5e9;
	--brandale-accent: #f59e0b;
	--brandale-dark: #0f172a;
	--brandale-light: #f8fafc;
	--brandale-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--brandale-radius: 12px;
}

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

html {
	scroll-behavior: smooth;
}

body.brandale {
	margin: 0;
	font-family: var(--brandale-font);
	color: var(--brandale-dark);
	background: var(--brandale-light);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
}

body.brandale-canvas {
	margin: 0;
	font-family: var(--brandale-font);
}

a {
	color: var(--brandale-primary);
	text-decoration: none;
}
a:hover {
	color: var(--brandale-secondary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
	padding-block: 32px;
}

.skip-link.screen-reader-text {
	position: absolute;
	inset-inline-start: -9999px;
	top: -9999px;
}
.skip-link.screen-reader-text:focus {
	inset-inline-start: 16px;
	top: 16px;
	background: var(--brandale-dark);
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	z-index: 100000;
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}
.site-header__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-title {
	color: var(--brandale-dark);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -.01em;
}
.site-tagline {
	color: #6b7280;
	font-size: .875rem;
	margin: 2px 0 0;
}
.site-nav__menu {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
}
.site-nav__menu a {
	color: var(--brandale-dark);
	font-weight: 500;
}

/* Post cards */
.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.post-card {
	background: #fff;
	border-radius: var(--brandale-radius);
	overflow: hidden;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.post-card__thumb img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.post-card__body {
	padding: 18px;
}
.post-card .entry-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 600;
}
.post-card .entry-title a {
	color: var(--brandale-dark);
}
.post-card .entry-meta {
	color: #94a3b8;
	font-size: .85rem;
	margin-bottom: 10px;
}
.post-card__more {
	display: inline-block;
	margin-top: 8px;
	color: var(--brandale-primary);
	font-weight: 600;
}

/* Single content */
.single-post .entry-header,
.single-page .entry-header {
	margin-block-end: 24px;
}
.single-post .entry-title,
.single-page .entry-title {
	font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
	font-weight: 700;
	letter-spacing: -.02em;
}
.single-post .entry-meta {
	color: #6b7280;
	margin-top: 6px;
}
.entry-thumbnail img {
	width: 100%;
	border-radius: var(--brandale-radius);
	margin-block-end: 24px;
}
.entry-content {
	font-size: 1.05rem;
}
.entry-content > * + * {
	margin-block-start: 1.2em;
}

/* Buttons */
.button {
	display: inline-block;
	padding: 10px 18px;
	background: var(--brandale-primary);
	color: #fff !important;
	border-radius: 10px;
	font-weight: 600;
	transition: background .15s ease, transform .12s ease;
}
.button:hover {
	background: var(--brandale-secondary);
	transform: translateY(-1px);
}

/* Footer */
.site-footer {
	background: var(--brandale-dark);
	color: #cbd5e1;
	margin-top: 48px;
}
.site-footer a {
	color: #fff;
}
.site-footer__widgets,
.site-footer__bottom,
.site-footer__social {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}
.site-footer__widgets {
	padding-block: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer__social {
	display: flex;
	gap: 10px;
	list-style: none;
	padding-block: 18px;
	margin: 0;
}
.site-footer__social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background .15s ease;
}
.site-footer__social a:hover {
	background: var(--brandale-primary);
}
.site-footer__social svg {
	width: 18px;
	height: 18px;
}
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-block: 18px;
	font-size: .875rem;
	border-top: 1px solid rgba(255, 255, 255, .08);
	flex-wrap: wrap;
	gap: 12px;
}
.site-footer__menu {
	list-style: none;
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
}
.brandale-legal-links {
	max-width: 1200px;
	margin-inline: auto;
	padding: 8px 20px;
	font-size: .8rem;
	text-align: center;
	color: #94a3b8;
}

/* Forms */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}
.search-form input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font: inherit;
}
.search-form button {
	padding: 10px 18px;
	border: 0;
	background: var(--brandale-primary);
	color: #fff;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
}

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-block-start: 32px;
	flex-wrap: wrap;
}
.page-numbers {
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	color: var(--brandale-dark);
}
.page-numbers.current {
	background: var(--brandale-primary);
	color: #fff;
	border-color: var(--brandale-primary);
}

/* Comments */
.comments-area {
	margin-block-start: 40px;
}
.comments-title {
	margin-block-end: 16px;
}
.comment-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.comment-list .comment-body {
	padding: 14px 16px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e5e7eb;
}
