/* How It Works — page styles. Loaded only on /how-it-works/.
   Same tokens and type scale as Cabinets (.cab) and What It Costs (.wic), scoped under .hiw
   so it cannot affect the shared header, closing band or footer. */

.hiw {
  --hiw-display: "Lora", KitchensONTrialLora, Georgia, serif;
  --hiw-body: "Manrope ExtraLight", KitchensONTrialManrope, "Manrope", Arial, sans-serif;
  --hiw-paper: #fcfaf6;
  --hiw-band: #f6f2eb;
  --hiw-ink: #232a26;
  --hiw-muted: #5d615e;
  --hiw-forest: #293e35;
  --hiw-walnut: #825a40;
  --hiw-line: #e7e3dc;
  --hiw-rule: #d9d4ca;
  background: var(--hiw-paper);
  color: var(--hiw-ink);
  font: 400 17px/1.65 var(--hiw-body);
}
.hiw *, .hiw *::before, .hiw *::after { box-sizing: border-box; }
.hiw :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table) { margin: 0; }
.hiw :where(ul, ol) { list-style: none; padding: 0; }
.hiw :is(h1, h2, h3, h4) { font-family: var(--hiw-display); font-weight: 400; color: var(--hiw-ink); text-wrap: balance; }
.hiw a { color: var(--hiw-forest); text-underline-offset: 4px; }
.hiw a:focus-visible { outline: 2px solid var(--hiw-walnut); outline-offset: 4px; }
.hiw :is(section, nav) { scroll-margin-top: 110px; }
.hiw img { display: block; max-width: 100%; height: auto; }

.hiw .hiw-wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 64px); }
.hiw-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-walnut); margin-bottom: 16px !important; }
.hiw h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.hiw-nw { white-space: nowrap; }
.hiw-line { display: block; }
.hiw-cta a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.hiw-cta a:hover { color: var(--hiw-walnut); }
.hiw-phone-only { display: none; }

/* Hero: the promise on the left, the timing card on the right */
.hiw-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(44px, 6vw, 80px) clamp(48px, 6vw, 84px); }
.hiw-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; text-wrap: wrap; }
.hiw-lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; max-width: 46ch; }
.hiw-hero-cta { margin-top: 24px !important; font-size: 17px; }

/* the timing card: the same "label" look as the Cabinets hero card */
.hiw-times { border: 1px solid rgba(35, 42, 38, .55); background: #fff; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px); box-shadow: 0 14px 32px rgba(35, 42, 38, .14), 0 2px 6px rgba(35, 42, 38, .08); }
.hiw .hiw-times-title { font-family: var(--hiw-body); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-walnut); line-height: 1.4; padding-bottom: 12px; border-bottom: 1px solid var(--hiw-ink); }
.hiw-times dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 14px 0 15px; border-bottom: 1px solid var(--hiw-rule); }
.hiw-times dt { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hiw-muted); }
.hiw-times dd { display: grid; gap: 1px; }
.hiw-times-v { font-family: var(--hiw-display); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; color: var(--hiw-ink); }
.hiw-times-n { font-size: 14.5px; line-height: 1.5; color: var(--hiw-muted); }
.hiw-times-foot { margin-top: 2px !important; padding-top: 14px; border-top: 1.5px dashed var(--hiw-ink); font-size: 15px; line-height: 1.5; color: var(--hiw-forest); font-weight: 600; }
.hiw-times dl > div:last-child { border-bottom: 0; }

