/*
Theme Name: LeadSnap AI
Theme URI: https://example.com/
Author: LeadSnap AI
Author URI: https://example.com/
Description: Lightweight WordPress theme for the LeadSnap AI marketing site. Built for shortcode-driven pages and SiteGround-friendly deployment.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: leadsnap-ai-theme
*/

:root {
	--ls-theme-ink: #17202a;
	--ls-theme-muted: #5d6975;
	--ls-theme-line: #d9e1e8;
	--ls-theme-soft: #f5f8fb;
	--ls-theme-panel: #ffffff;
	--ls-theme-accent: #0f766e;
	--ls-theme-accent-dark: #115e59;
	--ls-theme-focus: rgba(37, 99, 235, 0.28);
	--ls-theme-width: 1120px;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--ls-theme-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--ls-theme-accent-dark);
}

a:hover {
	color: var(--ls-theme-accent);
}

.screen-reader-text,
.ls-skip-link {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ls-skip-link:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	border-radius: 8px;
	background: #ffffff;
	color: var(--ls-theme-ink);
	box-shadow: 0 10px 30px rgba(23, 32, 42, 0.18);
}

.ls-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ls-site-header {
	position: sticky;
	z-index: 20;
	top: 0;
	border-bottom: 1px solid var(--ls-theme-line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
}

.ls-header-inner,
.ls-footer-inner,
.ls-main > .entry-content > :not(.leadsnap-ai),
.ls-main > .entry-header,
.ls-main > .page-content {
	width: min(var(--ls-theme-width), calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

.ls-header-inner {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ls-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ls-theme-ink);
	font-weight: 900;
	text-decoration: none;
}

.ls-brand img {
	width: 34px;
	height: 34px;
}

.ls-brand-text {
	display: grid;
	gap: 0;
	line-height: 1.05;
}

.ls-brand-text span {
	color: var(--ls-theme-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.ls-nav-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ls-nav-toggle {
	display: none;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--ls-theme-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--ls-theme-ink);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.ls-primary-nav ul,
.ls-footer-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-primary-nav a,
.ls-footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--ls-theme-muted);
	font-weight: 800;
	text-decoration: none;
}

.ls-primary-nav a:hover,
.ls-primary-nav .current-menu-item > a,
.ls-footer-nav a:hover {
	background: var(--ls-theme-soft);
	color: var(--ls-theme-ink);
}

.ls-header-cta {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--ls-theme-accent);
	color: #ffffff;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
}

.ls-header-cta:hover {
	background: var(--ls-theme-accent-dark);
	color: #ffffff;
}

.ls-main {
	flex: 1;
}

.ls-main > .entry-header {
	padding: 42px 0 18px;
}

.ls-main .entry-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: 0;
}

.ls-main > .entry-content > :not(.leadsnap-ai),
.ls-main > .page-content {
	margin-top: 28px;
	margin-bottom: 28px;
}

.ls-main > .entry-content > p,
.ls-main > .page-content p {
	max-width: 760px;
	color: var(--ls-theme-muted);
}

.ls-site-footer {
	border-top: 1px solid var(--ls-theme-line);
	background: var(--ls-theme-soft);
}

.ls-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
	gap: 28px;
	padding: 36px 0;
}

.ls-footer-brand {
	max-width: 560px;
}

.ls-footer-brand p {
	margin: 12px 0 0;
	color: var(--ls-theme-muted);
}

.ls-footer-nav ul {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ls-footer-meta {
	width: min(var(--ls-theme-width), calc(100% - 32px));
	margin: 0 auto;
	padding: 18px 0 28px;
	border-top: 1px solid var(--ls-theme-line);
	color: var(--ls-theme-muted);
	font-size: 0.92rem;
}

.ls-footer-meta p {
	margin: 0;
}

.ls-main a:focus-visible,
.ls-site-header a:focus-visible,
.ls-site-footer a:focus-visible,
.ls-nav-toggle:focus-visible {
	outline: 3px solid var(--ls-theme-focus);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.ls-header-inner {
		min-height: 66px;
	}

	.ls-nav-toggle {
		display: inline-flex;
		align-items: center;
	}

	.ls-nav-wrap {
		position: absolute;
		top: calc(100% + 1px);
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		padding: 14px 16px 18px;
		border-bottom: 1px solid var(--ls-theme-line);
		background: #ffffff;
		box-shadow: 0 18px 35px rgba(23, 32, 42, 0.12);
	}

	.ls-nav-wrap.is-open {
		display: flex;
	}

	.ls-primary-nav ul {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}

	.ls-primary-nav a,
	.ls-header-cta {
		width: 100%;
		justify-content: center;
	}

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

	.ls-footer-nav ul {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.ls-header-inner,
	.ls-footer-inner,
	.ls-footer-meta,
	.ls-main > .entry-content > :not(.leadsnap-ai),
	.ls-main > .entry-header,
	.ls-main > .page-content {
		width: min(100% - 24px, var(--ls-theme-width));
	}

	.ls-brand-text span {
		display: none;
	}
}
