/* DMM Carpentry: plain CSS, no frameworks */
:root {
  --bg: #faf6ef;
  --bg-alt: #f1e9dc;
  --surface: #ffffff;
  --ink: #2b211a;
  --muted: #5c4d40;
  --wood: #4a2f1d;
  --wood-2: #6b4429;
  --accent: #a8652c;
  --line: #e2d6c4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(43,33,26,.08), 0 6px 18px rgba(43,33,26,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-2); }
a:hover { color: var(--wood); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--wood); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow > p { max-width: 68ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--wood); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,239,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--wood); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); font-weight: 400; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.site-nav a { display: block; padding: .5rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 6px; }
.site-nav a:hover { background: var(--bg-alt); color: var(--wood); }
.site-nav .nav-cta { background: var(--wood); color: #fff; }
.site-nav .nav-cta:hover { background: var(--wood-2); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; font: 600 .95rem var(--font); color: var(--wood); cursor: pointer; min-height: 44px; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .js .site-nav { display: none; width: 100%; padding-bottom: .75rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .js .site-nav a { padding: .75rem .5rem; font-size: 1.05rem; }
  html:not(.js) .header-inner { padding-block: .5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; }
}

/* Hero */
.hero { position: relative; min-height: clamp(460px, 78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--wood); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,20,12,.15) 0%, rgba(30,20,12,.35) 40%, rgba(30,20,12,.85) 100%); }
.hero-content { position: relative; padding-block: 3rem 3.25rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem); margin-bottom: .25em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; color: #f3dfc6; margin-bottom: .5rem; }
.tagline { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); max-width: 34ch; color: #fbf3e8; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; background: #9a5a24; }
.btn-primary:hover { background: #7f4a1c; color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { color: var(--wood); border-color: var(--wood); }
.btn-outline:hover { background: var(--wood); color: #fff; }

/* Sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.services li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--wood-2); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.services p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; } }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }

/* About / area / contact */
.text-link { font-weight: 700; }
.contact { background: var(--wood); color: #f6ece0; }
.contact h2 { color: #fff; }
.contact-email { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-email a { color: #fff; }
.contact .btn-outline { color: #fff; border-color: rgba(255,255,255,.85); }
.contact .btn-outline:hover { background: #fff; color: var(--wood); }
.contact a:focus-visible { outline-color: #f3c58f; }

.site-footer { background: #2e1d12; color: #e9dccb; font-size: .95rem; padding-block: 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #f3d3ae; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(18,12,8,.95); color: #fff; }
.lightbox::backdrop { background: rgba(18,12,8,.9); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 3.5rem .75rem .5rem; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem 1rem; }
.lb-caption { margin: 0; flex: 1; text-align: center; font-size: .95rem; color: #eadfd2; }
.lb-btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; min-width: 48px; min-height: 48px; font: 700 1.4rem/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn:focus-visible { outline: 3px solid #f3c58f; outline-offset: 2px; }
.lb-close { position: absolute; top: .6rem; right: .75rem; }
.lb-count { position: absolute; top: 1.1rem; left: 1rem; font-size: .9rem; color: #d9cbbb; }

/* 404 */
.notfound { min-height: calc(100vh - 140px); display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--accent); margin: 0; line-height: 1; }
