/*
 * Mercedes Repair: page components (classes emitted by the build scripts in lib/mr-lib.php).
 * Colours ONLY via var(--mr-*) (css/vars.css). No colour literals. Metrics from spec/tokens-layout.json (Family B).
 */

/* 0. Type ------------------------------------------------------------------- */
body .mr-band { font-size: 17px; line-height: 1.7; }
body .mr-band h1, body .mr-band h2, body .mr-band h3 { font-family: var(--mr-font-heading); font-weight: 800; color: var(--mr-ink); }
body .mr-band h2 { margin-top: 0; font-size: clamp(29px, 2.6vw, 38px); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 22ch; }
body .mr-band h3 { margin-top: 0; font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
body .mr-band p { margin: 0 0 16px; margin-top: 0; color: var(--mr-text); }
body .mr-band a:not(.kb-button) { color: var(--mr-accent); text-underline-offset: 3px; }
body .mr-band a:not(.kb-button):hover { color: var(--mr-ink); }

.mr-eyebrow {
	font-family: var(--mr-font-body);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mr-accent) !important;
	margin: 0 0 14px !important;
}
.mr-lead { font-size: 19px; line-height: 1.65; max-width: 58ch; }
.mr-note { font-size: 15px; line-height: 1.7; color: var(--mr-muted) !important; max-width: 52ch; }
.mr-small { font-size: 14px; color: var(--mr-muted) !important; }
.mr-more { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.mr-more::after { content: " \2192"; }

/* 1. Dark bands --------------------------------------------------------------- */
body .mr-dark h1, body .mr-dark h2, body .mr-dark h3 { color: var(--mr-white); }
body .mr-dark p, body .mr-dark li, body .mr-dark .mr-check li { color: var(--mr-text-on-dark); }
.mr-dark .mr-eyebrow { color: var(--mr-accent-on-dark) !important; }
.mr-dark .mr-note { color: var(--mr-text-on-dark) !important; }
body .mr-dark a:not(.kb-button) { color: var(--mr-accent-on-dark); }
body .mr-dark a:not(.kb-button):hover { color: var(--mr-white); }

/* 2. Buttons (Kadence singlebtn + .mr-btn--*) ---------------------------------- */
:root .mr-btns .kb-button.mr-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; }
.mr-btns .kb-button { min-height: var(--mr-button-min-height); border-radius: var(--mr-radius-button); font-family: var(--mr-font-body); font-size: 15px; font-weight: 700; border-width: 1px; border-style: solid; }
.mr-btns .mr-btn--primary { background: var(--mr-accent); border-color: var(--mr-accent); color: var(--mr-white); }
.mr-btns .mr-btn--primary:hover, .mr-btns .mr-btn--primary:focus-visible { background: var(--mr-ink); border-color: var(--mr-ink); color: var(--mr-white); }
.mr-btns .mr-btn--secondary { background: transparent; border-color: var(--mr-muted); color: var(--mr-ink); }
.mr-btns .mr-btn--secondary:hover, .mr-btns .mr-btn--secondary:focus-visible { background: var(--mr-ink); border-color: var(--mr-ink); color: var(--mr-white); }
.mr-dark .mr-btns .mr-btn--primary { background: var(--mr-accent-on-dark); border-color: var(--mr-accent-on-dark); color: var(--mr-ink); }
.mr-dark .mr-btns .mr-btn--primary:hover, .mr-dark .mr-btns .mr-btn--primary:focus-visible { background: var(--mr-white); border-color: var(--mr-white); color: var(--mr-ink); }
.mr-dark .mr-btns .mr-btn--secondary { border-color: var(--mr-button-line-on-dark); color: var(--mr-white); }
.mr-dark .mr-btns .mr-btn--secondary:hover, .mr-dark .mr-btns .mr-btn--secondary:focus-visible { background: var(--mr-white); border-color: var(--mr-white); color: var(--mr-ink); }
.mr-btns { margin-top: 26px; }

/* 3. Figures ------------------------------------------------------------------ */
.mr-fig { margin: 0; }
.mr-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--mr-radius-card); border: 1px solid var(--mr-line); }
.mr-dark .mr-fig img { border-color: var(--mr-line-on-dark); }
.mr-fig--hero img { aspect-ratio: 1.42; }
.mr-fig--portrait { max-width: 430px; margin-left: auto; }
.mr-fig--portrait img { aspect-ratio: 2 / 3; }
.mr-fig--square img { aspect-ratio: 1; }

