/*
Theme Name: Agent Marketplace Luxe
Theme URI: https://example.com/agent-marketplace
Author: Agent Marketplace
Description: A refined companion theme for the Agent Marketplace plugin. Ink and brass palette, editorial serif typography, a full-screen app template for dashboards, and every home-page section editable in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agent-marketplace-luxe
Tags: custom-logo, custom-menu, editor-style, featured-images, full-width-template, wide-blocks, translation-ready, accessibility-ready
*/

:root {
	--lx-primary: #1C1E3A; --lx-accent: #B08D57; --lx-bg: #F7F7F4; --lx-surface: #FFFFFF;
	--lx-text: #2B2D3A; --lx-muted: #6B6D7A; --lx-radius: 14px; --lx-wrap: 1200px;
	--lx-display: "Cormorant Garamond", Georgia, serif;
	--lx-body: "Jost", system-ui, sans-serif;
	--lx-line: color-mix(in srgb, var(--lx-primary) 12%, transparent);
	--lx-on-ink: color-mix(in srgb, #fff 92%, var(--lx-primary));
	--lx-on-ink-soft: color-mix(in srgb, #fff 66%, var(--lx-primary));
	--lx-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--lx-bg); color: var(--lx-text); font: 400 17px/1.65 var(--lx-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--lx-primary); text-decoration-color: color-mix(in srgb, var(--lx-accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--lx-primary) 70%, var(--lx-accent)); }
h1, h2, h3, h4, h5 { font-family: var(--lx-display); color: var(--lx-primary); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--lx-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lx-skip { position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--lx-primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.lx-skip:focus { top: 12px; }
.lx-wrap { width: 100%; max-width: var(--lx-wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.lx-wrap--text { max-width: 820px; }

/* ---------- Buttons ---------- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font: 500 .95rem/1.2 var(--lx-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.lx-btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.lx-btn--accent { background: var(--lx-accent); color: #fff; }
.lx-btn--accent:hover { background: color-mix(in srgb, var(--lx-accent) 82%, #000); color: #fff; }
.lx-btn--ink { background: var(--lx-primary); color: #fff; }
.lx-btn--ink:hover { background: color-mix(in srgb, var(--lx-primary) 80%, var(--lx-accent)); color: #fff; }
.lx-btn--line { border-color: color-mix(in srgb, #fff 35%, transparent); color: #fff; }
.lx-btn--line:hover { border-color: var(--lx-accent); color: #fff; background: color-mix(in srgb, #fff 6%, transparent); }
.lx-btn--outline { border-color: var(--lx-line); color: var(--lx-primary); }
.lx-btn--outline:hover { border-color: var(--lx-accent); }
.lx-btn--light { background: var(--lx-bg); color: var(--lx-primary); }
.lx-btn--light:hover { background: #fff; color: var(--lx-primary); }
.lx-link { color: inherit; text-decoration: none; font-weight: 500; }
.lx-link:hover { color: var(--lx-accent); }
.lx-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; text-decoration: none; color: var(--lx-primary); }
.lx-more::after { content: ""; width: 28px; height: 1px; background: var(--lx-accent); transition: width .25s; }
.lx-more:hover::after { width: 44px; }

/* ---------- Header ---------- */
.lx-header { position: relative; z-index: 50; background: var(--lx-surface); border-bottom: 1px solid var(--lx-line); }
.lx-sticky .lx-header { position: sticky; top: 0; }
.lx-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--lx-header-h); }
.lx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lx-primary); flex: none; }
.lx-brand__mark { color: var(--lx-accent); }
.lx-brand span { font-family: var(--lx-display); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.custom-logo-link img { max-height: 46px; width: auto; display: block; }
.lx-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.lx-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.lx-menu a { text-decoration: none; color: var(--lx-text); font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.lx-menu a:hover, .lx-menu .current-menu-item > a { color: var(--lx-primary); border-color: var(--lx-accent); }
.lx-menu .sub-menu { display: none; }
.lx-nav__actions { display: flex; align-items: center; gap: 18px; }
.lx-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto; }
.lx-burger span:not(.screen-reader-text) { display: block; height: 1.5px; background: currentColor; transition: transform .25s; }

/* Transparent header over the hero */
.lx-has-hero .lx-header { background: var(--lx-primary); border-color: color-mix(in srgb, #fff 10%, transparent); color: var(--lx-on-ink); }
.lx-has-hero .lx-header .lx-brand, .lx-has-hero .lx-header .lx-menu a, .lx-has-hero .lx-header .lx-link, .lx-has-hero .lx-burger { color: var(--lx-on-ink); }
.lx-has-hero .lx-header .lx-brand span { color: #fff; }
.lx-has-hero .lx-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }

/* ---------- Hero ---------- */
.lx-hero { position: relative; background: var(--lx-primary); color: var(--lx-on-ink); padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.lx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--lx-primary) 86%, transparent), var(--lx-primary)), var(--lx-hero-img, none); background-size: cover; background-position: center; }
.lx-hero__inner { max-width: calc(var(--lx-wrap)); }
.lx-hero__title { color: #fff; font-weight: 500; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .98; letter-spacing: -.01em; max-width: 16ch; margin: 0 0 28px; }
.lx-city { white-space: nowrap; }
.lx-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: var(--lx-on-ink-soft); margin: 0 0 34px; }
.lx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lx-hero__note { margin: 22px 0 0; font-size: .9rem; color: var(--lx-on-ink-soft); }

.lx-route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; margin-top: clamp(48px, 7vw, 84px); color: var(--lx-accent); }
.lx-route__svg { width: 100%; height: clamp(70px, 10vw, 120px); overflow: visible; display: block; }
.lx-route__pin { fill: var(--lx-primary); stroke: var(--lx-accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.lx-route__dot { fill: #fff; }
.lx-route__end { display: flex; flex-direction: column; gap: 2px; padding-bottom: 2px; }
.lx-route__end--to { text-align: right; }
.lx-route__end strong { font-family: var(--lx-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: #fff; font-weight: 500; line-height: 1; }
.lx-route__end small { color: var(--lx-accent); font-size: .85rem; }

/* ---------- Sections ---------- */
.lx-section { padding: clamp(64px, 9vw, 112px) 0; }
.lx-section + .lx-section { border-top: 1px solid var(--lx-line); }
.lx-section__title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 500; max-width: 18ch; margin-bottom: 18px; }
.lx-section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 18px; }
.lx-section__head p { color: var(--lx-muted); font-size: 1.1rem; max-width: 44ch; margin: 0 0 18px; }

.lx-steps__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lx-primary); }
.lx-steps__list li { padding: 26px 26px 10px 0; position: relative; }
.lx-steps__list li + li { padding-left: 26px; border-left: 1px solid var(--lx-line); }
.lx-steps__n { font-family: var(--lx-display); font-size: 3.4rem; line-height: 1; color: var(--lx-accent); font-weight: 400; display: block; margin-bottom: 18px; }
.lx-steps__list h3 { font-size: 1.55rem; margin-bottom: 8px; }
.lx-steps__list p { color: var(--lx-muted); margin: 0; }

.lx-cats { background: var(--lx-surface); }
.lx-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lx-trust__grid > div > p { color: var(--lx-muted); font-size: 1.1rem; max-width: 42ch; }
.lx-trust__list { list-style: none; margin: 0; padding: 0; }
.lx-trust__list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--lx-line); font-size: 1.08rem; }
.lx-trust__list li:first-child { border-top: 1px solid var(--lx-line); }
.lx-trust__list svg { color: var(--lx-accent); flex: none; margin-top: 2px; }

