/*
Theme Name:  Watera Minimal
Theme URI:   https://watera.com
Author:      Watera / Binas
Description: Block theme (Full Site Editing) for the Watera Group website. Its design system reproduces the layout of ovivowater.com — centred logo with a full-width mega menu, square uppercase buttons, photo tiles with slide-up overlays, a grey news band and a white footer — re-coloured with the Watera brand palette and set in Nunito Sans. All pages ship as block patterns.
Version:     1.0.14
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: watera-minimal
*/

/* ------------------------------------------------------------------
   Tokens (colours come from theme.json presets; these are helpers)
   ------------------------------------------------------------------ */
:root {
	--wm-primary: var(--wp--preset--color--primary);
	--wm-primary-light: var(--wp--preset--color--primary-light);
	--wm-cyan: var(--wp--preset--color--cyan);
	--wm-navy: var(--wp--preset--color--navy);
	--wm-dark: var(--wp--preset--color--dark);
	--wm-grey: var(--wp--preset--color--grey);
	--wm-tint: var(--wp--preset--color--tint);
	--wm-pill: var(--wp--preset--color--pill);
	--wm-light: var(--wp--preset--color--light);
	--wm-line: #E5E6E6;
	--wm-shadow: 0 15px 35px -10px rgba(84, 86, 91, 0.3);
	--wm-shadow-hover: 0 15px 35px -10px rgba(84, 86, 91, 0.4);
	--wm-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h16M11.5 1.5 17 7l-5.5 5.5'/%3E%3C/svg%3E");
	--wm-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	--wm-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath fill='%23003CA5' d='M400 300H120C60 300 20 250 20 190c0-80 80-150 190-150 60 0 110 20 150 50-50-10-100 0-140 30-50 40-40 110 20 140 60 30 130 10 160-30z'/%3E%3C/svg%3E");
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { overflow-x: hidden; font-size: 15px; line-height: 1.5; }
@media (min-width: 992px) { body { font-size: 18px; line-height: 1.86; } }
body.wm-nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Headings (sizes step 28→36→50 / 25→35→40 like the reference) */
h1, .wm-h1 { font-size: 28px; line-height: 1.2; letter-spacing: 0.28px; font-weight: 400; }
h2, .wm-h2 { font-size: 25px; line-height: 1.4; font-weight: 400; }
h3, .wm-h3 { font-size: 20px; line-height: 1.25; font-weight: 700; margin-bottom: 25px; }
h5, .wm-microcopy { font-size: 14px; font-weight: 700; color: var(--wm-primary); }
@media (min-width: 992px) {
	h1, .wm-h1 { font-size: 36px; letter-spacing: 0.5px; }
	h2, .wm-h2 { font-size: 35px; }
	h3, .wm-h3 { font-size: 22px; letter-spacing: 0.5px; }
	h5, .wm-microcopy { font-size: 16px; letter-spacing: 0.5px; }
}
@media (min-width: 1200px) {
	h1, .wm-h1 { font-size: 50px; }
	h2, .wm-h2 { font-size: 40px; }
}
.wm-microcopy { display: block; margin: 0 0 15px; line-height: 24px; text-transform: none; }
.wm-microcopy a { color: inherit; text-decoration: none; font-weight: inherit; }
.wm-uppercase { text-transform: uppercase; }
.wm-date, .wm-small { font-size: 14px; color: var(--wm-grey); }

/* Body copy inside content areas */
.wm-wysiwyg p, .wm-image-text p, .wm-section p { color: var(--wm-dark); }
.wm-wysiwyg ul, .wm-wysiwyg ol, .wm-list { padding: 0; margin: 0 0 23px; list-style: none; }
.wm-wysiwyg ul li, .wm-wysiwyg ol li, .wm-list li { position: relative; padding: 0 0 10px 25px; color: var(--wm-grey); }
.wm-wysiwyg ul li::before, .wm-list li::before { content: "\2022"; position: absolute; left: 0; top: 0; font-size: 20px; line-height: 32px; color: var(--wm-grey); }
.wm-wysiwyg ol { counter-reset: wm; }
.wm-wysiwyg ol li::before { counter-increment: wm; content: counter(wm) "."; position: absolute; left: 0; top: 0; color: var(--wm-grey); }
.wm-list--check li::before { content: "\2713"; color: var(--wm-primary); font-weight: 900; font-size: 16px; }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.wp-block-button__link, .wm-btn {
	display: inline-block;
	border: 2px solid var(--wm-primary);
	background: var(--wm-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.21;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	padding: 15px 20px;
	border-radius: 0;
	transition: 0.3s;
	cursor: pointer;
}
@media (min-width: 992px) { .wp-block-button__link, .wm-btn { padding: 20px 25px; } }
.wp-block-button__link:hover, .wm-btn:hover { background: var(--wm-primary-light); border-color: var(--wm-primary-light); color: #fff; }

/* White button with brand border (hero secondary CTA) */
.is-style-outline .wp-block-button__link, .wm-btn--outline { background: #fff; color: var(--wm-primary); border-color: var(--wm-primary); }
.is-style-outline .wp-block-button__link:hover, .wm-btn--outline:hover { background: var(--wm-primary); color: #fff; }

/* Transparent button with white border (on photos) */
.is-style-alt .wp-block-button__link, .wm-btn--alt { background: transparent; color: #fff; border-color: #fff; }
.is-style-alt .wp-block-button__link:hover, .wm-btn--alt:hover { background: #fff; color: var(--wm-primary); border-color: #fff; }

/* Smart Slider 3 button layers. The plugin styles its links with an ID-based rule and
   "transition: none", so theme classes alone cannot restyle them. Put "wm-btn" (filled),
   "wm-btn wm-btn--outline" (white, brand border) or "wm-btn wm-btn--alt" (transparent, white
   border) in the Class field of the button layer — either the button's own Class field (the
   link) or the layer's Class field (the wrapper) — to get the theme buttons, hover included. */
.n2-ss-slider .n2-ss-layer.wm-btn { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.n2-ss-slider a.wm-btn.n2-ow, .n2-ss-slider a.wm-btn.n2-ow:focus,
.n2-ss-slider .wm-btn a.n2-ow, .n2-ss-slider .wm-btn a.n2-ow:focus {
	transition: background-color 0.3s, border-color 0.3s, color 0.3s !important;
	background: var(--wm-primary) !important;
	border: 2px solid var(--wm-primary) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1.21 !important;
	text-transform: uppercase !important;
	padding: 15px 20px !important;
	box-shadow: none !important;
}
.n2-ss-slider a.wm-btn.n2-ow div, .n2-ss-slider .wm-btn a.n2-ow div { color: inherit !important; }
@media (min-width: 992px) { .n2-ss-slider a.wm-btn.n2-ow, .n2-ss-slider .wm-btn a.n2-ow { padding: 20px 25px !important; } }
.n2-ss-slider a.wm-btn.n2-ow:hover, .n2-ss-slider .wm-btn:hover a.n2-ow { background: var(--wm-primary-light) !important; border-color: var(--wm-primary-light) !important; color: #fff !important; }
.n2-ss-slider a.wm-btn--outline.n2-ow, .n2-ss-slider .wm-btn--outline a.n2-ow { background: #fff !important; color: var(--wm-primary) !important; }
.n2-ss-slider a.wm-btn--outline.n2-ow:hover, .n2-ss-slider .wm-btn--outline:hover a.n2-ow { background: var(--wm-primary) !important; border-color: var(--wm-primary) !important; color: #fff !important; }
.n2-ss-slider a.wm-btn--alt.n2-ow, .n2-ss-slider .wm-btn--alt a.n2-ow { background: transparent !important; color: #fff !important; border-color: #fff !important; }
.n2-ss-slider a.wm-btn--alt.n2-ow:hover, .n2-ss-slider .wm-btn--alt:hover a.n2-ow { background: #fff !important; border-color: #fff !important; color: var(--wm-primary) !important; }

/* Smart Slider 3 bullets: thin lines instead of dots (white on the photo hero; the active one is longer). */
.n2-ss-slider .nextend-bullet-bar { background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; } /* the plugin draws a white pill behind the bar */
.n2-ss-slider .nextend-bullet-bar .n2-bullet {
	width: 32px !important;
	height: 4px !important;
	padding: 6px 0 !important; /* 16px tall click target, padding stays transparent */
	background: rgba(255, 255, 255, 0.5) !important;
	background-clip: content-box !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 5px !important;
	transition: background-color 0.3s, width 0.3s !important;
}
.n2-ss-slider .nextend-bullet-bar .n2-bullet.n2-active,
.n2-ss-slider .nextend-bullet-bar .n2-bullet:hover,
.n2-ss-slider .nextend-bullet-bar .n2-bullet:focus { background-color: #fff !important; width: 48px !important; }

/* "Learn more →" text link */
.is-style-link-arrow .wp-block-button__link, .is-style-link-arrow-white .wp-block-button__link, .wm-link,
.wp-block-query .wp-block-post-excerpt__more-link, a.wm-read-more {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	border: 0;
	padding: 10px 0;
	color: var(--wm-primary);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.21;
	text-transform: uppercase;
	text-decoration: none;
	transition: 0.3s;
}
.is-style-link-arrow .wp-block-button__link::after, .is-style-link-arrow-white .wp-block-button__link::after, .wm-link::after,
.wp-block-query .wp-block-post-excerpt__more-link::after, a.wm-read-more::after {
	content: "";
	display: inline-block;
	width: 19px;
	height: 14px;
	margin-left: 13px;
	background: currentColor;
	-webkit-mask: var(--wm-arrow) no-repeat center / contain;
	mask: var(--wm-arrow) no-repeat center / contain;
	transition: margin-left 0.4s;
}
.is-style-link-arrow .wp-block-button__link:hover, .wm-link:hover, .wp-block-query .wp-block-post-excerpt__more-link:hover, a.wm-read-more:hover { color: var(--wm-grey); }
.is-style-link-arrow .wp-block-button__link:hover::after, .wm-link:hover::after, a.wm-read-more:hover::after, .wp-block-query .wp-block-post-excerpt__more-link:hover::after { margin-left: 20px; }
.is-style-link-arrow-white .wp-block-button__link, .wm-link--white { color: #fff; }
.is-style-link-arrow-white .wp-block-button__link:hover, .wm-link--white:hover { color: rgba(255, 255, 255, 0.75); }
.wp-block-post-excerpt__more-text { margin-top: 10px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
/* WordPress wraps the part in <header class="wp-block-template-part">. On mobile that wrapper is the sticky
   element (the header itself has no room to stick inside its own-height container); on desktop it stays in
   flow and keeps its height (set by nav.js) while .wm-header becomes a fixed compact bar. */
.wp-site-blocks > header.wp-block-template-part { position: relative; z-index: 1031; }
@media (max-width: 991px) { .wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; } }
@keyframes wm-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.wm-header {
	position: relative;
	background: #fff;
	transition: box-shadow 0.3s;
}
.wm-header.is-pinned { box-shadow: var(--wm-shadow); }
/* Core gives a group with a background 1.25em of padding; keep only a few pixels around the logo. */
.wp-block-group.wm-header.has-background { padding-top: 6px; padding-bottom: 6px; }
/* No block gap under the header: the hero starts right below the bar. */
.wp-site-blocks > main.wm-main { margin-top: 0; margin-block-start: 0; }
.wm-header__inner > .wm-nav { margin-top: 0; } /* no block gap between logo row and menu bar */
.wm-header__inner { position: relative; padding: 0 15px; }
.wm-header__logo { padding: 4px 0; justify-content: flex-start; }
.wm-header__logo img { width: 130px; max-width: 100%; height: auto; }
.wm-header__logo .wp-block-site-logo { margin: 0; }

/* Menu bar */
.wm-nav { position: static; }
.wm-nav__toggle {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.wm-nav__toggle span { display: block; height: 2px; width: 20px; background: var(--wm-navy); transition: 0.25s; }
.wm-nav.is-open .wm-nav__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.wm-nav.is-open .wm-nav__toggle span:nth-child(2) { opacity: 0; }
.wm-nav.is-open .wm-nav__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.wm-nav__panel { display: none; }
.wm-nav.is-open .wm-nav__panel { display: block; position: fixed; inset: 0; top: 63px; background: #fff; overflow-y: auto; padding: 0 15px 40px; z-index: 1040; }
.wm-nav__list, .wm-mega__list, .wm-mega__sub, .wm-nav__utility { list-style: none; margin: 0; padding: 0; }
.wm-nav__list > li { position: relative; border-bottom: 1px solid var(--wm-line); }
.wm-nav__list > li > a {
	display: block;
	padding: 14px 44px 14px 0;
	color: var(--wm-navy);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}
.wm-nav__chevron { display: none; }
.wm-nav__expand {
	position: absolute;
	right: 0;
	top: 4px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.wm-nav__expand::before { content: ""; display: block; width: 14px; height: 10px; margin: 0 auto; background: var(--wm-primary); -webkit-mask: var(--wm-chevron) no-repeat center / contain; mask: var(--wm-chevron) no-repeat center / contain; transition: transform 0.25s; }
.wm-nav__list > li.is-open > .wm-nav__expand::before { transform: rotate(180deg); }
.wm-mega { display: none; }
.wm-nav__list > li.is-open > .wm-mega { display: block; }
.wm-mega__inner { padding: 0 0 15px; }
.wm-mega__title { display: none; }
.wm-mega__list > li > a { display: block; padding: 8px 0; color: var(--wm-grey); font-size: 15px; text-decoration: none; font-weight: 400; }
.wm-mega__sub { padding: 0 0 8px 15px; }
.wm-mega__sub li a { display: block; padding: 5px 0; color: var(--wm-grey); font-size: 14px; text-decoration: none; font-weight: 400; }
.wm-mega__sub li a:hover, .wm-mega__list > li > a:hover, .wm-mega__title a:hover { color: var(--wm-primary); }
.wm-nav__side { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 20px 0 0; }
.wm-nav__search-toggle { border: 0; background: transparent; color: var(--wm-navy); cursor: pointer; padding: 8px; display: inline-flex; }
.wm-nav__utility { display: flex; flex-wrap: wrap; gap: 10px; }
.wm-nav__utility a {
	display: inline-block;
	background: var(--wm-pill);
	color: var(--wm-navy);
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 20px;
	transition: 0.3s;
}
.wm-nav__utility a:hover { background: var(--wm-primary); color: #fff; }
.wm-nav__search { display: none; gap: 10px; padding: 15px 0 0; width: 100%; }
.wm-nav__search.is-open { display: flex; }
.wm-nav__search input { flex: 1; border: 1px solid #CDCDCD; padding: 12px 15px; font: inherit; font-size: 16px; min-width: 0; }
.wm-nav__search button { padding: 12px 20px; }

@media (min-width: 992px) {
	.wm-header__logo { justify-content: center; padding: 0 0 6px; }
	.wm-header__logo img { width: 228px; }
	/* pinned: fixed compact bar, menu only (core gives the white group 1.25em padding, reduced here) */
	.wp-block-group.wm-header.has-background.is-pinned, .wm-header.is-pinned { position: fixed; top: 0; left: 0; right: 0; padding-top: 8px; padding-bottom: 8px; animation: wm-slide-down 0.3s; }
	.wm-header.is-pinned .wm-header__logo { display: none; }
	.wm-header.is-pinned .wm-nav { margin-top: 0; }
	.wm-nav__toggle { display: none; }
	.wm-nav__panel, .wm-nav.is-open .wm-nav__panel { display: flex; position: relative; inset: auto; align-items: center; padding: 0; background: transparent; overflow: visible; }
	.wm-nav__panel::before { content: ""; position: absolute; top: 0; left: -100vw; right: -100vw; height: 1px; background: #F2F2F2; }
	.wm-nav__main { flex: 1 1 0%; }
	.wm-nav__list { display: flex; align-items: center; justify-content: space-between; }
	.wm-nav__list > li { border: 0; margin: 0 7px; position: static; }
	.wm-nav__list > li:first-child { margin-left: 0; }
	.wm-nav__list > li > a { position: relative; display: flex; align-items: center; padding: 16px 0; font-size: 13px; line-height: 1; }
	.wm-nav__list > li > a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; transition: 0.3s; }
	.wm-nav__list > li > a:hover::before, .wm-nav__list > li.is-open > a::before, .wm-nav__list > li.current-menu-item > a::before, .wm-nav__list > li.current-menu-ancestor > a::before, .wm-nav__list > li.current_page_parent > a::before { background: var(--wm-primary); }
	.wm-nav__list > li > a:hover { opacity: 0.85; }
	.wm-nav__chevron { display: inline-block; width: 10px; height: 7px; margin-left: 8px; background: var(--wm-navy); -webkit-mask: var(--wm-chevron) no-repeat center / contain; mask: var(--wm-chevron) no-repeat center / contain; }
	.wm-nav__expand { display: none; }
	/* Mega panel: grey title column on the left (the bar item), white area with the sub-items in wrapped columns.
	   The grey band runs from the viewport edge to the end of the first quarter of the 1280px container. */
	.wm-mega {
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
		background: linear-gradient(90deg, var(--wm-light) 0, var(--wm-light) calc(15px + (100vw - 30px) * 0.25), #fff calc(15px + (100vw - 30px) * 0.25), #fff 100%);
		border-top: 1px solid var(--wm-line);
		border-bottom: 1px solid var(--wm-line);
		box-shadow: var(--wm-shadow);
		min-height: 450px;
		z-index: 1035;
	}
	.wm-mega__inner { display: flex; align-items: stretch; max-width: 1280px; margin: 0 auto; padding: 0 15px; min-height: 450px; }
	.wm-mega__title { display: block; flex: 0 0 25%; max-width: 25%; padding: 40px 30px 40px 0; }
	.wm-mega__title a, .wm-mega__title span { display: inline-flex; align-items: center; color: var(--wm-navy); font-size: 20px; text-transform: uppercase; text-decoration: none; font-weight: 400; line-height: 1.3; }
	.wm-mega__title a::after { content: ""; display: inline-block; flex: none; width: 14px; height: 11px; margin-left: 14px; background: currentColor; -webkit-mask: var(--wm-arrow) no-repeat center / contain; mask: var(--wm-arrow) no-repeat center / contain; }
	.wm-mega__list { flex: 1 1 0%; display: flex; flex-flow: column wrap; align-content: flex-start; max-height: 450px; padding: 40px 0 40px 5rem; margin: 0; }
	.wm-mega__list > li { max-width: 280px; margin: 0 60px 1.5rem 0; line-height: 1.5rem; }
	.wm-mega__list > li > a { display: inline-block; padding: 0; color: var(--wm-grey); font-size: 18px; }
	.wm-mega__list > li.current-menu-item > a { color: var(--wm-primary); }
	.wm-mega__sub { padding: 6px 0 0; }
	.wm-mega__sub li { margin-bottom: 6px; line-height: 1.4; }
	.wm-mega__sub li a { padding: 0; font-size: 15px; }
	.wm-nav__side { padding: 0; gap: 0; align-self: stretch; }
	.wm-nav__search-toggle { margin: 0 20px 0 10px; }
	.wm-nav__utility { gap: 0; align-self: stretch; margin-left: 15px; }
	.wm-nav__utility li { display: flex; }
	.wm-nav__utility a { display: flex; align-items: center; padding: 10px 20px; font-size: 12px; }
	.wm-nav__search { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: var(--wm-shadow); z-index: 1036; }
}
@media (min-width: 1200px) {
	.wm-nav__list > li { margin: 0 11px; }
	.wm-nav__list > li > a { font-size: 15px; }
	.wm-nav__utility a { font-size: 14px; }
	.wm-nav__utility { margin-left: 30px; }
}
@media (min-width: 1300px) {
	.wm-nav__list > li > a { font-size: 17px; }
	.wm-mega__list > li > a { font-size: 20px; }
	.wm-mega { background: linear-gradient(90deg, var(--wm-light) 0, var(--wm-light) calc(50vw - 320px), #fff calc(50vw - 320px), #fff 100%); }
}

/* Breadcrumb */
.wm-breadcrumb { margin: 0 0 30px; }
.wm-breadcrumb p { margin: 0; font-size: 13px; color: var(--wm-grey); }
.wm-breadcrumb a { color: var(--wm-grey); font-weight: 400; text-decoration: none; }
.wm-breadcrumb a:hover { color: var(--wm-primary); text-decoration: underline; }
.wm-breadcrumb__sep { padding: 0 4px; }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.wm-main > .wp-block-post-content > * + * { margin-top: 0; }
.wm-section { padding-left: 15px; padding-right: 15px; }

/* Hero (cover block) */
.wm-hero { min-height: 75vh; }
.wm-hero .wp-block-cover__inner-container { width: 100%; max-width: 1280px; padding: 0 15px; }
.wm-hero h1 { color: #fff; margin: 0; max-width: 780px; }
.wm-hero h1 span { color: #fff; }
.wm-hero .wm-microcopy { color: #fff; margin-bottom: 10px; }
.wm-hero .wm-hero__text { color: #fff; font-weight: 900; padding: 20px 0 10px; max-width: 780px; }
.wm-hero .wp-block-buttons { margin-top: 30px; gap: 25px; }

/* Icon row */
.wm-icons { text-align: center; }
.wm-icons h2 { margin: 0 auto 50px; max-width: 900px; }
.wm-icons__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 20px; }
.wm-icons__row .wp-block-column { flex: 1 1 200px; max-width: 280px; text-align: center; margin: 0 auto; }
.wm-icon { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.wm-icon img { max-width: 48px; width: 48px; height: 48px; }
.wm-icon span, .wm-icon p { font-size: 20px; line-height: 24px; margin: 0; color: var(--wm-dark); text-align: left; }

@media (max-width: 781px) { .wm-icons__row .wp-block-column { flex-basis: auto; } }

/* Image + text */
.wm-image-text { align-items: center; }
.wm-image-text .wp-block-image { margin: 0; }
.wm-image-text .wp-block-image img, .wm-image-text .wp-block-post-featured-image img { width: 100%; max-height: 450px; object-fit: cover; }
.wm-image-text h1, .wm-image-text h2 { margin: 15px 0 20px; }
@media (min-width: 1200px) { .wm-image-text h1, .wm-image-text h2 { font-size: 40px; line-height: 1.2; } }
.wm-image-text__text > * + * { margin-top: 0; }
.wm-image-text .wp-block-buttons { margin-top: 20px; }

/* Stats (count-up cards keep the .w-stat hook used by counters.js) */
.wm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.w-stat { text-align: center; padding: 30px 20px; border-top: 4px solid var(--wm-primary); background: #fff; }
.w-stat > p:first-of-type { font-size: 40px; line-height: 1.1; font-weight: 400; color: var(--wm-navy); margin: 0 0 8px; letter-spacing: 0.5px; }
.w-stat > p:last-of-type { font-size: 14px; color: var(--wm-grey); margin: 0; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
@media (min-width: 1200px) { .w-stat > p:first-of-type { font-size: 50px; } }

/* Generic tile (white card with photo on top) */
.wm-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.wm-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--wm-grey);
	text-decoration: none;
	height: 100%;
	overflow: hidden;
	box-shadow: 0 15px 35px -10px rgba(84, 86, 91, 0);
	transition: box-shadow 0.3s, color 0.3s;
}
.wm-tile::before {
	content: "";
	position: absolute;
	right: -110px;
	bottom: -80px;
	width: 300px;
	height: 225px;
	background: var(--wm-swoosh) no-repeat center / contain;
	opacity: 0.08;
	transform: translate3d(0, 0, 0);
	transition: transform 0.4s;
	z-index: 1;
	pointer-events: none;
}
.wm-tile:hover { box-shadow: var(--wm-shadow-hover); }
.wm-tile:hover::before { transform: translate3d(-40px, -30px, 0); }
.wm-tile__image { position: relative; z-index: 2; padding-bottom: 75%; background: center / cover no-repeat; }
.wm-tile .wp-block-image, .wm-tile .wp-block-post-featured-image { margin: 0; position: relative; z-index: 2; }
.wm-tile .wp-block-image img, .wm-tile .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wm-tile__content, .wm-tile > .wp-block-group { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px; }
@media (min-width: 992px) { .wm-tile__content, .wm-tile > .wp-block-group { padding: 25px; } }
@media (min-width: 1200px) { .wm-tile__content, .wm-tile > .wp-block-group { padding: 30px; } }
.wm-tile h3, .wm-tile .wp-block-post-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0.5px; text-transform: uppercase; color: var(--wm-navy); margin: 0 0 15px; transition: color 0.3s; }
.wm-tile .wp-block-post-title a { color: inherit; text-decoration: none; font-weight: inherit; }
.wm-tile:hover h3, .wm-tile:hover .wp-block-post-title { color: var(--wm-primary); }
.wm-tile p, .wm-tile .wp-block-post-excerpt__excerpt { color: var(--wm-grey); line-height: 1.5; margin: 0 0 12px; flex-grow: 1; }
.wm-tile .wm-microcopy, .wm-tile .wp-block-post-terms { font-size: 14px; font-weight: 400; color: var(--wm-grey); margin: 0 0 10px; }
.wm-tile .wp-block-post-terms a { color: inherit; text-decoration: none; font-weight: 400; }
.wm-tile .wp-block-post-terms a:hover { color: var(--wm-primary); }
.wm-tile .wp-block-post-date { font-size: 14px; color: var(--wm-grey); margin: 0 0 15px; }
.wm-tile .wp-block-buttons { margin-top: auto; }
.wm-tile .wp-block-post-excerpt { margin-top: 0; display: flex; flex-direction: column; flex: 1; }
.wm-tile .wp-block-post-excerpt__more-text { margin-top: auto; }

/* Solid tile (brand background, hover to tint) */
.wm-tile--alt { background: var(--wm-primary); color: #fff; }
.wm-tile--alt::before { opacity: 0.25; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath fill='%23ffffff' d='M400 300H120C60 300 20 250 20 190c0-80 80-150 190-150 60 0 110 20 150 50-50-10-100 0-140 30-50 40-40 110 20 140 60 30 130 10 160-30z'/%3E%3C/svg%3E"); }
.wm-tile--alt h3, .wm-tile--alt p, .wm-tile--alt .wm-link { color: #fff; }
.wm-tile--alt:hover { background: var(--wm-tint); color: var(--wm-grey); }
.wm-tile--alt:hover h3 { color: var(--wm-navy); }
.wm-tile--alt:hover p { color: var(--wm-grey); }
.wm-tile--alt:hover .wm-link, .wm-tile--alt:hover .wp-block-button__link { color: var(--wm-primary); }
.wm-tile--alt:hover::before { opacity: 0.08; background-image: var(--wm-swoosh); }

/* Explore tiles (portrait photo, shade overlay, hover brand tint) */
.wm-explore { background: var(--wm-tint); }
.wm-explore__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px; }
.wm-explore__head h2 { text-transform: uppercase; margin: 0; }
.wm-explore__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
@media (min-width: 992px) { .wm-explore__grid { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; } }
.wm-xtile {
	position: relative;
	display: block;
	padding-bottom: 123%;
	background: center / cover no-repeat;
	border: 1px solid #BBBBBD;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 15px 35px -10px rgba(0, 60, 165, 0);
	transition: box-shadow 0.3s;
	z-index: 0;
}
.wm-xtile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(84, 86, 91, 0) 0%, rgba(0, 0, 0, 0.7) 100%); opacity: 1; transition: opacity 0.3s; z-index: 1; }
.wm-xtile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 60, 165, 0.45); opacity: 0; transition: opacity 0.3s; z-index: 1; }
.wm-xtile:hover { box-shadow: 0 15px 35px -10px rgba(0, 60, 165, 0.5); }
.wm-xtile:hover::before { opacity: 0; }
.wm-xtile:hover::after { opacity: 1; }
.wm-xtile__content { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 10px; }
@media (min-width: 992px) { .wm-xtile__content { padding: 30px; } }
.wm-xtile__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: #fff; margin-bottom: 3px; }
@media (min-width: 992px) { .wm-xtile__title { font-size: 20px; margin-bottom: 0; } }
.wm-xtile .wm-link { color: #fff; }
.wm-xtile:hover .wm-link { color: #fff; }
.wm-xtile:hover .wm-link::after { margin-left: 20px; }

/* Centered banner on a photo */
.wm-banner { text-align: center; color: #fff; }
.wm-banner .wp-block-cover__inner-container { max-width: 860px; padding: 0 15px; }
.wm-banner .wm-microcopy { color: #fff; margin: 0 0 20px; }
.wm-banner h2 { color: #fff; font-weight: 700; line-height: 1.2; margin: 0; }
.wm-banner p { color: #fff; }
.wm-banner .wp-block-buttons { margin-top: 35px; justify-content: center; }
.wm-explore + .wm-banner, .wm-explore + .wp-block-cover { margin-top: -80px; }
@media (min-width: 992px) { .wm-explore + .wm-banner, .wm-explore + .wp-block-cover { margin-top: -90px; } }
@media (min-width: 1200px) { .wm-explore + .wm-banner, .wm-explore + .wp-block-cover { margin-top: -120px; } }

/* Latest news band */
.wm-news { background: var(--wm-light); position: relative; z-index: 1; }
.wm-news__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 30px; }
.wm-news__head h2, .wm-news__head h3 { text-transform: uppercase; margin: 0; font-weight: 400; }
@media (min-width: 992px) { .wm-news__head { margin-bottom: 40px; } }
.wm-news .wp-block-post-template { gap: 30px; }
.wm-news .wp-block-post-template > li, .wm-tiles-query .wp-block-post-template > li { display: flex; }
.wm-news .wp-block-post-template > li > .wm-tile, .wm-tiles-query .wp-block-post-template > li > .wm-tile { width: 100%; }

/* Resources tiles overlapping the news band */
.wm-resources { background: linear-gradient(180deg, var(--wm-light) 0%, var(--wm-light) 50%, #fff 50%, #fff 100%); }
/* Pull the solid tiles up into the news band's bottom padding only (80px) — never over the news tiles.
   !important: the pattern's inline padding-top would otherwise win. */
@media (min-width: 992px) { .wm-news + .wm-resources { margin-top: -80px; padding-top: 60px !important; } }

/* Chips (category filter) */
.wm-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wm-chips a { display: inline-block; background: var(--wm-pill); color: var(--wm-navy); font-size: 13px; font-weight: 900; text-transform: uppercase; text-decoration: none; padding: 10px 18px; transition: 0.3s; }
.wm-chips a:hover, .wm-chips a.is-active { background: var(--wm-primary); color: #fff; }

/* Gallery grid */
.wm-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 992px) { .wm-gallery { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.wm-gallery .wp-block-image { margin: 0; }
.wm-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Simple feature list (icon-less cards with border-top) */
.wm-feature { border-top: 4px solid var(--wm-primary); background: #fff; padding: 25px; height: 100%; box-shadow: 0 15px 35px -10px rgba(84, 86, 91, 0); transition: box-shadow 0.3s; }
.wm-feature:hover { box-shadow: var(--wm-shadow-hover); }
.wm-feature h3, .wm-feature h4 { text-transform: uppercase; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; }
.wm-feature p { margin: 0; color: var(--wm-grey); font-size: 16px; line-height: 1.6; }

/* Archive / single */
.wm-archive__title { text-transform: uppercase; margin-bottom: 40px; }
.wm-archive .wp-block-post-template { gap: 30px; }
.wm-archive .wp-block-post-template > li { display: flex; }
.wm-archive .wp-block-post-template > li > .wm-tile { width: 100%; }
.wm-single__intro { margin-bottom: 50px; }
.wm-single__intro h1 { margin: 15px 0 20px; }
.wm-single__intro .wp-block-post-featured-image img { width: 100%; }
.wm-single__body { margin: 0; }
.wm-single__body .wp-block-post-content > * + * { margin-top: 20px; }
.wm-single__body h2, .wm-single__body h3 { margin-top: 35px; }
.wm-tags { margin-top: 30px; font-size: 14px; }
.wm-tags a { color: var(--wm-grey); font-weight: 400; }
.wm-search-form { max-width: 620px; margin: 0 0 40px; }
.wm-search-form .wp-block-search__input { border: 1px solid #CDCDCD; padding: 12px 15px; font: inherit; border-radius: 0; }
.wm-search-form .wp-block-search__button { background: var(--wm-primary); color: #fff; border: 2px solid var(--wm-primary); font-size: 14px; font-weight: 900; text-transform: uppercase; padding: 12px 25px; border-radius: 0; }
.wm-search-form .wp-block-search__button:hover { background: var(--wm-primary-light); border-color: var(--wm-primary-light); }

/* Pagination */
.wp-block-query-pagination { margin-top: 50px; font-size: 14px; font-weight: 900; text-transform: uppercase; gap: 8px; }
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	color: var(--wm-primary);
	border: 2px solid transparent;
	text-decoration: none;
	transition: 0.3s;
}
.wp-block-query-pagination a.page-numbers:hover, .wp-block-query-pagination-previous:hover, .wp-block-query-pagination-next:hover { border-color: var(--wm-primary); }
.wp-block-query-pagination .page-numbers.current { background: var(--wm-primary); color: #fff; border-color: var(--wm-primary); }
.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow { font-weight: 900; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.wm-footer { padding: 40px 0 0; color: var(--wm-grey); background: #fff; border-top: 1px solid var(--wm-line); }
.wm-footer__inner { padding: 0 15px; }
.wm-footer__top { margin-bottom: 20px; }
.wm-footer__logo { margin: 0 0 20px; }
.wm-footer__logo img { max-width: 130px; height: auto; }
@media (min-width: 768px) { .wm-footer__logo img { max-width: 185px; } }
.wm-footer__brand .wp-block-buttons { margin: 0 0 10px; }
.wm-footer__tagline { font-size: 14px; line-height: 1.75; color: var(--wm-grey); margin: 20px 0 40px; }
@media (min-width: 992px) { .wm-footer__tagline { font-size: 16px; } }
.wm-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; line-height: 1.7; }
.wm-footer__menu > li { border-bottom: 1px solid #AAABAD; }
.wm-footer__menu > li > a { display: block; margin: 15px 0; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--wm-navy); text-decoration: none; }
.wm-footer__menu .sub-menu { list-style: none; margin: 0; padding: 0; line-height: 1.7; }
.wm-footer__menu .sub-menu li:last-child { margin-bottom: 20px; }
.wm-footer__menu .sub-menu a { font-size: 14px; font-weight: 400; color: var(--wm-grey); text-decoration: none; }
.wm-footer__menu .sub-menu a:hover, .wm-footer__menu > li > a:hover { color: var(--wm-primary); }
@media (min-width: 992px) {
	.wm-footer__menu { flex-direction: row; justify-content: flex-end; text-align: right; }
	.wm-footer__menu > li { width: 50%; border: 0; }
	.wm-footer__menu > li > a { margin: 0 0 20px; font-size: 16px; }
}
.wm-footer__socials { margin: 40px 0; gap: 30px !important; }
@media (min-width: 768px) { .wm-footer__socials { margin: 0 0 18px; gap: 50px !important; } }
.wm-footer__socials .wp-block-social-link a { color: var(--wm-primary); transition: color 0.25s; }
.wm-footer__socials .wp-block-social-link:hover { transform: none; }
.wm-footer__socials .wp-block-social-link:hover a { color: var(--wm-cyan); }
.wm-footer__lower { padding: 15px 0; border-top: 1px solid var(--wm-primary); }
.wm-footer__copyright { font-size: 12px; margin: 0; color: var(--wm-grey); }
.wm-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 30px; }
.wm-footer__legal a { font-size: 12px; font-weight: 400; color: var(--wm-grey); text-decoration: none; }
.wm-footer__legal a:hover { color: var(--wm-primary); text-decoration: underline; }
@media (max-width: 767px) { .wm-footer__lower { flex-direction: column-reverse; align-items: flex-start; } .wm-footer__copyright { border-top: 1px solid #AAABAD; margin-top: 14px; padding-top: 14px; width: 100%; } }

/* Contact page details */
.wm-contact-box h3 { margin-bottom: 8px; }
.wm-contact-box p { margin: 0 0 20px; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select { width: 100%; border: 1px solid #CDCDCD; padding: 12px 15px; font: inherit; border-radius: 0; background: #fff; }
.wpcf7 input[type="submit"] { background: var(--wm-primary); color: #fff; border: 2px solid var(--wm-primary); font-size: 14px; font-weight: 900; text-transform: uppercase; padding: 18px 25px; border-radius: 0; cursor: pointer; transition: 0.3s; }
.wpcf7 input[type="submit"]:hover { background: var(--wm-primary-light); border-color: var(--wm-primary-light); }

/* Newsletter form (synced pattern) */
.wm-newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 620px; margin: 30px auto 0; }
.wm-newsletter-form input { flex: 1 1 260px; border: 1px solid #CDCDCD; padding: 14px 15px; font: inherit; font-size: 16px; }
.wm-newsletter-form button { background: var(--wm-primary); color: #fff; border: 2px solid var(--wm-primary); font-size: 14px; font-weight: 900; text-transform: uppercase; padding: 14px 25px; cursor: pointer; transition: 0.3s; }
.wm-newsletter-form button:hover { background: var(--wm-primary-light); border-color: var(--wm-primary-light); }

/* Editor canvas niceties */
.editor-styles-wrapper .wm-header { position: relative; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	html { scroll-behavior: auto; }
}
