/**
 * Vhyteque Global Solutions - layout, header, navigation and form styles.
 * Lightweight: no frameworks, no external requests.
 */

/* ---------------------------------------------------------------- Header */

.vhy-topbar {
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
}

.vhy-topbar a {
	color: #ffffff;
	text-decoration: none;
}

.vhy-topbar a:hover,
.vhy-topbar a:focus {
	color: #8bcf3f;
	text-decoration: underline;
}

.vhy-header-sticky {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #ffffff;
	box-shadow: 0 1px 0 #e1e9ee;
}

.vhy-site-logo img {
	max-height: 64px;
	width: auto;
	height: auto;
}

/* Navigation: dropdown submenu look */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid #e1e9ee;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 59, 112, 0.12);
	padding: 0.35rem 0;
	min-width: 18rem;
	background-color: #ffffff;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 1rem;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #58b947;
}

/* Underline hover indicator on top-level items */
.vhy-primary-nav > ul > li > .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 4px;
}

.vhy-primary-nav > ul > li > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-color: #58b947;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.vhy-primary-nav > ul > li > .wp-block-navigation-item__content:hover::after,
.vhy-primary-nav > ul > li.current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Mobile overlay menu */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #003b70;
	padding: 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open a {
	color: #ffffff;
}

.wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: #8bcf3f;
}

/* --------------------------------------------------------------- Cards */

.vhy-card {
	background-color: #ffffff;
	border: 1px solid #e1e9ee;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	height: 100%;
}

.vhy-card:hover,
.vhy-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 59, 112, 0.12);
	border-color: #58b947;
}

.vhy-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #07539a 0%, #58b947 100%);
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.vhy-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8125rem;
	color: #58b947;
	margin-bottom: 0.5rem;
}

.vhy-list ul,
ul.vhy-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.vhy-list li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
}

.vhy-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background-color: #58b947;
}

/* Circular economy process flow */
.vhy-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: vhyflow;
}

.vhy-flow li {
	counter-increment: vhyflow;
	flex: 1 1 180px;
	background-color: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	padding: 1rem 1rem 1rem 3rem;
	position: relative;
	color: #ffffff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8125rem;
}

.vhy-flow li::before {
	content: counter(vhyflow);
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #ffffff;
	color: #003b70;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
}

.vhy-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.vhy-chip-row li {
	background-color: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
}

/* --------------------------------------------------------------- Forms */

.vhy-form {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vhy-form .vhy-field-full {
	grid-column: 1 / -1;
}

.vhy-form label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	color: #003b70;
	margin-bottom: 0.35rem;
}

.vhy-form input,
.vhy-form select,
.vhy-form textarea {
	width: 100%;
	font: inherit;
	color: #222222;
	background-color: #ffffff;
	border: 1px solid #cfdae2;
	border-radius: 6px;
	padding: 0.75rem 0.9rem;
	min-height: 48px;
}

.vhy-form textarea {
	min-height: 140px;
}

.vhy-form input:focus,
.vhy-form select:focus,
.vhy-form textarea:focus {
	border-color: #58b947;
	outline: 3px solid rgba(88, 185, 71, 0.35);
	outline-offset: 0;
}

.vhy-form button,
.vhy-form input[type="submit"] {
	background-color: #58b947;
	color: #ffffff;
	border: 0;
	border-radius: 6px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.95rem 2rem;
	min-height: 48px;
	cursor: pointer;
}

.vhy-form button:hover,
.vhy-form input[type="submit"]:hover {
	background-color: #003b70;
}

.vhy-plugin-note {
	border-left: 4px solid #58b947;
	background-color: #f5f9f7;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	border-radius: 0 8px 8px 0;
}

/* Plugin form fields inherit the theme look */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-form input:not([type="submit"]),
.wpforms-form select,
.wpforms-form textarea {
	border: 1px solid #cfdae2 !important;
	border-radius: 6px !important;
	min-height: 48px;
	padding: 0.75rem 0.9rem !important;
}

.wpcf7-form input[type="submit"],
.wpforms-form button[type="submit"] {
	background-color: #58b947 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 6px !important;
	text-transform: uppercase;
	font-weight: 700 !important;
	padding: 0.95rem 2rem !important;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 781px) {
	.vhy-form {
		grid-template-columns: 1fr;
	}

	.vhy-topbar {
		text-align: center;
	}

	.vhy-site-logo img {
		max-height: 48px;
	}

	.vhy-flow li {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vhy-card,
	.vhy-primary-nav > ul > li > .wp-block-navigation-item__content::after {
		transition: none;
	}
}
