/* Sutton Lumber. Written fresh for this site. Everything is a horizontal band. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--face-body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--bark);
  background: var(--mill);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: var(--saw); color: var(--mill); }
* { scrollbar-color: var(--timber) var(--kraft); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--kraft); }
::-webkit-scrollbar-thumb { background: var(--timber); border: 3px solid var(--kraft); }

:focus-visible { outline: 3px solid var(--saw); outline-offset: 2px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--face-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.26; }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--t-lead); }
.dim { color: var(--pencil); }
.small { font-size: var(--t-small); }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bark); color: var(--mill);
  padding: 14px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); margin-inline: auto; }

/* ---------- masthead: three rules of increasing weight ---------- */
.masthead { position: sticky; top: 0; z-index: 60; background: var(--mill); }
.masthead__rule-top { height: 1px; background: var(--rule); }
.masthead__nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  min-height: 44px;
}
.masthead__rule-mid { height: 3px; background: var(--timber); }
.masthead__name-row {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  padding: 10px 0 12px;
}
.masthead__rule-base { height: 7px; background: var(--bark); }

.wordmark {
  display: inline-block;
  font-family: var(--face-display);
  font-weight: 700;
  font-size: clamp(1.42rem, 1.05rem + 1.5vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--bark);
}
.wordmark span { color: var(--timber); }
.wordmark__sub {
  display: block;
  font-family: var(--face-body);
  font-size: 0.735rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  color: var(--pencil);
  margin-top: 5px;
  line-height: 1;
}

.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--t-small);
  color: var(--pencil);
  padding: 12px 0;
  display: inline-flex; align-items: center;
  min-height: 44px;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 2px; background: var(--saw);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav a:hover { color: var(--bark); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--bark); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--timber); }

.masthead__hours { font-size: 0.80rem; color: var(--pencil); white-space: nowrap; }

.navtoggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px;
  padding: 8px 12px;
  background: none; border: 1px solid var(--rule); border-radius: 0;
  font: inherit; font-size: var(--t-small); color: var(--bark);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform 120ms var(--ease);
}
.navtoggle:hover { background: var(--kraft); }
.navtoggle:active { transform: translateY(2px); }
.navtoggle svg { width: 18px; height: 18px; }

@media (max-width: 800px) {
  :root { --header-h: 104px; }
  .navtoggle { display: inline-flex; }
  .masthead__hours { display: none; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--mill);
    border-bottom: 7px solid var(--bark);
    padding: var(--s1) var(--gutter) var(--s3);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav a::after { bottom: 0; }
  .nav__phone { color: var(--timber); font-weight: 600; }
}