/* 4. Hero ----------------------------------------------------------------------- */
.mr-hero .mr-h1 { font-size: clamp(38px, 4.1vw, 56px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 19ch; }
.mr-h1-soft { display: block; color: var(--mr-text-on-dark); font-weight: 800; }
.mr-quick { margin-top: 26px !important; font-size: 14px; }
.mr-quick span { color: var(--mr-text-on-dark); margin-right: 6px; }
.mr-quick a { display: inline-block; margin: 4px 14px 4px 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--mr-line-on-dark); }

/* 5. Trust strip ------------------------------------------------------------------ */
.mr-strip .kt-row-column-wrap { gap: 0 !important; }
.mr-strip-cell { border-right: 1px solid var(--mr-line); padding: 23px 25px; }
.mr-strip-cell:first-child { border-left: 1px solid var(--mr-line); }
.mr-strip-cell p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mr-muted); }
.mr-strip-cell strong { display: block; font-size: 15px; color: var(--mr-ink); margin-bottom: 3px; }

/* 6. Lists ------------------------------------------------------------------------- */
body ul.mr-check { list-style: none; padding: 0; margin: 22px 0 24px; }
.mr-check li { position: relative; padding-left: 26px; margin: 0 0 10px; color: var(--mr-text); }
.mr-check li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid var(--mr-accent); border-bottom: 2px solid var(--mr-accent); transform: rotate(-45deg); }
.mr-dark .mr-check li::before { border-color: var(--mr-accent-on-dark); }
.mr-check--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.mr-check--small li { font-size: 15px; }

/* services directory: 3 columns, 1px top rules, link + one line */
body ul.mr-dir { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
.mr-dir li { border-top: 1px solid var(--mr-line); padding: 20px 0 22px; margin: 0; }
.mr-dir a { display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--mr-ink) !important; text-decoration: none; margin-bottom: 6px; }
.mr-dir a:hover { color: var(--mr-accent) !important; text-decoration: underline; }
.mr-dir span { display: block; font-size: 15px; line-height: 1.6; color: var(--mr-muted); }

/* how it works: numbered row with big numerals */
body ol.mr-steps { list-style: none; counter-reset: mr-step; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; }
.mr-steps li { counter-increment: mr-step; border-top: 2px solid var(--mr-ink); padding-top: 22px; color: var(--mr-text); font-size: 16px; line-height: 1.65; }
.mr-steps li::before { content: "0" counter(mr-step); display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--mr-accent); margin-bottom: 18px; }
.mr-steps strong { display: block; font-family: var(--mr-font-heading); font-size: 20px; line-height: 1.3; color: var(--mr-ink); margin-bottom: 8px; }

/* Dubai lines: label column + text column, 1px rules */
body ul.mr-lines { list-style: none; padding: 0; margin: 0; }
.mr-lines li { display: grid; grid-template-columns: minmax(150px, 0.55fr) 1.45fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--mr-line); margin: 0; }
.mr-lines li:first-child { border-top: 1px solid var(--mr-line); }
.mr-lines strong { font-family: var(--mr-font-heading); font-size: 18px; color: var(--mr-ink); }
.mr-lines span { color: var(--mr-text); font-size: 16px; line-height: 1.65; }

/* 7. Section heads ------------------------------------------------------------------ */
.mr-sec-head .mr-note { margin-left: auto; }
.mr-sec-head h2 { margin-bottom: 0; }

/* 8. Packages ----------------------------------------------------------------------- */

.mr-pkg { padding: 30px 30px 18px; border: 1px solid var(--mr-line-on-dark); border-radius: var(--mr-radius-card); }
.mr-pkg .mr-pkg-name { font-size: 22px; margin: 0 0 6px; }
.mr-pkg-price { font-size: 15px; margin-bottom: 10px !important; }
.mr-pkg-price strong { font-family: var(--mr-font-heading); font-size: 28px; color: var(--mr-white); margin-left: 4px; }
.mr-pkg-for { font-size: 15px; border-bottom: 1px solid var(--mr-line-on-dark); padding-bottom: 16px; }

/* 9. Small pieces ------------------------------------------------------------------ */
.mr-rule { border-left: 3px solid var(--mr-accent); padding: 4px 0 4px 22px; font-size: 18px; color: var(--mr-ink) !important; font-weight: 700; margin: 24px 0 !important; }
.mr-price-line { font-size: 16px; margin-bottom: 0 !important; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px !important; }
.mr-chips span { border: 1px solid var(--mr-line); border-radius: 5px; padding: 6px 12px; font-size: 14px; color: var(--mr-ink); background: var(--mr-white); }

