/* ============================================================
   GHR Woodworks — shared stylesheet
   Craftsman + professional. Edit the variables below to rebrand.
   ============================================================ */

:root {
  /* Palette — warm woods, parchment, forest accent */
  --espresso: #2a2521;      /* warm charcoal (dark sections) */
  --walnut:   #3a3129;      /* deep wood */
  --amber:    #9a463d;      /* muted brick — small accent only */
  --amber-dk: #7e372f;
  --forest:   #4c5348;      /* muted secondary (rarely used) */
  --cream:    #f7f2e9;      /* page background (oat) */
  --cream-2:  #efe6d4;      /* alt section background */
  --ink:      #2b2620;      /* charcoal — body text + buttons */
  --muted:    #7d7266;      /* secondary text */
  --line:     #e3d9c4;      /* hairline borders */
  --white:    #fffdf9;
  --oak:      #c9b287;      /* white oak accent */
  --oak-d:    #a98f61;

  --maxw: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(43, 33, 25, 0.12);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--espresso); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--amber-dk); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.alt {
  background:
    linear-gradient(rgba(243,236,223,.80), rgba(243,236,223,.80)),
    url(oak-grain.png);
  background-size: 1100px auto;
}
.section.dark {
  background:
    linear-gradient(rgba(42,37,32,.83), rgba(38,33,28,.87)),
    url(oak-grain.png);
  background-size: cover; background-position: center;
  color: var(--cream);
}
.section.dark h2, .section.dark h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-dk);
  margin-bottom: 12px;
}
.section.dark .eyebrow { color: var(--amber); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--amber); color: #fff; }
/* On dark/wood backgrounds use a warm oak button instead of charcoal */
.hero .btn-primary, .cta-band .btn-primary { background: var(--oak); color: var(--ink); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--espresso); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--oak-d);
  box-shadow: 0 2px 10px rgba(43,33,25,.07);
  overflow: visible;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; max-width: var(--maxw); margin: 0 auto;
  min-height: 58px;
}
/* Logo is drawn larger than the bar and overhangs downward, so the
   header stays short while the emblem reads big. */
