/* Lumeio Child — News, article, category and 404 templates.
   Tokens match the Lumeio brand board and the Elementor pages. */
:root {
	--lm-navy: #070E26;
	--lm-navy-2: #0E1735;
	--lm-orange: #F79B3F;
	--lm-red: #EC1D25;
	--lm-grey: #F2F2F2;
	--lm-white: #FFFFFF;
	--lm-ink: #070E26;
	--lm-muted: #4B5468;
	--lm-soft: #B4BDD0;
	--lm-line: #E3E5EA;
	--lm-line-dark: rgba(255, 255, 255, 0.12);
	--lm-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lm-max: 1240px;
	--lm-gutter: 40px;
	--lm-radius: 20px;
	--lm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */
body.lumeio-theme {
	margin: 0;
	background: var(--lm-white);
	color: var(--lm-ink);
	font-family: var(--lm-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.lumeio-theme *,
.lumeio-theme *::before,
.lumeio-theme *::after { box-sizing: border-box; }
.lumeio-theme img { max-width: 100%; height: auto; }
.lumeio-theme a { color: inherit; text-decoration: none; }
.lumeio-theme h1, .lumeio-theme h2, .lumeio-theme h3, .lumeio-theme h4 { font-family: var(--lm-font); }
.lumeio-theme :focus-visible { outline: 3px solid var(--lm-orange); outline-offset: 3px; border-radius: 4px; }

.lm-container { width: 100%; max-width: calc(var(--lm-max) + var(--lm-gutter) * 2); margin: 0 auto; padding: 0 var(--lm-gutter); }
.lm-container--narrow { max-width: calc(800px + var(--lm-gutter) * 2); }

.lm-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--lm-orange); color: var(--lm-navy); padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.lm-skip:focus { left: 16px; }

.lm-arrow { display: inline-block; transition: transform 0.35s var(--lm-ease); }

/* ---------- Buttons ---------- */
.lm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 47px; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.5; border: 1px solid transparent; transition: background-color 0.35s var(--lm-ease), color 0.35s var(--lm-ease), border-color 0.35s var(--lm-ease), transform 0.35s var(--lm-ease); }
.lm-btn:hover { transform: translateY(-2px); }
.lm-btn:hover .lm-arrow { transform: translate(2px, -2px); }
.lm-btn--light { background: var(--lm-white); color: var(--lm-navy); }
.lm-btn--light:hover { background: var(--lm-orange); color: var(--lm-navy); }
.lm-btn--orange { background: var(--lm-orange); color: var(--lm-navy); }
.lm-btn--orange:hover { background: var(--lm-white); }
.lm-btn--outline { border-color: rgba(255, 255, 255, 0.35); color: var(--lm-white); }
.lm-btn--outline:hover { border-color: var(--lm-orange); color: var(--lm-orange); }
.lm-btn--dark { background: var(--lm-navy); color: var(--lm-white); }
.lm-btn--dark:hover { background: var(--lm-orange); color: var(--lm-navy); }

.lm-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lm-navy); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.35s var(--lm-ease); }
.lm-link:hover { color: var(--lm-orange); }
.lm-link:hover .lm-arrow { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.lm-header { position: relative; z-index: 50; background: var(--lm-navy); }
.lm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; min-height: 83px; }
.lm-logo { display: inline-flex; flex: none; }
.lm-logo img { display: block; width: 136px; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lm-logo--footer img { width: 192px; }
.lm-nav { display: flex; align-items: center; gap: 32px; }
.lm-nav > a:not(.lm-btn) { position: relative; color: var(--lm-white); font-size: 15px; line-height: 1.5; transition: color 0.35s var(--lm-ease); }
.lm-nav > a:not(.lm-btn):hover,
.lm-nav > a.is-current { color: var(--lm-orange); }
.lm-nav .lm-btn { margin-left: 8px; }

.lm-burger { display: none; position: relative; }
.lm-burger summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; color: var(--lm-white); cursor: pointer; transition: border-color 0.35s var(--lm-ease); }
.lm-burger summary::-webkit-details-marker { display: none; }
.lm-burger summary:hover { border-color: var(--lm-orange); }
.lm-burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lm-burger__close { display: none; }
.lm-burger[open] .lm-burger__open { display: none; }
.lm-burger[open] .lm-burger__close { display: block; }
.lm-burger__panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; display: flex; flex-direction: column; padding: 12px; background: var(--lm-navy-2); border: 1px solid var(--lm-line-dark); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.lm-burger__panel a { padding: 12px 14px; border-radius: 10px; color: var(--lm-white); font-size: 16px; transition: background-color 0.35s var(--lm-ease), color 0.35s var(--lm-ease); }
.lm-burger__panel a:hover { background: rgba(255, 255, 255, 0.06); color: var(--lm-orange); }