/* ---------- bands ---------- */
.band { position: relative; padding-block: var(--band-y); }
.band--mill { background: var(--mill); }
.band--kraft { background: var(--kraft); }
.band--kraft-2 { background: var(--kraft-2); }
.band--dark { background: var(--bark); color: var(--mill); }
.band--dark h2, .band--dark h3 { color: var(--mill); }
.band--dark .dim { color: #C4B49F; }
.band--dark a:not(.btn) { color: var(--mill); }
.band--dark .dim, .band--dark .small.dim { color: #C4B49F; }

.band--mill::before, .band--kraft::before, .band--kraft-2::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 600px 120px;
  opacity: .02;
  pointer-events: none;
}
.band > * { position: relative; }
.band + .band { border-top: 1px solid var(--rule); }
.band--dark + .band, .band + .band--dark { border-top-color: var(--rule-dark); }

/* heading with drifting grain behind it */
.headline { position: relative; display: inline-block; padding: 6px 0 10px; }
.headline::before {
  content: ""; position: absolute; left: -8%; right: -8%; top: 6%; bottom: 6%;
  background-image: var(--grain);
  background-size: 760px 150px;
  opacity: .05; z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}
.js .headline::before { animation: drift 40s linear infinite; }
@keyframes drift { from { background-position: 0 0; } to { background-position: 760px 0; } }
.band--dark .headline::before { opacity: .085; }

.band__head { margin-bottom: var(--s5); }
.band__head p { margin-top: var(--s2); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bark); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: clamp(460px, 78vh, 760px);
  object-fit: cover; object-position: center 62%;
  filter: saturate(.94);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(36,25,15,.34) 0%, rgba(36,25,15,.10) 34%, rgba(36,25,15,.66) 100%);
}
.hero__board {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bark);
  border-top: 3px solid var(--saw);
  padding-block: clamp(20px, 3.2vw, 34px);
  color: var(--mill);
}
.hero__board::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-size: 600px 120px;
  opacity: .07; pointer-events: none;
}
.hero__board > .wrap { position: relative; }
.hero h1 { color: var(--mill); max-width: 20ch; overflow: hidden; }
.hero h1 > span { display: inline-block; }
.hero__sub { margin-top: var(--s2); color: #D9C9B2; font-size: var(--t-lead); max-width: 52ch; }
.hero__cta { margin-top: var(--s3); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero__media img { height: clamp(300px, 46vh, 400px); }
  .hero__board { position: static; }
}
/* keep the sticky call bar from sitting on top of the hero CTA */
@media (max-width: 800px) {
  .hero__board { padding-bottom: calc(clamp(20px, 3.2vw, 34px) + 24px); }
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  border: 0; border-radius: 0;
  background: var(--saw); color: var(--bark);
  font-family: var(--face-body); font-size: 1rem; font-weight: 600;
  /* colour must survive .band--dark link rules */
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), transform 120ms var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-1);
}
.btn:hover { background: #C9862A; color: var(--bark); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { background: var(--rule); color: var(--pencil); cursor: not-allowed; transform: none; box-shadow: none; }

.btn--dark { background: var(--bark); color: var(--mill); }
.btn--dark:hover { background: var(--bark-2); }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600; font-size: var(--t-small);
  color: var(--mill); text-decoration: none;
  border-bottom: 2px solid var(--saw);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.tlink:hover { color: var(--saw); }
.tlink:active { transform: translateY(2px); }
.band--mill .tlink, .band--kraft .tlink, .band--kraft-2 .tlink { color: var(--bark); }
.band--mill .tlink:hover, .band--kraft .tlink:hover, .band--kraft-2 .tlink:hover { color: var(--timber); border-color: var(--timber); }
.tlink svg { width: 15px; height: 15px; }

.textlink {
  color: var(--timber); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.textlink:hover { color: var(--bark); border-color: var(--saw); }
.band--dark .textlink { color: var(--saw); border-bottom-color: var(--rule-dark); }
.band--dark .textlink:hover { color: var(--mill); border-color: var(--saw); }

/* ---------- figures with horizontal wipe ---------- */
figure { margin: 0; }
.fig { position: relative; overflow: hidden; }
.fig img { width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--pencil); max-width: 46ch; }
.band--dark .fig figcaption { color: #B7A793; }

/* ---------- the stack signature ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 64px); align-items: start; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } }

.stack__svg { width: 100%; max-width: 620px; height: auto; display: block; }
.stack__note { font-size: var(--t-small); color: #B7A793; margin-top: var(--s3); max-width: 46ch; }

.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--s2);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.board-list li:first-child { border-top: 1px solid var(--rule-dark); }
.board-list__mark { width: 26px; height: 12px; margin-top: 6px; }
.board-list h3 { font-size: 1.06rem; }
.board-list p { margin: 4px 0 0; font-size: var(--t-small); color: #BFAF9B; max-width: 44ch; }
.board-list .verified { color: var(--saw); font-weight: 600; }

/* ---------- ruled fact rows ---------- */
.rows { border-top: 1px solid var(--rule); margin: 0; padding: 0; }
.rows > div, .rows > li {
  display: grid; grid-template-columns: minmax(120px, 200px) 1fr;
  gap: var(--s2) var(--s4);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.rows dt, .rows .k { font-weight: 600; color: var(--pencil); font-size: var(--t-small); }
.rows dd, .rows .v { margin: 0; }
ul.rows { list-style: none; }
.band--dark .rows { border-top-color: var(--rule-dark); }
.band--dark .rows > div, .band--dark .rows > li { border-bottom-color: var(--rule-dark); }
.band--dark .rows dt, .band--dark .rows .k { color: #A08D77; }
@media (max-width: 620px) { .rows > div, .rows > li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.25fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 860px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }

/* staggered picture strip: unequal widths, uniform crop height, so it is not a card row */
.strip { display: grid; grid-template-columns: 1.55fr 1fr 0.86fr; gap: clamp(16px, 2.2vw, 34px); align-items: start; }
.strip .fig img { height: clamp(230px, 25vw, 340px); object-fit: cover; }
.strip .fig:nth-child(2) { margin-top: clamp(24px, 3.4vw, 56px); }
.strip .fig:nth-child(3) { margin-top: clamp(48px, 6.8vw, 108px); }
@media (max-width: 780px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .fig img { height: clamp(180px, 34vw, 240px); }
  .strip .fig:nth-child(3) { grid-column: 1 / -1; }
  .strip .fig:nth-child(3) img { height: clamp(200px, 46vw, 280px); }
  .strip .fig:nth-child(2), .strip .fig:nth-child(3) { margin-top: 0; }
}

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s3);
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(s);
  font-family: var(--face-display); font-weight: 700; font-size: 1.4rem;
  color: var(--timber); line-height: 1.1;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 4px 0 0; font-size: var(--t-small); color: var(--pencil); }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 18px 0; min-height: 52px;
  cursor: pointer; list-style: none;
  font-family: var(--face-display); font-weight: 600; font-size: 1.03rem;
  transition: color var(--dur) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--timber); }
