/*
 * BrandExpand theme polish that theme.json cannot express:
 * hover states, card shadows, sticky header, responsive tweaks.
 */

/* Sticky, softly elevated header */
.bx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(1.4) blur(8px);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}

.bx-header .wp-block-site-logo img {
	border-radius: 8px;
}

.bx-header .wp-block-navigation a {
	transition: color 0.15s ease;
}

.bx-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

/* Hero */
.bx-hero {
	background:
		radial-gradient(1100px 460px at 85% -10%, color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent), transparent 70%),
		radial-gradient(800px 400px at 8% 110%, color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent), transparent 70%),
		var(--wp--preset--color--base);
}

.bx-hero-title {
	max-width: 22ch;
	margin-left: auto;
	margin-right: auto;
}

.bx-hero-intro {
	max-width: 44ch;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.85;
}

/* Post cards */
.bx-card {
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	height: 100%;
	padding-bottom: 1.25rem;
}

.bx-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(0, 0, 0, 0.09);
}

.bx-card .bx-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

.bx-card .wp-block-post-date,
.bx-card .wp-block-post-title,
.bx-card .wp-block-post-excerpt {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

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

.bx-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

.bx-card .wp-block-post-excerpt {
	font-size: 0.95rem;
	opacity: 0.85;
}

.bx-card .wp-block-post-excerpt__more-link {
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* Single post */
.bx-single-featured img {
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.bx-post-meta {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bx-post-nav a {
	text-decoration: none;
	font-weight: 600;
}

/* Buttons */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Footer */
.bx-footer a {
	color: var(--wp--preset--color--base);
}

.bx-footer .wp-block-site-tagline {
	opacity: 0.75;
}

.bx-footer-separator {
	border-color: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent) !important;
	opacity: 0.4;
}

.bx-powered-by {
	opacity: 0.6;
}

.bx-powered-by a {
	text-decoration: none;
}

/* About */
.bx-about-rule {
	border-color: var(--wp--preset--color--accent) !important;
	width: 56px;
	border-width: 3px;
}

/* Contact */
.bx-contact {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 6%, var(--wp--preset--color--base));
}

/* Responsive */
@media (max-width: 1024px) {
	.bx-post-grid.wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.bx-post-grid.wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.bx-post-nav {
		flex-direction: column;
		gap: 0.75rem;
	}
}