/* ---------- Hero ---------- */
.lm-hero { position: relative; overflow: hidden; background: var(--lm-navy); color: var(--lm-white); padding: 96px 0 104px; }
.lm-hero--compact { padding: 72px 0 64px; }
.lm-hero--article { padding: 72px 0 80px; }
.lm-eyebrow { margin: 0 0 20px; color: var(--lm-orange); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.lm-hero__title { margin: 0; max-width: 18ch; color: var(--lm-white); font-size: clamp(2.5rem, 4.4vw, 3.52rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.lm-hero__title--article { max-width: 24ch; font-size: clamp(2.1rem, 3.6vw, 3rem); }
.lm-accent { color: var(--lm-orange); }
.lm-hero__intro { margin: 24px 0 0; max-width: 640px; color: var(--lm-soft); font-size: 18px; line-height: 1.6; }
.lm-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; color: var(--lm-soft); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.lm-crumbs a { color: var(--lm-orange); transition: color 0.35s var(--lm-ease); }
.lm-crumbs a:hover { color: var(--lm-white); }
.lm-article__meta { display: flex; gap: 10px; margin: 28px 0 0; color: var(--lm-soft); font-size: 15px; }

/* ---------- Sections ---------- */
.lm-section { padding: 80px 0 104px; background: var(--lm-white); }
.lm-section--grey { background: var(--lm-grey); }
.lm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.lm-section__title { margin: 0; color: var(--lm-orange); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- Category filter ---------- */
.lm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.lm-filter a { padding: 10px 18px; border: 1px solid var(--lm-line); border-radius: 999px; color: var(--lm-muted); font-size: 14px; font-weight: 500; transition: border-color 0.35s var(--lm-ease), color 0.35s var(--lm-ease), background-color 0.35s var(--lm-ease); }
.lm-filter a:hover { border-color: var(--lm-orange); color: var(--lm-navy); }
.lm-filter a.is-active { background: var(--lm-navy); border-color: var(--lm-navy); color: var(--lm-white); }

/* ---------- Cards ---------- */
.lm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lm-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--lm-white); border: 1px solid var(--lm-line); border-radius: var(--lm-radius); transition: transform 0.35s var(--lm-ease), box-shadow 0.35s var(--lm-ease), border-color 0.35s var(--lm-ease); }
.lm-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 48px rgba(7, 14, 38, 0.12); }
.lm-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lm-navy); }
.lm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; transition: transform 0.6s var(--lm-ease); }
.lm-card:hover .lm-card__media img { transform: scale(1.04); }
.lm-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 120% at 100% 0%, rgba(247, 155, 63, 0.28), transparent 55%), var(--lm-navy); }
.lm-card__placeholder img { width: 36%; height: auto; opacity: 0.9; object-fit: contain; }
.lm-card:hover .lm-card__placeholder img { transform: none; }
.lm-card__body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.lm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--lm-muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.lm-card__cat { position: relative; z-index: 2; color: var(--lm-orange); transition: color 0.35s var(--lm-ease); }
.lm-card__cat:hover { color: var(--lm-red); }
.lm-card__company { color: var(--lm-navy); }
.lm-card__title { margin: 0; color: var(--lm-navy); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.lm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lm-card__excerpt { margin: 12px 0 24px; color: var(--lm-muted); font-size: 16px; line-height: 1.6; }
.lm-card__more { display: inline-flex; gap: 6px; margin-top: auto; color: var(--lm-navy); font-size: 15px; font-weight: 500; transition: color 0.35s var(--lm-ease); }
.lm-card:hover .lm-card__more { color: var(--lm-orange); }
.lm-card:hover .lm-card__more .lm-arrow { transform: translate(2px, -2px); }

.lm-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.lm-card--featured .lm-card__media { aspect-ratio: auto; min-height: 380px; }
.lm-card--featured .lm-card__body { justify-content: center; padding: 48px; }
.lm-card--featured .lm-card__title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; }
.lm-card--featured .lm-card__excerpt { font-size: 18px; }
.lm-card--featured .lm-card__more { margin-top: 8px; }

