﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HEADER â€” Angular, Modern Design
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 50;
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Top bar */

.top-bar {
	background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	max-height: 42px;
	overflow: hidden;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.65rem 0;
}

.top-bar-title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}

.top-bar-contact {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.top-bar a {
	color: var(--white);
	transition: opacity 0.2s ease;
}

.top-bar a:hover {
	opacity: 0.85;
}

.site-header.is-scrolled .top-bar {
	opacity: 0;
	max-height: 0;
}


.top-left,
.top-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.top-item {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.top-item:hover {
	text-decoration: underline;
}

.top-icon {
	display: flex;
	align-items: center;
}

.top-right a {
	color: #fff;
	display: flex;
	align-items: center;
	transition: opacity .2s ease;
}

.top-right a:hover {
	opacity: .7;
}

.top-socials {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.top-socials .social-icon {
	background: none;
	border-radius: 0;
	width: auto;
	height: auto;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.top-socials .social-icon svg {
	width: 20px;
	height: 20px;
	fill: #ffffff;
	transition: opacity .2s ease;
}

.top-socials .social-icon:hover svg {
	opacity: .7;
}


@media (max-width: 768px) {
	.top-right {
		display: none;
	}
}


/* Main header */
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
	gap: 0rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.nav-toggle:hover {
	opacity: 0.7;
}

.nav-toggle span {
	width: 24px;
	height: 3px;
	background: var(--green-700);
	transition: all 0.3s ease;
}

.brand {
	display: flex;
	align-items: center;
	flex: 0 1 260px;
	min-width: 0;
}

.brand img {
	max-height: 60px;
	width: auto;
	height: auto;
	max-width: 100%;
	display: block;
}

/* Navigation */
.main-nav {
	margin-left: auto;
}

.main-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.95rem;
	margin: 0;
	padding: 0;
}

.main-nav a {
	color: var(--gray-900);
	font-weight: 600;
	padding: 0.6rem 0.85rem;
	display: block;
	position: relative;
	transition: color 0.2s ease, background 0.2s ease;
	font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a:focus {
	color: var(--green-700);
	background: rgba(47, 125, 77, 0.06);
}

.main-nav .has-dropdown {
	position: relative;
}

.main-nav .has-dropdown>a::after {
	content: "";
	display: inline-block;
	margin-left: 0.5rem;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: middle;
	transition: transform 0.2s ease;
}

.main-nav .has-dropdown.is-open>a::after {
	transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	background: var(--white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 0.5rem 0;
	min-width: 220px;
	max-width: 260px;
	width: max-content;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	z-index: 100;
	display: flex;
	flex-direction: column;
}

/* Right-align dropdowns for nav items on the right side (items 4-6) */
.main-nav>ul>li:nth-child(n+4) .dropdown {
	left: auto;
	right: 0;
}

.dropdown li {
	padding: 0;
	width: 100%;
}

.dropdown a {
	color: var(--gray-900);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.75rem 1.25rem;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	display: block;
	white-space: nowrap;
}

.dropdown a:hover,
.dropdown a:focus {
	color: var(--green-700);
	background: rgba(47, 125, 77, 0.06);
	border-left-color: var(--green-600);
}

.has-dropdown.is-open .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* â”€â”€ Sub-dropdown (nested flyout) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.has-subdropdown {
	position: relative;
}

.has-subdropdown>a {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
}

.has-subdropdown>a::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	margin-left: auto;
	padding-left: 0.75rem;
	transition: transform 0.2s ease;
}

.has-subdropdown.is-sub-open>a::after {
	transform: rotate(90deg);
}

.subdropdown {
	position: absolute;
	left: 100%;
	top: 0;
	background: var(--white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 0.5rem 0;
	min-width: 220px;
	width: max-content;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	z-index: 110;
	list-style: none;
	display: flex;
	flex-direction: column;
}

.has-subdropdown.is-sub-open>.subdropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.subdropdown li {
	padding: 0;
	width: 100%;
}

.subdropdown a {
	color: var(--gray-900);
	font-weight: 600;
	font-size: 0.88rem;
	padding: 0.65rem 1.25rem;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	display: block;
	white-space: nowrap;
}

.subdropdown a:hover,
.subdropdown a:focus {
	color: var(--green-700);
	background: rgba(47, 125, 77, 0.06);
	border-left-color: var(--green-600);
}

/* Right-side dropdowns: flip subdropdown to open left (items 4+) */
.main-nav>ul>li:nth-child(n+4) .subdropdown {
	left: auto;
	right: 100%;
	transform: translateX(8px);
}

.main-nav>ul>li:nth-child(n+4) .has-subdropdown.is-sub-open>.subdropdown {
	transform: translateX(0);
}

/* â”€â”€ City theme: light-blue top bar â”€â”€â”€â”€â”€â”€â”€â”€ */
body.city-theme .top-bar {
	background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
}

body.city-theme .top-bar-title {
	letter-spacing: 0.05em;
}

.hero {
	position: relative;
	overflow: hidden;
	z-index: 1;
	background-color: #f9fff5;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
	z-index: 0;
}

/* First slide also acts as the layout "sizer" */
.hero-slide:first-child {
	position: relative;
}

.hero-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.site-header .btn-primary {
	box-shadow: none;
}

.hero-controls {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.6rem;
	background: rgba(255, 255, 255, 0.7);
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(23, 68, 41, 0.35);
	border: none;
	cursor: pointer;
}

.about-hero {
	background: linear-gradient(135deg, rgba(23, 68, 41, 0.12), rgba(47, 125, 77, 0.05));
	padding: 6rem 0 4rem;
}

.about-hero-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2.5rem;
	align-items: center;
}

.about-hero-text .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--green-600);
	font-size: 0.75rem;
	font-weight: 600;
}

.about-hero-text h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	margin: 0.75rem 0 1rem;
}

.about-hero-text p {
	color: var(--gray-700);
	max-width: 540px;
}

.about-hero-card {
	position: relative;
	background: var(--white);
	padding: 2rem;
	border-radius: 18px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.about-hero-card h3 {
	margin-bottom: 0.75rem;
}

.about-hero-card p {
	color: var(--gray-700);
	margin-bottom: 1.5rem;
}

.about-hero-accent {
	position: absolute;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(47, 125, 77, 0.25), transparent 70%);
	top: -40px;
	right: -40px;
}

.team-section {
	padding: 4.5rem 0;
}

.team-block {
	margin-bottom: 3.5rem;
}

.section-header {
	margin-bottom: 2rem;
}

.section-header h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 0.5rem;
}

