/* ==========================================================================
   KGS Custom Building LLC — Joinery Workshop Theme
   Palette:
     paper       #F4EEE2  (shaving paper body)
     ink         #2E2820  (bench ink text)
     brass       #A5722C  (vise brass accent)
     till        #262119  (till deep wells / footer)
     cream       #EDE4D2  (shave cream panels)
     tan         #D6C4A4  (rasp tan)
     iron        #5E5A52  (plane iron secondary)
     ferrous     #9C4028  (marking knife scribe — restricted)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", "Nimbus Roman", serif;
  line-height: 1.7;
  background-color: #F4EEE2;
  color: #2E2820;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #A5722C;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", "Nimbus Roman", serif;
  color: #2E2820;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #262119;
  color: #EDE4D2;
  padding: 10px 16px;
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ==========================================================================
   NAVIGATION — SAW TILL HEADER  (.joinbench)
   ========================================================================== */

.joinbench {
  background-color: #262119;
  border-bottom: 6px solid #A5722C;
  position: sticky;
  top: 0;
  z-index: 40;
}

.joinbench-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.joinbench-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.vise-glyph {
  width: 30px;
  height: 30px;
  border: 3px solid #A5722C;
  border-radius: 4px;
  position: relative;
  background-color: #332C22;
  flex: 0 0 auto;
}

.vise-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background-color: #A5722C;
}

.vise-glyph::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 3px;
  width: 8px;
  height: 4px;
  background-color: #A5722C;
}

.joinbench-plate {
  color: #EDE4D2;
  font-size: 1.06rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  border: 2px solid #A5722C;
  padding: 6px 14px;
  background-color: #332C22;
  border-radius: 3px;
}

.joinbench-pockets {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.sawpocket {
  display: block;
  color: #EDE4D2;
  background-color: #332C22;
  border: 1px solid #5E5A52;
  border-top: 3px solid #A5722C;
  padding: 12px 16px 10px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sawpocket:hover,
.sawpocket:focus {
  background-color: #A5722C;
  color: #262119;
  text-decoration: none;
}

.sawpocket-a { transform: rotate(-1.4deg); }
.sawpocket-b { transform: rotate(0.8deg); }
.sawpocket-c { transform: rotate(-0.6deg); }
.sawpocket-d { transform: rotate(1.5deg); }
.sawpocket-e { transform: rotate(-1deg); }

.joinbench-toggle {
  display: none;
  margin-left: auto;
  background-color: #A5722C;
  color: #262119;
  border: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 3px;
}

/* ==========================================================================
   HERO — SHOOTING BOARD BAY  (.dovetailbay)
   ========================================================================== */

.dovetailbay {
  padding: 56px 0 0;
}

.bay-headline {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.3em;
}

.bay-headline .bay-display {
  display: block;
  font-size: 1.5em;
  color: #9C4028;
  letter-spacing: 0.02em;
}

.bay-headline .bay-beat {
  display: block;
}

.bay-lede {
  max-width: 760px;
  font-size: 1.1rem;
  margin-bottom: 1.1em;
}

.bay-lede-link {
  display: inline-block;
  color: #A5722C;
  font-weight: bold;
  border-bottom: 2px solid #A5722C;
  padding-bottom: 2px;
}

.bay-lede-link:hover,
.bay-lede-link:focus {
  color: #262119;
  border-bottom-color: #262119;
  text-decoration: none;
}

.bay-lede-link::after {
  content: " \2192";
}

.bench-band {
  background-color: #EDE4D2;
  border-top: 4px solid #D6C4A4;
  border-bottom: 4px solid #D6C4A4;
  padding: 34px 0 0;
  margin-top: 8px;
}

.bench-band-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 34px;
  align-items: end;
}

.bay-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #A5722C;
  color: #262119;
  font-weight: bold;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 18px 28px;
  margin-top: 30px;
  width: 100%;
  border: none;
}

.bay-cta-bar:hover,
.bay-cta-bar:focus {
  background-color: #262119;
  color: #F4EEE2;
  text-decoration: none;
}

.bay-cta-bar .cta-arrow {
  font-size: 1.4rem;
}

/* --- tail vise device --- */
.tailvise {
  position: relative;
  height: 210px;
  background-color: #D6C4A4;
  border: 3px solid #2E2820;
  border-radius: 4px;
  padding: 16px;
}

.tailvise-jaw {
  height: 24px;
  background-color: #F4EEE2;
  border: 2px solid #2E2820;
  margin-bottom: 10px;
}

.tailvise-screw {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 96px;
  height: 16px;
  background-color: #A5722C;
  border: 2px solid #2E2820;
  border-radius: 8px;
}

.tailvise-screw::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #A5722C;
  border: 3px solid #2E2820;
}

.tailvise-handle {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 120px;
  height: 12px;
  margin-left: -60px;
  background-color: #2E2820;
  border-radius: 6px;
}

.tailvise-label {
  position: absolute;
  left: 16px;
  bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5E5A52;
}

/* --- dovetail bay device --- */
.dovetail-face {
  background-color: #F4EEE2;
  border: 3px solid #2E2820;
  border-radius: 4px;
  padding: 10px;
}

