/* ============================================
   BLACK WALNUT CO. — Site Styles
   ============================================ */

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

:root {
  --bg: #F1EDE5;
  --bg-dark: #1A1A18;
  --text: #1A1A18;
  --text-muted: #4A4740;
  --accent: #6B4226;
  --linen: #E8E2D9;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(241, 237, 229, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--linen);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav.scrolled .nav-brand { color: var(--text); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}

.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav.scrolled .nav-links a:hover { color: var(--accent); }

.nav-commission {
  padding: 0.45rem 1.1rem;
  border: 0.5px solid rgba(255,255,255,0.5);
  border-radius: 2px;
}

.nav.scrolled .nav-commission {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-img-wrap { position: absolute; inset: 0; }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,18,14,0.3) 0%, rgba(20,18,14,0.05) 45%, rgba(20,18,14,0.6) 100%);
}

.maker-mark {
  position: absolute;
  bottom: 3.5rem; left: 3rem;
  color: var(--white);
}

.maker-mark-eyebrow {
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 0.5rem;
}

.maker-mark-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400; line-height: 1.1; margin-bottom: 1.25rem;
}

.maker-mark-creed {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.9; color: rgba(255,255,255,0.92);
  border-left: 1px solid rgba(255,255,255,0.5);
  padding-left: 1rem;
}

/* ---- INTRO ---- */
.intro { padding: 5rem 2.5rem; border-bottom: 0.5px solid var(--linen); }
.intro-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400; line-height: 1.8;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem;
}

/* ---- WORK ---- */
.work { padding: 5rem 2.5rem; border-bottom: 0.5px solid var(--linen); }

.category { margin-bottom: 4rem; }
.category:last-child { margin-bottom: 0; }

.category-label {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--linen); background: var(--text);
  display: inline-block; padding: 0.25rem 0.65rem; margin-bottom: 1rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400; margin-bottom: 1.5rem; line-height: 1.2;
}

.furniture-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.furniture-hero { grid-row: span 2; }

.boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.boards-wide { grid-column: span 2; }

.accents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.work-item {
  position: relative; overflow: hidden; background: var(--linen);
}

.work-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.65s ease; min-height: 240px;
}

.work-item:hover img { transform: scale(1.04); }

.work-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1rem 0.9rem;
  font-size: 0.72rem; font-weight: 300; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(to top, rgba(20,18,14,0.7) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s ease;
}

.work-item:hover .work-caption { opacity: 1; }

.bench-styled img { min-height: 480px; object-position: center top; }
.bench-detail img { min-height: 240px; object-position: center 20%; }
.bench-full img { min-height: 240px; object-position: center 30%; }
.board-epoxy img { min-height: 360px; object-position: center center; }
.board-striped img { min-height: 260px; object-position: center 40%; }
.coaster-set img { min-height: 280px; object-position: center top; }
.coaster-use img { min-height: 280px; }
.console-full img { min-height: 280px; object-position: center 35%; }

/* ---- ABOUT ---- */
.about { padding: 5rem 2.5rem; border-bottom: 0.5px solid var(--linen); }
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 1.75rem;
}

.about-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.85; margin-bottom: 1.25rem; }

.spec-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 1rem; padding: 1.1rem 0;
  border-bottom: 0.5px solid var(--linen); align-items: baseline;
}

.spec-item:first-child { border-top: 0.5px solid var(--linen); }

.spec-label {
  font-size: 0.67rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}

.spec-value { font-size: 0.88rem; font-weight: 300; color: var(--text); line-height: 1.55; }

/* ---- COMMISSION ---- */
.commission { background: var(--bg-dark); padding: 6rem 2.5rem; text-align: center; }
.commission-inner { max-width: 560px; margin: 0 auto; }

.commission-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--white); line-height: 1.2; margin-bottom: 1.25rem;
}

.commission-sub {
  font-size: 0.92rem; font-weight: 300;
  color: rgba(255,255,255,0.78); line-height: 1.8; margin-bottom: 2.5rem;
}

.commission-btn {
  display: inline-block; padding: 0.9rem 2.5rem;
  border: 0.5px solid rgba(255,255,255,0.35);
  color: var(--white); text-decoration: none;
  font-size: 0.76rem; font-weight: 300;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.25s ease; margin-bottom: 1.5rem;
}

.commission-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.65); }

.commission-note { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 300; }
.commission-note a { color: rgba(255,255,255,0.75); text-decoration: none; }
.commission-note a:hover { color: rgba(255,255,255,0.75); }

/* ---- FOOTER ---- */
.footer { padding: 1.75rem 2.5rem; border-top: 0.5px solid #2A2A28; background: var(--bg-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--font-display); font-size: 0.9rem; color: rgba(255,255,255,0.35); }
.footer-location { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-brand { font-size: 0.95rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.06em; }
  .nav-commission { padding: 0.4rem 0.75rem; }
  .nav-commission .btn-long { display: none; }
  .maker-mark { left: 1.5rem; bottom: 2.5rem; }
  .intro { padding: 3.5rem 1.5rem; }
  .work { padding: 3.5rem 1.25rem; }
  .furniture-grid { grid-template-columns: 1fr; }
  .furniture-hero { grid-row: span 1; }
  .boards-grid { grid-template-columns: 1fr; }
  .boards-wide { grid-column: span 1; }
  .accents-grid { grid-template-columns: 1fr 1fr; }
  .about { padding: 3.5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .spec-item { grid-template-columns: 100px 1fr; }
  .commission { padding: 4rem 1.5rem; }
  .bench-styled img { min-height: 320px; }
}
