/* ============================================================
   MARLOWE TITLE & REAL ESTATE LAW — styles.css
   CSS namespace prefix: ml-
   Palette: crisp white / deep navy / warm copper / cool grey
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core palette */
  --ml-navy:        #0d1f3c;
  --ml-navy-mid:    #1a3358;
  --ml-navy-light:  #2a4a72;
  --ml-copper:      #b87333;
  --ml-copper-light:#d4904a;
  --ml-copper-pale: #f4ede3;
  --ml-white:       #ffffff;
  --ml-off-white:   #f8f7f5;
  --ml-grey-50:     #f2f3f5;
  --ml-grey-100:    #e8eaee;
  --ml-grey-200:    #d0d4dc;
  --ml-grey-400:    #8e96a6;
  --ml-grey-600:    #5a6274;
  --ml-grey-800:    #2c3344;
  --ml-black:       #0a0f1a;

  /* Typography */
  --ml-font-display: 'Space Grotesk', system-ui, sans-serif;
  --ml-font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --ml-space-1:  4px;
  --ml-space-2:  8px;
  --ml-space-3:  12px;
  --ml-space-4:  16px;
  --ml-space-5:  20px;
  --ml-space-6:  24px;
  --ml-space-8:  32px;
  --ml-space-10: 40px;
  --ml-space-12: 48px;
  --ml-space-16: 64px;
  --ml-space-20: 80px;
  --ml-space-24: 96px;
  --ml-space-32: 128px;

  /* Nav height */
  --ml-nav-h: 68px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--ml-nav-h);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--ml-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ml-grey-800);
  background: var(--ml-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
address { font-style: normal; }

/* Tabular nums for all number-like content */
.ml-num,
.ml-fee-table td:nth-child(2),
.ml-hero__credentials strong,
.ml-stepper__duration { font-variant-numeric: tabular-nums; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--ml-copper);
  outline-offset: 3px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.ml-skip {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: var(--ml-space-3) var(--ml-space-6);
  background: var(--ml-copper);
  color: var(--ml-white);
  font-family: var(--ml-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.ml-skip:focus { top: 0; }

/* ============================================================
   GLOBAL TYPE
   ============================================================ */
.ml-eyebrow {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ml-copper);
}
.ml-eyebrow--dark { color: var(--ml-navy-mid); }

.ml-section-heading {
  font-family: var(--ml-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ml-navy);
  margin-top: var(--ml-space-3);
}

.ml-section-lede {
  font-size: 1.0625rem;
  color: var(--ml-grey-600);
  margin-top: var(--ml-space-4);
  max-width: 56ch;
  line-height: 1.65;
}

.ml-section-head { margin-bottom: var(--ml-space-12); }
.ml-section-head--center { text-align: center; }
.ml-section-head--center .ml-section-lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ml-space-2);
  font-family: var(--ml-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px var(--ml-space-6);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.ml-btn--lg { font-size: 0.9375rem; padding: 14px var(--ml-space-8); }

.ml-btn--primary {
  background: var(--ml-copper);
  color: var(--ml-white);
  border-color: var(--ml-copper);
}
.ml-btn--primary:hover,
.ml-btn--primary:focus-visible {
  background: #9e602a;
  border-color: #9e602a;
  outline-color: #9e602a;
}

.ml-btn--ghost {
  background: transparent;
  color: var(--ml-navy);
  border-color: var(--ml-navy);
}
.ml-btn--ghost:hover,
.ml-btn--ghost:focus-visible {
  background: var(--ml-navy);
  color: var(--ml-white);
}

.ml-btn--ghost-light {
  background: transparent;
  color: var(--ml-white);
  border-color: rgba(255,255,255,0.5);
}
.ml-btn--ghost-light:hover { border-color: var(--ml-white); background: rgba(255,255,255,0.1); }

/* ============================================================
   NAV
   ============================================================ */
.ml-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--ml-nav-h);
  background: var(--ml-white);
  border-bottom: 1px solid var(--ml-grey-100);
  transition: box-shadow 0.2s;
}
.ml-nav--scrolled { box-shadow: 0 2px 16px rgba(13,31,60,0.09); }

.ml-nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--ml-space-8);
}