.dovetail-row {
  display: flex;
  height: 42px;
}

.dovetail-row + .dovetail-row {
  margin-top: 6px;
}

.dtail {
  flex: 1;
  background-color: #EDE4D2;
  border: 2px solid #2E2820;
  margin-right: 6px;
}

.dtail:last-child {
  margin-right: 0;
}

.dtail.pin {
  background-color: #D6C4A4;
  position: relative;
}

.dtail.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background-color: #5E5A52;
}

.dovetail-caption {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5E5A52;
  margin-top: 10px;
}

/* --- marking gauge rail --- */
.gauge-rail {
  background-color: #D6C4A4;
  border: 3px solid #2E2820;
  border-radius: 4px;
  padding: 18px 16px;
  height: 210px;
  position: relative;
}

.gauge-stem {
  height: 14px;
  background-color: #F4EEE2;
  border: 2px solid #2E2820;
  margin-bottom: 18px;
}

.gauge-stem.gauge-stem-two {
  margin-top: 4px;
}

.gauge-thumb {
  position: absolute;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #A5722C;
  border: 2px solid #2E2820;
}

.gauge-thumb.thumbscrew-a { left: 24px; }
.gauge-thumb.thumbscrew-b { left: 92px; }
.gauge-thumb.thumbscrew-c { right: 22px; top: 60px; }

.shavings-curl {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  height: 40px;
  border-bottom: 3px dashed #5E5A52;
  border-radius: 0 0 40px 40px;
}

.gauge-label {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5E5A52;
}

/* ==========================================================================
   GENERIC SECTION SHELLS
   ========================================================================== */

.section {
  padding: 58px 0;
}

.section-cream {
  background-color: #EDE4D2;
}

.section-till {
  background-color: #262119;
  color: #EDE4D2;
}

.section-till h2,
.section-till h3 {
  color: #F4EEE2;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.kicker {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A5722C;
  border-bottom: 2px solid #A5722C;
  padding-bottom: 3px;
  margin-bottom: 14px;
}

.kicker-iron {
  color: #5E5A52;
  border-bottom-color: #5E5A52;
}

/* ==========================================================================
   DOVETAIL LADDER — work tickets  (.mortisewell)
   ========================================================================== */

.mortisewell {
  padding: 58px 0 40px;
}

