/* ==================================================================
   Millwork page (/millwork) and its thank-you page (/thanks/millwork).
   Desktop values come from Paper, "DRD Website Redesign", Version 4,
   artboard "06 Millwork page" (1440 wide).
   site.css supplies .wrap, .eyebrow, .btn, .text-link and .arw.
   The form block (.fm-*) and the thank-you block (.ty-*) match
   pages/trade.css; move both into site.css when the forms are wired.
   ================================================================== */

/* ------------------------------------------------------------ shared type */
.mw-h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 52px; letter-spacing: -.01em; }
.mw-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.mw-note { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }
.arw-down { transform: rotate(90deg); }
#quote, #how-it-works { scroll-margin-top: 24px; }

/* ------------------------------------------------------------ hero */
.mw-hero { padding-block: 80px 96px; }
.mw-hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 64px; }
.mw-hero-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.mw-hero-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(40px, 4.72vw, 68px); line-height: 1.088;
}
.mw-hero-title span, .mw-hero-title em { display: block; }
.mw-hero-title em { color: var(--drd-bronze); line-height: 1.118; }
.mw-hero-aside { display: flex; flex-direction: column; gap: 24px; width: 440px; flex-shrink: 0; padding-bottom: 10px; }
.mw-hero-aside > p { font-size: 18px; line-height: 30px; }
.mw-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.mw-hero-actions .btn { min-height: 52px; padding: 0 28px; }
.mw-hero-actions .text-link { align-self: center; }

/* The profile strip: seven slices of one drawing, labels as text */
.mw-profiles-block { padding-top: 28px; border-top: 1px solid var(--drd-espresso); }
.mw-profiles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 18px; }
.mw-profiles-title {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-espresso);
}
.mw-profiles-note { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); text-align: right; }
.mw-profiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mw-profile { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mw-cut { position: relative; overflow: hidden; aspect-ratio: 187 / 190; }
.mw-cut img { position: absolute; left: calc(var(--i) * -100%); bottom: 0; width: 700%; max-width: none; height: auto; }
.mw-profile-name {
  padding-inline: 4px; text-align: center; text-wrap: balance;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--drd-taupe);
}

/* ------------------------------------------------------------ what we make */
.mw-make { background: var(--drd-stone); padding-block: 96px 104px; }
.mw-make .mw-h2 { padding-bottom: 44px; }
.mw-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.mw-list { border-top: 1px solid var(--drd-espresso); }
.mw-list-title {
  padding: 16px 0 4px;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-espresso);
}
.mw-list li { display: flex; flex-direction: column; gap: 4px; padding-block: 14px; border-bottom: 1px solid rgba(107, 93, 82, .25); }
.mw-list li:last-child { border-bottom: 0; }
.mw-item-title { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 27px; }
.mw-item-body { font-size: 15px; line-height: 24px; }

/* ------------------------------------------------------------ where the wood comes from */
.mw-source { padding-block: 96px; }
.mw-source-grid { display: grid; grid-template-columns: minmax(0, 380fr) minmax(0, 860fr); gap: 72px; align-items: start; }
.mw-source-intro { display: flex; flex-direction: column; gap: 18px; }
.mw-source-intro .mw-h2 { max-width: 8.6em; }
.mw-source-intro p { max-width: 380px; font-size: 17px; line-height: 28px; }
.mw-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mw-src { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--drd-espresso); }
.mw-src-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 30px; }
.mw-src-body { font-size: 16px; line-height: 26px; }
.mw-sources-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------------------------------------ how it works + quote */
.mw-quote-sec { background: var(--drd-stone); padding-block: 96px 104px; }
.mw-quote-grid { display: grid; grid-template-columns: minmax(0, 472fr) minmax(0, 744fr); gap: 96px; align-items: start; }
.mw-how { display: flex; flex-direction: column; gap: 28px; }
.mw-step { display: flex; gap: 20px; padding-block: 18px; border-top: 1px solid var(--drd-espresso); }
.mw-step:last-child { border-bottom: 1px solid var(--drd-espresso); }
.mw-step-num { flex: 0 0 28px; font-family: var(--font-display); font-size: 26px; line-height: 30px; color: var(--drd-bronze); font-feature-settings: "lnum"; }
.mw-step-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mw-step-title { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 27px; }
.mw-step-body { font-size: 15px; line-height: 24px; }
.mw-step-text .mw-note { padding-top: 2px; }
.mw-how-foot { font-size: 15px; line-height: 24px; }
.mw-how-foot a { text-decoration-color: var(--drd-bronze); text-underline-offset: 3px; }
.mw-how-foot a:hover { text-decoration-color: var(--drd-espresso); }

