/* ==========================================================================
   Carmatix theme — base, header, footer, templates.
   Tokens (--crmtx-*) are printed by Theme Options and shared with Carmatix Core.
   ========================================================================== */

:root {
	--crmtx-primary: #cc2027; --crmtx-primary-rgb: 204, 32, 39; --crmtx-primary-contrast: #fff;
	--crmtx-dark: #0f1113; --crmtx-dark-rgb: 15, 17, 19; --crmtx-heading: #121418; --crmtx-text: #334155; --crmtx-muted: #64748b;
	--crmtx-border: #e6e8ec; --crmtx-bg: #fff; --crmtx-surface: #f5f6f8; --crmtx-card: #fff; --crmtx-ink: var(--crmtx-heading);
	--crmtx-radius: 16px; --crmtx-radius-sm: 10px; --crmtx-radius-btn: 12px; --crmtx-container: 1320px;
	--crmtx-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --crmtx-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--crmtx-font-size: 16px; --crmtx-heading-weight: 800; --crmtx-header-h: 84px;
}

/* Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--crmtx-bg); color: var(--crmtx-text); font-family: var(--crmtx-font-body); font-size: var(--crmtx-font-size); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--crmtx-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crmtx-heading); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--crmtx-heading); font-family: var(--crmtx-font-heading); font-weight: var(--crmtx-heading-weight); line-height: 1.15; letter-spacing: -.02em; text-transform: var(--crmtx-heading-transform, none); }
h1 { font-size: clamp(34px, 4.6vw, 56px); } h2 { font-size: clamp(28px, 3.4vw, 40px); } h3 { font-size: clamp(22px, 2.4vw, 28px); } h4 { font-size: 20px; } h5 { font-size: 17px; } h6 { font-size: 15px; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea { max-width: 100%; padding: 12px 14px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius-sm); background: var(--crmtx-bg); color: var(--crmtx-heading); }
input:focus, select:focus, textarea:focus { border-color: var(--crmtx-primary); outline: 0; box-shadow: 0 0 0 4px rgba(var(--crmtx-primary-rgb), .14); }
::selection { background: rgba(var(--crmtx-primary-rgb), .2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { position: fixed !important; top: 8px; inset-inline-start: 8px; z-index: 100000; width: auto; height: auto; padding: 12px 18px; clip: auto; border-radius: 8px; background: #fff; color: var(--crmtx-heading); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.crmtx-container { width: min(100% - 40px, var(--crmtx-container)); margin-inline: auto; }
.crmtx-container--narrow { max-width: 860px; }
.crmtx-site { display: flex; flex-direction: column; min-height: 100vh; }
.crmtx-page { flex: 1; padding: 64px 0 88px; }
.crmtx-page--elementor { padding: 0; }
.crmtx-hide-sm { }
.alignwide { margin-inline: calc((min(100vw - 40px, var(--crmtx-container)) - 100%) / -2); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, figcaption { color: var(--crmtx-muted); font-size: 14px; }

/* Buttons (theme fallback when Carmatix Core is inactive) */
.crmtx-btn, .button, button[type="submit"]:not([class*="crmtx-"]):not(.components-button), input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--crmtx-primary); border-radius: var(--crmtx-radius-btn); background: var(--crmtx-primary); color: var(--crmtx-primary-contrast); font-weight: 700; text-decoration: none; cursor: pointer; }