/* FAQ (core/details) */
.mr-qa { border-top: 1px solid var(--mr-line); padding: 0; margin: 0; }
.mr-faq .mr-qa:last-child { border-bottom: 1px solid var(--mr-line); }
.mr-qa summary { list-style: none; cursor: pointer; position: relative; padding: 21px 44px 21px 0; font-weight: 700; font-size: 17px; color: var(--mr-ink); }
.mr-qa summary::-webkit-details-marker { display: none; }
.mr-qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--mr-accent); }
.mr-qa[open] summary::after { content: "\2212"; }
.mr-qa p { padding: 0 0 22px; margin: 0; max-width: 64ch; }

@media (min-width: 1025px) {
	.mr-sticky-col > .kt-inside-inner-col { position: sticky; top: calc(var(--mr-header-height) + 28px); }
}

/* 10. Visit + form ----------------------------------------------------------------- */
.mr-visit { border-left: 1px solid var(--mr-line); padding-left: 45px; }
.mr-visit h3 { margin-top: 26px; }
.mr-visit-line { font-size: 16px; }
.mr-visit-phone { font-family: var(--mr-font-heading); font-weight: 800; font-size: 22px; color: var(--mr-ink) !important; text-decoration: none; }
.mr-form-card .kb-advanced-form { margin-top: 24px; }
body .mr-band .kb-advanced-form label { font-weight: 700; font-size: 14px; color: var(--mr-ink); }
body .mr-band .kb-advanced-form input, body .mr-band .kb-advanced-form select, body .mr-band .kb-advanced-form textarea {
	background: var(--mr-white); color: var(--mr-ink); border: 1px solid var(--mr-muted); border-radius: 6px; padding: 12px 14px; font-size: 16px;
}
body .mr-band .kb-advanced-form textarea { min-height: 120px; }
body .mr-band .kb-advanced-form .kb-adv-form-submit-button { min-height: var(--mr-button-min-height); background: var(--mr-accent); color: var(--mr-white); border: 0; border-radius: var(--mr-radius-button); font-weight: 700; font-size: 15px; }
body .mr-band .kb-advanced-form .kb-adv-form-submit-button:hover { background: var(--mr-ink); }

/* 11. Footer (Kadence Element replace_footer) --------------------------------------- */
.mr-foot-cta { border-top: 4px solid var(--mr-accent); }
.mr-foot-cta-text > .kt-inside-inner-col { border-left: 2px solid var(--mr-accent-on-dark); padding-left: 27px; }
.mr-foot-cta .mr-foot-cta-h { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; max-width: 20ch; margin-bottom: 16px; }
.mr-foot-cta-p { font-size: 16px; line-height: 1.75; max-width: 52ch; }
.mr-foot-caption { font-size: 12px !important; text-align: right; margin-top: 15px !important; }
.mr-foot-grid > .kt-row-column-wrap { border-top: 1px solid var(--mr-line-on-dark); padding-top: 49px; }
.mr-foot-brand { font-family: var(--mr-font-heading); font-weight: 800; font-size: 24px; letter-spacing: 0.015em; color: var(--mr-white) !important; text-decoration: none; }
.mr-foot-about { font-size: 14px !important; line-height: 1.85; max-width: 32ch; }
.mr-foot-h { font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mr-white) !important; margin: 4px 0 18px !important; }
body ul.mr-foot-links { list-style: none; padding: 0; margin: 0; }
.mr-foot-links li { margin: 0; }
.mr-foot-links a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--mr-text-on-dark) !important; text-decoration: none; }
.mr-foot-links a:hover { color: var(--mr-white) !important; text-decoration: underline; }
.mr-foot-addr { font-size: 14px !important; line-height: 1.85; }
.mr-foot-phone { font-size: 20px; font-weight: 700; color: var(--mr-white) !important; text-decoration: none; }
.mr-foot-small { font-size: 12px !important; line-height: 1.85; }
.mr-foot-legal > .kt-row-column-wrap { border-top: 1px solid var(--mr-line-on-dark); padding-top: 24px; }