/* Brand */
.ml-brand {
  display: flex;
  align-items: center;
  gap: var(--ml-space-3);
  color: var(--ml-navy);
  text-decoration: none;
  flex-shrink: 0;
}
.ml-brand__mark { color: var(--ml-navy); flex-shrink: 0; }
.ml-brand__name {
  font-family: var(--ml-font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ml-navy);
}
.ml-brand__sub {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ml-grey-600);
}

.ml-nav__links {
  display: flex;
  align-items: center;
  gap: var(--ml-space-6);
  margin-left: auto;
}
.ml-nav__links a {
  font-family: var(--ml-font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ml-grey-600);
  text-decoration: none;
  transition: color 0.15s;
  padding: var(--ml-space-1) 0;
  border-bottom: 1px solid transparent;
}
.ml-nav__links a:hover { color: var(--ml-navy); border-bottom-color: var(--ml-copper); }

.ml-nav__right {
  display: flex;
  align-items: center;
  gap: var(--ml-space-4);
  flex-shrink: 0;
}

.ml-nav__phone {
  display: flex;
  align-items: center;
  gap: var(--ml-space-2);
  font-family: var(--ml-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ml-navy);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.ml-nav__phone:hover { color: var(--ml-copper); }

.ml-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--ml-space-2);
  width: 36px;
}
.ml-nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--ml-navy);
  transition: transform 0.2s, opacity 0.2s;
}
.ml-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ml-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ml-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.ml-drawer {
  position: fixed;
  top: var(--ml-nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 899;
  background: var(--ml-navy);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.ml-drawer[aria-hidden="false"] { transform: translateX(0); }

.ml-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ml-space-6) var(--ml-space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ml-drawer__logo {
  font-family: var(--ml-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ml-white);
}
.ml-drawer__close {
  color: var(--ml-white);
  opacity: 0.7;
  padding: var(--ml-space-2);
}
.ml-drawer__close:hover { opacity: 1; }

.ml-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: var(--ml-space-6);
  flex: 1;
}
.ml-drawer__nav a {
  font-family: var(--ml-font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: var(--ml-space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: color 0.15s;
}
.ml-drawer__nav a:last-child { border-bottom: none; }
.ml-drawer__nav a:hover { color: var(--ml-copper-light); }

.ml-drawer__foot {
  padding: var(--ml-space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.ml-drawer__phone {
  display: block;
  font-family: var(--ml-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ml-copper-light);
  margin-bottom: var(--ml-space-3);
}

/* ============================================================
   HERO — split layout
   ============================================================ */
.ml-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  margin-top: var(--ml-nav-h);
}

.ml-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ml-space-20) var(--ml-space-16) var(--ml-space-20) clamp(var(--ml-space-8), 6vw, var(--ml-space-24));
  background: var(--ml-white);
}

.ml-hero__heading {
  font-family: var(--ml-font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ml-navy);
  margin-top: var(--ml-space-4);
}
.ml-hero__accent { color: var(--ml-copper); }

.ml-hero__lede {
  margin-top: var(--ml-space-6);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ml-grey-600);
  max-width: 48ch;
}

.ml-hero__actions {
  display: flex;
  gap: var(--ml-space-4);
  flex-wrap: wrap;
  margin-top: var(--ml-space-8);
}

.ml-hero__credentials {
  display: flex;
  gap: var(--ml-space-8);
  margin-top: var(--ml-space-10);
  padding-top: var(--ml-space-8);
  border-top: 1px solid var(--ml-grey-100);
}
.ml-hero__credentials li {
  display: flex;
  flex-direction: column;
}
.ml-hero__credentials strong {
  font-family: var(--ml-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ml-navy);
  line-height: 1;
}
.ml-hero__credentials span {
  font-size: 0.75rem;
  color: var(--ml-grey-400);
  margin-top: var(--ml-space-1);
  letter-spacing: 0.02em;
}

/* Hero image side */
.ml-hero__image {
  position: relative;
  overflow: hidden;
  background: var(--ml-grey-50);
}
.ml-hero__divide {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--ml-copper);
  z-index: 2;
}
.ml-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-hero__image-caption {
  position: absolute;
  bottom: var(--ml-space-6);
  left: var(--ml-space-6);
  background: rgba(13,31,60,0.72);
  color: rgba(255,255,255,0.8);
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--ml-space-2) var(--ml-space-3);
  z-index: 2;
}

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.ml-strip {
  background: var(--ml-navy);
  padding: var(--ml-space-5) var(--ml-space-8);
  overflow-x: auto;
}
.ml-strip__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--ml-space-6);
  justify-content: center;
  flex-wrap: wrap;
}
.ml-strip__item {
  display: flex;
  align-items: center;
  gap: var(--ml-space-2);
  font-family: var(--ml-font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  white-space: nowrap;
}
.ml-strip__item svg { color: var(--ml-copper-light); flex-shrink: 0; }
.ml-strip__rule {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* ============================================================
   SERVICES — tabbed
   ============================================================ */
.ml-services { background: var(--ml-off-white); padding: var(--ml-space-24) 0; }
.ml-services__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
}

/* Tabs */
.ml-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--ml-grey-200);
  background: var(--ml-white);
  width: fit-content;
  margin-bottom: var(--ml-space-10);
}
.ml-tab {
  display: flex;
  align-items: center;
  gap: var(--ml-space-2);
  font-family: var(--ml-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ml-grey-600);
  padding: 12px var(--ml-space-8);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  position: relative;
}
.ml-tab:hover { color: var(--ml-navy); background: var(--ml-grey-50); }
.ml-tab--active {
  color: var(--ml-navy);
  background: var(--ml-white);
  border-bottom-color: var(--ml-copper);
}