/* Header -------------------------------------------------------------------- */
.crmtx-site-header { position: relative; z-index: 999; background: var(--crmtx-card); color: var(--crmtx-heading); }
.crmtx-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .crmtx-site-header.is-sticky { top: 32px; }
.crmtx-site-header.is-stuck { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.crmtx-topbar-row { background: var(--crmtx-dark); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.crmtx-topbar-row .crmtx-topbar { min-height: 42px; }
.crmtx-topbar-row a { color: inherit; text-decoration: none; }
.crmtx-topbar-row a:hover { color: #fff; }
.crmtx-topbar__end { display: flex; align-items: center; gap: 18px; }
.crmtx-topbar__menu { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.crmtx-mainbar__inner { display: flex; align-items: center; gap: 28px; min-height: var(--crmtx-header-h); }
.crmtx-mainbar__logo { flex: none; }
.crmtx-mainbar__inner > .crmtx-nav { flex: 1; justify-content: center; }
.crmtx-mainbar__end { display: flex; flex: none; align-items: center; justify-content: flex-end; margin-inline-start: auto; }
.crmtx-logo { display: inline-flex; align-items: center; color: var(--crmtx-heading); text-decoration: none; }
.crmtx-logo__img { display: block; width: auto; max-height: 48px; }
.crmtx-logo__text { font-family: var(--crmtx-font-heading); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.crmtx-site-header .crmtx-nav > ul > li > a, .crmtx-site-header .crmtx-nav__panel > ul > li > a { font-size: 15px; }
.crmtx-site-header .crmtx-nav > ul, .crmtx-site-header .crmtx-nav__panel > ul { justify-content: center; }
/* Transparent */
.crmtx-site-header.is-transparent { position: absolute; inset: 0 0 auto; background: transparent; color: #fff; }
.crmtx-site-header.is-transparent.is-sticky { position: fixed; }
.admin-bar .crmtx-site-header.is-transparent { top: 32px; }
.crmtx-site-header.is-transparent .crmtx-logo, .crmtx-site-header.is-transparent .crmtx-nav > .crmtx-nav__panel > ul > li > a { color: #fff; }
.crmtx-site-header.is-transparent .crmtx-mainbar { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.crmtx-site-header.is-transparent.is-stuck { background: rgba(var(--crmtx-dark-rgb), .92); backdrop-filter: blur(14px); }
/* Centered */
.crmtx-mainbar__inner--centered { display: grid; grid-template-columns: 1fr auto 1fr; }
.crmtx-mainbar__inner--centered .crmtx-mainbar__logo { justify-self: center; }
.crmtx-navbar { border-top: 1px solid var(--crmtx-border); }
.crmtx-navbar .crmtx-nav { justify-content: center; min-height: 56px; }
.crmtx-callout { display: inline-flex; align-items: center; gap: 12px; color: var(--crmtx-heading); text-decoration: none; }
.crmtx-callout__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(var(--crmtx-primary-rgb), .1); color: var(--crmtx-primary); }
.crmtx-callout small { display: block; color: var(--crmtx-muted); font-size: 12px; }
.crmtx-callout strong { font-size: 15px; }
.crmtx-site-header--centered .crmtx-mainbar__inner { min-height: 92px; }

/* Nav fallback (Carmatix Core prints the full nav styles) */
.crmtx-nav ul { margin: 0; padding: 0; list-style: none; }
.crmtx-nav__panel > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crmtx-nav a { display: block; padding: 10px 14px; color: inherit; font-weight: 600; text-decoration: none; }

/* Page head ----------------------------------------------------------------- */
.crmtx-pagehead { position: relative; padding: 64px 0 56px; overflow: hidden; background: var(--crmtx-surface); }
.crmtx-pagehead::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--crmtx-primary-rgb), .14), transparent 70%); pointer-events: none; }
.crmtx-pagehead__title { margin: 0; font-size: clamp(32px, 4.4vw, 52px); }
.crmtx-pagehead__text { max-width: 640px; margin: 14px 0 0; color: var(--crmtx-muted); font-size: 17px; }
.crmtx-has-transparent-header .crmtx-pagehead { padding-top: calc(var(--crmtx-header-h) + 64px); }
.crmtx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--crmtx-muted); font-size: 14px; }
.crmtx-crumbs a { color: inherit; text-decoration: none; }
.crmtx-crumbs a:hover { color: var(--crmtx-primary); }
.crmtx-crumbs .crmtx-icon { width: 14px; height: 14px; }
[dir="rtl"] .crmtx-crumbs .crmtx-icon { transform: scaleX(-1); }

/* Layout with sidebar --------------------------------------------------------- */
.crmtx-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.crmtx-sidebar { position: sticky; top: calc(var(--crmtx-header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.crmtx-widget { padding: 24px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius); background: var(--crmtx-card); }
.crmtx-widget__title { margin-bottom: 16px; font-size: 18px; }
.crmtx-widget ul { margin: 0; padding: 0; list-style: none; }
.crmtx-widget li { padding: 8px 0; border-bottom: 1px solid var(--crmtx-border); }
.crmtx-widget li:last-child { border-bottom: 0; }
.crmtx-widget a { color: var(--crmtx-heading); text-decoration: none; }
.crmtx-widget a:hover { color: var(--crmtx-primary); }

/* Blog ------------------------------------------------------------------------ */
.crmtx-entry-card .crmtx-post__title { font-size: 21px; }
.crmtx-entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 10px; color: var(--crmtx-muted); font-size: 13.5px; }
.crmtx-entry__cat { color: var(--crmtx-primary); font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.crmtx-article__head { max-width: 860px; padding-top: 8px; text-align: start; }
.crmtx-article__title { margin: 8px 0 14px; font-size: clamp(34px, 5vw, 56px); }
.crmtx-article__lead { color: var(--crmtx-muted); font-size: 20px; line-height: 1.6; }
.crmtx-article__author { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--crmtx-heading); font-weight: 700; }
.crmtx-article__author img { border-radius: 50%; }
.crmtx-article__cover { margin: 40px auto 48px; }
.crmtx-article__cover img { width: 100%; border-radius: calc(var(--crmtx-radius) * 1.5); }
.crmtx-article .crmtx-content { max-width: 780px; }
.crmtx-article .crmtx-with-sidebar .crmtx-content { max-width: none; }
.crmtx-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--crmtx-border); border-bottom: 1px solid var(--crmtx-border); }
.crmtx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.crmtx-tags a { padding: 6px 12px; border-radius: 999px; background: var(--crmtx-surface); color: var(--crmtx-heading); font-size: 13px; font-weight: 600; text-decoration: none; }
.crmtx-prose { color: var(--crmtx-text); font-size: 17.5px; line-height: 1.8; }
.crmtx-prose h2, .crmtx-prose h3 { margin-top: 1.8em; }
.crmtx-prose img { border-radius: var(--crmtx-radius); }
.crmtx-prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-inline-start: 4px solid var(--crmtx-primary); color: var(--crmtx-heading); font-size: 21px; font-style: italic; }
.crmtx-prose ul, .crmtx-prose ol { padding-inline-start: 1.3em; }
.crmtx-prose table { width: 100%; border-collapse: collapse; }
.crmtx-prose th, .crmtx-prose td { padding: 12px; border-bottom: 1px solid var(--crmtx-border); text-align: start; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius); color: var(--crmtx-heading); text-decoration: none; }
.post-navigation a:hover { border-color: var(--crmtx-primary); }
.post-navigation small { display: block; color: var(--crmtx-muted); }
.post-navigation .nav-next { text-align: end; }
.crmtx-comments { margin-top: 56px; }
.crmtx-comments__list { margin: 0 0 32px; padding: 0; list-style: none; }
.crmtx-comments__list .comment-body { margin-bottom: 18px; padding: 20px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius); }
.crmtx-comments__list .children { margin: 0; padding-inline-start: 32px; list-style: none; }
.comment-meta img { float: inline-start; margin-inline-end: 12px; border-radius: 50%; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; }
.crmtx-pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.navigation.pagination .nav-links { margin: 0; }
.page-numbers { display: inline-grid; min-width: 44px; height: 44px; padding: 0 12px; place-items: center; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius-sm); color: var(--crmtx-heading); font-weight: 700; text-decoration: none; }
.page-numbers.current, a.page-numbers:hover { border-color: var(--crmtx-primary); background: var(--crmtx-primary); color: #fff; }
.crmtx-searchform { position: relative; display: flex; }
.crmtx-searchform input { flex: 1; padding-inline-end: 52px; }
.crmtx-searchform button { position: absolute; inset-inline-end: 6px; top: 50%; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: var(--crmtx-radius-sm); background: var(--crmtx-primary); color: #fff; transform: translateY(-50%); cursor: pointer; }
.crmtx-search-again { max-width: 560px; margin-bottom: 32px; }
.crmtx-results { display: flex; flex-direction: column; gap: 16px; }
.crmtx-result { display: flex; gap: 20px; padding: 20px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius); }
.crmtx-result__media img { width: 160px; border-radius: var(--crmtx-radius-sm); }
.crmtx-result__type { color: var(--crmtx-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.crmtx-result__title { margin: 4px 0 6px; font-size: 20px; }
.crmtx-result__title a { color: var(--crmtx-heading); text-decoration: none; }

/* Single listing ---------------------------------------------------------------- */
.crmtx-listing { padding-top: 36px; }
.crmtx-listing .crmtx-lheader { margin-bottom: 28px; }
.crmtx-listing--wide .crmtx-gallery { margin-bottom: 32px; }
.crmtx-listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.crmtx-listing__main > * + * { margin-top: 40px; }
.crmtx-listing__main .crmtx-gallery + .crmtx-block { margin-top: 40px; }
.crmtx-listing__sticky { position: sticky; top: calc(var(--crmtx-header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.crmtx-related { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--crmtx-border); }

/* 404 ------------------------------------------------------------------------- */
.crmtx-404__inner { max-width: 640px; margin: 40px auto; text-align: center; }
.crmtx-404__code { display: block; color: transparent; font-family: var(--crmtx-font-heading); font-size: clamp(110px, 18vw, 200px); font-weight: 900; line-height: .9; letter-spacing: -.06em; -webkit-text-stroke: 2px var(--crmtx-primary); }
.crmtx-404__inner p { color: var(--crmtx-muted); font-size: 18px; }
.crmtx-404__search { max-width: 460px; margin: 28px auto; }
.crmtx-404 .crmtx-buttons { justify-content: center; }

/* Footer ---------------------------------------------------------------------- */
.crmtx-site-footer { margin-top: auto; }
.crmtx-site-footer--columns, .crmtx-site-footer--cta { padding-top: 80px; background: var(--crmtx-dark); color: rgba(255, 255, 255, .72); }
.crmtx-site-footer--cta { padding-top: 0; }
.crmtx-footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 72px; padding: 48px; border-radius: calc(var(--crmtx-radius) * 1.5); background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%), var(--crmtx-primary); transform: translateY(-50%); margin-bottom: -40px; }
.crmtx-footer-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3vw, 38px); }
.crmtx-footer-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.crmtx-footer-cta .crmtx-buttons { margin: 0; }
.crmtx-site-footer--cta .crmtx-footer-grid { padding-top: 40px; }
.crmtx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.crmtx-site-footer--cta .crmtx-footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
.crmtx-footer-col--brand p { margin: 20px 0 22px; max-width: 320px; }
.crmtx-footer-col__title { margin: 0 0 18px; color: #fff; font-size: 16px; letter-spacing: 0; }
.crmtx-site-footer .crmtx-logo { color: #fff; }
.crmtx-site-footer .crmtx-contact__icon { background: rgba(255, 255, 255, .08); color: #fff; }
.crmtx-site-footer .crmtx-contact__value a { color: inherit; }
.crmtx-site-footer .crmtx-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.crmtx-site-footer .crmtx-newsletter__form input[type="email"] { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; }
.crmtx-site-footer .crmtx-newsletter__text { opacity: .7; }
.crmtx-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.crmtx-site-footer--minimal { padding: 56px 0 0; border-top: 1px solid var(--crmtx-border); background: var(--crmtx-surface); color: var(--crmtx-muted); }
.crmtx-site-footer--minimal .crmtx-logo { color: var(--crmtx-heading); }
.crmtx-footer-minimal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 36px; }
.crmtx-site-footer--minimal .crmtx-footer-bottom { border-top-color: var(--crmtx-border); }
.crmtx-site-footer--minimal .crmtx-social a { background: var(--crmtx-card); color: var(--crmtx-heading); }

/* Utilities ----------------------------------------------------------------- */
.crmtx-back-top { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 990; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--crmtx-primary); color: #fff; box-shadow: 0 10px 24px rgba(var(--crmtx-primary-rgb), .35); cursor: pointer; opacity: 0; transform: translateY(16px); transition: all .25s ease; pointer-events: none; }
.crmtx-back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.crmtx-preloader { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; background: var(--crmtx-bg); transition: opacity .4s ease, visibility .4s ease; }
.crmtx-preloader span { width: 44px; height: 44px; border: 3px solid var(--crmtx-border); border-top-color: var(--crmtx-primary); border-radius: 50%; animation: crmtx-spin .8s linear infinite; }
.crmtx-preloader.is-done { visibility: hidden; opacity: 0; }
@keyframes crmtx-spin { to { transform: rotate(360deg); } }
.crmtx-layout-preview { background: var(--crmtx-surface); }

/* WordPress core ------------------------------------------------------------ */
.sticky .crmtx-post__title::before { content: "★ "; color: var(--crmtx-primary); }
.bypostauthor > .comment-body { border-color: rgba(var(--crmtx-primary-rgb), .4); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wp-block-button__link { border-radius: var(--crmtx-radius-btn); background: var(--crmtx-primary); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1200px) {
	.crmtx-footer-grid, .crmtx-site-footer--cta .crmtx-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.crmtx-footer-col--brand { grid-column: 1 / -1; }
	.crmtx-hide-md { display: none !important; }
}
@media (max-width: 1024px) {
	:root { --crmtx-header-h: 72px; }
	.crmtx-with-sidebar, .crmtx-listing__grid { grid-template-columns: 1fr; }
	.crmtx-sidebar, .crmtx-listing__sticky { position: static; }
	.crmtx-mainbar__inner > .crmtx-nav { flex: 0; order: 3; }
	.crmtx-mainbar__inner { gap: 12px; }
	.crmtx-mainbar__inner--centered { display: flex; }
	.crmtx-mainbar__inner--centered .crmtx-mainbar__start { display: none; }
	.crmtx-navbar { position: absolute; top: 18px; inset-inline-end: 20px; border: 0; }
	.crmtx-navbar .crmtx-nav { min-height: 0; }
	.crmtx-site-header--centered .crmtx-mainbar__end { margin-inline-end: 56px; }
	.crmtx-site-header.is-transparent .crmtx-nav__panel > ul > li > a { color: var(--crmtx-heading); }
}
@media (max-width: 782px) { .admin-bar .crmtx-site-header.is-sticky, .admin-bar .crmtx-site-header.is-transparent { top: 46px; } }
@media (max-width: 767px) {
	.crmtx-page { padding: 44px 0 64px; }
	.crmtx-topbar-row .crmtx-topbar__items li:not(:first-child) { display: none; }
	.crmtx-footer-grid, .crmtx-site-footer--cta .crmtx-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.crmtx-footer-cta { padding: 28px; transform: translateY(-30%); }
	.crmtx-footer-bottom { flex-direction: column; text-align: center; }
	.crmtx-footer-minimal { flex-direction: column; text-align: center; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.crmtx-result { flex-direction: column; }
	.crmtx-hide-sm { display: none !important; }
	.crmtx-logo__img { max-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .crmtx-back-top, .crmtx-preloader { transition: none; } }

/* Elementor sections built by the demo importer ------------------------------- */
.elementor .e-con.crmtx-section { --padding-top: clamp(64px, 8vw, 112px); --padding-bottom: clamp(64px, 8vw, 112px); --padding-left: 20px; --padding-right: 20px; }
.elementor .e-con.crmtx-section--tight { --padding-top: clamp(40px, 5vw, 64px); --padding-bottom: clamp(40px, 5vw, 64px); }
.elementor .e-con.crmtx-section--flush { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor .e-con.crmtx-section--surface { background: var(--crmtx-surface); }
.elementor .e-con.crmtx-section--dark { background: var(--crmtx-dark); color: rgba(255, 255, 255, .78); }
.elementor .e-con.crmtx-section--pagehead { --padding-top: clamp(56px, 7vw, 96px); --padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; background: var(--crmtx-surface); }
.elementor .e-con.crmtx-section--pagehead::after { content: ""; position: absolute; inset: auto -8% -70% auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--crmtx-primary-rgb), .14), transparent 70%); pointer-events: none; }
.elementor .e-con.crmtx-section--overlap { --padding-top: 0px; --padding-bottom: clamp(40px, 5vw, 64px); position: relative; z-index: 3; margin-top: -48px; }
.elementor .e-con.crmtx-section--prose { --padding-top: 0px; }
.elementor .e-con.crmtx-section--prose .elementor-widget-text-editor { max-width: 820px; font-size: 17px; line-height: 1.8; }
.elementor .e-con.crmtx-section--ftr-cta { --padding-top: 0px; --padding-bottom: 0px; position: relative; z-index: 2; margin-bottom: -96px; }
.crmtx-has-transparent-header .elementor .e-con.crmtx-section--pagehead { --padding-top: calc(var(--crmtx-header-h) + 64px); }

/* Elementor headers (Carmatix Theme Builder) */
.carmatix-layout--header { position: relative; z-index: 999; }
.carmatix-layout--header .e-con.crmtx-hdr { background: var(--crmtx-card); color: var(--crmtx-heading); --padding-left: 20px; --padding-right: 20px; }
.carmatix-layout--header .e-con.crmtx-hdr__top { background: var(--crmtx-dark); color: rgba(255, 255, 255, .78); --padding-left: 20px; --padding-right: 20px; }
.carmatix-layout--header .e-con.crmtx-hdr--classic, .carmatix-layout--header .e-con.crmtx-hdr__nav { border-bottom: 1px solid var(--crmtx-border); }
.carmatix-layout--header .e-con.crmtx-hdr__nav { border-top: 1px solid var(--crmtx-border); }
.carmatix-layout--header:has(.crmtx-hdr--sticky) { position: sticky; top: 0; }
.admin-bar .carmatix-layout--header:has(.crmtx-hdr--sticky) { top: 32px; }
.carmatix-layout--header.is-stuck { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.carmatix-layout--header:has(.crmtx-hdr--transparent) { position: fixed; inset: 0 0 auto; }
.admin-bar .carmatix-layout--header:has(.crmtx-hdr--transparent) { top: 32px; }
.carmatix-layout--header .e-con.crmtx-hdr--transparent { background: transparent; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: background .25s ease; }
.carmatix-layout--header.is-stuck .e-con.crmtx-hdr--transparent { background: rgba(var(--crmtx-dark-rgb), .94); backdrop-filter: blur(14px); }
body:not(.crmtx-hero-first) .carmatix-layout--header .e-con.crmtx-hdr--transparent { background: var(--crmtx-dark); border-bottom-color: transparent; }
.carmatix-layout--header .crmtx-hdr--transparent .crmtx-logo, .carmatix-layout--header .crmtx-hdr--transparent .crmtx-nav > .crmtx-nav__panel > ul > li > a { color: #fff; }
body:not(.home) .carmatix-layout--header:has(.crmtx-hdr--transparent) + .crmtx-page:not(.crmtx-page--elementor), body:not(.home) .carmatix-layout--header:has(.crmtx-hdr--transparent) ~ .crmtx-pagehead { padding-top: calc(var(--crmtx-header-h) + 48px); }
.crmtx-site:has(.crmtx-hdr--transparent) .crmtx-pagehead, .crmtx-site:has(.crmtx-hdr--transparent) .crmtx-section--pagehead { --padding-top: calc(var(--crmtx-header-h) + 64px); padding-top: calc(var(--crmtx-header-h) + 64px); }
.crmtx-site:has(.crmtx-hdr--transparent) .crmtx-page:not(.crmtx-page--elementor) { padding-top: calc(var(--crmtx-header-h) + 48px); }
.crmtx-hdr .crmtx-contact--inline li { align-items: center; }
.crmtx-hdr .crmtx-contact small { opacity: .7; }

/* Elementor footers */
.carmatix-layout--footer { margin-top: auto; }
.carmatix-layout--footer .e-con.crmtx-ftr--dark { background: var(--crmtx-dark); color: rgba(255, 255, 255, .72); --padding-left: 20px; --padding-right: 20px; }
.carmatix-layout--footer .e-con.crmtx-ftr__grid { --padding-top: 88px; --padding-bottom: 56px; }
.carmatix-layout--footer .e-con.crmtx-ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.carmatix-layout--footer .e-con.crmtx-ftr--minimal { background: var(--crmtx-surface); color: var(--crmtx-muted); --padding-left: 20px; --padding-right: 20px; }
.carmatix-layout--footer .e-con.crmtx-ftr--minimal.crmtx-ftr__bottom { border-top: 1px solid var(--crmtx-border); }
.carmatix-layout--footer .crmtx-ftr--dark .crmtx-logo, .carmatix-layout--footer .crmtx-ftr--dark .crmtx-fmenu__title, .carmatix-layout--footer .crmtx-ftr--dark .crmtx-contact__title, .carmatix-layout--footer .crmtx-ftr--dark .crmtx-newsletter__title { color: #fff; }
.carmatix-layout--footer .crmtx-ftr--dark .crmtx-contact__icon, .carmatix-layout--footer .crmtx-ftr--dark .crmtx-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.carmatix-layout--footer .crmtx-ftr--dark .crmtx-newsletter__form input[type="email"] { border-color: rgba(255, 255, 255, .15); color: #fff; }
.carmatix-layout--footer .crmtx-footer-about { margin: 18px 0 20px; max-width: 320px; }
.carmatix-layout--footer .crmtx-section--ftr-cta + .e-con.crmtx-ftr__grid { --padding-top: 160px; }
@media (max-width: 1024px) {
	.elementor .e-con.crmtx-hide-tablet { display: none; }
	.carmatix-layout--footer .e-con.crmtx-ftr__grid > .e-con { --width: 50%; }
	.carmatix-layout--footer .e-con.crmtx-ftr__grid > .crmtx-ftr__brand { --width: 100%; }
	.carmatix-layout--header .e-con.crmtx-hdr > .e-con:nth-child(2) { order: 3; --width: auto; flex: 0 0 auto; }
	.carmatix-layout--header .e-con.crmtx-hdr > .e-con { --width: auto; flex: 1 1 auto; }
}
@media (max-width: 767px) {
	.carmatix-layout--footer .e-con.crmtx-ftr__grid > .e-con { --width: 100%; }
	.carmatix-layout--footer .e-con.crmtx-ftr__bottom { --flex-direction: column; text-align: center; }
	.elementor .e-con.crmtx-section--overlap { margin-top: -24px; }
}
/* Single listing: key facts */
.crmtx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.crmtx-facts li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--crmtx-border); border-radius: var(--crmtx-radius); background: var(--crmtx-card); }
.crmtx-facts__icon { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(var(--crmtx-primary-rgb), .1); color: var(--crmtx-primary); }
.crmtx-facts__icon .crmtx-icon { width: 22px; height: 22px; }
.crmtx-facts small { display: block; color: var(--crmtx-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.crmtx-facts strong { color: var(--crmtx-heading); font-size: 16px; }
.crmtx-facts--chips { display: flex; flex-wrap: wrap; }
.crmtx-facts--chips li { padding: 8px 16px 8px 8px; border-radius: 999px; }
.crmtx-facts--chips .crmtx-facts__icon { width: 34px; height: 34px; border-radius: 50%; }
.crmtx-facts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Spotlight (dark band) */
.crmtx-spotlight { margin-bottom: 48px; padding: 32px 0 48px; background: radial-gradient(900px 420px at 80% 0%, rgba(var(--crmtx-primary-rgb), .28), transparent 60%), var(--crmtx-dark); }
.crmtx-spotlight .crmtx-lheader h1, .crmtx-spotlight .crmtx-price, .crmtx-spotlight .crmtx-price strong { color: #fff; }
.crmtx-spotlight .crmtx-lheader__meta, .crmtx-spotlight .crmtx-crumbs, .crmtx-spotlight .crmtx-crumbs a { color: rgba(255, 255, 255, .7); }
.crmtx-facts--big { margin-top: 28px; }
.crmtx-facts--big li { flex-direction: column; align-items: flex-start; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); }
.crmtx-facts--big small { color: rgba(255, 255, 255, .6); }
.crmtx-facts--big strong { color: #fff; font-size: 26px; letter-spacing: -.02em; }
.crmtx-listing--spotlight .crmtx-listing__grid { margin-top: 0; }

/* Marketplace (seller first + section menu) */
.crmtx-subnav { position: sticky; z-index: 5; top: calc(var(--crmtx-header-h, 80px) + 8px); display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 6px; border: 1px solid var(--crmtx-border); border-radius: 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.crmtx-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--crmtx-heading); font-weight: 600; text-decoration: none; }
.crmtx-subnav a:hover { background: rgba(var(--crmtx-primary-rgb), .1); color: var(--crmtx-primary); }
.crmtx-subnav .crmtx-icon { width: 18px; height: 18px; color: var(--crmtx-primary); }
.crmtx-listing__grid--seller-first { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
.crmtx-listing__grid--seller-first [id^="crmtx-"] { scroll-margin-top: 160px; }

/* Workshop (summary card + inspection) */
.crmtx-workshop-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 32px; align-items: start; margin: 24px 0 32px; }
.crmtx-workshop-top__summary { position: sticky; top: calc(var(--crmtx-header-h, 80px) + 16px); padding: 28px; border: 1px solid var(--crmtx-border); border-radius: calc(var(--crmtx-radius) * 1.25); background: var(--crmtx-card); box-shadow: var(--crmtx-shadow); }
.crmtx-workshop-top__summary .crmtx-lheader__main { flex-direction: column; align-items: flex-start; }
.crmtx-workshop-top__summary h1 { font-size: 28px; }
.crmtx-workshop-top__summary .crmtx-buttons { margin-top: 18px; }
.crmtx-inspection { margin-bottom: 40px; padding: 28px; border-radius: calc(var(--crmtx-radius) * 1.25); background: var(--crmtx-surface); }
.crmtx-inspection__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.crmtx-inspection__head h2 { margin: 0; font-size: 22px; }
.crmtx-inspection__head p { margin: 2px 0 0; color: var(--crmtx-muted); }
.crmtx-inspection__badge { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: var(--crmtx-primary); color: #fff; }
.crmtx-inspection__badge .crmtx-icon { width: 28px; height: 28px; }
.crmtx-inspection ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.crmtx-inspection li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--crmtx-card); font-weight: 600; }
.crmtx-inspection li > .crmtx-icon { width: 22px; height: 22px; color: var(--crmtx-primary); }
.crmtx-inspection li b { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--crmtx-success); font-size: 12px; text-transform: uppercase; }
.crmtx-inspection li b .crmtx-icon { width: 14px; height: 14px; }

@media (max-width: 1024px) {
	.crmtx-facts, .crmtx-inspection ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crmtx-workshop-top, .crmtx-listing__grid--seller-first { grid-template-columns: minmax(0, 1fr); }
	.crmtx-workshop-top__summary { position: static; }
}
@media (max-width: 600px) {
	.crmtx-facts, .crmtx-inspection ul { grid-template-columns: minmax(0, 1fr); }
}
.crmtx-listing--spotlight { padding-top: 0; }
.crmtx-listing--spotlight .crmtx-spotlight { padding-top: 44px; }
.crmtx-site:has(.crmtx-hdr--transparent) .crmtx-page.crmtx-listing--spotlight, body:not(.home) .carmatix-layout--header:has(.crmtx-hdr--transparent) + .crmtx-page.crmtx-listing--spotlight { padding-top: 0; }
.crmtx-site:has(.crmtx-hdr--transparent) .crmtx-listing--spotlight .crmtx-spotlight { padding-top: calc(var(--crmtx-header-h) + 44px); }

/* Elementor pages never get the page padding (mobile rule above would otherwise add 44px) */
.crmtx-page.crmtx-page--elementor { padding: 0; }
/* Single listing on small screens: columns never grow wider than the screen */
@media (max-width: 1024px) {
	.crmtx-listing__grid, .crmtx-listing__grid--seller-first, .crmtx-workshop-top { grid-template-columns: minmax(0, 1fr); }
	.crmtx-listing__main, .crmtx-listing__side, .crmtx-workshop-top > *, .crmtx-listing .crmtx-gallery, .crmtx-listing .crmtx-calc, .crmtx-listing .crmtx-seller { min-width: 0; max-width: 100%; }
	.crmtx-listing .crmtx-gallery { overflow: hidden; }
	.crmtx-listing .crmtx-gallery__track { max-width: 100%; }
	.crmtx-listing .crmtx-calc input, .crmtx-listing .crmtx-calc select { min-width: 0; width: 100%; }
	.crmtx-subnav { overflow-x: auto; scrollbar-width: none; }
	.crmtx-subnav::-webkit-scrollbar { display: none; }
	.crmtx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crmtx-inspection ul { grid-template-columns: minmax(0, 1fr); }
}