/* B + K Creations — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #faf9f6;
  --ink: #18170f;
  --line: #e4e1d6;
  --wood: #8a5a34;
  --wood-dark: #5f3c22;
  --white: #ffffff;
  --gallery-bg: #0d0c0a;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: 42px;
}

.brand span {
  font-size: 1.3rem;
}

nav.main-nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.92rem;
  font-weight: 500;
}

nav.main-nav > * { white-space: nowrap; }

.nav-current {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 220px;
  padding: 6px 0;
  box-shadow: 0 12px 28px rgba(24, 23, 15, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 0.88rem;
}

.dropdown a:hover { background: var(--bg); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: '';
}

.menu-toggle span::before { top: -6px; position: absolute; }
.menu-toggle span::after { top: 6px; position: absolute; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: min(68vh, 620px);
  min-height: 380px;
  overflow: hidden;
}

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

.hero-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 56px) 0;
  text-align: center;
}

.hero-copy p {
  font-size: 1.05rem;
  margin: 0 0 26px;
  color: #4a4738;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Category tiles (wood landing) ---------- */

.category-band {
  background: var(--gallery-bg);
  padding: 56px clamp(20px, 5vw, 56px) 64px;
}

.category-band h1 {
  color: var(--white);
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 34px;
}

.category-tiles {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}

.category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,0.15), rgba(13,12,10,0.65));
  transition: background 0.2s ease;
}

.category-tile:hover::before { background: rgba(13,12,10,0.75); }

.category-tile span {
  position: relative;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.6);
}

/* ---------- Gallery grid ---------- */

.gallery-page {
  background: var(--gallery-bg);
  padding: 44px clamp(20px, 5vw, 56px) 80px;
}

.gallery-page .page-title {
  max-width: var(--max);
  margin: 0 auto 30px;
  color: var(--white);
  font-size: 1.5rem;
  text-align: center;
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid figure:hover img { transform: scale(1.035); }

/* ---------- From the Bench (placeholder) ---------- */

.bench-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 56px) 110px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
}

.bench-main .bench-empty {
  color: #8a8672;
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.bench-side h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8672;
  margin-bottom: 10px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
}

.bench-side section { margin-bottom: 30px; }

.bench-side p { font-size: 0.9rem; color: #6c684f; margin: 0; }

/* ---------- Contact ---------- */

.contact-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.contact-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,11,8,0.55);
  z-index: 1;
}

.contact-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px clamp(20px, 5vw, 56px);
  width: 100%;
}

.contact-wrap h1 {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.contact-wrap .lead {
  color: #f1efe6;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.contact-wrap .sub {
  color: #f1efe6;
  font-size: 1.3rem;
  font-family: 'Fraunces', serif;
  margin-bottom: 34px;
}

form.contact-form {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.required-note {
  color: #e7e3d4;
  font-size: 0.78rem;
  font-style: italic;
}

.field label {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field .req { color: #e6a15a; }

.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}

.field textarea { min-height: 130px; resize: vertical; }

.contact-form button {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  padding: 13px 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.contact-form button:hover { background: transparent; color: var(--white); }

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 26px clamp(20px, 5vw, 56px);
  text-align: center;
  font-size: 0.8rem;
  color: #8a8672;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .category-tiles { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a, nav.main-nav .has-dropdown { padding: 12px clamp(20px, 5vw, 56px); }
  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    background: var(--bg);
  }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
