/* Wescoat Millwork. Plain CSS, no build step. */
:root {
  --ink: #14181d;
  --ink-soft: #1d232b;
  --navy: #24405f;
  --ivory: #f6f2ea;
  --bone: #ebe4d8;
  --line: #d9d0c1;
  --walnut: #6a3b22;
  --brass: #b3925c;
  --text: #2a2d31;
  --muted: #6d6a64;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: 72px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.005em; }
h2 { font-size: clamp(38px, 5vw, 64px); color: var(--ink); margin-top: 14px; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: #fff;
  transition: background-color .35s ease, color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.is-solid {
  background: rgba(246, 242, 234, 0.96);
  color: var(--ink);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font-size: 15px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; }
.brand-mark { width: 20px; height: 31px; flex: none; color: var(--brass); }
.site-header.is-solid .brand-mark { color: var(--walnut); }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a { font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a:focus-visible { border-bottom-color: currentColor; }
.nav .nav-cta { border: 1px solid currentColor; padding: 9px 18px; }
.nav .nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--ink); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,17,.55) 0%, rgba(12,14,17,.18) 30%, rgba(12,14,17,.45) 62%, rgba(12,14,17,.9) 100%); }
.hero-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 9vh, 110px); }
.hero h1 { font-size: clamp(52px, 9vw, 124px); margin: 18px 0 22px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: #ead9b8; }
.hero .eyebrow { color: #e3cfa6; }
.hero-sub { max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; padding: 17px 30px; border: 1px solid transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--brass); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #fff; color: var(--ink); }

/* Statement */
.statement { max-width: 980px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); text-align: center; }
.lede { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.35; color: var(--ink); margin-top: 26px; }

/* Section heads */
.section-head { max-width: 720px; }
.section-note { margin-top: 18px; color: var(--muted); max-width: 34em; }

/* Doors gallery */
.doors { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 11vw, 150px); }
.gallery { column-count: 3; column-gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(40px, 5vw, 70px); }
.gallery figure { break-inside: avoid; margin-bottom: clamp(30px, 3.4vw, 50px); }
.gallery img { width: 100%; background: var(--bone); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
figcaption span { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.gallery-more { text-align: center; margin-top: 20px; color: var(--muted); }
.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; white-space: nowrap; }
.text-link:hover { color: var(--walnut); }

/* Process */
.process { background: var(--bone); }
.process-inner { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.steps { margin-top: clamp(34px, 4vw, 56px); border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 22px; color: var(--brass); padding-top: 2px; }
.steps p { margin-top: 6px; max-width: 36em; }
.process-photo img { width: 100%; }

/* Millwork */
.millwork { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.services article { padding: 28px 22px 28px 0; }
.services article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.services p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: clamp(30px, 4vw, 50px); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bone); }
.strip figcaption { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Inquire */
.inquire { background: var(--ink); color: #d9d4ca; }
.inquire-inner { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.inquire h2 { color: #fff; }
.inquire-copy > p:not(.eyebrow) { margin-top: 22px; max-width: 30em; }
.contact-list { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-family: var(--serif); font-size: 24px; color: #fff; align-items: baseline; }
.contact-list span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: #ead9b8; }

.form { display: grid; gap: 22px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: #a9a398; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); color: #fff;
  font-family: var(--sans); font-weight: 300; font-size: 17px; padding: 8px 0 10px; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { min-height: 1.6em; font-size: 15px; color: #ead9b8; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ink-soft); color: #a9a398; text-align: center; padding: 60px var(--gutter) 44px; font-size: 14px; }
.footer-brand .brand-mark { width: 26px; height: 40px; margin: 0 auto 16px; display: block; }
.footer-brand p { font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase; color: #fff; }
.footer-brand .footer-tag { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; text-transform: none; color: #cfc6b4; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 30px; }
.footer-links a { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 30px; font-size: 13px; color: #77726a; }

/* Focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1020px) {
  .gallery { column-count: 2; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services article, .services article + article { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .process-inner, .inquire-inner { grid-template-columns: 1fr; }
  .process-photo { max-width: 460px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-word { font-size: 12px; letter-spacing: 0.26em; }
  .brand { gap: 9px; }
  .nav .nav-cta { padding: 8px 14px; }
  .hero-img { object-position: 50% 50%; }
  .gallery { column-count: 1; }
  .services { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; font-size: 21px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .btn { padding: 15px 22px; }
}
