/* Webdazy — custom CSS layer (complements Tailwind) */

:root {
	--wd-brand: #18c0b4;
	--wd-slate: #486060;
}

/* Smooth scrolling + offset so sticky header never covers anchor targets */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Reveal-on-scroll animation */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Sticky header — elevated state after scroll */
#site-header.is-scrolled {
	border-bottom-color: rgba(30, 43, 43, 0.08);
	box-shadow: 0 8px 30px -18px rgba(30, 43, 43, 0.35);
	background-color: rgba(255, 255, 255, 0.96);
}

/* Custom-logo image sizing (when set via Customizer) */
.custom-logo { height: 44px; width: auto; }

/* Nicer default selection colour */
::selection { background: var(--wd-brand); color: #fff; }

/* Scrollbar (subtle, on supported browsers) */
* { scrollbar-color: var(--wd-brand) #eef2f2; }
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: var(--wd-brand); border-radius: 999px; }
*::-webkit-scrollbar-track { background: #eef2f2; }

/* WordPress core alignment helpers inside .prose content */
.prose img { border-radius: 0.75rem; }
.prose .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Pagination links */
.wp-block-query-pagination, .navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}
.navigation .nav-links a,
.navigation .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 0.6rem;
	border: 1px solid #e2e8e8;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--wd-slate);
	background: #fff;
}
.navigation .nav-links .current {
	background: var(--wd-brand);
	border-color: var(--wd-brand);
	color: #fff;
}
