/*
Theme Name:  Watera Blocks
Theme URI:   https://watera.com
Author:      Watera / Binas
Description: Block theme (Full Site Editing) for the Watera Group website, built from the Figma wireframes (Wireframe-Watera). All 8 pages ship as block patterns; header, footer and global styles are editable in the Site Editor. v2 of the June block theme, updated to the Geologica brand font and the sampled brand palette.
Version:     2.1.0
Requires at least: 6.5
Tested up to: 6.8
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-blocks
*/

/* Hover-effect tokens — motion from the homepage mock (WorkFiles/claude/index.html),
   colors from the Figma palette (source of truth). */
:root {
	--w-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--w-stat-grad: linear-gradient(to top right, #0072C8 0%, #008BD8 100%);
}

/* Section titles — Figma: 32px, single brand cyan, thin/regular weight contrast.
   Centered h2s are the section titles; CTA-band h2s are excluded via .has-white-color. */
h2.wp-block-heading.has-text-align-center:not(.has-white-color) {
	font-size: 2rem;
	line-height: 1.25;
}

/* Card helper — used by patterns via className "w-card" */
.w-card {
	box-shadow: 0 2px 14px rgba(0, 60, 165, 0.06);
	transition: all 0.35s var(--w-ease);
}
.w-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 44px rgba(0, 60, 165, 0.16);
}
.w-card:hover h3 {
	color: var(--wp--preset--color--bold-blue);
}
.w-card .wp-block-image {
	overflow: hidden;
	border-radius: 14px;
}
.w-card .wp-block-image img {
	transition: transform 0.35s var(--w-ease);
}
.w-card:hover .wp-block-image img {
	transform: scale(1.07);
}

/* Stat cards — className "w-card w-stat": gradient fill + white text on hover */
.w-stat:hover {
	background: var(--w-stat-grad) !important;
	border-color: transparent;
	transform: translateY(-6px);
	box-shadow: 0 18px 44px rgba(0, 114, 200, 0.32);
}
.w-stat:hover p,
.w-stat:hover h3 {
	color: #fff !important;
}

/* Blue left accent bar — className "w-card-accent" */
.w-card-accent {
	border-left: 4px solid var(--wp--preset--color--primary);
}

/* Check-style lists — className "w-check-list" */
ul.w-check-list {
	list-style: none;
	padding-left: 0;
}
ul.w-check-list li {
	padding-left: 1.7em;
	position: relative;
	margin-bottom: 0.6em;
}
ul.w-check-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--wp--preset--color--light-blue);
	color: #fff;
	font-size: 0.75em;
	line-height: 1.6em;
	text-align: center;
}

/* Arrow-style lists — className "w-arrow-list" */
ul.w-arrow-list {
	list-style: none;
	padding-left: 0;
}
ul.w-arrow-list li {
	padding-left: 1.6em;
	position: relative;
	margin-bottom: 0.6em;
}
ul.w-arrow-list li::before {
	content: "\2192";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--light-blue);
	font-weight: 700;
}

/* Pill filter chips (News page) — className "w-chips" */
.w-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.w-chips a,
.w-chips span {
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	border-radius: 999px;
	padding: 8px 22px;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.28s var(--w-ease);
}
.w-chips a:hover,
.w-chips a.is-active,
.w-chips span.is-active {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Query-loop news cards (home "Latest News", News page) */
.wp-block-query .wp-block-post-featured-image img {
	border-radius: 14px;
}
.wp-block-query .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--bold-blue);
}
.wp-block-query .wp-block-post-title a:hover {
	color: var(--wp--preset--color--light-blue);
}
.wp-block-query .wp-block-post-date {
	color: #8A97A8;
	font-size: 0.85rem;
}
.w-post-cat {
	font-size: 0.75rem;
	margin-bottom: 0.5rem;
}
.w-post-cat a {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 999px;
	padding: 4px 14px;
	font-weight: 600;
	text-decoration: none;
	margin-right: 4px;
}
.wp-block-query .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}

