/*
Theme Name: ZOLOkey
Theme URI: https://zolokey.app
Author: 5S Innovation
Description: Custom theme for ZOLOkey — the hyperlocal neighborhood platform. Discover. Connect. Promote. Grow.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zolokey
*/

:root {
	--bg: #fff;
	--bg2: #f5f5f7;
	--tx: #1d1d1f;
	--mu: #6e6e73;
	--blue: #1a5cff;
	--gold: #b59700;
	--card: #fff;
	--line: #d2d2d7;
	--dk: #000;
	--ok: #1a8f3c;
	--err: #d70015;
	--nav: rgba(245, 245, 247, .8);
	--radius: 22px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #000;
		--bg2: #161617;
		--tx: #f5f5f7;
		--mu: #a1a1a6;
		--card: #1d1d1f;
		--line: #333;
		--gold: #d4b000;
		--ok: #30d158;
		--err: #ff453a;
		--nav: rgba(22, 22, 23, .8);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #000;
	--bg2: #161617;
	--tx: #f5f5f7;
	--mu: #a1a1a6;
	--card: #1d1d1f;
	--line: #333;
	--gold: #d4b000;
	--ok: #30d158;
	--err: #ff453a;
	--nav: rgba(22, 22, 23, .8);
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	background: var(--bg);
	color: var(--tx);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

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

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: var(--blue);
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
}

.skip:focus {
	left: 8px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Navigation ---------- */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nav);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-nav {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: 0;
	}
}

.nav {
	max-width: 1024px;
	margin: auto;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	gap: 16px;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 18px;
}

.links {
	display: flex;
	gap: 22px;
	list-style: none;
	padding: 0;
}

.links a {
	font-size: 13px;
	color: var(--tx);
	opacity: .8;
	text-decoration: none;
	white-space: nowrap;
}

.links a:hover,
.links .current-menu-item > a,
.links .current_page_item > a,
.links a[aria-current="page"] {
	opacity: 1;
	color: var(--blue);
}

.icon-btn {
	background: none;
	border: 0;
	color: var(--tx);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	opacity: .8;
}

.icon-btn:hover {
	opacity: 1;
	background: var(--bg2);
}

.icon-btn svg {
	width: 18px;
	height: 18px;
}

.theme-toggle .moon {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .sun {
		display: none;
	}

	:root:not([data-theme="light"]) .theme-toggle .moon {
		display: block;
	}
}

.menu-toggle {
	display: none;
}