/* Panels */
.ml-panel { display: block; }
.ml-panel--hidden { display: none; }

.ml-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ml-grey-200);
  border: 1px solid var(--ml-grey-200);
}

.ml-service-block {
  background: var(--ml-white);
  padding: var(--ml-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
  position: relative;
  transition: background 0.15s;
}
.ml-service-block:hover { background: var(--ml-off-white); }

.ml-service-block__num {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ml-copper);
  margin-bottom: var(--ml-space-1);
}
.ml-service-block__content h3 {
  font-family: var(--ml-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ml-navy);
  margin-bottom: var(--ml-space-3);
  line-height: 1.3;
}
.ml-service-block__content p {
  font-size: 0.9rem;
  color: var(--ml-grey-600);
  line-height: 1.65;
}
.ml-service-block__list {
  margin-top: var(--ml-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
}
.ml-service-block__list li {
  font-size: 0.8125rem;
  color: var(--ml-grey-600);
  padding-left: var(--ml-space-5);
  position: relative;
  line-height: 1.5;
}
.ml-service-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 1px;
  background: var(--ml-copper);
}

/* ============================================================
   FLAT-FEE TABLE
   ============================================================ */
.ml-fees { background: var(--ml-white); padding: var(--ml-space-24) 0; }
.ml-fees__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
}

.ml-fee-panel { display: block; }
.ml-fee-panel--hidden { display: none; }

.ml-tabs--fees { margin-bottom: var(--ml-space-8); }

.ml-fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ml-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
.ml-fee-table thead tr {
  border-bottom: 2px solid var(--ml-navy);
}
.ml-fee-table th {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ml-navy);
  padding: var(--ml-space-4) var(--ml-space-5);
  text-align: left;
  white-space: nowrap;
}
.ml-fee-table__num { text-align: right; }
.ml-fee-table td.ml-fee-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ml-fee-table tbody tr {
  border-bottom: 1px solid var(--ml-grey-100);
  transition: background 0.12s;
}
.ml-fee-table tbody tr:last-child { border-bottom: 2px solid var(--ml-navy); }
.ml-fee-table tbody tr:hover { background: var(--ml-grey-50); }

.ml-fee-table td {
  padding: var(--ml-space-5);
  vertical-align: top;
  color: var(--ml-grey-700);
  line-height: 1.5;
}
.ml-fee-table td strong {
  display: block;
  font-family: var(--ml-font-display);
  font-weight: 600;
  color: var(--ml-navy);
  font-size: 0.9rem;
  margin-bottom: var(--ml-space-1);
}
.ml-fee-table__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--ml-grey-400);
  line-height: 1.5;
}
.ml-num {
  font-weight: 700;
  color: var(--ml-navy);
  font-variant-numeric: tabular-nums;
}

