/* Southbridge Drywall Repair Co. stylesheet, organized SMACSS-style:
   1 base, 2 layout (wfd-l-*), 3 module (wfd-m-*), 4 state (wfd-is-*).

   Role legend (two-letter structural abbreviations):
     hd header      bd body column    ft footer       nv nav tabs      cd card
     gr grid        wr wrapper        sc section      mn main          as aside
     hr hero        st photo strip    tl strip tile   sw swatch        fx fact
     ld lede        bt button         fm form         cs consent       mc microline
     hl hours line  tm timeline       ls list         cl column list   ol numbered list
     ck checklist   nt notes          tw towns        fq faq           cg crack guide
     cb call bar    lg logo           ph phone        pt page title    sn side nav
     cx closing     ic icon           ar arched photo dc disclosure    fl footer line */

/* ============ 1. BASE ============ */
:root {
  --wfd-ink: #281B2A;
  --wfd-paper: #FDF4F7;
  --wfd-plum: #853392;
  --wfd-blush: #F4DDE9;
  --wfd-bronze: #745D3A;
  --wfd-on: #FFFFFF;
  --wfd-ink-soft: #4d3a50;
  --wfd-hair: #e3c9d7;
  --wfd-head: "Space Grotesk", "Trebuchet MS", sans-serif;
  --wfd-text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wfd-max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wfd-paper);
  color: var(--wfd-ink);
  font: 400 1.0625rem/1.68 var(--wfd-text);
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--wfd-head); line-height: 1.16; margin: 0 0 .55em; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 500; }
p { margin: 0 0 1.05em; }
a { color: var(--wfd-plum); text-underline-offset: .18em; }
a:hover { color: var(--wfd-ink); }
img, svg { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--wfd-bronze); outline-offset: 2px; }

/* ============ 2. LAYOUT ============ */
.wfd-l-wr { width: 100%; max-width: var(--wfd-max); margin: 0 auto; padding: 0 20px; }
.wfd-l-hd { background: var(--wfd-paper); border-bottom: 1px solid var(--wfd-hair); position: relative; z-index: 3; }
.wfd-l-hd .wfd-l-wr { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 26px; padding-top: 14px; }
.wfd-l-mn { display: block; }
.wfd-l-sc { padding: 68px 0; }
.wfd-l-sc:nth-of-type(even) { background: var(--wfd-blush); }
.wfd-l-gr { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.wfd-l-sp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.wfd-l-bd { min-width: 0; max-width: 46rem; }
.wfd-l-as { position: sticky; top: 18px; display: grid; gap: 18px; }
.wfd-l-ft { border-top: 1px solid var(--wfd-hair); padding: 22px 0 26px; font-size: .86rem; color: var(--wfd-ink-soft); }

/* ============ 3. MODULES ============ */
/* logo + header phone */
.wfd-m-lg { font-family: var(--wfd-head); font-weight: 700; font-size: 1.12rem; color: var(--wfd-ink); text-decoration: none; padding-bottom: 12px; line-height: 1.1; }
.wfd-m-lg span { display: block; font-weight: 500; font-size: .8rem; color: var(--wfd-bronze); letter-spacing: .06em; text-transform: uppercase; }
.wfd-m-ph { text-align: right; padding-bottom: 12px; line-height: 1.25; }
.wfd-m-ph a { color: var(--wfd-ink); font-weight: 600; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.wfd-m-ph small { display: block; color: var(--wfd-ink-soft); font-size: .78rem; }

/* tab navigation */
.wfd-m-nv { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-self: end; }
.wfd-m-nv a { display: block; padding: 10px 14px 12px; color: var(--wfd-ink-soft); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; border-radius: 6px 6px 0 0; }
.wfd-m-nv a:hover { background: var(--wfd-blush); color: var(--wfd-ink); }

/* hero: centered text on a two-stop gradient, strip overlapping its lower edge */
.wfd-m-hr { background: linear-gradient(172deg, var(--wfd-paper) 8%, var(--wfd-blush) 92%) top / 100% calc(100% - 118px) no-repeat; padding-top: 58px; text-align: center; }
.wfd-m-hr h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.wfd-m-hr-sub { font-size: clamp(1.1rem, 2.1vw, 1.3rem); max-width: 40rem; margin: 0 auto 1.3em; color: var(--wfd-ink-soft); }
.wfd-m-hr-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 10px; }
.wfd-m-hr .wfd-m-fm { max-width: 760px; margin: 26px auto 0; text-align: left; }

/* buttons */
.wfd-m-bt { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--wfd-plum); color: var(--wfd-on); font: 600 1rem/1.2 var(--wfd-text); text-decoration: none; border: 2px solid var(--wfd-plum); cursor: pointer; }
.wfd-m-bt:hover { background: var(--wfd-ink); border-color: var(--wfd-ink); color: var(--wfd-on); }
.wfd-m-bt-al { background: transparent; color: var(--wfd-bronze); border-color: var(--wfd-bronze); }
.wfd-m-bt-al:hover { background: var(--wfd-bronze); color: var(--wfd-on); border-color: var(--wfd-bronze); }
.wfd-m-tx { font-weight: 600; }

