/* ===================================================================
   Moving Lead-Gen theme — main.css
   Colors/radii come from :root variables injected by inc/enqueue.php
   (from the Design settings), with fallbacks here.
   =================================================================== */

:root {
	--wp--preset--color--primary: #16324f;
	--wp--preset--color--secondary: #20456b;
	--wp--preset--color--accent: #e2632a;
	--wp--preset--color--background: #ffffff;
	--wp--preset--color--text: #141b26;
	--mlg-button-radius: 8px;
	--mlg-card-radius: 12px;
	--mlgt-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mlgt-font-head: "Space Grotesk", var(--mlgt-font-body);
	--mlgt-surface: #f6f8fa;
	--mlgt-line: #e2e6ec;
	--mlgt-muted: #6b7686;
	--mlgt-maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--mlgt-font-body);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--background);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--mlgt-font-head); color: var(--wp--preset--color--primary); line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--wp--preset--color--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.mlgt-container { max-width: var(--mlgt-maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.mlgt-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.mlgt-section__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 1.6rem; text-wrap: balance; }
.mlgt-skip { position: absolute; left: -9999px; }
.mlgt-skip:focus { left: 1rem; top: 1rem; z-index: 999; background: #fff; padding: .6rem 1rem; border-radius: 6px; }
.mlgt-empty { color: var(--mlgt-muted); }

/* ---------- Top bar ---------- */
.mlgt-topbar { background: var(--wp--preset--color--primary); color: #fff; font-size: .82rem; }
.mlgt-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.mlgt-topbar a { color: #fff; }
.mlgt-topbar__contact { display: flex; gap: 1.2rem; }
.mlgt-topbar__phone { font-weight: 700; }
.mlgt-topbar__trust { color: rgba(255, 255, 255, .8); }

/* ---------- Header ---------- */
.mlgt-header { background: var(--wp--preset--color--background); border-bottom: 1px solid var(--mlgt-line); }
.mlgt-sticky-header .mlgt-header { position: sticky; top: 0; z-index: 100; }
.mlgt-header__inner { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 0; }
.mlgt-logo { display: inline-flex; align-items: center; }
.mlgt-logo__img { max-height: var(--mlgt-logo-h, 48px); width: auto; }
.mlgt-logo__text { font-family: var(--mlgt-font-head); font-weight: 700; font-size: 1.3rem; color: var(--wp--preset--color--primary); }
.mlgt-nav { margin-left: auto; }
.mlgt-menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.mlgt-menu a { color: var(--wp--preset--color--text); font-weight: 500; font-size: .95rem; }
.mlgt-menu a:hover { color: var(--wp--preset--color--accent); text-decoration: none; }
.mlgt-header__actions { display: flex; align-items: center; gap: 1rem; }
.mlgt-header__phone { font-weight: 700; color: var(--wp--preset--color--primary); white-space: nowrap; }
.mlgt-header-dark .mlgt-header { background: var(--wp--preset--color--primary); }
.mlgt-header-dark .mlgt-menu a, .mlgt-header-dark .mlgt-header__phone, .mlgt-header-dark .mlgt-logo__text { color: #fff; }

.mlgt-nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: .4rem; margin-left: auto; }
.mlgt-nav-toggle span { width: 24px; height: 2px; background: var(--wp--preset--color--primary); border-radius: 2px; }

/* ---------- Hero ---------- */
.mlgt-hero { background: var(--mlgt-surface); position: relative; }
.mlgt-hero--image { color: #fff; }
.mlgt-hero--image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(11, 26, 43, .88), rgba(11, 26, 43, .55)), var(--hero-bg) center/cover no-repeat;
}
.mlgt-hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.mlgt-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6rem; text-wrap: balance; }
.mlgt-hero--image .mlgt-hero__title { color: #fff; }
.mlgt-hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; opacity: .92; }
.mlgt-hero--image .mlgt-hero__subtitle { color: #eaf0f6; }
.mlgt-hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.4rem 0; }
.mlgt-hero__badges li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: .35rem .8rem; border-radius: 100px; font-size: .82rem; font-weight: 600; }
.mlgt-hero:not(.mlgt-hero--image) .mlgt-hero__badges li { background: #fff; border-color: var(--mlgt-line); color: var(--wp--preset--color--primary); }
.mlgt-hero__actions { margin-top: 1rem; }

/* ---------- Trust ---------- */
.mlgt-trust { border-bottom: 1px solid var(--mlgt-line); background: #fff; }
.mlgt-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.6rem 0; }
.mlgt-trust__item { display: flex; gap: .7rem; align-items: center; }
.mlgt-trust__icon { font-size: 1.6rem; }
.mlgt-trust__item strong { display: block; font-size: .95rem; color: var(--wp--preset--color--primary); }
.mlgt-trust__item span { font-size: .8rem; color: var(--mlgt-muted); }

/* ---------- Cards / services ---------- */
.mlgt-services__grid, .mlgt-routes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.mlgt-card { background: #fff; border: 1px solid var(--mlgt-line); border-radius: var(--mlg-card-radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; color: inherit; display: block; }
.mlgt-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16, 34, 55, .12); text-decoration: none; }
.mlgt-card__media img { width: 100%; height: 180px; object-fit: cover; }
.mlgt-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.mlgt-card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.mlgt-card__text { color: #3c4757; font-size: .92rem; margin: 0 0 .8rem; }
.mlgt-card__link { color: var(--wp--preset--color--accent); font-weight: 600; font-size: .9rem; }
.mlgt-route-card { padding: 1.2rem 1.3rem; }
.mlgt-route-card__meta { display: flex; gap: 1rem; color: var(--mlgt-muted); font-size: .85rem; margin-top: .3rem; }
.mlgt-route-card__meta span { font-weight: 600; color: var(--wp--preset--color--secondary); }

/* ---------- Why / steps / lists ---------- */
.mlgt-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.mlgt-ticklist, .mlgt-list { list-style: none; padding: 0; margin: 0; }
.mlgt-ticklist li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.mlgt-ticklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--wp--preset--color--accent); width: 1.2rem; height: 1.2rem; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.mlgt-list li { padding-left: 1.2rem; position: relative; margin-bottom: .5rem; }
.mlgt-list li::before { content: "•"; color: var(--wp--preset--color--accent); position: absolute; left: 0; font-weight: 700; }
.mlgt-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.mlgt-steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.mlgt-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: var(--wp--preset--color--primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--mlgt-font-head); font-weight: 700; }
.mlgt-steps strong { display: block; color: var(--wp--preset--color--primary); }

