/* BTW Joinery — buyable trade site craft.
   Light / material / photo-led timber and stone look. */

:root {
  --ink: #1f1a14;
  --ink-2: #2c241c;
  --ink-soft: #3d3429;
  --accent: #c48a3a;
  --accent-deep: #8d5f1f;
  --accent-soft: #e0b56a;
  --paper: #f4efe6;
  --sheet: #fffaf3;
  --stone: #e6dccb;
  --stone-2: #d4c8b2;
  --muted: #5c564c;
  --muted-2: #7a7368;
  --line: rgba(31, 26, 20, 0.12);
  --line-strong: rgba(31, 26, 20, 0.22);
  --shadow: 0 24px 60px rgba(31, 26, 20, 0.14);
  --shadow-deep: 0 36px 80px rgba(31, 26, 20, 0.22);
  --glass: rgba(255, 250, 243, 0.78);
  --glass-strong: rgba(255, 250, 243, 0.92);
  --font-display: "Avenir Next Condensed", "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.2rem);
  --shell: min(1180px, calc(100% - (var(--pad) * 2)));
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, p, figure, ul, ol, dl { margin: 0; }
::selection { background: var(--accent); color: #1a140c; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--sheet);
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.shell { width: var(--shell); margin-inline: auto; }

/* Glass sticky header — the signed outbound bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid {
  background: var(--glass);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(31, 26, 20, 0.06);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.wordmark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(31, 26, 20, 0.16);
}
.wordmark strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.wordmark small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--ink-soft);
  opacity: 0.88;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  opacity: 1;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet) !important;
  opacity: 1 !important;
  box-shadow: 0 10px 24px rgba(31, 26, 20, 0.18);
}
.nav-cta:hover { background: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 138, 58, 0.22);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.lede {
  margin-top: 1.15rem;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}
.muted { color: var(--muted); }
.tiny { font-size: 0.86rem; color: var(--muted-2); line-height: 1.45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a140c; }
.btn-primary:hover { background: var(--accent-deep); color: #fffaf3; }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost {
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--sheet); border-color: var(--ink); }
.btn-soft {
  background: var(--stone);
  color: var(--ink);
}
.btn-soft:hover { background: var(--stone-2); }

.hero {
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.8rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}
.hero-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy .lede { max-width: 36rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-meta a { color: var(--ink); font-weight: 700; border-bottom: 1px solid transparent; }
.hero-meta a:hover { border-bottom-color: var(--accent); }

.photo-stack {
  position: relative;
  min-height: clamp(360px, 48vw, 520px);
}
.photo-card {
  position: absolute;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 12, 0.78));
  color: #f4efe7;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.photo-card-main {
  inset: 0 8% 8% 0;
  z-index: 1;
}
.photo-card-float {
  width: min(48%, 240px);
  aspect-ratio: 4/5;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(2.5deg);
}
.photo-card-accent {
  width: min(42%, 210px);
  aspect-ratio: 5/4;
  left: -4%;
  bottom: 12%;
  z-index: 3;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}

.section { padding: clamp(3.4rem, 8vw, 6rem) 0; }
.section-ink {
  background: var(--ink);
  color: var(--sheet);
}
.section-ink .eyebrow { color: var(--accent-soft); }
.section-ink .muted,
.section-ink .lede { color: rgba(245, 240, 232, 0.72); }
.section-stone { background: var(--stone); }
.section-sheet { background: var(--sheet); }
.section-head {
  width: var(--shell);
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}
.section-head p { max-width: 36ch; color: var(--muted); }

.service-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 26, 20, 0.05);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 138, 58, 0.16), transparent 70%);
}
.service-card h3 { margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service-card .card-link {
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-deep);
}
.service-card:hover { border-color: rgba(196, 138, 58, 0.45); transform: translateY(-2px); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }

.work-stage {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
}
.work-feature,
.work-side figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.work-feature img,
.work-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-feature { min-height: 420px; }
.work-side { display: grid; gap: 1.1rem; }
.work-side figure { min-height: 200px; }
.work-feature figcaption,
.work-side figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 12, 0.8));
  color: #f4efe7;
  font-size: 0.82rem;
}

.areas {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.area-pills span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
}
.areas-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform: rotate(1.2deg);
}
.areas-photo img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.cta-band {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.page-hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 1.5rem;
}
.page-hero .shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: end;
}
.page-hero figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-hero img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.prose {
  width: min(720px, var(--shell));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--ink); }

.split {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
.split figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.detail-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 26, 20, 0.05);
  min-height: 240px;
}
.detail-card figure { margin: 0; background: var(--ink); }
.detail-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.detail-card .body { padding: 1.4rem 1.35rem; display: grid; align-content: start; gap: 0.7rem; }
.detail-card p { color: var(--muted); font-size: 0.98rem; }

.contact-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.contact-card,
.form-card {
  border-radius: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact-card h2 { margin-bottom: 0.8rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
}
.contact-list a,
.contact-list strong {
  font-size: 1.08rem;
  font-weight: 700;
}
.form-card h2 { margin-bottom: 0.55rem; }
.form-card .lede { margin-top: 0.4rem; margin-bottom: 1.2rem; max-width: none; font-size: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field { display: grid; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 138, 58, 0.28);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
}
.form-thanks {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #eef6e8;
  border: 1px solid #c3d6a8;
  color: #243016;
}
.form-card.is-sent .form-grid,
.form-card.is-sent .form-actions { display: none; }
.form-card.is-sent .form-thanks { display: block; }
.form-thanks a { color: var(--ink); font-weight: 700; text-decoration: underline; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.site-footer {
  padding: 2.6rem var(--pad) 5.4rem;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-footer a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: var(--pad);
    left: var(--pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 12px;
  }
  .nav-cta { justify-content: center; }
  .hero-grid,
  .section-head,
  .service-grid,
  .work-stage,
  .areas,
  .cta-band,
  .page-hero .shell,
  .split,
  .detail-grid,
  .contact-grid,
  .footer-grid,
  .form-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .photo-stack { min-height: 340px; margin-top: 0.5rem; }
  .photo-card-main { inset: 0 12% 18% 0; }
  .work-feature { min-height: 280px; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-card img { min-height: 200px; aspect-ratio: 16/10; }
  .cta-band .actions { justify-content: flex-start; }
  .wordmark small { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .photo-card-accent { display: none; }
  .photo-card-float { width: 46%; }
  .site-header { height: 68px; }
  :root { --nav-h: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .btn,
  .service-card,
  .site-header,
  .photo-card {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.quote-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quote-card {
  padding: 1.4rem 1.35rem;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 26, 20, 0.05);
}
.quote-card p { color: var(--muted); }
.quote-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.ask {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.ask-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 700;
  box-shadow: var(--shadow-deep);
}
.ask-launcher:hover { background: var(--ink-2); }
.ask-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 138, 58, 0.22);
  flex: none;
}
.ask-panel {
  width: min(380px, calc(100vw - 2.2rem));
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.ask-panel[hidden] { display: none; }
.ask-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}
.ask-head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.ask-head span { display: block; font-size: 0.78rem; color: var(--muted); }
.ask-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}
.ask-close:hover { background: var(--paper); color: var(--ink); }
.ask-body { padding: 1rem 1.05rem 1.15rem; display: grid; gap: 0.9rem; }
.ask-msg { margin: 0; color: var(--muted); font-size: 0.98rem; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
