/* Webworld – small layer on top of theme.json. Keep this file lean. */

/* No gaps between header / main / footer. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.ww-main--flush > .wp-block-post-content > :first-child { margin-block-start: 0; }
.ww-main--flush > .wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* Top bar */
.ww-topbar {
	background: var(--ww-topbar-bg, var(--wp--preset--color--secondary));
	color: var(--ww-topbar-color, var(--wp--preset--color--white));
	font-size: 0.85rem;
	padding: 0.45rem var(--wp--style--root--padding-right, 1.5rem) 0.45rem var(--wp--style--root--padding-left, 1.5rem);
}
.ww-topbar a { color: inherit; text-decoration: none; }
.ww-topbar a:hover { text-decoration: underline; }
.ww-topbar__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.ww-topbar__right { display: flex; gap: 1rem; align-items: center; }
.ww-topbar--off { opacity: .6; text-align: center; }
@media (max-width: 600px) {
	.ww-topbar-hide-mobile .ww-topbar { display: none; }
	.ww-topbar__inner { justify-content: center; text-align: center; }
}

/* Header */
.ww-header { background: var(--ww-header-bg, var(--wp--preset--color--base)); transition: box-shadow .2s; }
.ww-sticky-header .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.ww-header-shadow.ww-scrolled header.wp-block-template-part .ww-header { box-shadow: 0 4px 20px rgba(15, 23, 42, .08); }
.ww-hide-site-title .ww-header .ww-site-title { display: none; }
.wp-block-site-logo img { width: var(--ww-logo-width, auto); height: auto; }
.ww-header .wp-block-navigation a { text-decoration: none; }
.ww-header-cta .wp-block-button__link { padding: .6em 1.3em; white-space: nowrap; }
@media (max-width: 781px) { .ww-header-cta { display: none; } }

/* Page title area */
.ww-page-header { background: var(--ww-page-title-bg, transparent); }

/* Footer */
.ww-footer {
	background: var(--ww-footer-bg, var(--wp--preset--color--secondary)) !important;
	color: var(--ww-footer-color, var(--wp--preset--color--white)) !important;
	font-size: .95rem;
}
.ww-footer a { text-decoration: none; opacity: .9; }
.ww-footer a:hover { opacity: 1; text-decoration: underline; }
.ww-footer__sep { opacity: .15; border-color: currentColor !important; }
.ww-footer-brand img { max-width: 180px; height: auto; }
.ww-footer-brand__title { font-size: 1.3rem; font-weight: 700; }
.ww-copyright { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; opacity: .8; }

/* Social icons */
.ww-social { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.ww-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: color-mix(in srgb, currentColor 12%, transparent);
	color: inherit; transition: background .2s, transform .2s;
}
.ww-social a:hover { background: var(--wp--preset--color--primary); color: #fff; transform: translateY(-2px); }
.ww-social--small a { width: 26px; height: 26px; background: transparent; }
.ww-social--small svg { width: 15px; height: 15px; }

/* Contact info */
.ww-contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ww-contact-info a { color: inherit; }

/* Back to top */
.ww-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 99;
	width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--primary); color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.ww-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Typography helpers */
.ww-headings-upper :is(h1, h2, h3, h4, h5, h6) { text-transform: uppercase; letter-spacing: .02em; }

/* Section helpers used by patterns */
.ww-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--wp--preset--color--primary); }
.ww-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	transition: box-shadow .2s, transform .2s;
}
.ww-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, .08); transform: translateY(-3px); }
.ww-stat .wp-block-heading { margin-bottom: 0; color: var(--wp--preset--color--primary); }
.wp-block-image img, .wp-block-cover { border-radius: var(--wp--custom--radius); }
.wp-block-cover.alignfull { border-radius: 0; }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Placeholders shown only in the editor */
.ww-placeholder { display: inline-block; padding: .4rem .7rem; border: 1px dashed currentColor; opacity: .6; font-size: .8rem; }