/* small lines under buttons and forms */
.wfd-m-mc { font-size: .93rem; color: var(--wfd-ink-soft); margin: 6px 0 0; }
.wfd-m-hl { font-size: .9rem; color: var(--wfd-bronze); font-weight: 500; margin: 6px 0 0; }
.wfd-m-cs { display: block; font-size: .84rem; color: var(--wfd-ink-soft); margin: 10px 0 0; }

/* forms */
.wfd-m-fm { background: var(--wfd-on); border: 1px solid var(--wfd-hair); border-radius: 16px; padding: 18px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1.6fr auto; align-items: end; position: relative; }
.wfd-m-fm label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--wfd-ink-soft); }
.wfd-m-fm input, .wfd-m-fm select, .wfd-m-fm textarea { width: 100%; font: 400 1rem/1.4 var(--wfd-text); color: var(--wfd-ink); padding: 11px 12px; border: 1px solid #cdb1c1; border-radius: 10px; background: var(--wfd-paper); }
.wfd-m-fm textarea { min-height: 128px; resize: vertical; }
.wfd-m-fm-fu { grid-template-columns: 1fr 1fr; max-width: 680px; }
.wfd-m-fm-fu .wfd-m-fm-wd { grid-column: 1 / -1; }
.wfd-m-fm-fu .wfd-m-bt { justify-self: start; }

/* strip of three tiles */
.wfd-m-st { display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 16px; margin-top: 46px; text-align: left; }
.wfd-m-tl { border-radius: 18px; padding: 20px; min-height: 200px; background: var(--wfd-on); border: 1px solid var(--wfd-hair); }
.wfd-m-tl-ph { padding: 0; border: 0; background: none; overflow: hidden; }
.wfd-m-tl h2, .wfd-m-tl p.wfd-m-tl-h { font: 700 1.05rem/1.2 var(--wfd-head); margin: 0 0 8px; }
.wfd-m-tl p { font-size: .92rem; margin: 0; }
.wfd-m-fx { background: var(--wfd-ink); color: var(--wfd-paper); border: 0; }
.wfd-m-fx b { display: block; font: 700 2.6rem/1 var(--wfd-head); color: var(--wfd-blush); margin-bottom: 10px; }
.wfd-m-fx small { display: block; margin-top: 10px; opacity: .78; font-size: .76rem; }
.wfd-m-sw { display: block; margin: 0 0 10px; width: 100%; }

/* arched photos */
.wfd-m-ar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 240px 240px 14px 14px / 120px 120px 14px 14px; }
.wfd-m-ar-fg { margin: 0 0 28px; }

/* lede paragraphs */
.wfd-m-ld { font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.5; color: var(--wfd-ink); max-width: 44rem; margin-bottom: 1.1em; }