/* 12. Header extras ------------------------------------------------------------------ */
.header-navigation .menu-item.mr-sub-wide > .sub-menu { grid-template-columns: 1fr 1fr; width: 440px; }
.header-navigation .menu-item.mr-sub-wide:hover > .sub-menu,
.header-navigation .menu-item.mr-sub-wide:focus-within > .sub-menu,
.header-navigation .menu-item.mr-sub-wide.menu-item--toggled-on > .sub-menu { display: grid; }
.header-navigation .menu-item.mr-sub-wide > .sub-menu > li > a { width: auto; }
.site-header .header-button, .site-header .header-button2, .site-header .mobile-header-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* (mobile call bar removed 2026-10-20 at Taha's request; phones use the floating WhatsApp bubble) */

/* 13. Responsive -------------------------------------------------------------------- */
@media (max-width: 1024px) {
	body ul.mr-dir { grid-template-columns: 1fr 1fr; }
	body ol.mr-steps { grid-template-columns: 1fr 1fr; gap: 28px 28px; }
	.mr-visit { border-left: 0; padding-left: 0; }
	.mr-foot-caption { text-align: left; }
}
@media (max-width: 767px) {
	body .mr-band { font-size: 16px; }
	.mr-lead { font-size: 17px; }
	body ul.mr-dir, body ol.mr-steps, body ul.mr-check--2col { grid-template-columns: 1fr; }
	.mr-steps li::before { font-size: 36px; }
	body ul.mr-lines li { grid-template-columns: 1fr; gap: 6px; }
	.mr-strip-cell { padding: 16px 14px; border-bottom: 1px solid var(--mr-line); }
	.mr-strip-cell:nth-child(odd) { border-left: 0; }
	.mr-strip-cell:nth-child(even) { border-right: 0; }
	.mr-fig--portrait { max-width: none; }
	.mr-fig--portrait img { aspect-ratio: 4 / 5; }
	.mr-flip-mobile .kt-row-column-wrap > .wp-block-kadence-column:first-child { order: 2; }
	.mr-foot-cta-text > .kt-inside-inner-col { padding-left: 18px; }
	:root .mr-btns .kb-button.mr-btn { font-size: 14px; padding: 15px 18px; }
}

/* 14. Service template + hub components ---------------------------------------------------- */
.mr-intro { font-size: 18px; line-height: 1.7; max-width: 62ch; margin-bottom: 28px !important; }
.mr-fig--wide img { aspect-ratio: auto; height: 380px; }
.mr-fig--spaced { margin-top: 28px; }
.mr-hero-jump { margin-top: 22px !important; }

/* jump strip cells as links */
.mr-strip-cell--link p { margin: 0; }
body .mr-band .mr-strip-cell--link a { display: block; text-decoration: none; color: var(--mr-muted); }
body .mr-band .mr-strip-cell--link a:hover strong { color: var(--mr-accent); }

/* stacked articles (hub maintenance) */
body ul.mr-stack { list-style: none; padding: 0; margin: 0; }
.mr-stack li { border-top: 1px solid var(--mr-line); padding: 24px 0 26px; margin: 0; }
.mr-stack li:last-child { border-bottom: 1px solid var(--mr-line); }
body .mr-band .mr-stack-title { display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 23px; line-height: 1.25; color: var(--mr-ink); text-decoration: none; margin-bottom: 8px; }
body .mr-band .mr-stack-title:hover { color: var(--mr-accent); }
.mr-stack span { display: block; font-size: 16px; line-height: 1.7; color: var(--mr-text); margin-bottom: 12px; max-width: 60ch; }
.mr-stack .mr-more { font-size: 14px; }

/* price grid: 3 x 2 cells in a 1px frame */
body ul.mr-prices { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--mr-line); border-radius: var(--mr-radius-card); background: var(--mr-white); overflow: hidden; }
.mr-prices li { padding: 23px 25px; margin: 0; border-right: 1px solid var(--mr-line); border-bottom: 1px solid var(--mr-line); }
.mr-prices li:nth-child(3n) { border-right: 0; }
.mr-prices li:nth-last-child(-n+3) { border-bottom: 0; }
.mr-prices strong { display: block; font-size: 17px; color: var(--mr-ink); margin-bottom: 6px; }
.mr-prices b { display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 25px; color: var(--mr-accent); white-space: nowrap; margin-bottom: 6px; }
.mr-prices span { display: block; font-size: 13px; line-height: 1.55; color: var(--mr-muted); }