.ml-fees__note {
  display: flex;
  align-items: flex-start;
  gap: var(--ml-space-2);
  font-size: 0.8125rem;
  color: var(--ml-grey-400);
  margin-top: var(--ml-space-6);
  padding: var(--ml-space-4) var(--ml-space-5);
  background: var(--ml-grey-50);
  border-left: 3px solid var(--ml-grey-200);
  line-height: 1.6;
}
.ml-fees__note svg { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   CLOSING TIMELINE STEPPER
   ============================================================ */
.ml-timeline-sec { background: var(--ml-navy); padding: var(--ml-space-24) 0; }
.ml-timeline-sec .ml-eyebrow { color: var(--ml-copper-light); }
.ml-timeline-sec .ml-section-heading { color: var(--ml-white); }
.ml-timeline-sec .ml-section-lede { color: rgba(255,255,255,0.6); }

.ml-timeline-sec__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
}

/* Stepper controls */
.ml-stepper { margin-top: var(--ml-space-12); }

.ml-stepper__controls {
  display: flex;
  gap: var(--ml-space-6);
  flex-wrap: wrap;
  margin-bottom: var(--ml-space-10);
}
.ml-stepper__control-group {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
}
.ml-stepper__label {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.ml-stepper__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ml-stepper__select-wrap svg {
  position: absolute;
  right: var(--ml-space-4);
  pointer-events: none;
  color: rgba(255,255,255,0.4);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.ml-stepper__select {
  appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ml-white);
  font-family: var(--ml-font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px var(--ml-space-10) 10px var(--ml-space-5);
  cursor: pointer;
  min-width: 220px;
  transition: border-color 0.15s, background 0.15s;
}
.ml-stepper__select:hover { border-color: var(--ml-copper-light); background: rgba(255,255,255,0.12); }
.ml-stepper__select:focus-visible { outline-color: var(--ml-copper); }
.ml-stepper__select option { background: var(--ml-navy-mid); color: var(--ml-white); }

/* Timeline track */
.ml-stepper__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin-bottom: var(--ml-space-10);
  overflow-x: auto;
  padding-bottom: var(--ml-space-2);
}

.ml-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 100px;
  cursor: pointer;
  position: relative;
}
.ml-step-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: rgba(255,255,255,0.18);
  transition: background 0.2s;
}
.ml-step-node.ml-step-node--done:not(:last-child)::after { background: var(--ml-copper); }

.ml-step-node__dot {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ml-step-node--done .ml-step-node__dot {
  border-color: var(--ml-copper);
  background: var(--ml-copper);
  color: var(--ml-white);
}
.ml-step-node--active .ml-step-node__dot {
  border-color: var(--ml-white);
  background: var(--ml-white);
  color: var(--ml-navy);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.ml-step-node__label {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: var(--ml-space-3);
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 80px;
  transition: color 0.2s;
}
.ml-step-node--active .ml-step-node__label,
.ml-step-node--done .ml-step-node__label { color: rgba(255,255,255,0.85); }
.ml-step-node--active .ml-step-node__label { color: var(--ml-white); font-weight: 600; }

/* Detail card */
.ml-stepper__detail {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--ml-copper);
  padding: var(--ml-space-8);
}

.ml-stepper__detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ml-space-6);
  margin-bottom: var(--ml-space-6);
  flex-wrap: wrap;
}
.ml-stepper__detail-stage {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-copper-light);
  margin-bottom: var(--ml-space-2);
}
.ml-stepper__detail-title {
  font-family: var(--ml-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ml-white);
  line-height: 1.25;
}
.ml-stepper__duration {
  background: var(--ml-copper);
  color: var(--ml-white);
  font-family: var(--ml-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--ml-space-2) var(--ml-space-4);
  white-space: nowrap;
  flex-shrink: 0;
}

.ml-stepper__detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-space-8);
}

.ml-stepper__what h4,
.ml-stepper__next h4 {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--ml-space-4);
}
.ml-stepper__what p,
.ml-stepper__next p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}
.ml-stepper__what ul,
.ml-stepper__next ul {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
}
.ml-stepper__what li,
.ml-stepper__next li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  padding-left: var(--ml-space-5);
  position: relative;
  line-height: 1.5;
}
.ml-stepper__what li::before,
.ml-stepper__next li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--ml-copper);
}

/* ============================================================
   FOR REALTORS & LENDERS
   ============================================================ */
.ml-partners { background: var(--ml-off-white); padding: var(--ml-space-24) 0; }
.ml-partners__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-space-16);
  align-items: center;
}

