/* Woodcutter DP - shared site styles */
:root {
  --cream: #f7f3ec;
  --paper: #fdfbf7;
  --espresso: #2a1f17;
  --ink: #4a3829;
  --muted: #7d6a58;
  --copper: #a8693a;
  --copper-deep: #8b5a2b;
  --copper-dark: #6b4220;
  --border: #e6ddcd;
  --shadow: 0 10px 30px rgba(42, 31, 23, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .serif { font-family: var(--serif); color: var(--espresso); font-weight: 600; line-height: 1.2; }

a { color: var(--copper-deep); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 231, 218, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.3rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-name {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--espresso); letter-spacing: 0.12em; text-transform: uppercase;
}
.brand-name small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--copper-deep); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--copper-deep); }
.site-nav a.active { color: var(--copper-deep); border-bottom-color: var(--copper); }
.site-nav .nav-cta {
  background: var(--copper-deep); color: #fdf9f2; padding: 0.55rem 1.2rem;
  border-radius: 999px; border-bottom: none; transition: background 0.15s;
}
.site-nav .nav-cta:hover { background: var(--copper-dark); color: #fff; }
/* on the contact page the CTA carries .active; keep its text light on copper */
.site-nav a.nav-cta.active { color: #fdf9f2; background: var(--copper-dark); border-bottom: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--espresso); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--border); padding: 0.5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 1.5rem; width: 100%; text-align: center; border-bottom: none; }
  .site-nav .nav-cta { width: auto; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; text-align: center; position: relative; overflow: hidden; }
.hero .badge-lg { width: clamp(230px, 34vw, 340px); height: auto; margin: 0 auto 2rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); margin-bottom: 1rem; }
.hero .rule { width: 64px; height: 3px; background: var(--copper); margin: 1.5rem auto; border-radius: 2px; }
.hero .est { font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--copper-deep); font-weight: 600; margin-bottom: 0.75rem; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.25rem; }