/* dark cards on light */
.wfd-m-cd { background: var(--wfd-ink); color: #f6e8ef; border-radius: 18px; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.wfd-m-cd h3 { color: var(--wfd-on); margin: 4px 0 0; }
.wfd-m-cd p { margin: 0; font-size: .97rem; flex: 1; }
.wfd-m-cd a { color: #f0c9e6; font-weight: 600; }
.wfd-m-cd a:hover { color: var(--wfd-on); }
.wfd-m-cd .wfd-m-ic { color: #f0c9e6; }

/* icons (Phosphor duotone, second tone in accent) */
.wfd-m-ic { width: 34px; height: 34px; color: var(--wfd-plum); flex: none; }
.wfd-m-ic .wfd-m-ic-2 { fill: var(--wfd-bronze); opacity: .32; }
.wfd-m-cd .wfd-m-ic .wfd-m-ic-2 { fill: #f4dde9; opacity: .3; }

/* timeline */
.wfd-m-tm { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: wfdstep; position: relative; }
.wfd-m-tm::before { content: ""; position: absolute; left: 24px; right: 24px; top: 25px; border-top: 2px dashed var(--wfd-bronze); opacity: .5; }
.wfd-m-tm li { position: relative; counter-increment: wfdstep; }
.wfd-m-tm-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wfd-paper); border: 2px solid var(--wfd-plum); margin-bottom: 12px; position: relative; }
.wfd-m-tm-dot .wfd-m-ic { width: 28px; height: 28px; }
.wfd-m-tm h3::before { content: counter(wfdstep) ". "; color: var(--wfd-bronze); }
.wfd-m-tm p { font-size: .96rem; }

/* multi-column lists */
.wfd-m-cl { column-count: 2; column-gap: 36px; }
.wfd-m-cl > * { break-inside: avoid; }
.wfd-m-ls li { margin-bottom: .45em; }
.wfd-m-ol li { margin-bottom: .6em; padding-left: .2em; }

/* checklist */
.wfd-m-ck { list-style: none; padding: 0; margin: 0 0 24px; }
.wfd-m-ck li { display: flex; gap: 14px; margin-bottom: 20px; }
.wfd-m-ck b { display: block; font-family: var(--wfd-head); font-weight: 500; font-size: 1.08rem; }

/* neighborhood notes */
.wfd-m-nt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 8px 0 28px; }
.wfd-m-nt > div { border-top: 3px solid var(--wfd-plum); padding-top: 14px; }

/* towns */
.wfd-m-tw { list-style: none; padding: 0; margin: 0 0 20px; column-count: 3; column-gap: 30px; }
.wfd-m-tw li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--wfd-hair); }
.wfd-m-tw b { font-family: var(--wfd-head); font-weight: 500; }
.wfd-m-tw-lg { column-count: 2; }
.wfd-m-tw-lg li { padding: 12px 0; }

/* faq */
.wfd-m-fq { margin: 10px 0 0; }
.wfd-m-fq > div { break-inside: avoid; margin-bottom: 22px; }
.wfd-m-fq dt { font-family: var(--wfd-head); font-weight: 500; font-size: 1.08rem; margin-bottom: 4px; }
.wfd-m-fq dd { margin: 0; }

/* crack-pattern guide */
.wfd-m-cg { margin: 18px 0 34px; padding: 20px; border-radius: 18px; background: var(--wfd-blush); }
.wfd-m-cg-gr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wfd-m-cg svg { display: block; width: 100%; border-radius: 10px; background: var(--wfd-paper); margin-bottom: 8px; }
.wfd-m-cg p { font-size: .86rem; margin: 0; line-height: 1.45; }
.wfd-m-cg figcaption { font-size: .82rem; color: var(--wfd-ink-soft); margin-top: 12px; }

/* inner page title band */
.wfd-m-pt { background: linear-gradient(180deg, var(--wfd-blush), var(--wfd-paper)); padding: 48px 0 30px; }
.wfd-m-pt .wfd-m-ic { width: 44px; height: 44px; margin-bottom: 10px; }