.ml-partners__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ml-partners__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-partners__content > p:not(.ml-eyebrow) {
  font-size: 1rem;
  color: var(--ml-grey-600);
  line-height: 1.7;
  margin-top: var(--ml-space-5);
  max-width: 50ch;
}

.ml-partners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-space-6);
  margin: var(--ml-space-8) 0;
}
.ml-partner-block {
  display: flex;
  gap: var(--ml-space-4);
  align-items: flex-start;
  padding: var(--ml-space-5);
  background: var(--ml-white);
  border: 1px solid var(--ml-grey-100);
  border-top: 2px solid var(--ml-copper);
}
.ml-partner-block__icon {
  flex-shrink: 0;
  color: var(--ml-copper);
  margin-top: 2px;
}
.ml-partner-block h3 {
  font-family: var(--ml-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ml-navy);
  margin-bottom: var(--ml-space-1);
}
.ml-partner-block p {
  font-size: 0.8125rem;
  color: var(--ml-grey-600);
  line-height: 1.55;
}

/* ============================================================
   ATTORNEYS
   ============================================================ */
.ml-attorneys { background: var(--ml-white); padding: var(--ml-space-24) 0; }
.ml-attorneys__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
}
.ml-attorneys__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ml-grey-200);
  border: 1px solid var(--ml-grey-200);
}

.ml-attorney {
  background: var(--ml-white);
  display: flex;
  flex-direction: column;
}
.ml-attorney__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ml-grey-50);
}
.ml-attorney__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.ml-attorney:hover .ml-attorney__photo img { transform: scale(1.03); }

.ml-attorney__body {
  padding: var(--ml-space-8);
  border-top: 3px solid var(--ml-copper);
  flex: 1;
}
.ml-attorney__name {
  font-family: var(--ml-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ml-navy);
  margin-bottom: var(--ml-space-1);
}
.ml-attorney__title {
  font-family: var(--ml-font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ml-copper);
  margin-bottom: var(--ml-space-5);
}
.ml-attorney__creds {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
  margin-bottom: var(--ml-space-5);
  padding-bottom: var(--ml-space-5);
  border-bottom: 1px solid var(--ml-grey-100);
}
.ml-attorney__creds li {
  font-size: 0.8125rem;
  color: var(--ml-grey-600);
  padding-left: var(--ml-space-4);
  position: relative;
  line-height: 1.4;
}
.ml-attorney__creds li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--ml-copper);
}
.ml-attorney__bio {
  font-size: 0.875rem;
  color: var(--ml-grey-600);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.ml-testimonials { background: var(--ml-grey-50); padding: var(--ml-space-24) 0; }
.ml-testimonials__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
}
.ml-testimonials__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ml-space-2);
  font-size: 0.8125rem;
  color: var(--ml-grey-400);
  margin-top: var(--ml-space-3);
}

.ml-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--ml-grey-200);
  border: 1px solid var(--ml-grey-200);
  margin-top: var(--ml-space-12);
}

.ml-testimonial {
  background: var(--ml-white);
  padding: var(--ml-space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--ml-space-6);
}
.ml-testimonial--featured {
  background: var(--ml-navy);
}
.ml-testimonial blockquote {
  font-size: 0.9375rem;
  color: var(--ml-grey-600);
  line-height: 1.75;
  font-style: italic;
  position: relative;
}
.ml-testimonial--featured blockquote { color: rgba(255,255,255,0.82); }
.ml-testimonial blockquote::before {
  content: '\201C';
  font-family: var(--ml-font-display);
  font-size: 3rem;
  color: var(--ml-copper);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: var(--ml-space-1);
}

.ml-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: var(--ml-space-4);
}
.ml-testimonial__avatar {
  width: 40px;
  height: 40px;
  background: var(--ml-copper);
  color: var(--ml-white);
  font-family: var(--ml-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ml-testimonial--featured .ml-testimonial__avatar { background: rgba(255,255,255,0.15); }
.ml-testimonial figcaption strong {
  display: block;
  font-family: var(--ml-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ml-navy);
}
.ml-testimonial--featured figcaption strong { color: var(--ml-white); }
.ml-testimonial figcaption span {
  display: block;
  font-size: 0.75rem;
  color: var(--ml-grey-400);
  margin-top: 2px;
}
.ml-testimonial--featured figcaption span { color: rgba(255,255,255,0.45); }

/* ============================================================
   FAQ
   ============================================================ */
.ml-faq { background: var(--ml-white); padding: var(--ml-space-24) 0; }
.ml-faq__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--ml-space-16);
  align-items: start;
}

