/*
Theme Name: Lumen SEO Starter
Theme URI: https://example.com/lumen
Author: Lumen
Author URI: https://example.com
Description: A fast, accessible, SEO-first starter theme built for Elementor. Ships with schema.org JSON-LD, Open Graph and Twitter cards, breadcrumbs, and three custom Elementor widgets (Slider, Packages, Blog Previews) so every homepage section stays editable in the builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumen
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--lm-ink: #16181d;
	--lm-ink-soft: #4a4f5a;
	--lm-ink-faint: #767c88;
	--lm-line: #e4e6ea;
	--lm-bg: #ffffff;
	--lm-bg-soft: #f7f8fa;
	--lm-accent: #1f6feb;
	--lm-accent-dark: #1858c4;
	--lm-accent-soft: #eaf1fe;
	--lm-radius: 12px;
	--lm-radius-lg: 18px;
	--lm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--lm-shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 48px rgba(16, 24, 40, .10);
	--lm-max: 1160px;
	--lm-narrow: 720px;
	--lm-gap: clamp(1.25rem, 3vw, 2.5rem);
	--lm-section: clamp(3.5rem, 8vw, 6.5rem);
	--lm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--lm-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--lm-bg);
	color: var(--lm-ink);
	font-family: var(--lm-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--lm-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lm-accent-dark); }

:focus-visible {
	outline: 3px solid var(--lm-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lm-font-display);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 .5em;
	color: var(--lm-ink);
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.25em; }

blockquote {
	border-left: 3px solid var(--lm-accent);
	padding: .25rem 0 .25rem 1.25rem;
	margin-left: 0;
	color: var(--lm-ink-soft);
	font-style: italic;
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

pre {
	background: var(--lm-bg-soft);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
	padding: 1rem 1.25rem;
	overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--lm-line); padding: .6rem .8rem; text-align: left; }
th { background: var(--lm-bg-soft); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--lm-line); margin: var(--lm-gap) 0; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.lm-container {
	width: 100%;
	max-width: var(--lm-max);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.lm-narrow { max-width: var(--lm-narrow); margin-inline: auto; }

.lm-section { padding-block: var(--lm-section); }
.lm-section--soft { background: var(--lm-bg-soft); }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--lm-ink);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 0 0 var(--lm-radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.lm-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	background: var(--lm-accent);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: .7rem 1.6rem;
	font: inherit;
	font-weight: 600;
	font-size: .975rem;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lm-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--lm-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--lm-shadow);
}

.lm-btn--ghost {
	background: transparent;
	color: var(--lm-ink);
	border-color: var(--lm-line);
}
.lm-btn--ghost:hover { background: var(--lm-bg-soft); color: var(--lm-ink); }

/* ==========================================================================
   5. Forms
   ========================================================================== */

input[type="text"], input[type="email"], input[type="url"],
input[type="tel"], input[type="search"], input[type="password"],
input[type="number"], select, textarea {
	width: 100%;
	padding: .7rem .9rem;
	font: inherit;
	color: var(--lm-ink);
	background: var(--lm-bg);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--lm-accent);
	box-shadow: 0 0 0 3px var(--lm-accent-soft);
	outline: none;
}

label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }

/* ==========================================================================
   6. Header
   ========================================================================== */

.lm-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--lm-line);
}

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

.lm-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--lm-ink); }
.lm-brand img { max-height: 44px; width: auto; }
.lm-brand__name { font-family: var(--lm-font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.lm-brand__tag { display: block; font-size: .78rem; color: var(--lm-ink-faint); font-family: var(--lm-font); font-weight: 400; }

.lm-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.lm-nav a {
	color: var(--lm-ink-soft);
	text-decoration: none;
	font-size: .975rem;
	font-weight: 500;
	padding: .35rem 0;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.lm-nav a:hover { color: var(--lm-ink); }
.lm-nav .current-menu-item > a,
.lm-nav .current_page_item > a { color: var(--lm-ink); border-bottom-color: var(--lm-accent); }

.lm-nav .sub-menu {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
	box-shadow: var(--lm-shadow-lg);
	padding: .5rem;
	min-width: 200px;
	flex-direction: column;
	gap: 0;
}
.lm-nav li { position: relative; }
.lm-nav li:hover > .sub-menu,
.lm-nav li:focus-within > .sub-menu { display: flex; }
.lm-nav .sub-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; border-bottom: 0; }
.lm-nav .sub-menu a:hover { background: var(--lm-bg-soft); }

.lm-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--lm-line);
	border-radius: 10px;
	padding: .5rem .7rem;
	cursor: pointer;
	color: var(--lm-ink);
}

