/* Morton Fine Furniture - enhancement stylesheet for service, area and
   service-in-town pages.

   Every number here was measured off the live homepage with getComputedStyle,
   not chosen. See matrix/sites.json renderProfile.

   Loaded AFTER /_next/static/css/<hash>.css, which supplies the @font-face
   rules, the :root custom properties and .wrap. Pages must carry the body
   classes __variable_e10f34 and __variable_94d7f7 or the display and body
   families will silently fall back to Georgia and system-ui.

   Version the href (mff.css?v=N) on every edit. */

:root {
  --mff-cream: #f5f3ef;
  --mff-offwhite: #fafaf8;
  --mff-rule: rgba(0, 0, 0, 0.1);
  --mff-rule-dark: rgba(255, 255, 255, 0.12);
  --mff-body: #141210;
  --mff-muted: #6b6560;
}

/* ---------- base ---------------------------------------------------- */

.mff {
  color: var(--mff-body);
  background: var(--mff-offwhite);
  font-family: var(--font-sans), system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
}
.mff *,
.mff *::before,
.mff *::after { box-sizing: border-box; border-radius: 0; }

.mff h1, .mff h2, .mff h3 {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 300;
  margin: 0;
  text-wrap: balance;
}
.mff h1 { font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.04rem); line-height: 1.05; }
.mff h2 { font-size: clamp(1.9rem, 1rem + 2.4vw, 2.7rem); line-height: 1.08; }
.mff h3 { font-size: 1.44rem; line-height: 1.6; font-weight: 400; }
.mff p { margin: 0 0 1.15em; }
.mff p:last-child { margin-bottom: 0; }
.mff a { color: inherit; }

/* ---------- micro label (the kicker) -------------------------------- */

.mff-kicker {
  display: block;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 17.6px;
  letter-spacing: 2.64px;
  text-transform: uppercase;
  color: var(--mff-muted);
  margin: 0 0 1.25rem;
}
.mff-band-dark .mff-kicker { color: rgba(255, 255, 255, 0.92); }

/* ---------- bands --------------------------------------------------- */

.mff-band { padding: 80px 0; }
.mff-band-tight { padding: 64px 0; }
.mff-band-wide { padding: 128px 0; }
.mff-band-cream { background: var(--mff-cream); }
.mff-band-dark { background: var(--mff-body); color: var(--mff-offwhite); }
.mff-band-dark h1, .mff-band-dark h2, .mff-band-dark h3 { color: var(--mff-offwhite); }
.mff-band-dark p { color: rgba(255, 255, 255, 0.86); }

.mff-measure { max-width: 68ch; }
.mff-lede { font-size: 1.2rem; line-height: 1.75; color: #3a3733; }
.mff-band-dark .mff-lede { color: rgba(255, 255, 255, 0.9); }

/* ---------- hero ---------------------------------------------------- */

.mff-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark, #1c1a17);
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
}
.mff-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Overlay is inline on the element in the markup as well, because a
   class-level multi-layer background is the first thing theme CSS eats. */