/* directory variants */
body ul.mr-dir--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; }
body ul.mr-dir--1 { grid-template-columns: 1fr; }
body ul.mr-dir--index { counter-reset: mr-idx; }
.mr-dir--index li { counter-increment: mr-idx; padding-top: 26px; }
.mr-dir--index li::before { content: "0" counter(mr-idx); display: block; font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--mr-muted); margin-bottom: 10px; }
.mr-dir--index a { font-size: 23px; }
.mr-dir--text strong { display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 20px; line-height: 1.3; color: var(--mr-ink); margin-bottom: 8px; }
.mr-dir--text span { font-size: 16px; line-height: 1.7; color: var(--mr-text); }
.mr-dark .mr-dir li { border-top-color: var(--mr-line-on-dark); }
body .mr-dark .mr-dir a { color: var(--mr-white) !important; }
body .mr-dark .mr-dir a:hover { color: var(--mr-accent-on-dark) !important; }
.mr-dark .mr-dir span, .mr-dark .mr-dir--index li::before { color: var(--mr-text-on-dark); }

/* feature panel (hub body) */
.mr-panel > .kt-inside-inner-col { background: var(--mr-surface); border-left: 3px solid var(--mr-accent); padding: 34px; border-radius: 0 var(--mr-radius-card) var(--mr-radius-card) 0; }
body .mr-band .mr-panel-h { margin-top: 26px; font-size: 20px; }

/* model finder strip */
.mr-finder h2 { font-size: 29px !important; margin-bottom: 6px !important; }
.mr-finder .mr-note { margin-bottom: 0 !important; }
.mr-linkrow { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 !important; }
body .mr-band .mr-linkrow a { font-size: 17px; font-weight: 700; color: var(--mr-ink); text-decoration: none; border-bottom: 1px solid var(--mr-line); padding-bottom: 2px; }
body .mr-band .mr-linkrow a:hover { color: var(--mr-accent); border-color: var(--mr-accent); }

/* shortcut tabs (service pages) */
body ul.mr-tabs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mr-tabs li { margin: 0; border-right: 1px solid var(--mr-line); }
.mr-tabs li:first-child { border-left: 1px solid var(--mr-line); }
body .mr-band .mr-tabs a { display: block; text-align: center; padding: 19px 24px; font-weight: 700; font-size: 15px; color: var(--mr-ink); text-decoration: none; }
body .mr-band .mr-tabs a:hover { background: var(--mr-surface-strong); }

/* cards (symptom urgency) */
.mr-card > .kt-inside-inner-col { height: 100%; border: 1px solid var(--mr-line); border-radius: var(--mr-radius-card); padding: 27px; background: var(--mr-white); }
.mr-card--level-1 > .kt-inside-inner-col { border-top: 4px solid var(--mr-alert); }
.mr-card--level-2 > .kt-inside-inner-col { border-top: 4px solid var(--mr-accent); }
.mr-card--level-3 > .kt-inside-inner-col { border-top: 4px solid var(--mr-line); }
.mr-card-label { font-size: 12px !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mr-muted) !important; margin-bottom: 10px !important; }
.mr-card p:last-child { margin-bottom: 0; font-size: 16px; }

/* price table */
.mr-table { margin: 0; border: 1px solid var(--mr-line); border-radius: var(--mr-radius-card); overflow-x: auto; background: var(--mr-white); }
.mr-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
body .mr-table th { background: var(--mr-surface); color: var(--mr-ink); font-size: 14px; font-weight: 700; text-align: left; padding: 14px 22px; border: 0; border-bottom: 1px solid var(--mr-line); }
body .mr-table td { padding: 17px 22px; font-size: 16px; line-height: 1.5; color: var(--mr-text); border: 0; border-bottom: 1px solid var(--mr-line); vertical-align: top; }
.mr-table tr:last-child td { border-bottom: 0; }
body .mr-table td:first-child { font-weight: 700; color: var(--mr-ink); }
body .mr-table td:last-child, body .mr-table th:last-child { white-space: nowrap; font-weight: 700; color: var(--mr-ink); min-width: 120px; }

/* numbered process list */
body ol.mr-numbered { list-style: none; counter-reset: mr-n; padding: 0; margin: 8px 0 0; }
.mr-numbered li { counter-increment: mr-n; position: relative; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--mr-line); margin: 0; color: var(--mr-text); }
.mr-numbered li:first-child { border-top: 1px solid var(--mr-line); }
.mr-numbered li::before { content: counter(mr-n); position: absolute; left: 0; top: 10px; font-family: var(--mr-font-heading); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--mr-accent); }

/* pill links */
.mr-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
body .mr-band .mr-pills a { border: 1px solid var(--mr-line); border-radius: 5px; padding: 9px 16px; font-size: 15px; text-decoration: none; color: var(--mr-ink); }
body .mr-dark .mr-pills a { border-color: var(--mr-line-on-dark); color: var(--mr-white); }
body .mr-dark .mr-pills a:hover { border-color: var(--mr-accent-on-dark); color: var(--mr-accent-on-dark); }