.brand { align-self: flex-start; margin-top: 5px; }
.brand-logo {
  height: 134px; width: auto; display: block;
  margin-bottom: -76px;      /* pulls the bar height back in */
  position: relative; z-index: 3;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border: 2px solid var(--amber); border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: var(--amber);
  font-size: 1.05rem; background: rgba(0,0,0,.15);
}
.brand-name { font-family: var(--font-head); color: var(--cream); font-size: 1.32rem; font-weight: 600; letter-spacing: .5px; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-top: 4px; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; letter-spacing: .2px; opacity: .95; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--amber); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.nav-cta { margin-left: 6px; padding: 10px 20px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--espresso); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(35,30,25,.71), rgba(30,26,21,.79)),
    url(oak-grain.png);
  background-size: cover; background-position: center;
  color: var(--cream);
  padding: 120px 0 128px;
  text-align: center;
}
.hero .eyebrow { color: var(--oak); }
.hero-brand { font-family: var(--font-head); color: var(--oak); font-size: clamp(2rem, 3.8vw, 2.7rem); font-weight: 600; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: var(--white); max-width: 900px; margin: 0 auto 18px; }
.hero .lead { color: #efe3d0; font-size: 1.28rem; max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(43,33,25,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

/* Service item (icon + text) */
.service { text-align: left; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service .ico { width: 54px; height: 54px; display: grid; place-items: center; background: var(--cream-2); border-radius: 8px; margin-bottom: 16px; }
.service .ico svg { width: 28px; height: 28px; stroke: var(--espresso); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
    repeating-linear-gradient(115deg, #6b4a2f 0 8px, #7a5636 8px 15px, #63432b 15px 24px);
  color: #f3e7d4;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-body); font-weight: 600; letter-spacing: .5px;
  font-size: .9rem;
  min-height: 220px;
}
.ph.tall { min-height: 340px; }
.ph.round { border-radius: 50%; }
.ph span { background: rgba(30,22,15,.45); padding: 6px 12px; border-radius: 20px; font-size: .78rem; }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .ph { min-height: 380px; border-radius: var(--radius); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.8rem; color: var(--amber); font-weight: 600; line-height: 1; }
.stat .lbl { color: var(--cream); opacity: .85; font-size: .95rem; margin-top: 6px; }

/* ---------- Testimonial ---------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.45; color: var(--espresso); font-style: italic; }
.quote .who { font-family: var(--font-body); font-style: normal; color: var(--muted); font-weight: 700; font-size: .95rem; letter-spacing: .5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(40,34,29,.77), rgba(34,29,24,.82)),
    url(oak-grain.png);
  background-size: cover; background-position: center;
  color: var(--cream); text-align: center; padding: 66px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #dfe6df; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: 0 4px 14px rgba(43,33,25,.06); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--espresso); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Product (shop) ---------- */
.price { font-family: var(--font-head); color: var(--espresso); font-weight: 600; font-size: 1.25rem; }
.product .card-body { display: flex; flex-direction: column; gap: 10px; }
.product .row { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Notice banner (for setup placeholders) ---------- */
.notice {
  background: #fbf4e6; border: 1px dashed var(--amber); color: #6b4a2f;
  border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; margin: 0 auto 8px;
}
.notice strong { color: var(--amber-dk); }

/* Embed slot */
.embed-slot {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f4ecdd 0 12px, #efe6d5 12px 24px);
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.embed-slot code { background: #efe0c6; padding: 2px 7px; border-radius: 4px; color: #6b4a2f; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(rgba(40,34,29,.87), rgba(36,31,26,.90)),
    url(oak-grain.png);
  background-size: cover; background-position: center;
  color: #d8ccb8; padding: 60px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--cream); font-family: var(--font-head); margin-bottom: 14px; font-size: 1.15rem; }
.site-footer a { color: #d8ccb8; }
.site-footer a:hover { color: var(--amber); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; font-size: .85rem; color: #9d8f7a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    linear-gradient(rgba(42,37,31,.74), rgba(36,31,26,.81)),
    url(oak-grain.png);
  background-size: cover; background-position: center;
  color: var(--cream); padding: 66px 0; text-align: center;
  border-bottom: 2px solid var(--oak-d);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #e8dcc7; max-width: 620px; margin: 0 auto; }

/* ---------- Portfolio filter ---------- */
.filterbar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.chip { border: 1.5px solid var(--line); background: var(--white); color: var(--muted); padding: 8px 18px; border-radius: 30px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip.active, .chip:hover { background: var(--amber); color: #fff; border-color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    padding: 8px 0; display: none; border-bottom: 2px solid var(--oak-d);
    box-shadow: 0 8px 14px rgba(43,33,25,.10);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-cta { margin: 10px 24px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 60px 0; }
}


/* image shots */
.shot { display: block; width: 100%; object-fit: cover; background: var(--cream-2); }

/* Lightbox — click gallery photos to enlarge */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4vh 4vw;
  background: rgba(20, 17, 14, 0.9);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  cursor: default;
}
.lightbox-cap {
  margin-top: 16px;
  color: var(--cream, #f7f2e9);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ============================================================
   Legal pages (privacy.html, sms-terms.html)
   ============================================================ */
.legal { max-width: 780px; }
.legal h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--amber); text-decoration: underline; }
.legal a:hover { color: var(--amber-dk); }
.legal-date { color: var(--muted); font-size: 0.92rem; }
.legal-callout {
  background: var(--cream-2);
  border-left: 3px solid var(--oak-d);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0 18px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 4px;
}
.consent input[type="checkbox"] { margin-top: 5px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--amber); }
.consent label { font-size: 0.86rem; line-height: 1.5; color: var(--muted); font-weight: 400; }
.consent a { color: var(--amber); text-decoration: underline; }

/* Text-us call to action (SMS opt-in) */
.textus { margin-top: 18px; }
.textus a { color: var(--amber); text-decoration: underline; }
.textus-disc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