/* Header nav pills — classic Main Menu location (rendered by the watera/nav-main pattern) */
.w-nav-main ul {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.w-nav-main a {
	display: inline-block;
	border-radius: 999px;
	padding: 9px 20px;
	border: 1px solid #e3e9ef;
	color: var(--wp--preset--color--navy);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	transition: all 0.28s var(--w-ease);
}
.w-nav-main a:hover {
	background: var(--wp--preset--color--light-blue);
	color: #fff;
	border-color: var(--wp--preset--color--light-blue);
	box-shadow: 0 6px 16px rgba(0, 174, 239, 0.3);
	text-decoration: none;
}
.w-nav-main .current-menu-item > a,
.w-nav-main .current-menu-ancestor > a {
	background: var(--wp--preset--color--light-blue);
	border-color: var(--wp--preset--color--light-blue);
	color: #fff;
}
/* Sub-menus: dropdown under the parent pill on desktop (hover / keyboard focus) */
.w-nav-main li {
	position: relative;
}
.w-nav-main .menu-item-has-children > a::after {
	content: "\25BE";
	margin-left: 6px;
	font-size: 0.8em;
}
.w-nav-main ul ul {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;
	min-width: 260px;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	padding: 10px;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(0, 60, 165, 0.14);
}
.w-nav-main ul ul::before {
	/* invisible bridge so the dropdown stays open while the pointer crosses the gap */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}
.w-nav-main li:hover > ul,
.w-nav-main li:focus-within > ul {
	display: flex;
}
.w-nav-main ul ul a {
	display: block;
	border: 0;
	border-radius: 10px;
	padding: 9px 14px;
	font-size: 14px;
	white-space: nowrap;
}
.w-nav-main ul ul a:hover {
	box-shadow: none;
}

.w-nav-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.w-nav-toggle {
	display: none;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	padding: 4px 10px;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}
@media (max-width: 980px) {
	.w-nav-wrap {
		flex: 1;
		justify-content: flex-end;
	}
	.w-nav-toggle {
		display: block;
	}
	.w-nav-main {
		display: none;
		width: 100%;
	}
	.w-nav-main.is-open {
		display: block;
		margin-top: 10px;
	}
	.w-nav-main ul {
		flex-direction: column;
		align-items: stretch;
	}
	.w-nav-main a {
		display: block;
		text-align: center;
	}
	/* sub-menus: always expanded, indented, inside the collapsible panel */
	.w-nav-main ul ul {
		display: flex;
		position: static;
		min-width: 0;
		margin: 4px 0 0;
		padding: 0 0 0 16px;
		background: transparent;
		border: 0;
		box-shadow: none;
	}
	.w-nav-main ul ul::before {
		display: none;
	}
	.w-nav-main .menu-item-has-children > a::after {
		content: "";
		margin: 0;
	}
	.w-nav-main ul ul a {
		border: 1px solid #e3e9ef;
		border-radius: 999px;
		text-align: center;
	}
}

/* Header nav pills */
.w-header .wp-block-navigation .wp-block-navigation-item a {
	border-radius: 999px;
	padding: 9px 20px;
	border: 1px solid #e3e9ef;
	transition: all 0.28s var(--w-ease);
}
.w-header .wp-block-navigation .wp-block-navigation-item a:hover {
	background: var(--wp--preset--color--light-blue);
	color: #fff;
	border-color: var(--wp--preset--color--light-blue);
	box-shadow: 0 6px 16px rgba(0, 139, 216, 0.3);
	text-decoration: none;
}
.w-header .wp-block-navigation .current-menu-item a {
	background: var(--wp--preset--color--light-blue);
	border-color: var(--wp--preset--color--light-blue);
	color: #fff;
}

/* Footer link lists */
.w-footer ul { list-style: none; padding-left: 0; }
.w-footer ul li { margin-bottom: 0.6em; font-size: 14px; }
.w-footer a { color: #fff; text-decoration: none; transition: color 0.28s var(--w-ease); }
.w-footer a:hover { color: var(--wp--preset--color--light-blue); }

/* Buttons — lift + accent fill + glow on hover (motion from the homepage mock) */
.wp-block-button__link {
	transition: all 0.3s var(--w-ease);
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 139, 216, 0.35);
}
.wp-block-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--light-blue);
	color: #fff !important;
	border-color: var(--wp--preset--color--light-blue);
}

/* Newsletter inline form (News page pattern) */
.w-newsletter-form {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.w-newsletter-form input[type="email"] {
	flex: 1;
	min-width: 260px;
	max-width: 480px;
	padding: 14px 22px;
	border: 1px solid #c6d3e2;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--geologica);
	font-size: 15px;
}
.w-newsletter-form button {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 34px;
	font-family: var(--wp--preset--font-family--geologica);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