.section-header p {
	color: var(--gray-700);
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.8rem;
}

.team-card {
	background: var(--white);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(47, 125, 77, 0.12);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.15);
}

.team-card-media {
	padding: 2rem 2rem 0;
	background: linear-gradient(145deg, rgba(47, 125, 77, 0.18), rgba(255, 255, 255, 0));
	text-align: center;
}

.team-card-media img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid rgba(23, 68, 41, 0.2);
	margin: 0 auto;
}

.team-card-body {
	padding: 1.5rem 2rem 2rem;
	text-align: center;
}

.team-card-body h3 {
	font-size: 1.05rem;
	margin-bottom: 0.4rem;
}

.team-card-body .role {
	color: var(--green-600);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.6rem;
}

.team-email {
	display: inline-block;
	color: var(--gray-700);
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
}

.team-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(47, 125, 77, 0.12);
	color: var(--green-700);
	font-size: 0.75rem;
	font-weight: 600;
}

.advisory-section {
	padding: 4.5rem 0 6rem;
	background: var(--section-light);
}

.advisory-table {
	display: grid;
	gap: 1rem;
}

.advisory-row {
	display: grid;
	grid-template-columns: 50px 120px 1.2fr 2fr;
	align-items: center;
	gap: 1rem;
	background: var(--white);
	padding: 1rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.advisory-row img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 16px;
}

.advisory-header {
	background: rgba(23, 68, 41, 0.08);
	box-shadow: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.75rem;
	color: var(--green-700);
}

@media (max-width: 768px) {
	.about-hero {
		padding-top: 5rem;
	}

	.advisory-row {
		grid-template-columns: 40px 70px 1fr;
		grid-template-rows: auto auto;
	}

	.advisory-row span:nth-child(4) {
		grid-column: 1 / -1;
	}
}

.dot.is-active {
	background: var(--green-700);
}

/* ── Video Hero (backup landing) ────────────────────────── */
.hero-video-wrap {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #0a1f14;
}

.hero-video-wrap.is-video-failed {
	background: #0a1f14 url('https://uigreenmetric.com/wp-content/uploads/2026/03/compressed_1-scaled.webp') center/cover no-repeat;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left bottom;
	z-index: 0;
}

.hero-video-wrap.is-video-failed .hero-video {
	display: none;
}

.hero-video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg,
			rgba(10, 39, 20, 0.78),
			rgba(16, 73, 35, 0.10));
	z-index: 1;
}

.hero-video-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 4rem 0;
}

.hero-video-content .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 0.5rem;
}

.hero-video-content h1 {
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	margin: 0.5rem 0 1rem;
	line-height: 1.15;
	max-width: 700px;
}

