/*
 * Public site styles. Replaces landing.css.
 *
 * Bootstrap's CSS stays loaded because child templates of front_base.html use its
 * classes. #banner, #bluebg, .promo and .padded are the layout hooks those templates
 * have always had; they are kept so the templates work unedited.
 */

html { background: var(--c2v-navy); scroll-behavior: smooth; }

body {
	background: #fff;
	color: var(--c2v-ink);
	font-family: var(--c2v-font);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--c2v-ink); font-family: inherit; letter-spacing: -0.015em; text-rendering: auto; }
a { color: var(--c2v-blue); }
a:hover { color: var(--c2v-blue-dark); }
p { font-size: inherit; line-height: inherit; }

.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

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

.site-header {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid var(--c2v-line);
	z-index: 10;
}
.site-header .site-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 28px;
	min-height: 72px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { max-width: none; width: 180px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #334155; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--c2v-blue); text-decoration: none; }
.site-nav .site-nav-login {
	padding: 7px 16px;
	border: 1px solid var(--c2v-line-strong);
	border-radius: var(--c2v-radius);
}
.site-nav .site-nav-login:hover { background: var(--c2v-surface); }

/* ---------- Footer ---------- */

#sitemap { padding: 44px 0 28px; background: var(--c2v-navy); color: #94A3B8; font-size: 14px; }
#sitemap .site-wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; }
#sitemap h2 { margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
#sitemap h2 a { color: #fff; }
#sitemap ul { margin: 0; list-style: none; }
#sitemap li { margin: 0 0 6px; line-height: 1.5; }
#sitemap a { color: #CBD5E1; }
#sitemap a:hover { color: #fff; }
.sitemap-legal { flex-basis: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sitemap-legal p { margin: 0 0 2px; }

/* ---------- Inner pages: help, contact, login, surveys, errors ---------- */

#banner { background: var(--c2v-navy); }
#banner .promo { display: none; }
#banner > .container, #bluebg > .container { width: auto; max-width: 860px; margin: 0 auto; }
#banner .header { padding: 44px 28px 92px; }
#banner .header h1, .error-page #title h1 { margin: 0; color: #fff; font-size: 34px; font-weight: 700; line-height: 1.2; }

#bluebg { padding: 0 20px 64px; background: var(--c2v-bg); }
#bluebg > .padded, #bluebg > .message {
	position: relative;
	margin-top: -56px;
	padding: 36px 44px 44px;
	background: #fff;
	border: 1px solid var(--c2v-line);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
#bluebg h2 {
	margin: 32px 0 12px;
	color: var(--c2v-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
#bluebg h2:first-child { margin-top: 0; }
#bluebg h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.4; }
#bluebg h3:first-child { margin-top: 0; }
#bluebg p, #bluebg li { color: var(--c2v-text); }
#bluebg .lead { color: var(--c2v-ink); font-size: 19px; font-weight: 400; line-height: 1.5; }

/* Error pages: general-info.html is not used, so the heading sits in #title. */
.error-page #banner .promo { display: block; min-height: 0; padding: 44px 28px 92px; }
.error-page #title { padding: 0; }
.error-page #title .logo { display: none; }

/* Forms on public pages */
#bluebg .form-horizontal { margin: 16px 0 0; }
#loginForm label.form-label { display: block; margin: 0 0 4px; color: var(--c2v-ink); font-size: 14px; font-weight: 500; line-height: 1.4; }
#loginForm input[type="text"], #loginForm input[type="password"] { width: 100%; max-width: 360px; margin: 0; }
#loginForm label .icon16 { margin-right: 4px; color: var(--c2v-muted); }
#loginForm .forgot { font-size: 14px; }
#loginForm label { font-size: 14px; }

.btn-info, .btn.btn-info {
	background-color: var(--c2v-blue);
	border-color: var(--c2v-blue);
	color: #fff;
}
.btn-info:hover, .btn-info:focus, .btn.btn-info:hover, .btn.btn-info:focus {
	background-color: var(--c2v-blue-dark);
	border-color: var(--c2v-blue-dark);
	color: #fff;
}
.btn-info [class*="icomoon-icon"] { color: #fff; }

.survey .radio { float: left; margin-left: 15px; padding-top: 5px; }

form table { width: 100%; margin-top: 16px; }
form table td { padding-bottom: 10px; vertical-align: top; }
form table td input, form table td textarea { width: 100%; }

/* ---------- Home page ---------- */

.hero {
	position: relative;
	padding: 84px 0 148px;
	overflow: hidden;
	background: var(--c2v-navy);
	color: #fff;
}
/* The skyline from the old banner, tinted through its alpha channel. */
.hero:after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 74px;
	background: rgba(255, 255, 255, 0.1);
	-webkit-mask: url(../images/city_pattern.png) repeat-x bottom;
	mask: url(../images/city_pattern.png) repeat-x bottom;
}
.eyebrow {
	margin: 0 0 14px;
	color: #86D671;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero h1 {
	max-width: 780px;
	margin: 0 0 20px;
	color: #fff;
	font-size: 52px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
}
.hero-lead { max-width: 640px; margin: 0 0 32px; color: #CBD5E1; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; }

.cta {
	display: inline-block;
	padding: 13px 24px;
	background: var(--c2v-green-btn);
	border-radius: var(--c2v-radius);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.cta:hover, .cta:focus { background: var(--c2v-green-btn-dark); color: #fff; text-decoration: none; }
.cta-quiet { padding: 13px 16px; color: #fff; font-weight: 500; }
.cta-quiet:hover, .cta-quiet:focus { color: #fff; text-decoration: underline; }
.cta-light { background: #fff; color: var(--c2v-blue-dark); }
.cta-light:hover, .cta-light:focus { background: var(--c2v-blue-light); color: var(--c2v-blue-dark); }

.proof { position: relative; z-index: 2; margin-top: -68px; }
.proof-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	background: #fff;
	border: 1px solid var(--c2v-line);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}
.proof-grid > div { padding: 24px 30px; border-left: 1px solid var(--c2v-line); }
.proof-grid > div:first-child { border-left: 0; }
.proof-grid dt { color: var(--c2v-blue); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.proof-grid dd { margin: 4px 0 0; color: var(--c2v-muted); font-size: 15px; }

.band { padding: 72px 0; scroll-margin-top: 72px; }
.band-tint { background: var(--c2v-bg); }
.band h2, .closing h2 { margin: 0 0 12px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.band h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.band p { margin: 0; color: var(--c2v-text); }
.band .section-lead { max-width: 840px; margin: 0 0 36px; color: var(--c2v-muted); font-size: 18px; }

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0;
	list-style: none;
	counter-reset: step;
}
.steps li { counter-increment: step; line-height: inherit; }
.steps li:before {
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	background: var(--c2v-blue-light);
	border-radius: 50%;
	color: var(--c2v-blue-dark);
	font-weight: 700;
}

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { padding: 28px; background: #fff; border: 1px solid var(--c2v-line); border-radius: 12px; }
.tier h3 { color: var(--c2v-blue); font-size: 20px; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }

.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.band .about-mission { color: var(--c2v-navy); font-size: 25px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.about p + p { margin-top: 14px; }

.closing { padding: 52px 0; background: var(--c2v-blue-dark); color: #fff; }
.closing .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { margin-bottom: 6px; color: #fff; font-size: 28px; }
.closing p { max-width: 640px; margin: 0; color: #E2EEF7; }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
	.hero { padding: 56px 0 128px; }
	.hero h1 { font-size: 38px; }
	.hero-lead { font-size: 18px; }
	.proof-grid, .steps, .tiers, .extras, .about { grid-template-columns: 1fr; }
	.proof-grid > div { border-top: 1px solid var(--c2v-line); border-left: 0; }
	.proof-grid > div:first-child { border-top: 0; }
	.about { gap: 20px; }
	.band { padding: 52px 0; }
	.band h2 { font-size: 26px; }
	.closing .site-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
	.site-wrap { padding: 0 18px; }
	.site-nav { gap: 16px; }
	.hero h1 { font-size: 32px; }
	#banner .header h1, .error-page #title h1 { font-size: 26px; }
	#bluebg { padding: 0 12px 40px; }
	#bluebg > .padded, #bluebg > .message { padding: 24px 20px 28px; }
	#sitemap .site-wrap { gap: 24px 40px; }
}