@media (max-width: 860px) {
	.lm-nav-toggle { display: inline-flex; }
	.lm-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--lm-line);
		padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
		box-shadow: var(--lm-shadow);
	}
	.lm-nav.is-open { display: block; }
	.lm-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
	.lm-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--lm-line); }
	.lm-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 1rem; }
}

/* ==========================================================================
   7. Breadcrumbs
   ========================================================================== */

.lm-breadcrumbs {
	font-size: .875rem;
	color: var(--lm-ink-faint);
	padding-block: 1rem;
	border-bottom: 1px solid var(--lm-line);
}
.lm-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lm-breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--lm-line); }
.lm-breadcrumbs li:last-child::after { content: ""; }
.lm-breadcrumbs a { color: var(--lm-ink-faint); text-decoration: none; }
.lm-breadcrumbs a:hover { color: var(--lm-accent); text-decoration: underline; }

/* ==========================================================================
   8. Page & post
   ========================================================================== */

.lm-page-header { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.lm-page-header__eyebrow {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .75rem;
	font-weight: 700;
	color: var(--lm-accent);
	margin-bottom: .75rem;
}
.lm-page-header p.lm-lede { font-size: 1.175rem; color: var(--lm-ink-soft); max-width: 60ch; }

.lm-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: .9rem;
	color: var(--lm-ink-faint);
	margin-bottom: 1.5rem;
}
.lm-entry-meta a { color: var(--lm-ink-faint); }

.lm-featured { margin-bottom: 2.5rem; border-radius: var(--lm-radius-lg); overflow: hidden; }
.lm-featured img { width: 100%; }

.lm-content > * { max-width: var(--lm-narrow); margin-inline: auto; }
.lm-content > .alignwide { max-width: 1000px; }
.lm-content > .alignfull { max-width: none; }
.lm-content h2 { margin-top: 2em; }
.lm-content h3 { margin-top: 1.6em; }
.lm-content ul, .lm-content ol { padding-left: 1.4em; }
.lm-content li { margin-bottom: .4em; }

.lm-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.lm-tags a {
	font-size: .82rem;
	background: var(--lm-bg-soft);
	border: 1px solid var(--lm-line);
	color: var(--lm-ink-soft);
	padding: .25rem .75rem;
	border-radius: 999px;
	text-decoration: none;
}
.lm-tags a:hover { border-color: var(--lm-accent); color: var(--lm-accent); }

/* ==========================================================================
   9. Post grid / cards
   ========================================================================== */

.lm-grid {
	display: grid;
	gap: var(--lm-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.lm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius-lg);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lm-card:hover { transform: translateY(-3px); box-shadow: var(--lm-shadow-lg); border-color: transparent; }

.lm-card__media { aspect-ratio: 16 / 10; background: var(--lm-bg-soft); overflow: hidden; }
.lm-card__media img { width: 100%; height: 100%; object-fit: cover; }

.lm-card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.lm-card__cat {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-weight: 700;
	color: var(--lm-accent);
	margin-bottom: .5rem;
}
.lm-card__title { font-size: 1.22rem; margin-bottom: .5rem; line-height: 1.3; }
.lm-card__title a { color: inherit; text-decoration: none; }
.lm-card__title a:hover { color: var(--lm-accent); }
.lm-card__excerpt { color: var(--lm-ink-soft); font-size: .975rem; margin-bottom: 1rem; }
.lm-card__foot { margin-top: auto; font-size: .85rem; color: var(--lm-ink-faint); }

/* ==========================================================================
   10. Slider (Elementor widget + fallback)
   ========================================================================== */

.lm-slider { position: relative; border-radius: var(--lm-radius-lg); overflow: hidden; background: var(--lm-ink); }
.lm-slider__track { position: relative; }

.lm-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .55s ease;
	display: grid;
	align-items: end;
}
.lm-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.lm-slide__img { position: absolute; inset: 0; }
.lm-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.lm-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .45) 42%, rgba(10, 12, 16, 0) 68%);
}
.lm-slide__inner {
	position: relative;
	z-index: 2;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	max-width: 46rem;
	color: #fff;
}
.lm-slide__eyebrow {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .75rem;
	font-weight: 700;
	opacity: .85;
	margin-bottom: .6rem;
}
.lm-slide__title { color: #fff; font-size: clamp(1.7rem, 4.2vw, 3rem); margin-bottom: .5rem; }
.lm-slide__text { color: rgba(255, 255, 255, .88); font-size: 1.05rem; margin-bottom: 1.35rem; max-width: 34rem; }

.lm-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .15s ease;
}
.lm-slider__nav:hover { background: rgba(0, 0, 0, .7); }
.lm-slider__nav--prev { left: 14px; }
.lm-slider__nav--next { right: 14px; }
@media (max-width: 640px) { .lm-slider__nav { display: none; } }