.ticket-ladder {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.workticket {
  background-color: #EDE4D2;
  border: 2px solid #2E2820;
  border-left: 8px solid #A5722C;
  padding: 22px 26px;
  position: relative;
  max-width: 940px;
}

.ticket-a { margin-left: 0; max-width: 900px; }
.ticket-b { margin-left: 42px; max-width: 860px; }
.ticket-c { margin-left: 18px; max-width: 930px; }
.ticket-d { margin-left: 66px; max-width: 840px; }
.ticket-e { margin-left: 8px; max-width: 950px; }
.ticket-f { margin-left: 52px; max-width: 880px; }

.ticket-mark {
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: #5E5A52;
  margin-bottom: 8px;
  display: block;
}

.ticket-title {
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

.ticket-title a {
  color: #2E2820;
}

.ticket-title a:hover,
.ticket-title a:focus {
  color: #A5722C;
  text-decoration: none;
}

.ticket-text {
  margin-bottom: 0;
  color: #2E2820;
}

/* decorative ticket marks — irregular, never a fixed pattern */
.ticket-free .ticket-thumbscroll {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #A5722C;
  border: 2px solid #2E2820;
}

.ticket-pick .ticket-penciltick {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 30px;
  height: 0;
  border-top: 3px solid #9C4028;
  transform: rotate(-30deg);
}

/* ==========================================================================
   ACCENT STRIP — RASP BAND  (.raspband)
   ========================================================================== */

.raspband {
  background-color: #262119;
  border-top: 5px solid #A5722C;
  border-bottom: 5px solid #A5722C;
  padding: 20px 0;
}

.raspband-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.rasp-handles {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.rasp-handle {
  width: 20px;
  border-radius: 4px 4px 8px 8px;
  background-color: #D6C4A4;
  border: 2px solid #5E5A52;
}

.rasp-handle-h1 { height: 34px; }
.rasp-handle-h2 { height: 46px; }
.rasp-handle-h3 { height: 28px; }

.rasp-sentence {
  color: #EDE4D2;
  margin: 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   GENERIC CONTENT BLOCKS (services, contact, faq, process)
   ========================================================================== */

.prose-block {
  max-width: 820px;
}

.prose-block p {
  color: #2E2820;
}

.service-detail {
  background-color: #F4EEE2;
  border: 2px solid #D6C4A4;
  border-top: 5px solid #A5722C;
  padding: 26px 28px;
  margin-bottom: 24px;
}

.service-detail h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.service-detail p:last-child {
  margin-bottom: 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: #EDE4D2;
  border-left: 6px solid #A5722C;
  padding: 18px 24px;
}

.process-num {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  color: #5E5A52;
  flex: 0 0 auto;
  min-width: 40px;
}

.process-body h4 {
  margin-bottom: 0.3em;
}

.process-body p {
  margin-bottom: 0;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-item {
  background-color: #EDE4D2;
  border: 2px solid #D6C4A4;
  padding: 20px 22px;
}

.stat-item strong {
  display: block;
  font-size: 1.05rem;
  color: #A5722C;
  margin-bottom: 6px;
}

.stat-item span {
  color: #2E2820;
}

/* --- accordion --- */
.accordion {
  border: 2px solid #D6C4A4;
  background-color: #F4EEE2;
  margin-bottom: 14px;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background-color: #EDE4D2;
  color: #2E2820;
  border: none;
  border-left: 6px solid #A5722C;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: bold;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.accordion-trigger:hover,
.accordion-trigger:focus {
  background-color: #D6C4A4;
}

.accordion-trigger .acc-sign {
  font-family: "Courier New", monospace;
  color: #A5722C;
}

.accordion-panel {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-panel.open {
  padding: 18px 20px;
  max-height: 600px;
}

.accordion-panel p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background-color: #EDE4D2;
  border: 2px solid #D6C4A4;
  border-top: 5px solid #A5722C;
  padding: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5E5A52;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #2E2820;
  background-color: #F4EEE2;
  border: 2px solid #5E5A52;
  padding: 11px 13px;
  border-radius: 3px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #A5722C;
}

.form-submit {
  background-color: #A5722C;
  color: #262119;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 14px 34px;
  cursor: pointer;
  border-radius: 3px;
}

.form-submit:hover,
.form-submit:focus {
  background-color: #262119;
  color: #F4EEE2;
}

.form-note {
  font-size: 0.9rem;
  color: #5E5A52;
  margin-top: 12px;
}

.contact-card {
  background-color: #262119;
  color: #EDE4D2;
  border: 2px solid #A5722C;
  padding: 26px 28px;
  margin-bottom: 20px;
}

.contact-card h3 {
  color: #F4EEE2;
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.contact-card p {
  margin-bottom: 0.6em;
}

.contact-card a {
  color: #D6C4A4;
}

.contact-card a:hover,
.contact-card a:focus {
  color: #F4EEE2;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #5E5A52;
  padding: 8px 0;
  font-size: 0.96rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   FOOTER — TILL ROOM  (.sawtill)
   ========================================================================== */

.sawtill {
  background-color: #262119;
  border-top: 8px solid #A5722C;
  color: #EDE4D2;
  padding: 46px 0 0;
}

.sawtill-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.till-lidplate {
  border: 2px solid #A5722C;
  background-color: #332C22;
  padding: 22px 24px;
  border-radius: 3px;
}

.till-lidplate h3 {
  color: #F4EEE2;
  margin-bottom: 0.5em;
  font-size: 1.2rem;
}

.till-lidplate p {
  color: #D6C4A4;
  margin-bottom: 0;
  font-size: 0.96rem;
}

.till-colhead {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F4EEE2;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.till-colhead .vise-glyph {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.till-colhead .vise-glyph::before {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
}

.till-colhead .vise-glyph::after {
  left: -7px;
  bottom: 2px;
  width: 6px;
  height: 3px;
}

.till-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.till-links li {
  margin-bottom: 9px;
}

.till-links a {
  color: #EDE4D2;
  font-size: 0.98rem;
}

.till-links a:hover,
.till-links a:focus {
  color: #A5722C;
  text-decoration: underline;
}

.sawtill-strip {
  max-width: 1140px;
  margin: 34px auto 0;
  padding: 16px 24px 20px;
  border-top: 1px solid #5E5A52;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  font-size: 0.9rem;
  color: #D6C4A4;
}

.sawtill-strip a {
  color: #D6C4A4;
}

.sawtill-strip a:hover,
.sawtill-strip a:focus {
  color: #F4EEE2;
}

.screw-glyph {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #A5722C;
  border: 2px solid #5E5A52;
  margin-right: 7px;
  vertical-align: middle;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   CTA CLOSING BANDS
   ========================================================================== */

.closing-band {
  background-color: #EDE4D2;
  border-top: 4px solid #D6C4A4;
  padding: 46px 0;
}

.closing-band-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.closing-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.closing-link {
  display: inline-block;
  background-color: #A5722C;
  color: #262119;
  font-weight: bold;
  padding: 14px 30px;
  margin-top: 10px;
  border-radius: 3px;
}

.closing-link:hover,
.closing-link:focus {
  background-color: #262119;
  color: #F4EEE2;
  text-decoration: none;
}

/* ==========================================================================
   WORKSHOP NOTES / two-column editorial
   ========================================================================== */

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.note-card {
  background-color: #F4EEE2;
  border: 2px solid #D6C4A4;
  padding: 24px 26px;
}

.note-card h3 {
  font-size: 1.2rem;
}

.note-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .bench-band-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sawtill-inner {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .joinbench-pockets {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
  }

  .joinbench-pockets.is-open {
    display: flex;
  }

  .joinbench-toggle {
    display: block;
  }

  .sawpocket {
    transform: none;
  }

  .ticket-a,
  .ticket-b,
  .ticket-c,
  .ticket-d,
  .ticket-e,
  .ticket-f {
    margin-left: 0;
    max-width: 100%;
  }
}