/* ------------------------------------------------------------ form (same as trade.css) */
.fm-card { background: var(--drd-cream); padding: 44px; }
.fm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 24px; }
.fm[hidden] { display: none; }
.fm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; grid-column: 1 / -1; }
.fm-half { grid-column: span 3; }
.fm-third { grid-column: span 2; }
.fm-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--drd-taupe);
}
.fm-input {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px;
  border: 1px solid rgba(107, 93, 82, .8); border-radius: 0; background-color: var(--drd-cream);
  font-family: var(--font-label); font-size: 15px; line-height: 20px; color: var(--drd-espresso);
  -webkit-appearance: none; appearance: none; transition: border-color .2s ease;
}
.fm-input::placeholder { color: var(--drd-taupe); opacity: 1; }
.fm-input:hover { border-color: var(--drd-espresso); }
.fm-input:focus { outline: 2px solid var(--drd-espresso); outline-offset: -1px; border-color: var(--drd-espresso); }
.fm-select {
  padding-right: 44px; cursor: pointer;
  background: var(--drd-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B1714' stroke-width='1.4'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat;
}
.fm-select:has(option[value=""]:checked) { color: var(--drd-taupe); }
.fm-select option { color: var(--drd-espresso); }
.fm-input[aria-invalid="true"] { border-color: var(--drd-crimson); }
.fm-error { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-crimson); }
.fm-submit { grid-column: 1 / -1; width: 100%; min-height: 54px; }

.fm-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fm-done[hidden] { display: none; }
.fm-done:focus { outline: none; }
.fm-done-eyebrow {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--drd-taupe);
}
.fm-done-title { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 44px; letter-spacing: -.01em; }
.fm-done-body { max-width: 520px; font-size: 17px; line-height: 28px; }
.fm-done-btn { margin-top: 8px; min-height: 52px; min-width: 240px; }

/* Millwork-only parts of the form: title, chips, the file drop, the reply line */
.fm-intro { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.fm-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; }
.fm-sub { font-size: 15px; line-height: 24px; }
.fm-chips { margin: 0; padding: 0; border: 0; min-width: 0; display: block; }
.fm-chips legend { padding: 0; margin-bottom: 10px; }
.fm-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip { position: relative; display: inline-flex; cursor: pointer; }
.fm-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fm-chip span {
  display: block; padding: 7px 14px; border: 1px solid var(--drd-espresso); border-radius: 999px;
  font-family: var(--font-label); font-weight: 500; font-size: 13px; line-height: 16px; color: var(--drd-espresso);
  transition: background-color .2s ease, color .2s ease;
}
.fm-chip:hover span { background: var(--drd-stone); }
.fm-chip input:checked + span { background: var(--drd-espresso); color: var(--drd-cream); }
.fm-chip input:focus-visible + span { outline: 2px solid var(--drd-espresso); outline-offset: 2px; }
.fm-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 18px 20px; text-align: center;
  border: 1px dashed var(--drd-taupe); background: var(--drd-cream); transition: background-color .2s ease;
}
.fm-drop:hover, .fm-drop.is-over { background: var(--drd-stone); }
.fm-drop:focus-within { outline: 2px solid var(--drd-espresso); outline-offset: -1px; }
.fm-file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fm-drop-title { font-family: var(--font-label); font-weight: 500; font-size: 14px; line-height: 18px; color: var(--drd-espresso); }
.fm-drop-note { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }
.fm-drop-files:empty { display: none; }
.fm-drop-files { font-family: var(--font-label); font-weight: 500; font-size: 13px; line-height: 18px; color: var(--drd-espresso); }
.fm-foot { grid-column: 1 / -1; margin-top: -4px; font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }

/* ------------------------------------------------------------ thank-you page (same as trade.css) */
.ty { padding-block: 72px 112px; }
.ty-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.ty-emblem { width: 280px; height: auto; margin-bottom: 12px; }
.ty-eyebrow {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--drd-taupe);
}
.ty-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, calc(1rem + 2.2vw), 48px); line-height: 1.17; letter-spacing: -.01em; }
.ty-body { max-width: 560px; font-size: 18px; line-height: 29px; color: var(--drd-taupe); }
.ty-wrap .ty-body + .ty-body { margin-top: -14px; }
.ty-btn { width: 240px; min-height: 52px; margin-top: 4px; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1279px) {
  #quote, #how-it-works { scroll-margin-top: 112px; }   /* clear the sticky header */
  .mw-quote-grid { gap: 56px; grid-template-columns: minmax(0, 400fr) minmax(0, 744fr); }
  .mw-source-grid { gap: 48px; }
  .mw-lists { gap: 40px; }
  .fm-chip span { padding-block: 13px; }      /* 44 px tap targets on touch screens */
  .fm-card { padding: 36px; }
  .fm { column-gap: 16px; }
}
@media (max-width: 1179px) {
  .mw-hero-top { flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 56px; }
  .mw-hero-title { font-size: clamp(40px, 6.4vw, 68px); }
  .mw-hero-aside { width: auto; max-width: 560px; padding-bottom: 0; }
  .mw-source-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mw-source-intro .mw-h2 { max-width: none; }
  .mw-source-intro p { max-width: 520px; }
}
@media (max-width: 1023px) {
  .mw-hero { padding-block: 56px 80px; }
  .mw-profile-name { letter-spacing: .1em; }
  .mw-make { padding-block: 72px 80px; }
  .mw-make .mw-h2 { padding-bottom: 32px; }
  .mw-lists { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 640px; }
  .mw-source { padding-block: 72px; }
  .mw-sources { gap: 28px; }
  .mw-quote-sec { padding-block: 72px 80px; }
  .mw-quote-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .mw-how { max-width: 640px; }
}
@media (max-width: 767px) {
  #quote, #how-it-works { scroll-margin-top: 64px; }
  .mw-hero { padding-block: 32px 64px; }
  .mw-hero .eyebrow { gap: 12px; letter-spacing: .16em; }
  .mw-hero .eyebrow::before { flex-basis: 24px; }
  .mw-hero-title { font-size: 40px; }
  .mw-hero-aside > p { font-size: 17px; line-height: 28px; }
  .mw-hero-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .mw-hero-actions .btn { width: 100%; }
  .mw-hero-actions .text-link { align-self: flex-start; }
  .mw-h2 { font-size: 34px; line-height: 42px; }
  .mw-profiles-head { flex-direction: column; gap: 6px; padding-bottom: 20px; }
  .mw-profiles-note { text-align: left; }
  /* Phone: three across, each slice cropped to its drawing, the last one centered */
  .mw-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .mw-profile { gap: 10px; }
  .mw-cut { aspect-ratio: 187 / 152; }
  .mw-profile:nth-child(7) { grid-column: 2; }
  .mw-make, .mw-source { padding-block: 64px; }
  .mw-sources { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mw-quote-sec { padding-block: 64px 72px; }
  .mw-step-title { font-size: 20px; line-height: 26px; }
  .fm-card { margin-inline: calc(-1 * var(--gutter)); padding: 32px var(--gutter) 36px; }
  .fm-half, .fm-third { grid-column: 1 / -1; }
  .fm { gap: 18px; }
  .fm-input { font-size: 16px; }          /* 16 px stops iOS zooming into the field */
  .fm-title { font-size: 26px; line-height: 32px; }
  .fm-drop { min-height: 120px; }
  .fm-done-title { font-size: 30px; line-height: 38px; }
  .fm-done-btn { width: 100%; }
  .ty { padding-block: 48px 72px; }
  .ty-emblem { width: 240px; }
  .ty-body { font-size: 17px; line-height: 28px; }
  .ty-btn { width: 100%; max-width: 320px; }
}
@media (max-width: 374px) {
  .mw-hero .eyebrow::before { display: none; }
  .mw-hero-title { font-size: 36px; }
}

/* ------------------------------------------------------------ drawings in "What we make" (Oct 12, 2026) */
.mw-fig { margin: 16px 0 0; background: var(--drd-cream); }
.mw-fig > img { display: block; width: 100%; height: auto; }
.mw-fig-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.mw-sw { position: relative; margin: 0; }
.mw-sw img { display: block; width: 100%; height: auto; }
.mw-sw p {
  position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; background: var(--drd-cream);
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--drd-taupe);
}