/* On this page */
.hiw-nav { border-block: 1px solid var(--hiw-rule); background: var(--hiw-paper); }
.hiw-nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-block: 18px; }
.hiw-nav-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-walnut); }
.hiw-nav ul { display: flex; flex-wrap: wrap; gap: 10px; }
.hiw-nav a { display: inline-block; padding: 8px 16px; border: 1px solid var(--hiw-rule); border-radius: 99px; background: #fff; color: var(--hiw-ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.hiw-nav a:hover { border-color: var(--hiw-forest); color: var(--hiw-forest); }

/* Shared section pieces */
.hiw-sec { padding-block: clamp(56px, 7vw, 96px); }
.hiw-band { background: var(--hiw-band); border-block: 1px solid var(--hiw-line); padding-block: clamp(56px, 7vw, 96px); }
.hiw-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.hiw-head p:not(.hiw-eyebrow) { color: var(--hiw-muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 62ch; }
.hiw-small { font-size: 15px; color: var(--hiw-muted); }
.hiw-small a { font-weight: 600; white-space: nowrap; }
.hiw figcaption { font-size: 13.5px; color: var(--hiw-muted); margin-top: 8px; }
/* draft only: something Herman still has to supply or confirm */
.hiw-tbc { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px dashed var(--hiw-walnut); border-radius: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hiw-walnut); }

/* Block 2: who does what */
.hiw-who { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hiw-who-head { display: grid; gap: 12px; }
.hiw-who-head h2 { font-size: clamp(28px, 2.7vw, 37px); max-width: 16ch; }
.hiw-who-head p:not(.hiw-eyebrow) { color: var(--hiw-muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 34ch; }
.hiw-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.hiw-split-col h3 { font-family: var(--hiw-body); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-muted); padding-bottom: 12px; border-bottom: 1px solid var(--hiw-ink); }
.hiw-split-col--us h3 { color: var(--hiw-forest); }
.hiw-split-col li { padding: 13px 0 14px 26px; border-bottom: 1px solid var(--hiw-rule); font-size: 17px; line-height: 1.45; position: relative; }
.hiw-split-col li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border: 1.5px solid var(--hiw-muted); border-radius: 50%; }
.hiw-split-col--us li::before { background: var(--hiw-forest); border-color: var(--hiw-forest); }
.hiw-split-note { margin-top: 14px !important; }
.hiw-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
.hiw-case { background: #fff; border: 1px solid var(--hiw-line); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; }
.hiw-case h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.25; }
.hiw-case p { color: var(--hiw-ink); font-size: 17px; line-height: 1.65; }
.hiw-aside { margin-top: clamp(24px, 3vw, 36px) !important; padding-left: 18px; border-left: 2px solid var(--hiw-walnut); font-family: var(--hiw-display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--hiw-forest); max-width: 50ch; }

/* Block 3: two tracks, the order and the home */
.hiw-track { border-bottom: 1px solid var(--hiw-ink); }
.hiw-track-cols, .hiw-step { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3.5vw, 56px); }
.hiw-track-cols { padding-bottom: 12px; border-bottom: 1px solid var(--hiw-ink); }
.hiw-track-col { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-forest); }
.hiw-track-col--home { color: var(--hiw-walnut); }
.hiw-step { padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--hiw-rule); align-items: start; }
.hiw-track ol > .hiw-step:first-child { border-top: 0; }
.hiw-step-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: baseline; }
.hiw-step-n { font-family: var(--hiw-display); font-size: 19px; color: var(--hiw-walnut); }
.hiw-step-head h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; }
.hiw-step-time { grid-column: 2; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hiw-muted); }
.hiw-step-order, .hiw-step-home { display: grid; gap: 8px; align-content: start; justify-items: start; }
.hiw-step-order > p, .hiw-step-home > p { font-size: 16.5px; line-height: 1.65; }
.hiw-step-home > p:not(.hiw-state) { color: var(--hiw-muted); }
.hiw-step-k { display: none; }
.hiw-step-link a { font-size: 15.5px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.hiw-step-link a:hover { color: var(--hiw-walnut); }
.hiw .hiw-state { display: inline-block; padding: 3px 11px 2px; border-radius: 99px; border: 1px solid var(--hiw-forest); background: #fff; color: var(--hiw-forest); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; line-height: 1.6; }
.hiw .hiw-state--off { background: var(--hiw-walnut); border-color: var(--hiw-walnut); color: #fff; }
.hiw .hiw-state--part { border-color: var(--hiw-walnut); color: var(--hiw-walnut); }
/* the "At your home" column carries a thin bar: green while the old kitchen works, walnut when it doesn't */
.hiw-step-home { border-left: 3px solid transparent; padding-left: 18px; }
.hiw-home--on { border-left-color: #a9bdb2; }
.hiw-home--off { border-left-color: var(--hiw-walnut); }
.hiw-home--part { border-left: 3px dashed var(--hiw-walnut); }

/* "You see it before it is built": the rendering beside the finished kitchen */
.hiw-drawn { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(44px, 5vw, 72px); background: var(--hiw-paper); border: 1px solid var(--hiw-line); padding: clamp(18px, 2.4vw, 32px); }
.hiw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.hiw-pair img, .hiw-render { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hiw-render { border: 1px solid var(--hiw-rule); background: #fff; display: grid; place-items: center; }
.hiw-render svg { width: 100%; height: 100%; display: block; }
.hiw-drawn-text { display: grid; gap: 12px; align-content: center; }
.hiw-drawn-text .hiw-eyebrow { margin-bottom: 0 !important; }
.hiw-drawn-text h3 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; }
.hiw-drawn-text p:not(.hiw-eyebrow):not(.hiw-cta) { color: var(--hiw-muted); font-size: 16.5px; }
.hiw-drawn-text .hiw-cta { margin-top: 4px !important; }

/* Block 4: the finished kitchen, and after */
.hiw-fin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hiw-fin-text { display: grid; gap: 14px; }
.hiw-fin-text .hiw-eyebrow { margin-bottom: 2px !important; }
.hiw-fin-lede { color: var(--hiw-muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 48ch; }
.hiw-checks { margin-top: 8px !important; border-top: 1px solid var(--hiw-ink); }
.hiw-checks li { position: relative; padding: 13px 0 14px 34px; border-bottom: 1px solid var(--hiw-rule); font-size: 17px; line-height: 1.45; }
.hiw-checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 13px; height: 7px; border-left: 2px solid var(--hiw-forest); border-bottom: 2px solid var(--hiw-forest); transform: rotate(-45deg); }
.hiw-after { margin-top: clamp(18px, 2.4vw, 30px); display: grid; gap: 8px; }
.hiw-after h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.25; }
.hiw-after p:not(.hiw-small) { font-size: 17px; max-width: 46ch; }
.hiw-fin-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.hiw-fin-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hiw-fin-photos img.hiw-crop-top { object-position: 50% 0%; }
.hiw-fin-photos figure:nth-child(2) { margin-top: clamp(24px, 4vw, 56px); }


@media (max-width: 900px) {
  .hiw-hero { grid-template-columns: 1fr; }
  .hiw-phone-only { display: block; }
  .hiw-times { max-width: 560px; }
}
@media (max-width: 1100px) {
  .hiw-track-cols, .hiw-step { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); }
  .hiw-drawn { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hiw-who, .hiw-fin { grid-template-columns: 1fr; }
  .hiw-who-head h2 { max-width: 22ch; font-size: clamp(30px, 3.2vw, 42px); }
  .hiw-who-head p:not(.hiw-eyebrow) { max-width: 60ch; }
  /* the two tracks become one list: each step shows "Your kitchen order", then "At your home" */
  .hiw-track-cols { display: none; }
  .hiw-track { border-top: 1px solid var(--hiw-ink); }
  .hiw-step { grid-template-columns: 1fr; row-gap: 16px; }
  .hiw-step-k { display: block; font-size: 12px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hiw-forest); line-height: 1.4 !important; }
  .hiw-step-home .hiw-step-k { color: var(--hiw-walnut); }
  .hiw-step-home { padding: 14px 16px 16px; background: var(--hiw-paper); border: 1px solid var(--hiw-line); justify-self: stretch; }
  .hiw-home--on { border-left: 3px solid #a9bdb2; }
  .hiw-home--off { border-left: 3px solid var(--hiw-walnut); }
  .hiw-home--part { border-left: 3px dashed var(--hiw-walnut); }
}
@media (max-width: 600px) {
  .hiw { font-size: 16.5px; }
  .hiw-split { grid-template-columns: 1fr; row-gap: 26px; }
  .hiw-cases { grid-template-columns: 1fr; }
  .hiw-pair { grid-template-columns: 1fr; gap: 18px; }
  .hiw-fin-photos figure:nth-child(2) { margin-top: 0; }
  .hiw-times dl > div { grid-template-columns: 1fr; gap: 3px; padding: 12px 0 13px; }
  .hiw-nav a { padding: 7px 14px; font-size: 15.5px; }
}

/* block 4 follows block 2 directly (16 Nov 2026): separate them with a hairline */
.hiw-sec + .hiw-sec { border-top: 1px solid var(--hiw-line); }
/* 17 Nov 2026: the "On this page" strip was removed; keep the same thin line between the hero and Who does what. */
.hiw-top + .hiw-sec { border-top: 1px solid var(--hiw-line); }

/* Block 4, text only (17 Nov 2026): heading on the left, text on the right, like block 2 */
.hiw-fin2 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hiw-fin2-head { display: grid; gap: 12px; }
.hiw-fin2-head .hiw-eyebrow { margin-bottom: 0 !important; }
.hiw-fin2-head h2 { font-size: clamp(28px, 2.7vw, 37px); max-width: 16ch; }
.hiw-fin2-body { display: grid; gap: 16px; padding-top: clamp(0px, 2.6vw, 36px); max-width: 60ch; }
.hiw-fin2-body p:not(.hiw-cta) { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.65; }
.hiw-fin2-body .hiw-cta { margin-top: 4px !important; }
@media (max-width: 900px) {
  .hiw-fin2 { grid-template-columns: 1fr; gap: 18px; }
  .hiw-fin2-head h2 { max-width: 22ch; font-size: clamp(30px, 3.2vw, 42px); }
  .hiw-fin2-body { padding-top: 0; }
}