/* ---------- Pagination ---------- */
.lm-pagination { margin-top: 64px; }
.lm-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lm-pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--lm-line); border-radius: 999px; color: var(--lm-navy); font-weight: 500; transition: border-color 0.35s var(--lm-ease), color 0.35s var(--lm-ease); }
.lm-pagination a.page-numbers:hover { border-color: var(--lm-orange); color: var(--lm-orange); }
.lm-pagination .page-numbers.current { background: var(--lm-navy); border-color: var(--lm-navy); color: var(--lm-white); }
.lm-pagination .page-numbers.dots { border: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Empty state ---------- */
.lm-empty { max-width: 560px; margin: 24px auto; padding: 56px 40px; text-align: center; background: var(--lm-grey); border-radius: var(--lm-radius); }
.lm-empty h2 { margin: 0 0 12px; color: var(--lm-orange); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.lm-empty p { margin: 0 0 28px; color: var(--lm-muted); }

/* ---------- Article ---------- */
.lm-article__figure { margin: -40px auto 0; position: relative; z-index: 2; }
.lm-article__figure img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--lm-radius); pointer-events: none; user-select: none; }
.lm-article__figure figcaption { margin-top: 12px; color: var(--lm-muted); font-size: 14px; }
.lm-article__layout { padding-top: 64px; padding-bottom: 96px; }

.lm-prose { color: #1E2538; font-size: 18px; line-height: 1.75; }
.lm-prose > * { margin: 0 0 1.4em; }
.lm-prose > *:last-child { margin-bottom: 0; }
.lm-prose h2, .lm-prose h3, .lm-prose h4 { color: var(--lm-orange); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 2em 0 0.6em; }
.lm-prose h2 { font-size: 30px; }
.lm-prose h3 { font-size: 24px; }
.lm-prose h4 { font-size: 20px; color: var(--lm-navy); }
.lm-prose a { color: var(--lm-navy); text-decoration: underline; text-decoration-color: var(--lm-orange); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: color 0.35s var(--lm-ease); }
.lm-prose a:hover { color: var(--lm-orange); }
.lm-prose ul, .lm-prose ol { padding-left: 1.3em; }
.lm-prose li { margin-bottom: 0.5em; }
.lm-prose li::marker { color: var(--lm-orange); }
.lm-prose blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--lm-orange); color: var(--lm-navy); font-size: 24px; line-height: 1.45; letter-spacing: -0.01em; }
.lm-prose blockquote p { margin: 0 0 0.6em; }
.lm-prose blockquote cite { display: block; color: var(--lm-muted); font-size: 15px; font-style: normal; }
.lm-prose img, .lm-prose figure img { border-radius: 14px; }
.lm-prose figure { margin: 2em 0; }
.lm-prose figcaption { margin-top: 10px; color: var(--lm-muted); font-size: 14px; }
.lm-prose hr { border: 0; height: 1px; background: var(--lm-line); margin: 2.5em 0; }
.lm-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.lm-prose th, .lm-prose td { padding: 12px 14px; border-bottom: 1px solid var(--lm-line); text-align: left; }
.lm-prose th { color: var(--lm-navy); font-weight: 500; }
.lm-prose code { padding: 2px 6px; background: var(--lm-grey); border-radius: 6px; font-size: 0.9em; }
.lm-prose .wp-block-button__link { background: var(--lm-navy); color: var(--lm-white); border-radius: 999px; padding: 12px 22px; text-decoration: none; }
.lm-prose .wp-block-button__link:hover { background: var(--lm-orange); color: var(--lm-navy); }

