/* Absolute Upholstery — Modern Fabrics & Reupholstery
   Page-specific composition. Shares only the brand DNA (palette, type,
   header/footer). Namespaced .mf- so it never collides with shared
   components or the other service pages. Mobile-first. */

/* ================================================================
   LEAD — editorial two-column statement (throughline + intro copy)
================================================================ */
.mf-lead { padding-block: var(--section-y); }
.mf-lead__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.mf-lead__statement {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--text-heading);
  max-width: 18ch;
}
.mf-lead__statement em { font-style: italic; color: inherit; }
.mf-lead__body p { color: var(--text-body); max-width: 74ch; }
.mf-lead__body p + p { margin-top: 1.1rem; }
.mf-lead .eyebrow { margin-bottom: 1.1rem; }

@media (min-width: 900px) {
  .mf-lead__inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: clamp(3rem, 7vw, 6rem);
  }
}

/* ================================================================
   SPINE — "what we do", a connected vertical list (not a grid)
================================================================ */
.mf-spine {
  padding-block: clamp(6rem, 13vh, 10rem);
  background-color: var(--surface-page);
  background-image: var(--texture-paper);
  border-block: 1px solid var(--border-subtle);
}
.mf-spine__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mf-spine__head { margin-bottom: clamp(3rem, 6vh, 4.5rem); }
.mf-spine__head .eyebrow { margin-bottom: 1.1rem; }
.mf-spine__head h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  color: var(--text-heading);
  max-width: 22ch;
}

.mf-spine__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
/* connecting thread — hidden by default, only drawn on the wide zig-zag */
.mf-spine__thread { display: none; }
.mf-spine__item {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.75rem, 3.5vw, 2.5rem);
}
.mf-spine__item::before {
  content: "\2666";
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--accent);
}
.mf-spine__item h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-snug);
}
.mf-spine__item p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: 0.2rem;
  max-width: 46ch;
}
/* Soft zig-zag on wider screens: each step alternates left and right,
   so the row fills across instead of hugging the left edge. */
@media (min-width: 900px) {
  /* Stretch only the timeline (steps + thread) wider than the section,
     leaving the head and the note at the section width. */
  .mf-spine__list {
    gap: clamp(1rem, 2.4vh, 1.75rem);
    width: min(108rem, 100vw - 2 * var(--gutter));
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .mf-spine__item { width: 42%; }

  /* Left column: text flush toward the centre, diamond on its INNER edge */
  .mf-spine__item:nth-of-type(odd) {
    text-align: right;
    padding: 0 clamp(1.5rem, 3vw, 2rem) 0 0;
  }
  .mf-spine__item:nth-of-type(odd)::before { left: auto; right: 0; }

  /* Right column: pushed right, text flush toward the centre, diamond INNER */
  .mf-spine__item:nth-of-type(even) {
    margin-left: auto;
    text-align: left;
    padding: 0 0 0 clamp(1.5rem, 3vw, 2rem);
  }
  .mf-spine__item:nth-of-type(even)::before { left: 0; right: auto; }

  .mf-spine__item p { max-width: 100%; }

  /* the thread runs between the inner diamonds, down the open centre, so it
     never meets the text (which sits outside the diamonds) */
  .mf-spine__thread {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  .mf-spine__thread path {
    fill: none;
    stroke: var(--au-brass-300);
    stroke-width: 1.5;
    stroke-dasharray: 1 6;
    stroke-linecap: round;
    opacity: 0.55;
    vector-effect: non-scaling-stroke;
  }
}

/* ================================================================
   PHILOSOPHY — Repair & restoration, a centred editorial moment
================================================================ */
.mf-philosophy { padding-block: var(--section-y); }
.mf-philosophy__inner {
  max-width: 58ch;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.mf-philosophy .eyebrow { margin-bottom: 1rem; }
.mf-philosophy h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}
.mf-philosophy p { color: var(--text-body); font-size: var(--fs-lead); line-height: var(--lh-body); }
.mf-philosophy p + p { margin-top: 1.1rem; }
/* small ornament under the heading */
.mf-philosophy h2::after {
  content: "\2666";
  display: block;
  font-size: 0.55rem;
  color: var(--au-brass-300);
  margin-top: 1.1rem;
}

/* ---- Split variant: full-bleed image left, copy right (50/50) ---- */
.mf-philosophy--split {
  padding-block: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border-block: 1px solid var(--border-subtle);
}
.mf-philosophy--split .mf-philosophy__media {
  position: relative;
  overflow: hidden;
  min-height: 64vw;
}
.mf-philosophy--split .mf-philosophy__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;   /* frame low; % offset scales with the crop so it never gaps */
  display: block;
}

/* Reverse (oversized-armchairs): percentage keeps it raised but always covers
   the panel (a fixed px offset could expose a gap at the bottom). */
.mf-philosophy--reverse .mf-philosophy__media img {
  object-position: center 22%;
}
/* Repair sits directly above the green Guild band; drop the bottom hairline
   so the transition reads seamless. */
.mf-philosophy--reverse { border-bottom: 0; }
.mf-philosophy--split .mf-philosophy__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 8vw, 4rem) var(--gutter);
  text-align: left;
  background-color: var(--surface-page);
  background-image: var(--texture-paper);
}
.mf-philosophy--split .mf-philosophy__copy { width: 100%; max-width: 46ch; margin-inline: auto; }

