/*
  Renovia RenalCare Network – Website
  Brand: Trust & safety, warmth & compassion, scale & legitimacy, clarity.
  Guidelines: Inter, Renovia blue/green/teal, light calm backgrounds, WCAG AA.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
	/* Primary palette from branding image */
	--renovia-blue: #337ab7;
	--renovia-blue-dark: #2e6da4;
	--renovia-blue-light: #3399cc;
	--renovia-green: #5cb85c;
	--renovia-green-light: #6bcf6b;
	--gradient-brand: linear-gradient(
		90deg,
		var(--renovia-blue-light) 0%,
		var(--renovia-blue) 40%,
		var(--renovia-green) 100%
	);
	--gradient-brand-soft: linear-gradient(
		135deg,
		rgba(51, 153, 204, 0.08) 0%,
		rgba(92, 184, 92, 0.06) 100%
	);
	--text-dark: #2c3e50;
	--text-muted: #5a6c7d;
	--border-light: #e8ecef;
	--bg-light: #f5f7fa;
	--white: #ffffff;
}

/* Dev site indicator – only shown when __RENOVIA_DEV__ is true (localhost or dev channel) */
.dev-indicator {
	position: fixed;
	bottom: 12px;
	right: 12px;
	z-index: 9999;
	padding: 6px 12px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #1f2937;
	background: #f59e0b;
	border: 1px solid #d97706;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
	background: var(--bg-light);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header – white, sticky, wavy gradient line at bottom */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header::after {
	content: "";
	display: block;
	height: 4px;
	background: var(--gradient-brand);
	margin-top: -1px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	min-height: 56px;
}

.logo-lockup {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.logo-lockup:hover {
	color: inherit;
}

.logo-img {
	height: 40px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.logo-img-footer {
	height: 36px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-dark);
}

.nav a {
	color: var(--text-dark);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition:
		color 150ms ease,
		border-color 150ms ease;
}

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

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 8px;
	border: 1px solid var(--border-light);
	background: var(--white);
	padding: 0 12px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	color: var(--text-dark);
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--text-dark);
	transition:
		transform 180ms ease-out,
		opacity 150ms ease-out;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons – primary blue (gradient), secondary green, rounded */
.primary-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: 10px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	background: var(--renovia-blue);
	color: var(--white);
	box-shadow: 0 2px 8px rgba(51, 122, 183, 0.25);
	transition:
		background 150ms ease,
		transform 150ms ease,
		box-shadow 150ms ease;
}

.primary-cta:hover {
	background: var(--renovia-blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(51, 122, 183, 0.35);
}

.primary-cta:active {
	transform: translateY(0);
}

.primary-cta:focus-visible {
	outline: 2px solid var(--renovia-blue);
	outline-offset: 2px;
}

.header-cta {
	white-space: nowrap;
}

.secondary-cta,
.ghost-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: 10px;
	border: 2px solid var(--renovia-green);
	background: transparent;
	color: var(--renovia-blue-dark);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 150ms ease,
		border-color 150ms ease,
		color 150ms ease;
}

.ghost-cta:hover,
.secondary-cta:hover {
	background: rgba(92, 184, 92, 0.12);
	border-color: var(--renovia-green-light);
	color: var(--renovia-blue-dark);
}

.full-width {
	width: 100%;
}

/* Wavy gradient band – branding motif */
.wave-band {
	display: block;
	width: 100%;
	line-height: 0;
	overflow: hidden;
}

.wave-band svg {
	width: 100%;
	height: 60px;
	display: block;
}

.wave-band--hero {
	margin-bottom: -1px;
}

.wave-band--footer svg {
	height: 56px;
}

.site-footer {
	position: relative;
	padding: 0 0 48px;
	background: var(--white);
	color: var(--text-dark);
}

.wave-band--footer {
	position: absolute;
	left: 0;
	right: 0;
	top: -36px; /* pull wave up so it overlaps the section above */
	pointer-events: none;
}

/* Hero – soft gradient background, wavy band below */
.hero {
	padding: 80px 0 48px;
	background: var(--gradient-brand-soft);
	background-color: var(--white);
	color: var(--text-dark);
	position: relative;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.eyebrow {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--renovia-green);
	margin: 0 0 12px;
}

.hero h1 {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	color: var(--renovia-blue-dark);
}

.hero-subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-muted);
	max-width: 520px;
	margin: 0 0 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-bottom: 32px;
}

.hero-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	font-size: 14px;
}

