/* Steve Sobering for Mayor */

:root {
	--navy: #13294b;
	--navy-deep: #0c1c35;
	--gold: #f2b33d;
	--gold-deep: #d99a1e;
	--ink: #1d2433;
	--muted: #5b6475;
	--paper: #ffffff;
	--sand: #f5f2ec;
	--line: rgba(19, 41, 75, 0.12);
	--nav-h: 4rem;
	--radius: 14px;
	--max: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	margin: 0 0 0.5em;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--navy);
}

h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

a { color: var(--navy); }

.eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.lead {
	font-size: 1.25rem;
	color: var(--muted);
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--gold);
	color: var(--navy-deep);
	font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

/* Buttons */

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.button {
	display: inline-flex;
	align-items: center;
	padding: 0.9rem 1.6rem;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.button:hover { transform: translateY(-2px); }

.button--primary {
	background: var(--gold);
	color: var(--navy-deep);
}
.button--primary:hover { background: #ffc34f; }

.button--ghost {
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}
.button--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Nav */

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--nav-h);
	padding: 0 clamp(1rem, 4vw, 2.5rem);
	color: #fff;
	transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav.is-solid {
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--line);
	color: var(--navy);
}

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

.nav__brand {
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.nav__brand span { font-weight: 500; opacity: 0.75; }

.nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav li a {
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
}

.nav li a.nav__cta {
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: var(--gold);
	color: var(--navy-deep);
	font-weight: 600;
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 6vw, 5rem) 5rem;
	background: var(--navy-deep);
	color: #fff;
	overflow: hidden;
}

/* Photo fills the right side; navy blends in from the left under the text */
.hero__image {
	display: block;
	position: absolute;
	inset: 0 0 0 36%;
}

.hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 42% 30%;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, var(--navy-deep) 36%, rgba(12, 28, 53, 0.6) 44%, rgba(12, 28, 53, 0) 60%),
		linear-gradient(to bottom, rgba(12, 28, 53, 0.6) 0%, rgba(12, 28, 53, 0) 18%);
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 34rem;
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
	font-size: clamp(3rem, 7vw, 5.75rem);
	color: #fff;
	margin-bottom: 0.25em;
}
.hero h1 span {
	display: block;
	color: var(--gold);
}

.hero__tagline {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	margin-bottom: 2rem;
	max-width: 30rem;
}

/* Shared section layout */

.section-head {
	max-width: 44rem;
	margin: 0 auto 3rem;
	text-align: center;
}

/* About */

.about {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
}

.about__image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: var(--radius);
	box-shadow: 0 30px 60px -30px rgba(12, 28, 53, 0.45);
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 2rem 0;
	padding: 1.5rem 0;
	list-style: none;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.facts strong {
	display: block;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--navy);
	line-height: 1.1;
}
.facts span {
	font-size: 0.875rem;
	color: var(--muted);
}

/* Points: bold headline + one line */

.points {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.points li {
	position: relative;
	padding: 0 0 1.25rem 2rem;
	color: var(--muted);
}

.points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.25);
}

.points strong {
	display: block;
	font-size: 1.125rem;
	color: var(--ink);
}

/* Platform cards */

.platform {
	padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3rem);
	background: var(--sand);
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: var(--max);
	margin: 0 auto;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 26rem;
	padding: 1.75rem;
	border-radius: var(--radius);
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.card img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(12, 28, 53, 0.95) 0%, rgba(12, 28, 53, 0.2) 65%);
}

.card:hover img { transform: scale(1.05); }

.card__num {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gold);
	letter-spacing: 0.1em;
}

.card h3 { color: #fff; margin: 0.25rem 0 0.4rem; font-size: 1.6rem; }
.card p { margin: 0; opacity: 0.88; }

/* Features: sticky photo beside scrolling points */

.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

.feature__image {
	position: sticky;
	top: var(--nav-h);
	height: calc(100vh - var(--nav-h));
	overflow: hidden;
}

.feature__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.feature__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
	max-width: 42rem;
}

.feature--flip .feature__image { order: 2; }
.feature--muted { background: var(--sand); }

/* Approach */

.approach {
	padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
	background: var(--navy);
	color: #fff;
}