/* ---------- Link lists ---------- */
.mlgt-linklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1.5rem; }
.mlgt-linklist a { display: inline-block; padding: .35rem 0; font-weight: 500; }

/* ---------- Article layout ---------- */
.mlgt-article { padding: 2.5rem 0; }
.mlgt-article__grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.mlgt-block { margin-bottom: 2rem; }
.mlgt-block h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.mlgt-article__aside .mlgt-sticky-form { position: sticky; top: 90px; }
.mlgt-notes { display: grid; gap: 1rem; margin: 1.5rem 0; }
.mlgt-note { background: var(--mlgt-surface); border: 1px solid var(--mlgt-line); border-radius: var(--mlg-card-radius); padding: 1rem 1.2rem; }
.mlgt-note h3 { font-size: 1rem; margin-bottom: .3rem; }

/* ---------- Stat strip ---------- */
.mlgt-statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.mlgt-stat { background: var(--wp--preset--color--primary); color: #fff; border-radius: var(--mlg-card-radius); padding: 1.1rem 1.3rem; }
.mlgt-stat span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.mlgt-stat strong { font-size: 1.4rem; font-family: var(--mlgt-font-head); }

/* ---------- Breadcrumbs ---------- */
.mlgt-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; font-size: .82rem; color: var(--mlgt-muted); }
.mlgt-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--mlgt-line); }