.mff-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,.78) 0%, rgba(12,10,8,.32) 38%, rgba(12,10,8,.12) 65%, rgba(12,10,8,.28) 100%);
}
.mff-hero-inner { position: relative; padding: 128px 0 64px; width: 100%; }
.mff-hero h1 { color: #fff; max-width: 20ch; }
.mff-hero .mff-kicker { color: rgba(255, 255, 255, 0.92); }
.mff-hero p { color: rgba(255, 255, 255, 0.86); max-width: 46ch; margin-top: 1.4rem; }

/* ---------- buttons: transparent, square, tracked ------------------- */

.mff-btn {
  display: inline-block;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--mff-body);
  color: var(--mff-body);
  padding: 10px 24px;
  transition: background-color .25s, color .25s;
}
.mff-btn:hover { background: var(--mff-body); color: var(--mff-offwhite); }
.mff-btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.mff-btn-light:hover { background: #fff; color: var(--mff-body); }
.mff-btn-underline {
  display: inline-block;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 2.2px;
  text-transform: uppercase; text-decoration: none;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 4px;
}
.mff-btn-underline:hover { border-bottom-color: #fff; }

/* ---------- breadcrumb --------------------------------------------- */

.mff-crumb {
  font-size: 11px; letter-spacing: 1.54px; text-transform: uppercase;
  color: var(--mff-muted); margin: 0 0 0.5rem;
}
.mff-crumb a { text-decoration: none; }
.mff-crumb a:hover { text-decoration: underline; }
.mff-crumb span[aria-hidden] { padding: 0 .5rem; opacity: .5; }

/* ---------- editorial two-column ------------------------------------ */

.mff-split { display: grid; gap: 3rem; }
@media (min-width: 900px) { .mff-split { grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; } }
.mff-split-media img { width: 100%; height: auto; display: block; }
.mff-figcap {
  font-family: var(--font-display), Georgia, serif;
  font-style: italic; font-size: .95rem; color: var(--mff-muted);
  margin-top: .75rem;
}

/* ---------- numbered stages (the site's own process pattern) -------- */

.mff-stages { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 780px) { .mff-stages { grid-template-columns: repeat(4, 1fr); } }
.mff-stage { border-top: 1px solid var(--mff-rule); padding-top: 1.25rem; }
.mff-band-dark .mff-stage { border-top-color: var(--mff-rule-dark); }

/* ---------- rule + list -------------------------------------------- */

.mff-rule { height: 1px; background: var(--mff-rule); border: 0; margin: 3.5rem 0; }
.mff-band-dark .mff-rule { background: var(--mff-rule-dark); }
.mff-checks { list-style: none; padding: 0; margin: 2rem 0 0; }
.mff-checks li {
  border-top: 1px solid var(--mff-rule);
  padding: .85rem 0 .85rem 1.5rem;
  position: relative;
}
.mff-checks li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 8px; height: 1px; background: var(--mff-muted);
}

/* ---------- FAQ: native details, no JS ------------------------------ */

.mff-faq { margin-top: 2.5rem; max-width: 78ch; }
.mff-faq details { border-top: 1px solid var(--mff-rule); }
.mff-faq details:last-of-type { border-bottom: 1px solid var(--mff-rule); }
.mff-faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.28rem; font-weight: 400; line-height: 1.5;
}
.mff-faq summary::-webkit-details-marker { display: none; }
.mff-faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 2rem;
  width: 11px; height: 1px; background: var(--mff-body);
  transition: transform .25s;
}
.mff-faq summary::before {
  content: ""; position: absolute; right: .85rem; top: 1.45rem;
  width: 1px; height: 11px; background: var(--mff-body);
  transition: opacity .25s, transform .25s;
}
.mff-faq details[open] summary::before { opacity: 0; }
.mff-faq summary:focus-visible { outline: 2px solid var(--mff-body); outline-offset: 3px; }
.mff-faq .mff-faq-a { padding: 0 0 1.5rem; max-width: 68ch; }

/* ---------- internal links: designed components, never plain pills -- */

.mff-links { margin-top: 0; }
.mff-links-grid { display: grid; gap: 1px; background: var(--mff-rule); margin-top: 2rem; }
@media (min-width: 640px) { .mff-links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mff-links-grid { grid-template-columns: repeat(4, 1fr); } }