.acc summary svg { width: 16px; height: 16px; flex: none; transition: transform 240ms var(--ease); }
.acc details[open] summary svg { transform: rotate(90deg); }
.acc .acc__body { padding: 0 0 20px; }
.acc .acc__body p { font-size: var(--t-small); color: var(--pencil); }

/* ---------- form ---------- */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--t-small); font-weight: 600; }
.field .hint { font-size: 0.82rem; color: var(--pencil); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem;
  padding: 13px 14px;
  min-height: 48px;
  border: 1px solid var(--rule); border-radius: 0;
  background: var(--mill); color: var(--bark);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--pencil); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--saw);
  box-shadow: inset 0 0 0 2px var(--saw);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 620px) { .field-pair { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formnote {
  display: none;
  padding: 18px 20px;
  background: var(--bark); color: var(--mill);
  border-left: 5px solid var(--saw);
}
.formnote[data-show="true"] { display: block; }
.formnote p { margin: 0; font-size: var(--t-small); max-width: none; }
.formnote a { color: var(--saw); font-weight: 600; }

/* ---------- map ---------- */
.map {
  height: clamp(320px, 46vh, 460px);
  border: 1px solid var(--rule);
  background: var(--kraft);
}
.map:focus-visible { outline: 3px solid var(--saw); outline-offset: 2px; }
.pin {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--saw); color: var(--bark);
  border: 3px solid var(--bark);
  font-family: var(--face-display); font-weight: 700; font-size: 13px;
}
.pin--town { width: 15px; height: 15px; background: var(--mill); border: 3px solid var(--timber); }
.leaflet-popup-content-wrapper { border-radius: 0; }
.leaflet-popup-content { font-family: var(--face-body); font-size: 0.9rem; }

/* ---------- footer ---------- */
.foot { background: var(--bark); color: #C4B49F; padding-block: 0 var(--s4); }
.foot__rules span { display: block; background: var(--timber); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); padding-top: var(--s5); }
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h2 {
  font-size: 0.79rem; letter-spacing: .06em; color: #B6A48C;
  font-family: var(--face-body); font-weight: 600; margin-bottom: var(--s2);
}
.foot__name { font-family: var(--face-display); font-size: 1.3rem; color: var(--mill); font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a, .foot address a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #C4B49F; text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.foot li a:hover, .foot address a:hover { color: var(--saw); }
.foot address { font-style: normal; line-height: 1.75; }
.foot .dim, .foot .small.dim { color: #B6A48C; }
.foot__legal {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--rule-dark);
  font-size: 0.83rem; color: #B6A48C;
}
.foot__legal p { max-width: 78ch; margin-bottom: 8px; }

/* ---------- sticky mobile bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  border-top: 3px solid var(--saw);
  background: var(--bark);
  transition: transform 260ms var(--ease);
}
.callbar[data-hidden="true"] { transform: translateY(110%); }
.callbar__in { display: grid; grid-template-columns: 1fr 1fr; }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 8px;
  color: var(--mill); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: background var(--dur) var(--ease);
}
.callbar a:first-child { background: var(--saw); color: var(--bark); }
.callbar a:first-child:active { background: #C9862A; }
.callbar a:last-child:active { background: var(--bark-2); }
.callbar svg { width: 17px; height: 17px; }
@media (max-width: 800px) {
  .callbar { display: block; }
  body { padding-bottom: 57px; }
}

/* ---------- motion: armed only when JS is on ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .fig--wipe img { clip-path: inset(0 100% 0 0); }
.js .hero__board { opacity: 0; }
.js .hero h1 > span { transform: translateY(105%); }
.js .hero__sub, .js .hero__cta { opacity: 0; }
.js .stack__board, .js .stack__sticker { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
  }
  .js .reveal, .js .hero__board, .js .hero__sub, .js .hero__cta,
  .js .stack__board, .js .stack__sticker {
    opacity: 1; transform: none;
  }
  .js .hero h1 > span { transform: none; }
  .js .fig--wipe img { clip-path: none; }
  .js .headline::before { animation: none; }
}