/* aside boxes */
.wfd-m-bx { background: var(--wfd-on); border: 1px solid var(--wfd-hair); border-radius: 16px; padding: 20px; }
.wfd-m-bx .wfd-m-bt { display: block; text-align: center; margin-bottom: 8px; }
.wfd-m-sn { display: grid; gap: 2px; }
.wfd-m-sn a { padding: 7px 0; border-bottom: 1px solid var(--wfd-hair); text-decoration: none; color: var(--wfd-ink); }
.wfd-m-sn a:hover { color: var(--wfd-plum); }
.wfd-m-sn p { font: 700 .95rem/1.2 var(--wfd-head); margin: 0 0 6px; }

/* closing band */
.wfd-m-cx { background: var(--wfd-plum); color: var(--wfd-on); padding: 64px 0; text-align: center; }
.wfd-m-cx h2 { color: var(--wfd-on); }
.wfd-m-cx .wfd-m-ld { color: var(--wfd-on); margin-left: auto; margin-right: auto; }
.wfd-m-cx .wfd-m-bt { background: var(--wfd-on); color: var(--wfd-plum); border-color: var(--wfd-on); }
.wfd-m-cx .wfd-m-bt-al { background: transparent; color: var(--wfd-on); border-color: var(--wfd-on); }
.wfd-m-cx .wfd-m-mc, .wfd-m-cx .wfd-m-hl { color: #f7e6f0; }
.wfd-m-cx a.wfd-m-tx { color: var(--wfd-on); }

/* inner-page closing strip */
.wfd-m-nx { border-top: 2px solid var(--wfd-blush); margin-top: 30px; padding-top: 22px; }

/* footer line + disclosure */
.wfd-m-fl { margin: 0 0 6px; }
.wfd-m-fl a { color: inherit; }
.wfd-m-fl span + span::before { content: " \00b7 "; }
.wfd-m-dc { margin: 0; }

/* mobile call bar */
.wfd-m-cb { display: none; }

/* ============ 4. STATE ============ */
.wfd-is-on { color: var(--wfd-ink) !important; border-bottom-color: var(--wfd-plum) !important; font-weight: 600 !important; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .wfd-l-sp { grid-template-columns: minmax(0, 1fr); }
  .wfd-l-as { position: static; }
  .wfd-m-tm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wfd-m-tm::before { display: none; }
  .wfd-m-nt { grid-template-columns: minmax(0, 1fr); }
  .wfd-m-cg-gr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wfd-m-fm { grid-template-columns: 1fr 1fr; }
  .wfd-m-fm .wfd-m-fm-wd { grid-column: 1 / -1; }
  .wfd-m-tw { column-count: 2; }
}
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
  .wfd-l-hd .wfd-l-wr { grid-template-columns: 1fr auto; padding-top: 10px; }
  .wfd-m-nv { grid-column: 1 / -1; grid-row: 2; margin: 0 -20px; padding: 0 12px; }
  .wfd-m-lg, .wfd-m-ph { padding-bottom: 4px; }
  .wfd-m-ph small { display: none; }
  .wfd-l-sc { padding: 50px 0; }
  .wfd-m-hr { padding-top: 38px; background-size: 100% calc(100% - 70px); }
  .wfd-m-st { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .wfd-m-tl { min-height: 0; }
  .wfd-m-fm, .wfd-m-fm-fu { grid-template-columns: minmax(0, 1fr); }
  .wfd-m-fm > * { grid-column: 1 / -1; }
  .wfd-m-cl, .wfd-m-tw, .wfd-m-tw-lg { column-count: 1; }
  .wfd-m-tm { grid-template-columns: minmax(0, 1fr); }
  .wfd-m-cb { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--wfd-ink); box-shadow: 0 -4px 18px rgba(40, 27, 42, .25); }
  .wfd-m-cb a { padding: 15px 8px; text-align: center; color: var(--wfd-on); font-weight: 600; text-decoration: none; font-size: .95rem; }
  .wfd-m-cb a + a { background: var(--wfd-plum); }
}
@media (max-width: 420px) {
  .wfd-m-lg { font-size: 1rem; }
  .wfd-m-ph a { font-size: .95rem; }
  .wfd-m-cg-gr { grid-template-columns: minmax(0, 1fr); }
}
