/* bjswoodshopgarage.com */

:root {
  --brand: #1d6386;        /* BJ's logo teal */
  --brand-soft: #e3eff5;
  --wood: #9a5b2c;         /* honey/walnut accent */
  --bg: #fbf7f1;
  --bg-alt: #f3ebe0;
  --surface: #ffffff;
  --text: #2f241b;
  --muted: #6e5f52;
  --line: #e6dccf;
  --shadow: 0 1px 2px rgba(47, 36, 27, .06), 0 8px 24px rgba(47, 36, 27, .08);
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fb3d6;
    --brand-soft: #1b2c36;
    --wood: #d79a62;
    --bg: #15110d;
    --bg-alt: #1c1712;
    --surface: #221b15;
    --text: #f3ebe0;
    --muted: #b8a897;
    --line: #362b21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
  /* The logo is a dark teal line drawing; give it a light chip so it reads on dark backgrounds. */
  .logo, .hero-logo { background: #f3ebe0; border-radius: 12px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); }
a:hover { color: var(--wood); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--brand); transition: background .15s, border-color .15s, transform .15s;
  overflow-wrap: anywhere;
}
.button:hover { color: #fff; background: var(--wood); border-color: var(--wood); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--brand); }
.button.ghost:hover { color: #fff; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--wood); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand b { color: var(--wood); }
.logo { width: auto; height: 44px; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav .nav-contact { color: #fff; background: var(--brand); padding: 8px 16px; border-radius: 999px; }
.site-nav .nav-contact:hover, .site-nav .nav-contact[aria-current] { color: #fff; background: var(--wood); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
@media (max-width: 700px) {
  .brand-name b { display: block; }
  .brand { font-size: 1rem; line-height: 1.15; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-contact { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { padding: 80px 0 64px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 100%; max-width: 300px; justify-self: center; padding: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 800px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 180px; justify-self: start; }
}

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.page { padding-top: 56px; }
@media (max-width: 600px) { .section { padding: 48px 0; } }

/* Photo grids */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery.featured { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .gallery.featured { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery, .gallery.featured { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .92rem; color: var(--muted); padding: 8px 2px 0; }

.gallery-section { padding-top: 40px; }
.gallery-section h2 { border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.section-nav a {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-size: .95rem;
}
.section-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* Section cards (home page) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.card:hover img { transform: scale(1.04); }
.card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(20, 14, 9, .82));
}
.card small { display: block; font-weight: 400; opacity: .85; }

/* Contact */
.contact-card {
  margin: 28px auto 0; max-width: 460px; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.contact-card p { margin: 0; padding: 10px 0; display: flex; gap: 16px; flex-wrap: wrap; }
.contact-card p + p { border-top: 1px solid var(--line); }
.contact-card .label { width: 90px; color: var(--muted); }
.contact-card a { overflow-wrap: anywhere; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; text-align: center; }
.lightbox::backdrop { background: rgba(12, 9, 6, .9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 10px; }
.lightbox-caption { color: #f3ebe0; margin: 10px 0 0; }
.lightbox form { position: fixed; top: 16px; right: 16px; }
.lightbox button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(30, 24, 18, .9); color: #fff; font-size: 22px; cursor: pointer;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 36px 0 22px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--text); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem;
}