/* ---------- FAQ ---------- */
.mlgt-faq__inner { max-width: 820px; }
.mlgt-faq__item { border: 1px solid var(--mlgt-line); border-radius: var(--mlg-card-radius); margin-bottom: .7rem; overflow: hidden; background: #fff; }
.mlgt-faq__item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--wp--preset--color--primary); list-style: none; position: relative; }
.mlgt-faq__item summary::-webkit-details-marker { display: none; }
.mlgt-faq__item summary::after { content: "+"; position: absolute; right: 1.2rem; font-size: 1.3rem; color: var(--wp--preset--color--accent); }
.mlgt-faq__item[open] summary::after { content: "–"; }
.mlgt-faq__answer { padding: 0 1.2rem 1.1rem; color: #3c4757; }

/* ---------- CTA band ---------- */
.mlgt-cta { background: var(--wp--preset--color--primary); color: #fff; }
.mlgt-cta__inner { padding: clamp(2.5rem, 5vw, 3.5rem) 0; text-align: center; }
.mlgt-cta__inner h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.mlgt-cta__inner p { opacity: .85; margin-bottom: 1.5rem; }
.mlgt-cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons (shared with plugin) ---------- */
.mlg-btn { display: inline-block; padding: .8rem 1.4rem; border: 0; border-radius: var(--mlg-button-radius); font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: transform .12s ease, filter .12s ease; }
.mlg-btn:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.mlg-btn--primary { background: var(--wp--preset--color--primary); color: #fff; }
.mlg-btn--accent { background: var(--wp--preset--color--accent); color: #fff; }

/* ---------- Reviews section ---------- */
.mlgt-reviews-sec { background: var(--mlgt-surface); }

/* ---------- Page / calculator ---------- */
.mlgt-page { padding: 2.5rem 0; }
.mlgt-page__article, .mlgt-page__content { max-width: 820px; }
.mlgt-page__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.mlgt-page__content { font-size: 1.05rem; }
.mlgt-page__content > * + * { margin-top: 1rem; }
.mlgt-calc-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.mlgt-pagination { margin-top: 2rem; }
.mlgt-pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--mlgt-line); border-radius: 6px; margin-right: .3rem; }
.mlgt-pagination .current { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }

/* ---------- Footer ---------- */
.mlgt-footer { background: var(--wp--preset--color--primary); color: #cdd7e2; margin-top: 3rem; }
.mlgt-footer-light .mlgt-footer { background: var(--mlgt-surface); color: var(--wp--preset--color--text); }
.mlgt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.mlgt-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.mlgt-footer-light .mlgt-footer h4 { color: var(--wp--preset--color--primary); }
.mlgt-footer a { color: inherit; }
.mlgt-footer__logo .mlgt-logo__text { color: #fff; }
.mlgt-footer-light .mlgt-footer__logo .mlgt-logo__text { color: var(--wp--preset--color--primary); }
.mlgt-footer__area { font-weight: 600; margin: .8rem 0 .4rem; }
.mlgt-footer__legal { font-size: .82rem; opacity: .8; line-height: 1.7; }
.mlgt-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.mlgt-footer__col .mlg-btn { margin-top: .8rem; }
.mlgt-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; padding: 1rem 0; opacity: .8; }
.mlgt-footer-light .mlgt-footer__bar { border-color: var(--mlgt-line); }

/* ---------- Mobile CTA ---------- */
.mlgt-mobile-cta { display: none; }
.mlgt-mobile-cta a { flex: 1; text-align: center; padding: .95rem; font-weight: 700; color: #fff; text-decoration: none; }
.mlgt-mobile-cta__call { background: var(--wp--preset--color--secondary); }
.mlgt-mobile-cta__quote { background: var(--wp--preset--color--accent); }

/* ---------- Landing template ---------- */
.mlgt-landing__bar { display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--mlgt-line); }

/* ---------- Zigzag (checkerboard) ---------- */
.mlgt-zigzag__heading { text-align: center; margin-bottom: 2.5rem; }
.mlgt-zz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.mlgt-zz:last-child { margin-bottom: 0; }
.mlgt-zz--rev .mlgt-zz__media { order: 2; }
.mlgt-zz__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mlg-card-radius); box-shadow: 0 16px 44px rgba(16, 34, 55, .14); }
.mlgt-zz__ph { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--mlg-card-radius); background: repeating-linear-gradient(135deg, var(--mlgt-surface), var(--mlgt-surface) 14px, #eef1f5 14px, #eef1f5 28px); display: grid; place-items: center; border: 1px dashed #c7cfda; }
.mlgt-zz__ph span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mlgt-muted); }
.mlgt-zz__text h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .6rem; }
.mlgt-zz__text p { color: #3c4757; margin: 0 0 .8rem; }

/* ---------- States grid ---------- */
.mlgt-states__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.mlgt-states__grid li a, .mlgt-states__soon { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; border: 1px solid var(--mlgt-line); border-radius: var(--mlg-button-radius); background: #fff; font-weight: 500; }
.mlgt-states__grid li a:hover { border-color: var(--wp--preset--color--accent); text-decoration: none; }
.mlgt-states__grid span { color: var(--mlgt-muted); font-size: .8rem; font-weight: 600; }
.mlgt-states__soon { color: var(--mlgt-muted); background: var(--mlgt-surface); }

/* ---------- Captcha field ---------- */
.mlg-field--captcha { max-width: 240px; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
	.mlgt-hero__inner { grid-template-columns: 1fr; }
	.mlgt-article__grid { grid-template-columns: 1fr; }
	.mlgt-article__aside .mlgt-sticky-form { position: static; }
	.mlgt-why__grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.mlgt-calc-layout { grid-template-columns: 1fr; }
	.mlgt-footer__grid { grid-template-columns: 1fr 1fr; }
	.mlgt-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.mlgt-zz { grid-template-columns: 1fr; gap: 1.2rem; }
	.mlgt-zz--rev .mlgt-zz__media { order: 0; }
}
@media (max-width: 720px) {
	.mlgt-nav-toggle { display: flex; }
	.mlgt-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: #fff; transform: translateX(100%); transition: transform .25s ease; z-index: 200; padding: 4.5rem 1.5rem 2rem; box-shadow: -12px 0 40px rgba(0, 0, 0, .15); }
	.mlgt-nav.is-open { transform: translateX(0); }
	.mlgt-menu { flex-direction: column; gap: .4rem; }
	.mlgt-menu a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--mlgt-line); color: var(--wp--preset--color--text); }
	.mlgt-header__actions .mlgt-header__phone { display: none; }
	.mlgt-topbar__trust { display: none; }
	.mlgt-footer__grid { grid-template-columns: 1fr; }
	body.mlgt-has-mobile-cta { padding-bottom: 3.6rem; }
	.mlgt-mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); }
}