.ml-faq__sidebar {
  position: sticky;
  top: calc(var(--ml-nav-h) + var(--ml-space-8));
}
.ml-faq__sub {
  font-size: 0.9rem;
  color: var(--ml-grey-600);
  margin-top: var(--ml-space-4);
}
.ml-faq__phone {
  font-weight: 600;
  color: var(--ml-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ml-faq__img {
  margin-top: var(--ml-space-8);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--ml-copper);
}

.ml-faq__list { display: flex; flex-direction: column; }

details {
  border-bottom: 1px solid var(--ml-grey-100);
}
details:first-child { border-top: 1px solid var(--ml-grey-100); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ml-space-4);
  cursor: pointer;
  padding: var(--ml-space-5) 0;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary span:first-child {
  font-family: var(--ml-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ml-navy);
  flex: 1;
  line-height: 1.4;
}
details[open] summary span:first-child { color: var(--ml-copper); }

.ml-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--ml-grey-200);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.ml-faq__icon::before,
.ml-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ml-navy);
  transition: transform 0.2s;
}
.ml-faq__icon::before { width: 10px; height: 1.5px; }
.ml-faq__icon::after { width: 1.5px; height: 10px; }
details[open] .ml-faq__icon { background: var(--ml-copper); border-color: var(--ml-copper); }
details[open] .ml-faq__icon::before { background: var(--ml-white); }
details[open] .ml-faq__icon::after { background: var(--ml-white); transform: rotate(90deg) scaleY(0); }

.ml-faq__answer {
  padding: 0 0 var(--ml-space-5) 0;
}
.ml-faq__answer p {
  font-size: 0.9rem;
  color: var(--ml-grey-600);
  line-height: 1.7;
}

/* ============================================================
   QUOTE FORM
   ============================================================ */
.ml-quote { background: var(--ml-off-white); padding: var(--ml-space-24) 0; }
.ml-quote__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ml-space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-space-16);
  align-items: start;
}

.ml-quote__image {
  position: sticky;
  top: calc(var(--ml-nav-h) + var(--ml-space-8));
  overflow: hidden;
}
.ml-quote__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ml-quote__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.82) 0%, transparent 50%);
}
.ml-quote__image-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--ml-space-8);
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  line-height: 1.6;
}
.ml-quote__image-text .ml-eyebrow { color: var(--ml-copper-light); margin-bottom: var(--ml-space-2); }
.ml-quote__image-text a { color: var(--ml-copper-light); text-decoration: underline; text-underline-offset: 2px; }

.ml-quote__note {
  font-size: 0.875rem;
  color: var(--ml-grey-600);
  line-height: 1.65;
  margin-top: var(--ml-space-3);
  margin-bottom: var(--ml-space-8);
}

/* Form */
.ml-form { display: flex; flex-direction: column; gap: var(--ml-space-5); }

.ml-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ml-space-5);
}

.ml-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
}
.ml-form__group label {
  font-family: var(--ml-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-navy);
}
.ml-form__group label span { color: var(--ml-copper); }

.ml-form__group input,
.ml-form__group select,
.ml-form__group textarea {
  border: 1px solid var(--ml-grey-200);
  background: var(--ml-white);
  color: var(--ml-grey-800);
  padding: 11px var(--ml-space-4);
  font-size: 0.9rem;
  transition: border-color 0.15s;
  border-radius: 0;
  width: 100%;
}
.ml-form__group input::placeholder,
.ml-form__group textarea::placeholder { color: var(--ml-grey-400); }
.ml-form__group input:focus,
.ml-form__group select:focus,
.ml-form__group textarea:focus {
  outline: none;
  border-color: var(--ml-copper);
}

.ml-form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b87333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.ml-form__group textarea { resize: vertical; min-height: 100px; }

.ml-form__submit { align-self: flex-start; margin-top: var(--ml-space-2); }

