/*!
 * License Store — main stylesheet
 * Phase 1 baseline. Phase 7 will replace this with the full design system.
 *
 * @package License_Store
 */

/* ---------------------------------------------------------------------------
 * 1. Design tokens (CSS custom properties)
 * --------------------------------------------------------------------------- */
:root {
	--ls-color-primary: #5B5BD6;
	--ls-color-primary-dark: #4848B8;
	--ls-color-secondary: #1F2937;
	--ls-color-accent: #10B981;
	--ls-color-bg: #FFFFFF;
	--ls-color-bg-alt: #F8FAFC;
	--ls-color-text: #0F172A;
	--ls-color-muted: #64748B;
	--ls-color-border: #E2E8F0;

	--ls-radius-sm: 6px;
	--ls-radius-md: 10px;
	--ls-radius-lg: 16px;
	--ls-radius-pill: 9999px;

	--ls-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--ls-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
	--ls-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);

	--ls-font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--ls-font-size-base: 16px;
	--ls-line-height-base: 1.6;

	--ls-container: 1200px;
	--ls-gutter: 24px;

	--ls-transition: 200ms ease;
}

/* ---------------------------------------------------------------------------
 * 2. Reset
 * --------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: var(--ls-font-size-base);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--ls-font-base);
	font-size: 1rem;
	line-height: var(--ls-line-height-base);
	color: var(--ls-color-text);
	background-color: var(--ls-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ls-color-primary);
	text-decoration: none;
	transition: color var(--ls-transition);
}

a:hover,
a:focus {
	color: var(--ls-color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	color: var(--ls-color-secondary);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}

/* ---------------------------------------------------------------------------
 * 3. Utilities
 * --------------------------------------------------------------------------- */
.container {
	max-width: var(--ls-container);
	margin: 0 auto;
	padding-left: var(--ls-gutter);
	padding-right: var(--ls-gutter);
}

.container--narrow {
	max-width: 760px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	clip-path: inset(50%);
}

.skip-link {
	position: absolute;
	left: -1000px;
	top: auto;
	background: var(--ls-color-secondary);
	color: #fff;
	padding: 0.5em 1em;
	z-index: 10000;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ---------------------------------------------------------------------------
 * 4. Site layout
 * --------------------------------------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
	padding: 2rem 0;
}

.site-main--home {
	padding-top: 0;
}

/* ---------------------------------------------------------------------------
 * 5. Site header
 * --------------------------------------------------------------------------- */
.site-header {
	background-color: var(--ls-color-bg);
	border-bottom: 1px solid var(--ls-color-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.site-header--transparent {
	background-color: transparent;
	border-bottom-color: transparent;
	color: #fff;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-branding img {
	max-height: 40px;
	width: auto;
}

.site-title {
	font-size: 1.25rem;
	margin: 0;
}

.site-description {
	font-size: 0.875rem;
	color: var(--ls-color-muted);
	margin: 0;
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--ls-color-border);
	border-radius: var(--ls-radius-md);
	padding: 0.5em 0.75em;
	cursor: pointer;
}

.primary-menu,
.footer-menu {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a,
.footer-menu a {
	color: var(--ls-color-text);
	font-weight: 500;
}

.primary-menu a:hover,
.primary-menu a:focus {
	color: var(--ls-color-primary);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--ls-radius-pill);
	background: var(--ls-color-bg-alt);
	color: var(--ls-color-text);
}

.header-action__count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--ls-color-primary);
	color: #fff;
	font-size: 0.7rem;
	min-width: 18px;
	height: 18px;
	border-radius: var(--ls-radius-pill);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* ---------------------------------------------------------------------------
 * 6. Site footer
 * --------------------------------------------------------------------------- */