.lm-slider__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: .45rem;
	background: rgba(0, 0, 0, .35);
	padding: .4rem .6rem;
	border-radius: 999px;
}
.lm-slider__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
}
.lm-slider__dot.is-active { background: #fff; }

/* ==========================================================================
   11. Packages
   ========================================================================== */

.lm-packages { display: grid; gap: var(--lm-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }

.lm-package {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius-lg);
	padding: 2rem 1.75rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.lm-package:hover { transform: translateY(-3px); box-shadow: var(--lm-shadow-lg); }

.lm-package--featured { border-color: var(--lm-accent); box-shadow: var(--lm-shadow-lg); }
.lm-package__badge {
	position: absolute;
	top: -.75rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--lm-accent);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .3rem .9rem;
	border-radius: 999px;
	white-space: nowrap;
}

.lm-package__name { font-size: 1.25rem; margin-bottom: .25rem; }
.lm-package__blurb { color: var(--lm-ink-faint); font-size: .92rem; margin-bottom: 1.25rem; }
.lm-package__price { font-family: var(--lm-font-display); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.lm-package__period { font-family: var(--lm-font); font-size: .9rem; color: var(--lm-ink-faint); font-weight: 400; }
.lm-package__features { list-style: none; margin: 1.5rem 0; padding: 0; }
.lm-package__features li {
	position: relative;
	padding-left: 1.65rem;
	margin-bottom: .6rem;
	font-size: .95rem;
	color: var(--lm-ink-soft);
}
.lm-package__features li::before {
	content: "";
	position: absolute;
	left: 0; top: .48em;
	width: 1rem; height: 1rem;
	border-radius: 50%;
	background: var(--lm-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f6feb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.lm-package .lm-btn { margin-top: auto; width: 100%; }

/* ==========================================================================
   12. Media + text block
   ========================================================================== */

.lm-split {
	display: grid;
	gap: clamp(1.75rem, 5vw, 4rem);
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 880px) {
	.lm-split { grid-template-columns: 1fr 1fr; }
	.lm-split--reverse .lm-split__media { order: 2; }
}
.lm-split__media img { border-radius: var(--lm-radius-lg); width: 100%; }

/* ==========================================================================
   13. Pagination & comments
   ========================================================================== */

.lm-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.lm-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 .65rem;
	margin: 0 .2rem;
	border: 1px solid var(--lm-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--lm-ink-soft);
	font-size: .95rem;
}
.lm-pagination .page-numbers:hover { border-color: var(--lm-accent); color: var(--lm-accent); }
.lm-pagination .page-numbers.current { background: var(--lm-accent); border-color: var(--lm-accent); color: #fff; }

.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(1rem, 4vw, 2.5rem); }
.comment-body { border: 1px solid var(--lm-line); border-radius: var(--lm-radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .82rem; color: var(--lm-ink-faint); margin-bottom: .6rem; }

/* ==========================================================================
   14. Footer
   ========================================================================== */

.lm-footer { background: var(--lm-ink); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: var(--lm-section); }
.lm-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.lm-footer a:hover { color: #fff; text-decoration: underline; }
.lm-footer h2, .lm-footer h3 { color: #fff; font-size: 1rem; font-family: var(--lm-font); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }

.lm-footer__grid {
	display: grid;
	gap: var(--lm-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.lm-footer__about p { max-width: 34ch; font-size: .95rem; }
.lm-footer ul { list-style: none; margin: 0; padding: 0; }
.lm-footer li { margin-bottom: .55rem; font-size: .95rem; }

.lm-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.lm-social a {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	transition: background .15s ease, border-color .15s ease;
}
.lm-social a:hover { background: rgba(255, 255, 255, .12); border-color: transparent; }
.lm-social svg { width: 17px; height: 17px; fill: currentColor; }

.lm-footer__bottom {
	padding-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	font-size: .875rem;
	color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   15. WordPress core classes
   ========================================================================== */

.alignleft { float: left; margin: .35rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .35rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--lm-ink-faint); text-align: center; margin-top: .5rem; }
.sticky .lm-card { border-color: var(--lm-accent); }
.bypostauthor > .comment-body { border-color: var(--lm-accent); }

.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; font-family: var(--lm-font); }

/* Elementor full-width templates should not inherit our container padding */
.elementor-page .lm-page-header,
.elementor-page .lm-breadcrumbs { display: none; }
.elementor-page .lm-content > * { max-width: none; }