/* Green panel variant (bespoke feature) */
.mf-philosophy--green .mf-philosophy__text {
  background-color: var(--au-black-900);
  background-image: radial-gradient(120% 80% at 0% 0%, rgba(247, 241, 230, 0.05), transparent 60%);
}
.mf-philosophy--green .eyebrow { color: var(--au-brass-300); }
.mf-philosophy--green h2 { color: var(--au-cream); }
.mf-philosophy--green p { color: rgba(250, 247, 240, 0.82); }
/* Darker tan panel variant (bespoke feature) — the darker parchment */
.mf-philosophy--tan-deep .mf-philosophy__text {
  background-color: var(--surface-page-alt);
}
/* left-aligned heading: drop the centred ornament */
.mf-philosophy--split h2 { margin-bottom: 1.85rem; }
.mf-philosophy--split h2::after { display: none; }
.mf-philosophy--split p { font-size: var(--fs-body); }

/* Tablet/mobile (stacked): left-align the copy and let it run wider, so it
   doesn't read as a narrow centred block beneath the image. The default
   wide-short media box cropped the portrait photo to a thin slice, so give it
   a square box that shows the piece properly. */
@media (max-width: 899px) {
  .mf-philosophy--split .mf-philosophy__copy { max-width: 62ch; margin-inline: 0; }
  .mf-philosophy--split .mf-philosophy__media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    /* The photo is the only child and it is absolutely positioned, so this box
       has no in-flow content to give it a height. Under the grid's default
       align-items: stretch it was therefore stretched to a content-derived row
       height of zero, which beat the aspect-ratio and collapsed the section —
       on phones both photos were simply absent. Opting out of the stretch lets
       aspect-ratio size it from its width, as intended. */
    align-self: start;
  }
  /* Reverse section (repairs): keep content first, image second when stacked */
  .mf-philosophy--reverse .mf-philosophy__media { order: 2; }
}

@media (min-width: 900px) {
  .mf-philosophy--split {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(26rem, 40vw, 37rem);
  }
  .mf-philosophy--split .mf-philosophy__media { min-height: 0; }
  .mf-philosophy--split .mf-philosophy__text {
    padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  }
  /* Reverse: image on the right */
  .mf-philosophy--reverse .mf-philosophy__media { order: 2; }
}

/* Large tablet only (900–1199px): a touch more top/bottom room in the bespoke
   and repair copy panels. Mobile (<900px) and desktop (>=1200px) are untouched. */
@media (min-width: 900px) and (max-width: 1199px) {
  .mf-philosophy--split .mf-philosophy__text { padding-block: clamp(4.5rem, 7vw, 5.5rem); }
}

/* LOOSE COVERS now uses the shared .text-feature band (see service.css) */


/* Phone: match the section rhythm (see the note in main.css). */
@media (max-width: 599px) {
  .mf-philosophy--split .mf-philosophy__text { padding-block: var(--panel-y); }
}