@media (max-width: 1024px) {
	body ul.mr-prices { grid-template-columns: 1fr 1fr; }
	.mr-prices li { border-right: 1px solid var(--mr-line) !important; border-bottom: 1px solid var(--mr-line) !important; }
	.mr-prices li:nth-child(2n) { border-right: 0 !important; }
	.mr-fig--wide img { height: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
	body ul.mr-prices, body ul.mr-dir--2 { grid-template-columns: 1fr; }
	.mr-prices li { border-right: 0 !important; }
	body ul.mr-tabs { grid-template-columns: 1fr 1fr; }
	.mr-tabs li { border-bottom: 1px solid var(--mr-line); }
	.mr-tabs li:nth-child(odd) { border-left: 0; }
	.mr-tabs li:nth-child(even) { border-right: 0; }
	body .mr-band .mr-tabs a { padding: 14px 10px; font-size: 14px; }
	.mr-panel > .kt-inside-inner-col { padding: 24px; }
	.mr-numbered li { padding-left: 46px; }
}

/* 15. Header top bar (Kadence top row: Contact + Social items) ------------------------------- */
.site-top-header-wrap .site-header-row { min-height: 40px; }
.site-top-header-wrap .header-contact-item,
.site-top-header-wrap .header-social-item { font-size: 13px; line-height: 1; color: var(--mr-text-on-dark); text-decoration: none; }
.site-top-header-wrap .header-contact-item .kadence-svg-iconset,
.site-top-header-wrap .header-social-item .kadence-svg-iconset { color: var(--mr-accent-on-dark); }
.site-top-header-wrap a.header-contact-item:hover,
.site-top-header-wrap .header-social-item:hover { color: var(--mr-white); }
:root .site-top-header-wrap .social-style-outline .social-button { border: 0; padding: 0; background: transparent; }
.site-top-header-wrap .header-social-item + .header-social-item { padding-left: 1.4em !important; border-left: 1px solid var(--mr-line-on-dark) !important; border-radius: 0 !important; }

/* 16. Menu: underline bar animates from the left (reference: 2px bar, scaleX) ------------------ */
:root .header-navigation.header-navigation-style-underline .header-menu-container > ul > li > a::after {
	height: 2px; background: var(--mr-accent);
}
:root .header-navigation .header-menu-container ul ul li.menu-item > a { border-radius: 6px; font-weight: 700; }

/* 17. Full-bleed parallax hero + photo bands ------------------------------------------------- */
.mr-hero--full .mr-h1 { font-size: clamp(40px, 4.4vw, 62px); max-width: 17ch; }
.mr-hero--full .mr-lead { max-width: 54ch; }
.mr-parallax { overflow: hidden; }
.mr-parallax .mr-note, .mr-parallax .mr-intro { color: var(--mr-text-on-dark) !important; }

/* packages as cards inside one parallax band */
body ul.mr-pkg-list { list-style: none; padding: 0; margin: 36px 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mr-pkg-list li {
	margin: 0; padding: 30px 30px 26px; border: 1px solid var(--mr-line-on-dark); border-radius: var(--mr-radius-card);
	background: color-mix(in srgb, var(--mr-ink) 72%, transparent);
	backdrop-filter: blur(2px);
}
.mr-pkg-list .mr-pkg-name { display: block; font-family: var(--mr-font-heading); font-weight: 800; font-size: 22px; color: var(--mr-white); margin-bottom: 6px; }
.mr-pkg-list .mr-pkg-price { display: block; font-size: 15px; color: var(--mr-text-on-dark); margin-bottom: 10px; }
.mr-pkg-list .mr-pkg-price b { font-family: var(--mr-font-heading); font-size: 28px; color: var(--mr-white); margin-left: 4px; }
.mr-pkg-list .mr-pkg-for { display: block; font-size: 15px; line-height: 1.6; color: var(--mr-text-on-dark); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--mr-line-on-dark); }
.mr-pkg-list .mr-incl { display: block; position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--mr-text-on-dark); }
.mr-pkg-list .mr-incl::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--mr-accent-on-dark); border-bottom: 2px solid var(--mr-accent-on-dark); transform: rotate(-45deg); }
.mr-pkg-small { margin-bottom: 0 !important; }