.approach h2 { color: #fff; }
.approach .eyebrow { color: var(--gold); }

.steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	padding-top: 3.5rem;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--gold);
	color: var(--navy-deep);
	font-weight: 800;
}

.steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 3.25rem;
	right: -0.75rem;
	height: 2px;
	background: rgba(255, 255, 255, 0.2);
}

.steps strong {
	display: block;
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.steps span { color: rgba(255, 255, 255, 0.75); font-size: 0.975rem; }

/* Gallery: horizontal snap strip */

.gallery {
	padding: clamp(4rem, 10vw, 7rem) 0;
}

.gallery .section-head { padding: 0 1.25rem; }

.gallery__track {
	display: flex;
	gap: 1rem;
	padding: 0 clamp(1.25rem, 5vw, 3rem) 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 clamp(1.25rem, 5vw, 3rem);
	scrollbar-width: thin;
}

.gallery figure {
	flex: 0 0 auto;
	width: min(20rem, 75vw);
	margin: 0;
	scroll-snap-align: start;
}

.gallery figure.wide { width: min(36rem, 88vw); }

.gallery img {
	width: 100%;
	height: 26rem;
	object-fit: cover;
	border-radius: var(--radius);
}

.gallery figcaption {
	margin-top: 0.6rem;
	font-size: 0.9rem;
	color: var(--muted);
}

/* Vote */

.vote {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 90vh;
	padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
	color: #fff;
	text-align: center;
	overflow: hidden;
}

.vote__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vote::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(12, 28, 53, 0.78);
}

.vote__content {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.vote h2 { color: #fff; }
.vote .eyebrow { color: var(--gold); }
.vote .lead { color: rgba(255, 255, 255, 0.85); }
.vote .buttons { justify-content: center; }

.vote__countdown {
	display: inline-block;
	margin-bottom: 1.5rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	background: rgba(242, 179, 61, 0.18);
	color: var(--gold);
	font-weight: 600;
}

/* Footer */

.footer {
	padding: 3rem 1.25rem;
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	font-size: 0.9rem;
}

.footer p { margin: 0; }

.social {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.2s ease;
}
.social a:hover { background: rgba(255, 255, 255, 0.1); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* Scroll reveal (only when JS is running) */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.button, .card img { transition: none; }
}

/* Tablet */

@media (max-width: 1000px) {
	.cards { grid-template-columns: 1fr; }
	.card { min-height: 18rem; }
	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps li { padding: 0 0 1.75rem 3.75rem; min-height: 3.5rem; }
	.steps li:not(:last-child)::after {
		top: 2.75rem;
		bottom: 0.25rem;
		left: 1.25rem;
		right: auto;
		width: 2px;
		height: auto;
	}
}

/* Mobile */

@media (max-width: 800px) {
	:root { --nav-h: 3.5rem; }

	/* Hero stacks: photo on top, text below on navy */
	.hero { display: block; padding: 0; min-height: 0; }
	.hero__image { position: relative; inset: auto; height: 62svh; min-height: 22rem; }
	.hero__image img { object-position: 46% 30%; }
	.hero::after {
		bottom: auto;
		height: 62svh;
		min-height: 22rem;
		background:
			linear-gradient(to top, var(--navy-deep) 0%, rgba(12, 28, 53, 0) 35%),
			linear-gradient(to bottom, rgba(12, 28, 53, 0.65) 0%, rgba(12, 28, 53, 0) 22%);
	}
	.hero__content { margin-top: -4.5rem; padding: 0 1.25rem 3rem; }

	.nav__brand { display: none; }
	.nav { justify-content: center; }
	.nav li a { font-size: 0.875rem; }

	.about { grid-template-columns: 1fr; }
	.about__image img { aspect-ratio: 1 / 1; }

	.facts { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }

	.feature { grid-template-columns: 1fr; min-height: 0; }
	.feature__image { position: relative; top: 0; height: 60vh; }
	.feature--flip .feature__image { order: 0; }

	.gallery img { height: 20rem; }
}

@media (max-width: 420px) {
	.nav ul { gap: 0.85rem; }
	.nav li a { font-size: 0.8125rem; }
	.nav li a.nav__cta { padding: 0.4rem 0.75rem; }
	.facts span { font-size: 0.8rem; }
}