@media (max-width: 640px) {
	.menu-toggle {
		display: grid;
	}

	.links {
		display: none;
		position: absolute;
		top: 52px;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px 20px 16px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
	}

	.site-nav.open .links {
		display: flex;
	}

	.links a {
		display: block;
		font-size: 17px;
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	.links li:last-child a {
		border-bottom: 0;
	}
}

/* ---------- Wordmark ---------- */
.wm {
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
}

.wm i {
	font-style: normal;
	color: var(--blue);
}

.wm u {
	text-decoration: none;
	color: var(--gold);
}

.logo {
	font-size: 26px;
}

.wm.big {
	font-size: clamp(44px, 9vw, 84px);
	margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	border: 1px solid var(--blue);
	border-radius: 980px;
	padding: 11px 22px;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	transition: filter .2s, transform .2s;
}

.btn:hover {
	filter: brightness(1.1);
}

.btn:active {
	transform: scale(.98);
}

.btn.o {
	background: none;
	color: var(--blue);
}

.dark .btn.o {
	color: #6c97ff;
	border-color: #6c97ff;
}

/* ---------- Sections & type ---------- */
section {
	padding: 90px 20px;
	text-align: center;
}

.w {
	max-width: 1024px;
	margin: auto;
}

.narrow {
	max-width: 760px;
	margin: auto;
}

.eb {
	font-size: 21px;
	font-weight: 600;
	color: var(--blue);
	margin-bottom: 6px;
}

h1 {
	font-size: clamp(44px, 8vw, 88px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -.03em;
}

h2 {
	font-size: clamp(32px, 5.5vw, 56px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.025em;
}

h3 {
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.25;
}

.lead {
	font-size: clamp(19px, 2.4vw, 28px);
	color: var(--mu);
	max-width: 720px;
	margin: 16px auto 0;
	line-height: 1.3;
}

.body {
	font-size: 19px;
	color: var(--mu);
	max-width: 720px;
	margin: 18px auto 0;
}

.body strong {
	color: var(--tx);
}

.grad {
	background: linear-gradient(90deg, #1a5cff, #a45cff, #ff6a88);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ctas {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 26px;
}

.gray {
	background: var(--bg2);
}

.dark {
	background: var(--dk);
	color: #f5f5f7;
	--card: #1d1d1f;
	--mu: #a1a1a6;
	--line: #333;
	--bg2: #161617;
}

.dark .lead {
	color: #a1a1a6;
}

/* ---------- Cards & grids ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	margin-top: 48px;
	text-align: left;
}

.grid {
	grid-template-columns: repeat(4, 1fr);
}

.grid.g3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid.g5 {
	grid-template-columns: repeat(5, 1fr);
}

.grid.g5 .card {
	padding: 24px;
}

@media (max-width: 960px) {
	.grid,
	.grid.g5 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid.g5 > :last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 800px) {
	.grid.g3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.grid,
	.grid.g5 {
		grid-template-columns: 1fr;
	}
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 28px;
	position: relative;
	transition: transform .3s ease, box-shadow .3s ease;
}

.card.alt {
	background: var(--bg2);
}

a.card {
	color: inherit;
	text-decoration: none;
	display: block;
}

a.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(26, 92, 255, .12);
}

.card p {
	color: var(--mu);
	font-size: 15px;
	margin-top: 8px;
}

.card .ic {
	font-size: 32px;
	margin-bottom: 12px;
	display: block;
}

.tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 8px;
}

.badge {
	position: absolute;
	top: 22px;
	right: 22px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 99px;
	background: rgba(26, 92, 255, .12);
	color: var(--blue);
}

.badge.soon {
	background: rgba(181, 151, 0, .14);
	color: var(--gold);
}

/* ---------- Phone mock ---------- */
.phone {
	width: 270px;
	margin: 48px auto 0;
	border-radius: 42px;
	border: 8px solid #1d1d1f;
	background: #fff;
	color: #1d1d1f;
	padding: 16px;
	text-align: left;
	box-shadow: 0 30px 80px rgba(26, 92, 255, .3);
}

.phone .s {
	background: #f2f5ff;
	border-radius: 14px;
	padding: 10px 12px;
	font-size: 12px;
	color: #6e6e73;
	margin-bottom: 12px;
}

.phone .l {
	border-radius: 16px;
	background: linear-gradient(135deg, #dfe8ff, #f4e7ff);
	padding: 14px;
	margin-bottom: 12px;
}

.phone .l b {
	display: block;
	font-size: 14px;
}

.phone .l span {
	font-size: 12px;
	color: #6e6e73;
}

.phone .pill {
	display: inline-block;
	background: #fff;
	border-radius: 99px;
	padding: 2px 8px;
	font-size: 11px;
	margin-top: 6px;
	margin-right: 4px;
}

.phone .b {
	background: var(--blue);
	color: #fff;
	text-align: center;
	border-radius: 10px;
	padding: 8px;
	font-size: 13px;
	margin-top: 10px;
}

.phone .n {
	font-size: 11px;
	text-align: center;
	color: #1a8f3c;
	margin-top: 8px;
}

/* ---------- Radius dial ---------- */
.face {
	width: min(320px, 80vw);
	aspect-ratio: 1;
	margin: 44px auto 0;
	border-radius: 50%;
	background: radial-gradient(circle, #111, #000);
	border: 10px solid #2a2a2c;
	position: relative;
	display: grid;
	place-items: center;
	box-shadow: 0 0 80px rgba(26, 92, 255, .35);
}

.ring {
	position: absolute;
	border-radius: 50%;
	border: 2px solid var(--blue);
	background: rgba(26, 92, 255, .15);
	transition: all .3s;
	width: 37.5%;
	height: 37.5%;
}

.dot {
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	position: relative;
	z-index: 1;
}

.rl {
	position: absolute;
	bottom: 14%;
	font-size: 24px;
	font-weight: 700;
}

input[type=range] {
	width: min(320px, 80vw);
	margin-top: 32px;
	accent-color: #1a5cff;
}

/* ---------- Stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.stats b {
	display: block;
	font-size: clamp(40px, 6vw, 64px);
	letter-spacing: -.03em;
}

.stats span {
	color: var(--mu);
	font-size: 15px;
}

/* ---------- Lists ---------- */
.list {
	max-width: 720px;
	margin: 36px auto 0;
	text-align: left;
	list-style: none;
	padding: 0;
}

.list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 17px;
}

.list li b {
	color: var(--blue);
}

.dark .list li b {
	color: #6c97ff;
}

.checks {
	list-style: none;
	padding: 0;
	margin: 36px auto 0;
	max-width: 720px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
	text-align: left;
}

.checks li {
	background: var(--card);
	border-radius: 14px;
	padding: 14px 16px 14px 46px;
	position: relative;
	font-size: 16px;
}

.checks li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border-radius: 50%;
	background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 32px auto 0;
	max-width: 820px;
	padding: 0;
	list-style: none;
}

.checks.alt li {
	background: var(--bg2);
}

.chips.left {
	justify-content: flex-start;
	margin-top: 18px;
}

.chips li {
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 9px 16px;
	font-size: 15px;
	background: var(--card);
}

/* ---------- Statement block ---------- */
.statement p {
	font-size: clamp(22px, 3.2vw, 34px);
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -.015em;
	color: var(--mu);
	margin-top: 10px;
}

.statement p.hl {
	color: var(--tx);
	margin-top: 28px;
}

/* ---------- Vision / mission split ---------- */
.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px;
	margin-top: 48px;
	text-align: left;
}

.split .card {
	padding: 36px;
}

.split h3 {
	font-size: 28px;
	margin-bottom: 4px;
}

.split .card p {
	font-size: 17px;
}

.split ul {
	margin-top: 14px;
	padding-left: 20px;
	color: var(--mu);
}

.split li {
	padding: 4px 0;
}

/* ---------- Roadmap ---------- */
.roadmap {
	list-style: none;
	padding: 0;
	margin: 48px auto 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 0;
	counter-reset: step;
}

.roadmap li {
	counter-increment: step;
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
}

.roadmap li span {
	border: 1px solid #333;
	border-radius: 99px;
	padding: 10px 16px;
	background: #1d1d1f;
	white-space: nowrap;
}

.roadmap li span::before {
	content: counter(step);
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #333;
	font-size: 11px;
	margin-right: 8px;
	vertical-align: 1px;
}

.roadmap li.now span {
	background: var(--blue);
	border-color: var(--blue);
}

.roadmap li.now span::before {
	background: rgba(255, 255, 255, .25);
}

.roadmap li:not(:last-child)::after {
	content: "→";
	color: #6e6e73;
	margin: 0 10px;
}

@media (max-width: 640px) {
	.roadmap {
		flex-direction: column;
		align-items: center;
	}

	.roadmap li {
		flex-direction: column;
	}

	.roadmap li:not(:last-child)::after {
		content: "↓";
		margin: 6px 0;
	}
}

/* ---------- Parent company band ---------- */
.parent {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 6px 16px 6px 6px;
	font-size: 14px;
	color: var(--mu);
	margin-bottom: 22px;
}

.parent b {
	display: inline-grid;
	place-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: 99px;
	background: var(--tx);
	color: var(--bg);
	font-size: 12px;
	letter-spacing: .02em;
}

/* ---------- Forms ---------- */
.zk-form {
	max-width: 520px;
	margin: 40px auto 0;
	text-align: left;
	display: grid;
	gap: 14px;
}

.zk-form label {
	font-size: 14px;
	color: var(--mu);
}

.zk-form input,
.zk-form textarea,
.zk-form select {
	width: 100%;
	padding: 13px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--tx);
	font: inherit;
	margin-top: 4px;
}

.zk-form input:focus,
.zk-form textarea:focus,
.zk-form select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(26, 92, 255, .18);
}

.zk-form textarea {
	min-height: 140px;
	resize: vertical;
}

.zk-form .hp {
	position: absolute;
	left: -9999px;
}

.notice {
	max-width: 520px;
	margin: 32px auto 0;
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 600;
	text-align: center;
}

.notice.ok {
	color: var(--ok);
	background: rgba(48, 209, 88, .1);
}

.notice.err {
	color: var(--err);
	background: rgba(255, 69, 58, .1);
}

.contact-alt {
	margin-top: 36px;
	font-size: 17px;
	color: var(--mu);
}

/* ---------- Generic content (page.php / index.php) ---------- */
.entry {
	max-width: 720px;
	margin: auto;
	text-align: left;
	font-size: 18px;
}

.entry > * + * {
	margin-top: 1em;
}

.entry h2 {
	font-size: 32px;
	margin-top: 1.4em;
}

.entry h3 {
	margin-top: 1.2em;
}

.entry ul,
.entry ol {
	padding-left: 1.4em;
}

.post-list {
	max-width: 720px;
	margin: 40px auto 0;
	text-align: left;
	list-style: none;
	padding: 0;
}

.post-list li {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.post-list a {
	color: var(--tx);
	text-decoration: none;
}

.post-list a:hover h3 {
	color: var(--blue);
}

.post-list time {
	font-size: 13px;
	color: var(--mu);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--bg2);
	color: var(--mu);
	font-size: 13px;
	padding: 48px 20px 28px;
	border-top: 1px solid var(--line);
}

.foot {
	max-width: 1024px;
	margin: auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
}

.foot .wm {
	font-size: 22px;
	margin-bottom: 10px;
}

.foot h4 {
	font-size: 12px;
	font-weight: 600;
	color: var(--tx);
	margin-bottom: 10px;
}

.foot ul {
	list-style: none;
	padding: 0;
}

.foot li {
	padding: 3px 0;
}

.foot a {
	color: var(--mu);
	text-decoration: none;
}

.foot a:hover {
	color: var(--blue);
}

.legal {
	max-width: 1024px;
	margin: 32px auto 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
}

@media (max-width: 640px) {
	section {
		padding: 70px 16px;
	}

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

	.foot > :first-child {
		grid-column: 1 / -1;
	}
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .rv {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .8s ease, transform .8s ease;
}

.js .rv.in {
	opacity: 1;
	transform: none;
}

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

	.js .rv {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ring,
	.card,
	.btn {
		transition: none;
	}
}