.metric-label {
	display: block;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.metric-value {
	color: var(--text-dark);
	font-weight: 600;
}

.hero-panel {
	display: flex;
	justify-content: flex-end;
}

.hero-card {
	width: 100%;
	max-width: 360px;
	padding: 24px;
	border-radius: 16px;
	background: var(--bg-light);
	border: 1px solid var(--border-light);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-card-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.slots-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.slot-card {
	padding: 14px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
}

.slot-location {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 4px;
}

.slot-count {
	display: block;
	font-size: 13px;
	color: var(--renovia-green);
	font-weight: 500;
}

.slot-meta {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

.hero-card-footer {
	border-top: 1px solid var(--border-light);
	padding-top: 14px;
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.5;
}

.hero-card-footer p {
	margin: 0;
}

/* Sections */
.section {
	padding: 80px 0;
	background: var(--white);
	color: var(--text-dark);
}

.section.emphasis {
	background: var(--bg-light);
	background-image: var(--gradient-brand-soft);
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
}

.section-header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}

.section-header-column {
	text-align: left;
	margin-bottom: 36px;
	max-width: 720px;
}

.section h2 {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--renovia-blue-dark);
}

.section p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Cards */
.audience-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.card {
	padding: 24px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
	transition:
		box-shadow 150ms ease,
		border-color 150ms ease;
}

.card:hover {
	box-shadow: 0 6px 24px rgba(51, 122, 183, 0.12);
	border-color: rgba(51, 122, 183, 0.2);
}

.card h3 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--renovia-blue-dark);
}

.card p {
	font-size: 16px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.card ul {
	margin: 0;
	padding-left: 20px;
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.5;
}

.card li + li {
	margin-top: 6px;
}

/* Split layout */
.split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: start;
}

.split-copy p {
	max-width: 520px;
}

.split-panels {
	display: grid;
	gap: 20px;
}

.module-card {
	padding: 24px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
}

.module-card h3 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
	color: var(--renovia-blue-dark);
}

.module-card p {
	margin-bottom: 12px;
	font-size: 16px;
	color: var(--text-muted);
}

.module-card ul {
	margin: 0;
	padding-left: 20px;
	font-size: 15px;
	color: var(--text-muted);
}

.module-card li + li {
	margin-top: 6px;
}

/* Three-column */
.three-column {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* Stats */
.stat-card {
	padding: 20px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
}

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

.stat-value {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--renovia-blue-dark);
}

.stat-copy {
	margin: 0;
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.5;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: start;
}

.contact-form {
	padding: 28px;
	border-radius: 12px;
	background: var(--white);
	border: 1px solid var(--border-light);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.field-group {
	margin-bottom: 16px;
}

.field-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--text-dark);
}

.field-group input,
.field-group select,
.field-group textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--border-light);
	background: var(--white);
	color: var(--text-dark);
	font-size: 16px;
	outline: none;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.field-group textarea {
	min-height: 120px;
	resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
	color: var(--text-muted);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
	border-color: var(--renovia-blue);
	box-shadow: 0 0 0 3px rgba(32, 103, 152, 0.15);
}

.form-message {
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.form-message.success {
	background: rgba(141, 212, 154, 0.2);
	border: 1px solid var(--renovia-green);
	color: var(--text-dark);
}

.form-message.error {
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid #ef4444;
	color: #b91c1c;
}

.form-footnote {
	margin-top: 12px;
	font-size: 14px;
	color: var(--text-muted);
}

/* Footer – wavy gradient band above, then clean white */
.site-footer {
	padding: 0 0 48px;
	background: var(--white);
	color: var(--text-dark);
}

.site-footer .footer-inner {
	padding-top: 48px;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.footer-copy {
	margin: 0;
	font-size: 16px;
	color: var(--text-muted);
	max-width: 560px;
	line-height: 1.6;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 14px;
}

.footer-links a {
	color: var(--renovia-blue);
	font-weight: 500;
}

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

.footer-links a:hover {
	text-decoration: underline;
}

.footer-meta {
	margin: 0;
	font-size: 14px;
	color: var(--text-muted);
}

/* Locations list */
.locations-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.locations-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border-light);
	font-size: 16px;
	color: var(--text-dark);
}

.locations-list li:last-child {
	border-bottom: none;
}

/* Responsive */
@media (max-width: 960px) {
	.hero {
		padding: 64px 0 72px;
	}

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

	.hero h1 {
		font-size: 32px;
	}

	.hero-panel {
		justify-content: flex-start;
	}

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

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

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

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

	.section {
		padding: 64px 0;
	}
}

@media (max-width: 768px) {
	.logo-img {
		height: 32px;
	}

	.logo-img-footer {
		height: 32px;
	}

	.header-inner {
		padding: 12px 0;
	}

	.nav {
		display: none;
		position: fixed;
		inset: 60px 16px auto;
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
		border-radius: 12px;
		background: var(--white);
		border: 1px solid var(--border-light);
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
		gap: 4px;
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		padding: 12px 0;
		width: 100%;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.hero {
		padding: 48px 0 56px;
	}

	.hero h1 {
		font-size: 28px;
	}

	.hero-metrics {
		flex-direction: column;
	}

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

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

	.section {
		padding: 48px 0 64px;
	}

	.section h2 {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