.site-footer {
	background-color: var(--ls-color-bg-alt);
	border-top: 1px solid var(--ls-color-border);
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

.site-footer__widgets-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-footer__bottom {
	border-top: 1px solid var(--ls-color-border);
	padding-top: 1.5rem;
}

.footer-menu {
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer__copy {
	text-align: center;
	color: var(--ls-color-muted);
	font-size: 0.875rem;
	margin: 1rem 0 0;
}

/* ---------------------------------------------------------------------------
 * 7. Components
 * --------------------------------------------------------------------------- */
.entry-header,
.entry-footer,
.entry-summary,
.entry-content,
.entry-thumbnail {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0 0 0.5em;
}

.post-card,
.ls-product-card {
	background: var(--ls-color-bg);
	border: 1px solid var(--ls-color-border);
	border-radius: var(--ls-radius-lg);
	overflow: hidden;
	transition: box-shadow var(--ls-transition), transform var(--ls-transition);
}

.post-card:hover,
.ls-product-card:hover {
	box-shadow: var(--ls-shadow-md);
	transform: translateY(-2px);
}

.post-card__thumbnail,
.ls-product-card__thumb {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--ls-color-bg-alt);
}

.post-card__body,
.ls-product-card__body {
	padding: 1.25rem;
}

.ls-product-card__title,
.post-card__title {
	font-size: 1.125rem;
	margin: 0 0 0.25em;
}

.ls-product-card__subtitle,
.post-card__meta {
	color: var(--ls-color-muted);
	font-size: 0.875rem;
	margin: 0 0 0.75em;
}

.ls-product-card__meta,
.post-card__more {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ls-cta {
	background: linear-gradient(135deg, #5B5BD6 0%, #7C3AED 100%);
	color: #fff;
	padding: 4rem 0;
	border-radius: var(--ls-radius-lg);
	margin: 3rem 0;
	text-align: center;
}

.ls-cta__title {
	font-size: 1.75rem;
	color: #fff;
	margin: 0 0 0.5em;
}

.ls-cta__subtitle {
	font-size: 1.05rem;
	margin: 0 0 1.5em;
	opacity: 0.9;
}

.ls-cta__button {
	display: inline-block;
	background: #fff;
	color: var(--ls-color-primary);
	font-weight: 600;
	padding: 0.75em 1.5em;
	border-radius: var(--ls-radius-pill);
}

.breadcrumb__list,
.pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.875rem;
}

.breadcrumb__item:not(:last-child)::after {
	content: '/';
	margin-left: 0.5rem;
	color: var(--ls-color-muted);
}

.empty-state {
	text-align: center;
	padding: 3rem 1rem;
}

.empty-state__title {
	margin: 0 0 0.5em;
}

/* ---------------------------------------------------------------------------
 * 8. Forms baseline
 * --------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid var(--ls-color-border);
	border-radius: var(--ls-radius-md);
	font: inherit;
	background: var(--ls-color-bg);
}

button,
.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6em 1.2em;
	background: var(--ls-color-primary);
	color: #fff;
	border: 0;
	border-radius: var(--ls-radius-md);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--ls-transition);
}

button:hover,
.button:hover,
input[type="submit"]:hover {
	background: var(--ls-color-primary-dark);
}

/* ---------------------------------------------------------------------------
 * 13. Elementor widget extensions
 *
 * These classes are used by the Elementor widgets in inc/elementor/widgets/
 * and by any page built with Elementor. Kept here (rather than inline) so
 * Elementor's frontend preview and live edit match what the SaaS
 * template renders.
 * ------------------------------------------------------------------------- */

/* CTA banner — extends the existing .ls-cta block */
.ls-cta__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--ls-gutter);
}
.ls-cta__eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.15);
	padding: 0.35em 0.9em;
	border-radius: var(--ls-radius-pill);
	margin: 0 0 1em;
}
.ls-cta__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}
.ls-cta .button--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.ls-cta .button--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Counter grid (stat counter widget) */
.ls-counter-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 3rem 0;
	text-align: center;
}
@media (max-width: 900px) {
	.ls-counter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ls-counter-grid { grid-template-columns: 1fr; }
}
.ls-counter {
	padding: 1.5rem 1rem;
	background: var(--ls-color-bg-alt);
	border-radius: var(--ls-radius-lg);
	transition: transform var(--ls-transition), box-shadow var(--ls-transition);
}
.ls-counter:hover {
	transform: translateY(-4px);
	box-shadow: var(--ls-shadow-md);
}
.ls-counter__value {
	display: block;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--ls-color-primary);
	line-height: 1.1;
	margin-bottom: 0.25em;
	font-variant-numeric: tabular-nums;
}
.ls-counter__label {
	display: block;
	font-size: 0.95rem;
	color: var(--ls-color-muted);
	letter-spacing: 0.02em;
}

/* Card lift effect — applied to existing home sections when nested
   inside the Elementor wrapper, so widgets get the same modern hover
   treatment as static template-parts. */
.ls-elementor-widget .ls-home-category-card,
.ls-elementor-widget .ls-home-benefit,
.ls-elementor-widget .ls-home-testimonial,
.ls-elementor-widget .ls-home-plan {
	transition: transform var(--ls-transition), box-shadow var(--ls-transition);
}
.ls-elementor-widget .ls-home-category-card:hover,
.ls-elementor-widget .ls-home-benefit:hover,
.ls-elementor-widget .ls-home-testimonial:hover,
.ls-elementor-widget .ls-home-plan:hover {
	transform: translateY(-4px);
	box-shadow: var(--ls-shadow-md);
}