/* 18. Hover lift (reference .card-link: translateY(-3px), border darkens, .18s) ---------------- */
.mr-card > .kt-inside-inner-col, .mr-pkg-list li, .mr-prices li, .mr-chips span {
	transition: transform var(--mr-transition) ease, border-color var(--mr-transition) ease, box-shadow var(--mr-transition) ease;
}
.mr-card:hover > .kt-inside-inner-col { transform: translateY(-3px); border-color: var(--mr-muted); box-shadow: 0 10px 24px color-mix(in srgb, var(--mr-ink) 8%, transparent); }
.mr-pkg-list li:hover { transform: translateY(-3px); border-color: var(--mr-accent-on-dark); }
.mr-fig { overflow: hidden; border-radius: var(--mr-radius-card); }
.mr-fig img { transition: transform 600ms ease; }
.mr-fig:hover img { transform: scale(1.025); }

/* 19. Scroll reveal (motion.js adds .mr-js on <html>; without JS everything is visible) -------- */
.mr-js .mr-reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; transition-delay: var(--mr-delay, 0ms); }
.mr-js .mr-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
	body ul.mr-pkg-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mr-js .mr-reveal { opacity: 1; transform: none; transition: none; }
	.mr-card:hover > .kt-inside-inner-col, .mr-pkg-list li:hover, .mr-fig:hover img { transform: none; }
}

/* 20. Footer logo (dark concept B) */
.mr-foot-logo img { display: block; width: 270px; height: auto; }


/* 21. Footer: Kadence Footer Builder (widgets + HTML element). Classes come from setup-footer.php. ------------ */
.site-footer .mr-ft-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mr-accent-on-dark); margin: 0 0 12px; }
.site-footer .mr-ft-h { font-family: var(--mr-font-heading); font-weight: 800; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: var(--mr-white); margin: 0 0 16px; max-width: 20ch; }
.site-footer .mr-ft-p { font-size: 16px; line-height: 1.75; color: var(--mr-text-on-dark); max-width: 52ch; margin: 0; }
.site-footer .footer-widget5 .widget { border-left: 2px solid var(--mr-accent-on-dark); padding-left: 27px; }
.site-footer .mr-ft-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.site-footer .mr-ft-btn .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 16px 22px; border-radius: var(--mr-radius-button); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--mr-accent-on-dark); }
.site-footer .mr-ft-btn--primary .wp-block-button__link { background: var(--mr-accent-on-dark); color: var(--mr-ink); }
.site-footer .mr-ft-btn--primary .wp-block-button__link:hover { background: var(--mr-white); border-color: var(--mr-white); }
.site-footer .mr-ft-btn--secondary .wp-block-button__link { background: transparent; color: var(--mr-white); border-color: var(--mr-button-line-on-dark); }
.site-footer .mr-ft-btn--secondary .wp-block-button__link:hover { background: var(--mr-white); color: var(--mr-ink); border-color: var(--mr-white); }
.site-footer .mr-ft-caption { font-size: 12px; text-align: right; color: var(--mr-text-on-dark); margin: 15px 0 0; }
.site-footer .mr-ft-logo img { display: block; width: 270px; height: auto; }
.site-footer .mr-ft-about { font-size: 14px; line-height: 1.85; max-width: 34ch; margin: 16px 0 0; }
.site-footer .mr-ft-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mr-white); margin: 4px 0 18px; }
.site-footer .mr-ft-links { list-style: none; padding: 0; margin: 0; }
.site-footer .mr-ft-links li { margin: 0; }
.site-footer .mr-ft-links a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--mr-text-on-dark); text-decoration: none; }
.site-footer .mr-ft-links a:hover { color: var(--mr-white); text-decoration: underline; }
.site-footer .mr-ft-addr { font-size: 14px; line-height: 1.85; margin: 0 0 8px; }
.site-footer .mr-ft-phone { font-size: 20px; font-weight: 700; color: var(--mr-white); text-decoration: none; }
.site-footer .mr-ft-small { font-size: 12px; line-height: 1.85; margin: 10px 0 0; }
.site-footer .mr-ft-small a, .site-footer .mr-ft-addr a { color: var(--mr-accent-on-dark); }
.site-footer .mr-ft-legal { font-size: 12px; line-height: 1.85; color: var(--mr-text-on-dark); max-width: 110ch; margin: 0 0 6px; }
.site-footer .mr-ft-copy { font-size: 12px; color: var(--mr-text-on-dark); margin: 0; }
@media (max-width: 1024px) {
	.site-footer .mr-ft-btns { justify-content: flex-start; }
	.site-footer .mr-ft-caption { text-align: left; }
	.site-footer .mr-ft-logo img { width: 230px; }
}