.ml-form__legal {
  font-size: 0.75rem;
  color: var(--ml-grey-400);
  line-height: 1.6;
  margin-top: var(--ml-space-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ml-footer { background: var(--ml-black); }

.ml-footer__top {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--ml-space-16) var(--ml-space-8);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--ml-space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ml-footer__brand .ml-brand { margin-bottom: var(--ml-space-6); }
.ml-footer__brand .ml-brand__name { color: var(--ml-white); }
.ml-footer__brand .ml-brand__sub { color: rgba(255,255,255,0.45); }
.ml-footer__brand .ml-brand__mark { color: var(--ml-copper-light); }

.ml-footer__address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}
.ml-footer__address a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.ml-footer__address a:hover { color: var(--ml-copper-light); }

.ml-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ml-space-8);
}
.ml-footer__col-head {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--ml-space-5);
  padding-bottom: var(--ml-space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ml-footer__col ul { display: flex; flex-direction: column; gap: var(--ml-space-3); }
.ml-footer__col li {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.ml-footer__col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.ml-footer__col a:hover { color: var(--ml-copper-light); }

.ml-footer__disclaimer {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--ml-space-8) var(--ml-space-8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
}
.ml-footer__disclaimer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}
.ml-footer__disclaimer strong { color: rgba(255,255,255,0.45); }

.ml-footer__bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--ml-space-5) var(--ml-space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-space-6);
  flex-wrap: wrap;
}
.ml-footer__bar span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.ml-footer__demo-tag {
  font-family: var(--ml-font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large breakpoint — hide some nav items */
@media (max-width: 1200px) {
  .ml-nav__links { gap: var(--ml-space-5); }
  .ml-hero__copy { padding: var(--ml-space-16) var(--ml-space-10) var(--ml-space-16) var(--ml-space-10); }
}

/* Medium — tablet landscape */
@media (max-width: 1024px) {
  .ml-nav__links { display: none; }
  .ml-nav__toggle { display: flex; }
  .ml-nav__phone { display: none; }

  .ml-hero { grid-template-columns: 1fr; min-height: auto; }
  .ml-hero__copy { padding: var(--ml-space-16) var(--ml-space-6) var(--ml-space-10); order: 1; }
  .ml-hero__image { order: 0; height: 50svh; }
  .ml-hero__image img { height: 100%; }

  .ml-partners__inner { grid-template-columns: 1fr; }
  .ml-partners__image { position: static; aspect-ratio: 16 / 7; }
  .ml-partners__image img { height: 100%; }

  .ml-attorneys__grid { grid-template-columns: 1fr 1fr; }
  .ml-testimonials__grid { grid-template-columns: 1fr 1fr; }

  .ml-faq__inner { grid-template-columns: 1fr; }
  .ml-faq__sidebar { position: static; }
  .ml-faq__img { max-width: 400px; }

  .ml-quote__inner { grid-template-columns: 1fr; }
  .ml-quote__image { position: static; }

  .ml-footer__top { grid-template-columns: 1fr; gap: var(--ml-space-10); }
  .ml-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .ml-panel__grid { grid-template-columns: 1fr 1fr; }
  .ml-attorneys__grid { grid-template-columns: 1fr; }
  .ml-testimonials__grid { grid-template-columns: 1fr; }
  .ml-partners__grid { grid-template-columns: 1fr; }
  .ml-stepper__detail-body { grid-template-columns: 1fr; }
  .ml-footer__cols { grid-template-columns: 1fr 1fr; }
  .ml-form__row { grid-template-columns: 1fr; }
  .ml-hero__credentials { gap: var(--ml-space-6); flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 480px) {
  .ml-panel__grid { grid-template-columns: 1fr; }
  .ml-footer__cols { grid-template-columns: 1fr; }
  .ml-stepper__controls { flex-direction: column; }
  .ml-stepper__select { min-width: 100%; }
  .ml-tabs { flex-direction: column; width: 100%; }
  .ml-tab { justify-content: center; }
  .ml-nav__inner { padding: 0 var(--ml-space-4); }
  .ml-services__inner,
  .ml-fees__inner,
  .ml-timeline-sec__inner,
  .ml-partners__inner,
  .ml-attorneys__inner,
  .ml-testimonials__inner,
  .ml-faq__inner,
  .ml-quote__inner,
  .ml-footer__top,
  .ml-footer__disclaimer,
  .ml-footer__bar { padding-left: var(--ml-space-4); padding-right: var(--ml-space-4); }
  .ml-hero__copy { padding: var(--ml-space-10) var(--ml-space-4); }
  .ml-strip__inner { justify-content: flex-start; }
  .ml-strip__rule { display: none; }
}
