/* ==========================================================================
   Mobi Property Solutions – v4 (dark tech / SaaS-style layout)
   Palette taken directly from the MPS logo: navy + steel grey.
   ========================================================================== */

:root {
  --ink: #0E1522;
  --ink-2: #131C2C;
  --navy: #1B3654;
  --navy-dk: #12253B;
  --steel: #6B7684;
  --steel-lt: #D7DBE1;
  --cream: #F5F3EE;
  --line: rgba(14, 21, 34, .12);
  --line-dk: rgba(255, 255, 255, .16);
  --muted: #4B5563;
  --muted-dk: #A9B2BF;
  --focus: #1B3654;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 1320px;
  --hdr-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--steel-lt); }
::selection { background: var(--navy); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.dark { background: var(--ink); color: #fff; }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; }
.eyebrow--lt { color: var(--steel-lt); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; margin-bottom: 1.1rem; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--muted); max-width: 42rem; text-wrap: pretty; }
.lead--lt { color: var(--muted-dk); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.75rem; font-family: var(--sans); font-size: .9375rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 999px; touch-action: manipulation; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dk); border-color: var(--navy-dk); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--sm { min-height: 44px; padding: .55rem 1.3rem; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.is-loading .icon { display: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; height: var(--hdr-h); background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 40px; width: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__list a { position: relative; display: inline-block; padding: .5rem .1rem; text-decoration: none; font-size: .9375rem; font-weight: 700; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 1.25rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--navy); color: #fff; border: 0; border-radius: 999px; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
@media (max-width: 1050px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--hdr-h) 0 auto 0; z-index: 99; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14,21,34,.1); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; padding: .5rem var(--gutter) 1.5rem; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 1rem 0; font-size: 1.25rem; }
  .nav__list a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; padding: 0 var(--gutter) 1.5rem; gap: 1rem; }
  .nav__phone { justify-content: center; font-size: 1.0625rem; min-height: 44px; }
  .nav__cta .btn { min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,21,34,.78) 0%, rgba(14,21,34,.72) 45%, rgba(14,21,34,.9) 100%); }
.hero__in { position: relative; padding-block: clamp(3rem, 8vw, 5rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; max-width: 18em; text-wrap: balance; }
.hero h1 .accent { color: var(--steel-lt); }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: rgba(255,255,255,.86); max-width: 34em; text-wrap: pretty; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }
@media (max-width: 560px) { .hero__cta .btn { flex: 1 1 100%; } }

/* ---------- intro / feature grid ---------- */
.intro .wrap:first-child { text-align: center; }
.intro .wrap:first-child h2, .intro .wrap:first-child .lead { margin-inline: auto; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.feat { background: var(--cream); border-radius: 14px; padding: 1.75rem 1.5rem; }
.feat__icn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 1.1rem; }
.feat h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: .5rem; text-wrap: balance; }
.feat p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- explicit trade checklist ---------- */
.trade-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.trade-list li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--cream); font-size: .9375rem; font-weight: 700; }
.trade-list .icon { width: 18px; height: 18px; color: var(--navy); stroke-width: 2.5; }
.trade-list__note { text-align: center; margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }

