/* Greg Schneider Woodworking — shared site styles */

:root {
  --charcoal: #222222;
  --charcoal-soft: #4a4a4a;
  --amber: #c9924c;
  --amber-light: #e8c896;
  --cream: #faf7f2;
  --white: #ffffff;
  --border: #e4ddd3;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.brand img { height: 34px; width: auto; }

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--charcoal);
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; border-bottom: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: var(--cream);
  padding: 72px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.hero p.lede {
  font-size: 18px;
  color: var(--charcoal-soft);
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

.btn-primary:hover { background: #b07f3c; border-color: #b07f3c; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Section helpers */
section { padding: 64px 24px; }

.section-title {
  font-size: 26px;
  text-align: center;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--charcoal-soft);
  max-width: 540px;
  margin: 0 auto 40px;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--amber);
  margin: 16px auto 0;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.gallery-item .placeholder-label {
  color: var(--charcoal-soft);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

/* Shop / pieces grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 720px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}

.piece-card {
  border: 1px solid var(--border);
}

.piece-photo {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-soft);
  font-size: 13px;
  overflow: hidden;
}

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

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

.piece-info { padding: 16px; }

.piece-info h3 { margin: 0 0 4px; font-size: 17px; }

.piece-price {
  color: var(--amber);
  font-weight: 600;
  margin: 4px 0 14px;
}

/* Forms */
form.quote-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}

.form-row textarea { min-height: 120px; resize: vertical; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 1;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-soft);
  font-size: 13px;
}

/* Footer */
footer.site-footer {
  background: var(--charcoal);
  color: #cfcfcf;
  padding: 40px 24px 28px;
  margin-top: 0;
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-wrap a { color: #e8e0d3; }
.footer-wrap a:hover { color: var(--amber-light); }

.footer-brand img { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #9a9a9a;
  margin-top: 28px;
}

.contact-line { font-size: 14px; margin: 4px 0; }