/* Towns read as pin cards that lift on hover. */
.mff-pin {
  background: var(--mff-offwhite);
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  display: block;
  transition: transform .25s, background-color .25s;
}
.mff-pin:hover { transform: translateY(-3px); background: #fff; }
.mff-pin-name {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.3rem; line-height: 1.3; display: block;
}
.mff-pin-meta {
  display: block; margin-top: .4rem;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--mff-muted);
}
.mff-band-cream .mff-pin { background: #fff; }

/* Services read as solid arrow rows. */
.mff-arrow {
  background: var(--mff-body); color: var(--mff-offwhite);
  padding: 1.35rem 1.35rem; text-decoration: none; display: flex;
  align-items: baseline; justify-content: space-between; gap: 1rem;
  transition: background-color .25s;
}
.mff-arrow:hover { background: #000; }
.mff-arrow-name { font-family: var(--font-display), Georgia, serif; font-size: 1.22rem; }
.mff-arrow::after { content: "\2192"; opacity: .55; font-size: .95rem; }

/* Any block of three or fewer collapses into one quick-links row. */
.mff-quick { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem; }
.mff-quick a {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--mff-rule);
  padding-bottom: 5px;
}
.mff-quick a:hover { border-bottom-color: var(--mff-body); }
.mff-quick a::after { content: " \2192"; opacity: .45; }

/* ---------- consent note: the substantive local block --------------- */

.mff-note {
  border-left: 1px solid var(--mff-body);
  padding: .35rem 0 .35rem 1.75rem;
  margin: 2.5rem 0 0;
  max-width: 66ch;
}
.mff-note .mff-kicker { margin-bottom: .6rem; }
.mff-band-dark .mff-note { border-left-color: rgba(255,255,255,.5); }

/* ---------- accessibility ------------------------------------------- */

.mff a:focus-visible, .mff button:focus-visible, .mff summary:focus-visible {
  outline: 2px solid var(--mff-body); outline-offset: 3px;
}
.mff-band-dark a:focus-visible { outline-color: #fff; }
.mff-skip {
  position: absolute; left: -9999px;
  background: var(--mff-body); color: #fff; padding: .75rem 1.25rem;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  text-decoration: none; z-index: 50;
}
.mff-skip:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .mff *, .mff *::before, .mff *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .mff-pin:hover { transform: none; }
}

/* ---------- top utility bar + nav (echoes the mirror's own) ---------- */

.mff-topbar {
  background: var(--mff-body);
  color: rgba(250, 250, 248, 0.72);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 9px 0;
}
.mff-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mff-topbar a { text-decoration: none; color: inherit; }
.mff-topbar a:hover { color: #fff; }
.mff-topbar-cta { color: #fff !important; letter-spacing: 1.6px; }
.mff-topbar-mail { text-transform: none; letter-spacing: .4px; font-size: 11px; }
@media (max-width: 860px) {
  .mff-topbar-mail { display: none; }
  .mff-topbar-in { justify-content: center; gap: 1.75rem; }
}

.mff-nav { background: var(--mff-offwhite); border-bottom: 1px solid var(--mff-rule); }
.mff-nav-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mff-nav-links { display: flex; gap: 1.75rem; }
.mff-nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--mff-muted);
  text-decoration: none;
}
.mff-nav-links a:hover { color: var(--mff-body); }
.mff-nav-logo { justify-self: center; display: block; }
.mff-nav-logo img { display: block; width: 132px; height: auto; }
.mff-nav-in > .mff-btn { justify-self: end; }
/* Mobile: the nav must stay OPERABLE, so the links move to a second row
   rather than being hidden. Four single-word labels at 11px fit inside 320px,
   so this needs no JS and no hamburger. Hiding them left generated pages
   reachable only through the footer, caught on the exemplar render. */
@media (max-width: 860px) {
  .mff-nav-in {
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 12px;
  }
  .mff-nav-logo { justify-self: start; order: 1; }
  .mff-nav-in > .mff-btn { order: 2; }
  .mff-nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.15rem;
    border-top: 1px solid var(--mff-rule);
    padding-top: 12px;
  }
}
@media (max-width: 360px) {
  .mff-nav-links { gap: .85rem; }
  .mff-nav-links a { letter-spacing: 1.1px; }
}

/* ---------- footer (the mirror's footer, retargeted at the new IA) --- */

.mff-footer { background: var(--near-black, #141210); color: var(--mff-offwhite); padding: 64px 0 40px; }
.mff-footer-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 640px) { .mff-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.mff-footer-nav { display: flex; flex-direction: column; gap: .75rem; }
.mff-footer-nav a {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.5);
  text-decoration: none;
}
.mff-footer-nav a:hover { opacity: .7; color: rgba(250, 250, 248, 0.85); }
.mff-footer-logo { display: flex; justify-content: center; }
.mff-footer-logo img { width: 100%; max-width: 220px; height: auto; filter: brightness(0) invert(1); }
.mff-footer-contact { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 640px) { .mff-footer-contact { text-align: right; align-items: flex-end; } }
.mff-footer-standfirst {
  font-family: var(--font-display), Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  color: rgba(250, 250, 248, 0.5);
  margin: 0 0 .75rem;
}
.mff-footer-contact a { font-size: 13px; letter-spacing: .02em; color: rgba(250, 250, 248, 0.5); text-decoration: none; word-break: break-word; }
.mff-footer-contact a:hover { opacity: .7; }
.mff-footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250, 250, 248, 0.1); text-align: center; }
.mff-footer-base p { font-size: 12px; letter-spacing: .02em; color: rgba(250, 250, 248, 0.3); margin: 0; }

/* ---------- agency credit ------------------------------------------- */

.mff-credit {
  margin-top: 6px !important;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(250, 250, 248, 0.3);
}
.mff-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mff-credit a:hover { color: rgba(250, 250, 248, 0.6); }