.lm-article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--lm-line); }
.lm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-tags a { padding: 8px 14px; background: var(--lm-grey); border-radius: 999px; color: var(--lm-muted); font-size: 14px; transition: color 0.35s var(--lm-ease); }
.lm-tags a:hover { color: var(--lm-orange); }
.lm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lm-share__label { margin-right: 6px; color: var(--lm-muted); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.lm-share__btn { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid var(--lm-line); border-radius: 50%; background: var(--lm-white); color: var(--lm-orange); cursor: pointer; transition: color 0.35s var(--lm-ease), border-color 0.35s var(--lm-ease), transform 0.35s var(--lm-ease); }
.lm-share__btn svg { width: 22px; height: 22px; }
.lm-share__btn svg:not([fill="none"]) { fill: currentColor; }
.lm-share__btn:hover { color: var(--lm-red); border-color: var(--lm-red); transform: translateY(-2px); }
.lm-share__status { color: var(--lm-muted); font-size: 14px; }

/* ---------- 404 ---------- */
.lm-hero--404 { min-height: 70vh; display: flex; align-items: center; padding: 120px 0 128px; border-bottom: 1px solid var(--lm-line-dark); }
.lm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.lm-404-mark { position: absolute; right: var(--lm-gutter); bottom: -0.18em; z-index: 0; color: rgba(255, 255, 255, 0.04); font-size: clamp(10rem, 26vw, 22rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; pointer-events: none; user-select: none; }
.lm-hero--404 .lm-container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.lm-footer { background: var(--lm-navy); color: var(--lm-white); padding: 96px 0 48px; }
.lm-footer__top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 64px; }
.lm-footer__brand { max-width: 474px; }
.lm-footer__brand p { margin: 24px 0 0; color: var(--lm-soft); font-size: 20px; line-height: 1.6; }
.lm-footer__cols { display: flex; gap: 48px; }
.lm-footer__cols > div { display: flex; flex-direction: column; gap: 14px; min-width: 160px; }
.lm-footer__head { margin: 0 0 8px; color: var(--lm-orange); font-size: 14px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.lm-footer__cols a { color: var(--lm-soft); font-size: 20px; line-height: 1.3; transition: color 0.35s var(--lm-ease); }
.lm-footer__cols a:hover { color: var(--lm-orange); }
.lm-footer__rule { height: 1px; margin: 0; border: 0; background: var(--lm-line-dark); }
.lm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 17px; }
.lm-footer__bottom p { margin: 0; }
.lm-footer__bottom a { transition: color 0.35s var(--lm-ease); }
.lm-footer__bottom a:hover { color: var(--lm-orange); }

/* ---------- Scroll reveal (respects reduced motion and the Accessibility "Pause animation" switch) ---------- */
.lm-js .lm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--lm-ease), transform 0.7s var(--lm-ease); }
.lm-js .lm-reveal.is-in { opacity: 1; transform: none; }
.lm-js .lm-card.lm-reveal.is-in:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
	.lm-js .lm-reveal { opacity: 1; transform: none; transition: none; }
	.lumeio-theme *, .lumeio-theme *::before, .lumeio-theme *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
html.lumeio-a11y-paused .lm-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	:root { --lm-gutter: 32px; }
	.lm-nav > a:not(.lm-btn) { display: none; }
	.lm-nav { margin-left: auto; }
	.lm-burger { display: block; }
	.lm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.lm-card--featured { grid-template-columns: 1fr; }
	.lm-card--featured .lm-card__media { min-height: 0; aspect-ratio: 16 / 9; }
	.lm-card--featured .lm-card__body { padding: 36px; }
	.lm-footer__top { flex-direction: column; gap: 48px; }
	.lm-footer__cols { flex-wrap: wrap; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	:root { --lm-gutter: 20px; }
	.lm-header__inner { min-height: 80px; gap: 16px; }
	.lm-logo img { width: 112px; }
	.lm-nav .lm-btn { margin-left: 0; min-height: 42px; padding: 10px 16px; font-size: 14px; }
	.lm-hero { padding: 64px 0 72px; }
	.lm-hero--article { padding: 56px 0 64px; }
	.lm-hero__intro { font-size: 17px; }
	.lm-section { padding: 56px 0 72px; }
	.lm-section__head { flex-direction: column; align-items: flex-start; }
	.lm-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--lm-gutter) * -1) 32px; padding: 0 var(--lm-gutter) 4px; scrollbar-width: none; }
	.lm-filter::-webkit-scrollbar { display: none; }
	.lm-filter a { flex: none; }
	.lm-grid { grid-template-columns: 1fr; }
	.lm-card__body { padding: 24px; }
	.lm-card--featured .lm-card__body { padding: 28px 24px; }
	.lm-card__title { font-size: 20px; }
	.lm-article__figure { margin-top: -24px; }
	.lm-article__layout { padding-top: 40px; padding-bottom: 64px; }
	.lm-prose { font-size: 17px; }
	.lm-prose h2 { font-size: 26px; }
	.lm-prose blockquote { font-size: 20px; padding-left: 20px; }
	.lm-article__footer { flex-direction: column; align-items: flex-start; }
	.lm-hero--404 { min-height: 0; padding: 88px 0 96px; }
	.lm-actions .lm-btn { width: 100%; justify-content: center; }
	.lm-footer { padding: 64px 0 40px; }
	.lm-footer__brand p, .lm-footer__cols a { font-size: 17px; }
	.lm-footer__cols { flex-direction: column; gap: 36px; }
	.lm-footer__bottom { flex-direction: column; font-size: 15px; }
	.lm-burger__panel { position: fixed; left: var(--lm-gutter); right: var(--lm-gutter); top: 88px; min-width: 0; }
}