/* ---------- numbered flow ---------- */
.flow .wrap:first-child { text-align: center; }
.flow .wrap:first-child h2, .flow .wrap:first-child .lead { margin-inline: auto; }
.flow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 3rem; counter-reset: none; }
.flow-step { position: relative; padding-top: 2rem; }
.flow-step::before { content: ""; position: absolute; top: 21px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 1px; background: var(--line-dk); }
.flow-step:last-child::before { display: none; }
.flow-n { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.0625rem; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.flow-step h3 { font-size: 1.0625rem; font-weight: 800; margin: 1.5rem 0 .5rem; text-align: center; }
.flow-step p { font-size: .9375rem; color: var(--muted-dk); text-align: center; line-height: 1.55; }
@media (max-width: 900px) {
  .flow-list { grid-template-columns: 1fr; gap: 0; }
  .flow-step { padding: 0 0 2.25rem 3.25rem; text-align: left; }
  .flow-step::before { top: 21px; bottom: -21px; left: 21px; right: auto; width: 1px; height: auto; }
  .flow-n { left: 0; transform: none; }
  .flow-step h3, .flow-step p { text-align: left; }
}

/* ---------- closer look / sub-services showcase ---------- */
.showcase .wrap:first-child { text-align: center; }
.showcase .wrap:first-child h2, .showcase .wrap:first-child .lead { margin-inline: auto; }
.showcase__group + .showcase__group { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.showcase__heading { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; margin-bottom: .5rem; }
.showcase__intro { color: var(--muted); max-width: 42rem; margin-bottom: 1.75rem; }
.showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.showcase__grid--4 { grid-template-columns: repeat(4, 1fr); }
.showcase-card { background: var(--cream); border-radius: 16px; overflow: hidden; }
.showcase-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.showcase-card:hover img { transform: scale(1.05); }
.showcase-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.showcase-card__body h4 { font-size: 1.0625rem; font-weight: 800; margin-bottom: .4rem; }
.showcase-card__body p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1100px) { .showcase__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .showcase__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .showcase__grid, .showcase__grid--4 { grid-template-columns: 1fr; } }

/* before/after pair reused inside a showcase group (two even portrait panes) */
.ba--even { grid-template-columns: 1fr 1fr; }
.ba--even .ba__pane img, .ba--even .ba__pane:last-child img { aspect-ratio: 4/3; }
@media (max-width: 700px) { .ba--even { grid-template-columns: 1fr; } .ba--even .ba__pane img, .ba--even .ba__pane:last-child img { aspect-ratio: 4/3; } }

/* ---------- two feature blocks ---------- */
.blocks .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.block__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.block__list { margin-top: 2rem; display: grid; gap: 1.5rem; border-top: 1px solid var(--line); }
.block__list li { padding-top: 1.5rem; }
.block__list h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: .4rem; }
.block__list p { font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) { .blocks .wrap { grid-template-columns: 1fr; gap: 3.5rem; } }

/* ---------- before/after project ---------- */
.project .wrap:first-child { text-align: left; }
.ba { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; margin-top: 2rem; }
.ba__pane { position: relative; border-radius: 14px; overflow: hidden; background: var(--cream); }
.ba__pane img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.ba__pane:last-child img { aspect-ratio: 4/3; }
.ba__pane figcaption { position: absolute; left: .9rem; top: .9rem; }
.tag { display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tag--before { background: var(--steel); }
.tag--after { background: var(--navy); }
.ba__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.ba__strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
@media (max-width: 900px) { .ba { grid-template-columns: 1fr; } .ba__pane img, .ba__pane:last-child img { aspect-ratio: 4/3; } .ba__strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- areas ---------- */
.regions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem; margin-top: 2.75rem; }
.regions h3 { font-size: .8125rem; font-weight: 800; color: var(--steel-lt); letter-spacing: .08em; text-transform: uppercase; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line-dk); }
.regions li { padding: .15rem 0; font-size: .9375rem; font-weight: 600; }
@media (max-width: 1000px) { .regions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .regions { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reviews ---------- */
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.75rem 0 1.5rem; }
.review { position: relative; background: var(--cream); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.55; }
.review__by { display: flex; flex-direction: column; font-size: .9375rem; }
.review__by span { color: var(--muted); }
.pill { position: absolute; top: 1rem; right: 1rem; font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--muted); padding: .3rem .6rem; border-radius: 999px; }
.review-list--two { grid-template-columns: repeat(2, 1fr); }
.review-list--two .review blockquote p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; }
@media (max-width: 900px) { .review-list { grid-template-columns: 1fr; } }

/* ---------- quote ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { width: 24px; height: 24px; color: var(--steel-lt); margin-top: .15rem; }
.cl-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted-dk); margin-bottom: .1rem; }
.contact-list a { text-decoration: none; font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }
.contact-list li > div { font-weight: 700; }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-size: .875rem; font-weight: 700; }
.req { color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; background: #fff; border: 1.5px solid #B8BFC9; border-radius: 10px; font-size: 1rem; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E1522' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,54,84,.22); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .875rem; font-weight: 700; }
.field__help { color: var(--muted); font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.form__status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-weight: 700; }
.form__status.is-ok { background: #E3F0E4; color: #1B4D22; }
.form__status.is-err { background: #F8E1DF; color: #7A1A14; }
@media (max-width: 900px) { .quote__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--ink-2); color: #fff; padding-top: clamp(3rem, 6vw, 4.5rem); }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dk); }
.ftr__logo { width: clamp(200px, 24vw, 300px); }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.5rem; font-size: .8125rem; color: var(--muted-dk); }
.ftr__base a { text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
