/*
  Renovia v2 – Outline-based layout
  Uses styles.css for base; this file adds dropdowns, language toggle, comparison table, footer columns.
*/

output.form-message {
	display: block;
}

/* Header: dropdowns and dual CTAs */
.header-utils {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Language dropdown – compact */
.lang-select {
	min-height: 44px;
	padding: 8px 28px 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	background: var(--white)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
		no-repeat right 10px center;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.lang-select:hover,
.lang-select:focus {
	border-color: var(--renovia-blue);
	outline: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nav-dropdown {
	position: relative;
}

.nav-dropdown-trigger {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-dark);
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	border-bottom: 2px solid transparent;
	transition:
		color 150ms ease,
		border-color 150ms ease;
}

.nav-dropdown-trigger:hover {
	color: var(--renovia-blue-dark);
	border-bottom-color: var(--renovia-blue);
}

.nav-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition:
		opacity 150ms ease,
		transform 150ms ease,
		visibility 150ms ease;
	z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-dropdown-menu a {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	color: var(--text-dark);
	transition:
		background 150ms ease,
		color 150ms ease;
}

.nav-dropdown-menu a:hover {
	background: var(--bg-light);
	color: var(--renovia-blue-dark);
}

.header-cta-invest {
	background: var(--renovia-green);
	box-shadow: 0 2px 8px rgba(92, 184, 92, 0.25);
}

.header-cta-invest:hover {
	background: var(--renovia-green-light);
	box-shadow: 0 4px 14px rgba(92, 184, 92, 0.35);
}

/* Stats row (home) */
.stats-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.stat-block {
	text-align: center;
	padding: 24px 16px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
}

.stat-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: var(--renovia-blue-dark);
	margin-bottom: 8px;
}

.stat-block .stat-label {
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin: 0;
}

/* Two-audience value props */
.two-audience-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.value-prop-card .secondary-cta {
	margin-top: 16px;
}

/* Centered actions helper */
.hero-actions-center {
	justify-content: center;
}

/* Section layout refinements for v2 */
.section-header-centered {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.section-header-centered p {
	margin-left: auto;
	margin-right: auto;
}

.section-header-centered .section-media {
	margin-left: auto;
	margin-right: auto;
}

.section-body-narrow {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* About Us (story / mission / values) – make it feel richer */
#about-us-full {
	background-image: var(--gradient-brand-soft);
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
}

#about-us-full .split {
	align-items: stretch;
}

#about-us-full .split-copy {
	padding: 24px 28px;
	border-radius: 16px;
	background: var(--white);
	border: 1px solid var(--border-light);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

#about-us-full .split-copy h3 {
	margin-top: 0;
}

#about-us-full .split-copy ul {
	margin-top: 8px;
}

#about-us-full .split-panels {
	gap: 16px;
}

#about-us-full .module-card {
	background: var(--white);
}

/* Comparison table */
.comparison-table-wrap {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid var(--border-light);
	background: var(--white);
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.comparison-table th,
.comparison-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
	font-weight: 600;
	color: var(--renovia-blue-dark);
	background: var(--bg-light);
}

.comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.comparison-table td:first-child {
	font-weight: 500;
	color: var(--text-dark);
}

/* Footer columns (outline structure) */
.footer-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 32px;
	margin-bottom: 24px;
}

.footer-brand .footer-copy {
	margin-top: 12px;
}

.footer-col h4 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dark);
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 8px;
}

.footer-col a {
	color: var(--text-muted);
	font-size: 14px;
}

.footer-col a:hover {
	color: var(--renovia-blue);
}

/* Generic section imagery */
.section-media {
	margin-top: 24px;
}

.section-media img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 16px;
	border: 1px solid var(--border-light);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Hero (v2) – full-width split: solid text panel left, large background image right */
.hero.hero--split-bg {
	padding: 0;
	background: var(--white);
	overflow: hidden; /* allow wave to overlap image cleanly */
}

.hero-grid.hero-grid--full {
	max-width: none;
	width: 100%;
	padding: 0;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 0;
	align-items: stretch;
	min-height: 520px;
}

.hero--split-bg .hero-copy {
	display: flex;
	align-items: center;
	background: var(--white);
	padding: 48px 40px 56px clamp(24px, 5vw, 48px);
}

.hero-copy-inner {
	max-width: 560px;
}

.hero-panel-bg {
	background-image: url("https://plus.unsplash.com/premium_photo-1661901543371-0d1279a79645?q=80&w=1527&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media (max-width: 960px) {
	.hero-grid.hero-grid--full {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.hero--split-bg .hero-copy {
		padding: 48px 24px 40px;
	}

	.hero-panel-bg {
		min-height: 320px;
	}

	.network-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Our network at a glance – interactive map + location cards */
.network-map-wrap {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-light);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
	margin-bottom: 32px;
}

.network-map {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

.network-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
	margin-bottom: 32px;
}

.network-at-a-glance-cards {
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.network-glance-card {
	margin: 0;
}

/* Make the wavy band overlap the hero background/image */
.wave-band--hero {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	margin-bottom: 0;
	pointer-events: none;
}

/* Responsive: hide second CTA and adjust header utils on small screens */
@media (max-width: 1024px) {
	.header-cta-invest {
		display: none;
	}

	.stats-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.two-audience-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

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

	.nav-dropdown-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		max-height: 0;
		overflow: hidden;
		padding: 0;
		border: none;
		box-shadow: none;
		background: transparent;
	}

	.nav-dropdown.open .nav-dropdown-menu {
		max-height: 400px;
		padding: 8px 0 8px 16px;
	}

	.nav-dropdown-trigger {
		width: 100%;
		justify-content: space-between;
	}

	.stats-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.comparison-table th,
	.comparison-table td {
		padding: 10px 12px;
		font-size: 14px;
	}

	/* Our network section – mobile refinements */
	.network-map {
		height: 320px;
	}

	.network-layout {
		gap: 16px;
	}

	.network-map-wrap {
		margin-bottom: 16px;
	}

	.network-glance-card .slots-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
