:root {
  --soot: #1c1a18;
  --soot-2: #2a2724;
  --ash: #8a837b;
  --paper: #f6f1ea;
  --wood: #e9dccb;
  --walnut: #5b3a24;
  --ember: #c4502a;
  --ember-dark: #a33f1e;
  --text: #2a2724;
  --muted: #6b645c;
  --radius: 6px;
  --wrap: 1180px;
  --display: "Zilla Slab", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.hidden { display: none; }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .8em;
}

/* Buttons */
.btn {
  font-family: var(--body);
  display: inline-block;
  padding: .8em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--soot); }
.btn-block { width: 100%; font-size: 1.05rem; padding: 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,26,24,.96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.brand em { font-style: normal; color: var(--ember); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--ember); }
.site-nav .btn { padding: .6em 1.1em; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--soot); padding: 8px 24px 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--soot-2); }
  .site-nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("images/tables/farmhouse-pedestal-table.jpg") center 60% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,24,.25) 0%, rgba(28,26,24,.55) 45%, rgba(28,26,24,.92) 100%);
}
.hero-content { position: relative; padding-top: 120px; padding-bottom: 80px; width: 100%; }
.hero .eyebrow { color: #f0a27f; }
.hero .lede { font-size: 1.2rem; max-width: 560px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Values */
.values { background: var(--soot); color: #e7e1d9; padding: 48px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { color: #fff; }
.values p { color: #bdb5ab; margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-dark { background: var(--soot); color: #e7e1d9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p:not(.eyebrow) { color: #bdb5ab; }
.section-wood { background: var(--wood); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: 600 .95rem var(--body);
  padding: .5em 1.1em; border-radius: 999px;
  border: 1.5px solid #cfc5b8; background: transparent; color: var(--text); cursor: pointer;
}
.filter:hover { border-color: var(--walnut); }
.filter.is-active { background: var(--soot); border-color: var(--soot); color: #fff; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery li[hidden] { display: none; }
.tile { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--wood); }
.tile:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.fine { font-size: .9rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--ember); padding-top: 20px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--ember); display: block; margin-bottom: 8px; }
.steps p { color: #bdb5ab; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 20px 50px rgba(28,26,24,.18); }
.about-copy p:not(.eyebrow) { color: #4a443e; }
.signature-logo { width: 120px; border-radius: 50%; margin-top: 24px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .about-photo img { aspect-ratio: 4 / 4; } }

/* FAQ */
details { background: var(--paper); border-radius: var(--radius); margin-bottom: 12px; padding: 0 22px; }
summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--ember); }
details[open] summary::after { content: "–"; }
details p { color: #4a443e; padding-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 4fr 6fr; gap: 64px; align-items: start; }
.contact-intro p:not(.eyebrow) { color: #bdb5ab; }
.contact-direct a { color: #fff; font-weight: 600; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid #47423c; color: #e7e1d9;
  transition: background .2s, border-color .2s;
}
.social a:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.site-footer a { color: #d6cfc6; text-decoration: none; }
.site-footer a:hover { color: var(--ember); }
.signoff { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.contact-logo { width: 160px; height: auto; margin-top: 32px; opacity: .9; }
.inquiry { background: var(--soot-2); padding: 32px; border-radius: var(--radius); }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: block; font-weight: 600; font-size: .92rem; color: #e7e1d9; margin-bottom: 16px; }
.inquiry small { font-weight: 400; color: var(--ash); }
.inquiry input, .inquiry select, .inquiry textarea {
  display: block; width: 100%; margin-top: 6px;
  font: 400 1rem var(--body); color: #fff;
  background: var(--soot); border: 1.5px solid #47423c; border-radius: var(--radius);
  padding: .7em .8em;
}
.inquiry input::placeholder, .inquiry textarea::placeholder { color: #7d766e; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--ember); }
.inquiry textarea { resize: vertical; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .contact-logo { display: none; } }
@media (max-width: 560px) { .inquiry { padding: 22px; } .inquiry .row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: #121110; color: var(--ash); padding: 36px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,9,8,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* Thanks page */
.thanks { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.thanks img { margin: 0 auto 24px; }