.lx-agent { background: var(--lx-accent); color: #fff; padding: clamp(52px, 7vw, 84px) 0; }
.lx-agent__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lx-agent h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 500; margin-bottom: 10px; max-width: 20ch; }
.lx-agent p { margin: 0; max-width: 52ch; color: color-mix(in srgb, #fff 88%, var(--lx-accent)); font-size: 1.08rem; }

/* ---------- Pages & content ---------- */
.lx-pagehead { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.lx-pagehead__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; margin: 0; max-width: 18ch; }
.lx-pagehead__lead { color: var(--lx-muted); font-size: 1.2rem; margin: 16px 0 0; }
.lx-meta { color: var(--lx-muted); font-size: .9rem; margin: 0 0 10px; }
.lx-entry { padding-bottom: clamp(56px, 8vw, 104px); font-size: 1.08rem; }
.lx-entry > * { margin-top: 0; margin-bottom: 1.15em; }
.lx-entry h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.8em; padding-top: .9em; border-top: 1px solid var(--lx-line); }
.lx-entry h3 { font-size: 1.45rem; margin-top: 1.6em; }
.lx-entry ul, .lx-entry ol { padding-left: 1.2em; }
.lx-entry li { margin-bottom: .45em; }
.lx-entry li::marker { color: var(--lx-accent); }
.lx-entry blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--lx-accent); font-family: var(--lx-display); font-size: 1.5rem; color: var(--lx-primary); }
.lx-entry .alignwide { max-width: min(1100px, 92vw); margin-left: 50%; transform: translateX(-50%); width: min(1100px, 92vw); }
.lx-entry .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.lx-entry--wide { max-width: var(--lx-wrap); }
.lx-entry .wp-block-button__link { border-radius: 999px; background: var(--lx-primary); padding: 12px 26px; }
.lx-entry table { width: 100%; border-collapse: collapse; }
.lx-entry th, .lx-entry td { padding: 10px; border-bottom: 1px solid var(--lx-line); text-align: left; }
.lx-cover img { width: 100%; border-radius: var(--lx-radius); margin-bottom: 40px; }
.lx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; padding-bottom: 96px; }
.lx-post h2 { font-size: 1.7rem; }
.lx-post h2 a { text-decoration: none; }
.lx-post__img img { border-radius: var(--lx-radius); margin-bottom: 16px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.lx-pagination { grid-column: 1 / -1; }
.lx-404 { padding: 120px 0; color: var(--lx-accent); }
.lx-404 h1 { margin: 24px 0 14px; }
.lx-404 p { color: var(--lx-muted); }
.lx-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--lx-line); }
.lx-comments input:not([type=submit]):not([type=checkbox]), .lx-comments textarea, .search-form input[type=search] { width: 100%; padding: 11px 14px; border: 1px solid var(--lx-line); border-radius: 10px; font: inherit; background: #fff; }
.lx-comments input[type=submit], .search-submit { background: var(--lx-primary); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; cursor: pointer; }

/* ---------- Footer ---------- */
.lx-footer { background: var(--lx-primary); color: var(--lx-on-ink-soft); padding: 72px 0 0; font-size: .95rem; }
.lx-footer a { color: var(--lx-on-ink); text-decoration: none; }
.lx-footer a:hover { color: var(--lx-accent); }
.lx-footer .lx-brand, .lx-footer .lx-brand span { color: #fff; }
.lx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.lx-footer__brand p { max-width: 36ch; margin: 18px 0 20px; }
.lx-footer__brand .am-btn--ghost { color: #fff; border-color: color-mix(in srgb, #fff 30%, transparent); }
.lx-footer__h { font-family: var(--lx-body); font-size: .85rem; font-weight: 500; color: var(--lx-accent); margin: 0 0 16px; }
.lx-flinks, .lx-legal { list-style: none; margin: 0; padding: 0; }
.lx-flinks li { margin-bottom: 10px; }
.lx-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); font-size: .85rem; }
.lx-footer__base p { margin: 0; }
.lx-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.lx-widget { margin-top: 24px; }
.lx-widget__title { font-family: var(--lx-body); font-size: .85rem; color: var(--lx-accent); }

/* ---------- App template ---------- */
.lx-app { background: var(--lx-bg); }
.lx-app__panel .am-app { min-height: 100vh; }
.lx-appbar { border-bottom: 1px solid var(--lx-line); background: var(--lx-surface); }
.lx-appbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.lx-app__head { padding-top: 40px; text-align: center; }
.lx-app__head .lx-pagehead__title { margin: 0 auto; font-size: clamp(2rem, 4vw, 3rem); max-width: none; }
.lx-app__body { padding-bottom: 80px; }
.lx-app__page .am-auth-wrap { padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.lx-burger { display: flex; }
	.lx-nav { position: fixed; inset: var(--lx-header-h) 0 0 0; background: var(--lx-primary); color: var(--lx-on-ink); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; padding: 32px clamp(18px, 5vw, 40px) 40px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; }
	.lx-menu-open .lx-nav { opacity: 1; transform: none; visibility: visible; }
	.lx-menu-open { overflow: hidden; }
	.lx-menu { flex-direction: column; gap: 0; }
	.lx-menu a { display: block; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent); font-family: var(--lx-display); font-size: 1.7rem; color: #fff !important; }
	.lx-nav__actions { flex-direction: column; align-items: stretch; }
	.lx-nav__actions .lx-link { color: #fff; }
	.lx-menu-open .lx-burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
	.lx-menu-open .lx-burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
	.lx-steps__list { grid-template-columns: 1fr 1fr; }
	.lx-steps__list li:nth-child(3) { padding-left: 0; border-left: 0; }
	.lx-steps__list li:nth-child(n+3) { border-top: 1px solid var(--lx-line); }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.lx-section__head, .lx-trust__grid, .lx-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.lx-steps__list { grid-template-columns: 1fr; }
	.lx-steps__list li, .lx-steps__list li + li { padding: 22px 0; border-left: 0; }
	.lx-steps__list li + li { border-top: 1px solid var(--lx-line); }
	.lx-route { grid-template-columns: 1fr 1fr; }
	.lx-route__svg { grid-column: 1 / -1; grid-row: 1; }
	.lx-hero__ctas .lx-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lx-route__dot { display: none; }
	* { transition: none !important; }
}