.page-hero { padding: 4rem 0 3rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.page-hero .lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto; }
.page-hero .rule { width: 56px; height: 3px; background: var(--copper); margin: 1.4rem auto 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.9rem 2rem;
  border-radius: 999px; transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
/* real <button> elements need the browser chrome stripped to match links */
button.btn {
  appearance: none; -webkit-appearance: none; border: none; cursor: pointer;
  font-family: var(--sans); line-height: inherit;
}
button.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.btn-primary { background: var(--copper-deep); color: #fdf9f2; box-shadow: 0 6px 16px rgba(139, 90, 43, 0.3); }
.btn-primary:hover { background: var(--copper-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--copper-deep); color: var(--copper-deep); }
.btn-ghost:hover { background: var(--copper-deep); color: #fdf9f2; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; margin-bottom: 0.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 1.6rem; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,31,23,0.12); }
.card .glyph {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0e4d2, #e3d2b8); margin-bottom: 1.2rem;
}
.card .glyph svg { width: 26px; height: 26px; stroke: var(--copper-dark); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.filter-row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  background: none; border: 1.5px solid var(--border); color: var(--ink); cursor: pointer;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.55rem 1.3rem; border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { border-color: var(--copper); color: var(--copper-deep); }
.filter-btn.active { background: var(--copper-deep); border-color: var(--copper-deep); color: #fdf9f2; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.tile {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--border); box-shadow: var(--shadow); cursor: default;
  display: flex; align-items: flex-end;
}
.tile.has-photo { cursor: pointer; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tile.has-photo:hover img { transform: scale(1.04); }
.tile .ph-bg { position: absolute; inset: 0; }
.tile .ph-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.tile .ph-mark img { position: static; width: 72px; height: 72px; opacity: 0.16; }
.tile .caption {
  position: relative; width: 100%; padding: 0.9rem 1.1rem;
  background: linear-gradient(transparent, rgba(42, 31, 23, 0.55));
  color: #fdf9f2; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.tile.hidden { display: none; }

/* placeholder wood tones */
.ph-1 { background: linear-gradient(150deg, #d8c3a5, #b08e64); }
.ph-2 { background: linear-gradient(150deg, #c9ad8a, #97714a); }
.ph-3 { background: linear-gradient(150deg, #e3d2b8, #c0a075); }
.ph-4 { background: linear-gradient(150deg, #bfa17c, #8a6440); }
.ph-5 { background: linear-gradient(150deg, #d2b894, #a37e52); }
.ph-6 { background: linear-gradient(150deg, #cdb18a, #8f6a44); }

/* photo-count badge on project tiles */
.tile-count {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  background: rgba(42, 31, 23, 0.72); color: #fdf9f2;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(26, 19, 14, 0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
  flex-direction: column; gap: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: none;
  color: #f0e6d2; font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-caption {
  color: #e3dccf; font-size: 0.95rem; letter-spacing: 0.04em; text-align: center;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(247, 240, 228, 0.12); border: 1px solid rgba(247, 240, 228, 0.35);
  color: #f0e6d2; font-size: 1.6rem; line-height: 1; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(247, 240, 228, 0.25); }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox .lb-prev { left: 0.4rem; }
  .lightbox .lb-next { right: 0.4rem; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 44px; height: 44px; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split .img-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 45px rgba(42,31,23,0.16); }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.split p { margin-bottom: 1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; padding: 1.5rem 1rem; }
.step .num {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  border: 1.5px solid var(--copper); color: var(--copper-dark);
  font-family: var(--serif); font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.8rem;
}
.review-card .stars { color: var(--copper); font-size: 1.05rem; letter-spacing: 0.15em; }
.review-card blockquote { margin: 0; color: var(--ink); font-style: italic; line-height: 1.65; flex: 1; }
.review-card .reviewer { font-weight: 600; color: var(--espresso); font-size: 0.92rem; }
.review-card .source { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--espresso); color: #e3dccf; text-align: center; padding: 4.5rem 1.5rem; }
.cta-band h2 { color: #f7f0e4; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.9rem; }
.cta-band p { color: #c9bba8; max-width: 520px; margin: 0 auto 2rem; }
.cta-band .btn-primary { background: var(--copper); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.cta-band .btn-primary:hover { background: #b97a48; }

/* ---------- Notice strip ---------- */
.notice {
  background: linear-gradient(90deg, #f0e4d2, #ecdcc4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 0.8rem 1.5rem; font-size: 0.92rem; color: var(--copper-dark); font-weight: 600; letter-spacing: 0.04em;
}

/* ---------- Contact form ---------- */
.contact-form { text-align: left; margin-top: 0.5rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--espresso); margin: 1rem 0 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: var(--sans); color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(168, 105, 58, 0.35); border-color: var(--copper); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .req { color: var(--copper-deep); font-weight: 700; }
.muted-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-banner { border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; font-size: 0.95rem; text-align: left; }
.form-banner.ok { background: #eef4ed; border: 1px solid #b9cdb6; color: #3f6f43; }
.form-banner.err { background: #f8eeec; border: 1px solid #d9b8b2; color: #a33b2e; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 640px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border);
  border-radius: 18px; padding: 3rem 2.5rem; text-align: center; box-shadow: var(--shadow);
}
.contact-card .email { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; }
.contact-list { text-align: left; max-width: 460px; margin: 1.5rem auto 0; color: var(--muted); font-size: 0.95rem; }
.contact-list li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #c9bba8; padding: 3.5rem 1.5rem 2rem; font-size: 0.9rem; }
.footer-grid {
  max-width: 1100px; margin: 0 auto 2.5rem; display: grid;
  grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand .fb-name { font-family: var(--serif); color: #f7f0e4; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand .fb-tag { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a8987f; }
.site-footer h4 { color: #f0e6d2; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d8cbb6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(227, 220, 207, 0.15); padding-top: 1.5rem; text-align: center; color: #8d7d68; font-size: 0.82rem; }
.footer-area { margin-top: 1.1rem; font-size: 0.84rem; color: #a8987f; max-width: 360px; line-height: 1.6; }
.social-row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(227, 220, 207, 0.35);
  display: flex; align-items: center; justify-content: center; color: #d8cbb6;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social-row a:hover { color: #fff; border-color: #fff; background: rgba(247, 240, 228, 0.08); }
.social-row svg { width: 19px; height: 19px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; } .footer-brand { justify-content: center; } .social-row { justify-content: center; } }