.hero-video-content .hero-subtitle {
	font-size: 1.05rem;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.hero-video-content .btn {
	font-size: 1rem;
	padding: 0.85rem 2rem;
}

.hero-video-content--centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 55vh;
}

.hero-video-content--centered h1 {
	max-width: none;
	font-size: clamp(2.8rem, 5.5vw, 4.5rem);
	letter-spacing: 0.02em;
}

.hero-video-content--centered .hero-subtitle {
	max-width: none;
	margin-bottom: 0;
	font-size: 1.15rem;
	letter-spacing: 0.05em;
}

/* ── Static hero main title ───────────────────────────── */
.hero-main-title {
	font-size: clamp(3.2rem, 7vw, 6rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.02em;
	margin: 0 0 0.5rem;
	line-height: 1.05;
	text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ── Subtitle variant of the cycling animation ─────────── */
.hero-cycling.hero-cycling--subtitle {
	height: clamp(1.3rem, 3vw, 1.9rem);
}

.hero-cycling.hero-cycling--subtitle .hero-cycling__item {
	font-size: clamp(0.9rem, 2.2vw, 1.25rem);
	font-weight: 400;
	line-height: clamp(1.3rem, 3vw, 1.9rem);
	color: rgba(255, 255, 255, 0.82);
	letter-spacing: 0.04em;
}

@media (max-width: 768px) {
	.hero-main-title {
		font-size: 2.2rem;
	}
	.hero-cycling.hero-cycling--subtitle {
		height: 1.5rem;
	}
	.hero-cycling.hero-cycling--subtitle .hero-cycling__item {
		font-size: 0.95rem;
		line-height: 1.5rem;
	}
}

@media (max-width: 768px) {
	.hero-video-wrap {
		min-height: 72vh;
	}

	.hero-video-content {
		padding: 2.5rem 0;
	}

	.hero-video-content h1 {
		font-size: 1.8rem;
	}
}

/* ── Hero Cycling Text Animation ────────────────────────── */
.hero-cycling {
	overflow: hidden;
	/* height = line-height of one item (1.4× font-size for descender clearance) */
	height: clamp(1.5rem, 6.5vw, 4.8rem);
}

.hero-cycling__list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;

	-webkit-animation-name: heroCycle;
	-webkit-animation-duration: 12s;
	-webkit-animation-iteration-count: infinite;
	animation-name: heroCycle;
	animation-duration: 12s;
	animation-iteration-count: infinite;
}

.hero-cycling__item {
	/* font-size stays smaller than line-height so descenders (g, y, p…) don't clip */
	font-size: clamp(1.05rem, 4.5vw, 3.4rem);
	font-weight: 700;
	line-height: clamp(1.5rem, 6.5vw, 4.8rem); /* must equal container height */
	letter-spacing: 0.02em;
	margin: 0;
	color: #fff;
	white-space: nowrap; /* prevent wrapping; font is sized to fit on mobile */
}

/* 4 items loop forward: 1→2→3→4→1 */
@-webkit-keyframes heroCycle {
	0%, 20%              { transform: translate3d(0, 0, 0); }
	25%, 45%             { transform: translate3d(0, -25%, 0); }
	50%, 70%             { transform: translate3d(0, -50%, 0); }
	75%, 95%             { transform: translate3d(0, -75%, 0); }
	100%                 { transform: translate3d(0, 0, 0); }
}

@keyframes heroCycle {
	0%, 20%              { transform: translate3d(0, 0, 0); }
	25%, 45%             { transform: translate3d(0, -25%, 0); }
	50%, 70%             { transform: translate3d(0, -50%, 0); }
	75%, 95%             { transform: translate3d(0, -75%, 0); }
	100%                 { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
	.hero-cycling {
		height: 1.9rem; /* line-height of one item at mobile size */
	}
	.hero-cycling__item {
		font-size: 1.1rem;  /* small enough that longest line fits on 320px+ screen */
		line-height: 1.9rem; /* matches container, gives descender room */
		letter-spacing: 0;
	}
}


.about {
	padding: 3.5rem 0;
	/* background: var(--section-light); */
}

.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2.5rem;
	align-items: center;
}

.about-container {
	max-width: 80vw;
}

.about-text h2 {
	margin-bottom: 1rem;
}

.about-text .btn {
	margin-top: 1.5rem;
}

.about-video {
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(55, 111, 18, 0.3);
	overflow: hidden;
	position: relative;
	padding-top: 56.25%;
}

.about-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.counter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.counter strong {
	font-size: 1.6rem;
	color: var(--green-700);
	display: block;
	font-family: "Roboto", system-ui, sans-serif;
}

.counter span {
	font-size: 0.85rem;
	color: var(--gray-700);
}