/* 22. Price table on phones: wrap instead of clipping the middle column */
@media (max-width: 767px) {
	.mr-table { overflow-x: visible; }
	.mr-table table { min-width: 0; table-layout: fixed; width: 100%; }
	body .mr-table th, body .mr-table td { padding: 12px 10px; font-size: 14px; word-break: normal; overflow-wrap: anywhere; }
	body .mr-table th:nth-child(1), body .mr-table td:nth-child(1) { width: 34%; }
	body .mr-table th:nth-child(2), body .mr-table td:nth-child(2) { width: 38%; }
	body .mr-table td:last-child, body .mr-table th:last-child { width: 28%; min-width: 0; white-space: normal; }
}

/* 23. Core pages (build-core.php): prose width and page hero */
.mr-prose .kt-inside-inner-col { max-width: 760px; }
.mr-prose h2 { max-width: 28ch; }
.mr-hero--page .mr-h1 { max-width: 22ch; }

/* 24. Floating WhatsApp (functions.php, all widths) + Kadence Scroll to Top (setup-floating.php): one quiet stack, bottom right */
.mr-wa-fab {
	position: fixed; right: 24px; bottom: 24px; z-index: 998;
	display: flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--mr-white);
}
.mr-wa-fab-dot {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--mr-success); color: var(--mr-white);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--mr-ink) 28%, transparent), 0 0 0 4px color-mix(in srgb, var(--mr-white) 70%, transparent);
	transition: transform var(--mr-transition) ease, box-shadow var(--mr-transition) ease;
}
.mr-wa-fab-label {
	padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
	background: var(--mr-ink); color: var(--mr-white);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--mr-ink) 22%, transparent);
	opacity: 0; transform: translateX(8px); pointer-events: none;
	transition: opacity var(--mr-transition) ease, transform var(--mr-transition) ease;
}
.mr-wa-fab:hover .mr-wa-fab-dot, .mr-wa-fab:focus-visible .mr-wa-fab-dot { transform: translateY(-2px); }
.mr-wa-fab:hover .mr-wa-fab-label, .mr-wa-fab:focus-visible .mr-wa-fab-label { opacity: 1; transform: none; }
.mr-wa-fab:focus-visible { outline: none; }
.mr-wa-fab:focus-visible .mr-wa-fab-dot { box-shadow: 0 0 0 3px var(--mr-white), 0 0 0 6px var(--mr-focus); }
/* Kadence scroll-up: soft shadow and white ring to match the bubble (size, colours, offsets come from theme mods) */
#kt-scroll-up { box-shadow: 0 4px 14px color-mix(in srgb, var(--mr-ink) 22%, transparent), 0 0 0 3px color-mix(in srgb, var(--mr-white) 70%, transparent); }
@media (max-width: 767px) {
	.mr-wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
	.mr-wa-fab-dot { width: 52px; height: 52px; }
	.mr-wa-fab-label { display: none; }
	body #kt-scroll-up { right: 22px; bottom: calc(78px + env(safe-area-inset-bottom)); } /* centred above the 52px bubble */
}
@media (prefers-reduced-motion: reduce) {
	.mr-wa-fab-dot, .mr-wa-fab-label { transition: none; }
}

/* 25. Footer bottom bar: copyright left, agency credit right (stacked on phones) */
.site-footer .mr-ft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.site-footer .mr-ft-credit { font-size: 12px; color: var(--mr-text-on-dark); margin: 0; }
.site-footer .mr-ft-credit a { color: var(--mr-accent-on-dark); text-decoration: none; font-weight: 700; }
.site-footer .mr-ft-credit a:hover, .site-footer .mr-ft-credit a:focus-visible { color: var(--mr-white); text-decoration: underline; }
@media (max-width: 767px) {
	.site-footer .mr-ft-bar { flex-direction: column; align-items: flex-start; }
}

/* 26. Pinned hero: the first band stays put and the next section slides up over it (motion.js adds .is-pinned and sets
   top so a hero taller than the screen scrolls to its end first). Sections after it get an opaque ground. */
.mr-hero.is-pinned { position: sticky; z-index: 0; }
.mr-hero.is-pinned ~ * { position: relative; z-index: 1; }
:where(.mr-hero.is-pinned ~ .kb-row-layout-wrap) { background-color: var(--mr-white); }
.mr-hero.is-pinned + * { box-shadow: 0 -18px 40px color-mix(in srgb, var(--mr-ink) 30%, transparent); }