/* ---------- Small phones: 320–520px ---------- */
@media (max-width: 520px) {
	.mlgt-container { padding-left: 16px; padding-right: 16px; }
	.mlgt-section { padding: 2rem 0; }
	.mlgt-section__title { font-size: 1.35rem; margin-bottom: 1.1rem; }

	/* Top bar: keep phone only, stack tidily */
	.mlgt-topbar { font-size: .78rem; }
	.mlgt-topbar__inner { justify-content: center; padding: .4rem 0; }
	.mlgt-topbar__contact { gap: .9rem; }
	.mlgt-topbar__email { display: none; }

	/* Header */
	.mlgt-header__inner { gap: .75rem; padding: .65rem 0; }
	.mlgt-header__actions { gap: .5rem; }
	.mlgt-header__actions .mlg-btn { padding: .6rem .85rem; font-size: .85rem; }

	/* Hero */
	.mlgt-hero__inner { padding: 1.8rem 0; gap: 1.4rem; }
	.mlgt-hero__title { font-size: 1.7rem; }
	.mlgt-hero__subtitle { font-size: 1rem; }
	.mlgt-hero__badges { gap: .4rem; }
	.mlgt-hero__badges li { font-size: .74rem; padding: .3rem .6rem; }

	/* Forms & calculator: single column, comfortable tap targets */
	.mlg-form, .mlgt-hero__form .mlg-form { padding: 1.1rem; }
	.mlg-form__grid { grid-template-columns: 1fr; gap: .7rem; }
	.mlg-field input, .mlg-field select, .mlg-field textarea { font-size: 16px; padding: .7rem; } /* 16px prevents iOS zoom */
	.mlg-form__row { gap: .6rem; }
	.mlg-field--captcha { max-width: 100%; }
	.mlg-btn, .mlg-form__submit { width: 100%; }
	.mlgt-hero__actions .mlg-btn { width: auto; }

	/* Grids collapse to one column */
	.mlgt-services__grid, .mlgt-routes__grid, .mlgt-reviews { grid-template-columns: 1fr; }
	.mlgt-trust__grid { grid-template-columns: 1fr; gap: .8rem; }
	.mlgt-statstrip { grid-template-columns: 1fr; }
	.mlgt-states__grid { grid-template-columns: 1fr; }
	.mlgt-linklist { grid-template-columns: 1fr; }

	/* Cards */
	.mlgt-card__media img { height: 190px; }

	/* Zigzag */
	.mlgt-zigzag__heading { margin-bottom: 1.4rem; }
	.mlgt-zz { gap: 1rem; margin-bottom: 1.8rem; }
	.mlgt-zz__text h3 { font-size: 1.25rem; }

	/* Article / page */
	.mlgt-article, .mlgt-page { padding: 1.6rem 0; }
	.mlgt-article__grid { gap: 2rem; }
	.mlgt-block h2 { font-size: 1.3rem; }

	/* CTA band buttons stack full width */
	.mlgt-cta__actions { flex-direction: column; }
	.mlgt-cta__actions .mlg-btn { width: 100%; }

	/* Footer */
	.mlgt-footer__grid { gap: 1.4rem; padding: 2rem 0 1.5rem; }

	/* Off-canvas nav a touch wider on tiny screens */
	.mlgt-nav { width: 86vw; padding: 4.5rem 1.25rem 2rem; }
}

/* Never allow horizontal scroll on phones */
@media (max-width: 720px) {
	html, body { overflow-x: hidden; }
	img, table, pre { max-width: 100%; }
}
