:root {
  --color-text: #4a4a4a;
  --color-heading: #333333;
  --color-accent: #b5895b;
  --color-accent-dark: #8f6a41;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f2;
  --color-border: #e7e2da;
  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3 {
  font-family: var(--font-base);
  color: var(--color-heading);
  font-weight: 700;
  margin: 0 0 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

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

.logo img { height: 52px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, #ffffff 70%);
  padding: 96px 24px 72px;
  text-align: center;
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 41px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 17px;
  color: var(--color-text);
  margin: 0;
}

/* About */
.about { padding: 64px 0; }

.about-grid {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.about-badge {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
}

.about-badge .since {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.about-badge .year {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.about-copy { flex: 1 1 380px; }
.about-copy h2 { margin-bottom: 10px; }
.about-copy p { margin: 0; max-width: 620px; }

/* Factory */
.factory {
  background: var(--color-bg-alt);
  padding: 64px 0;
}

.section-lead {
  max-width: 820px;
  margin: 0 0 36px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.photo-strip img,
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-strip a:hover img,
.photo-grid a:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Products / tabs */
.products { padding: 72px 0; }
.products h2 { text-align: center; margin-bottom: 32px; }

.tab-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.tab-btn {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-heading);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.tab-panel[hidden] { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Address */
.address {
  padding: 48px 0;
  text-align: center;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.address h2 { margin-bottom: 8px; }
.address p { margin: 0; font-size: 16px; }

/* Footer */
.site-footer {
  background: #2a2724;
  color: #d8d3cb;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #d8d3cb;
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 90px 28px;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  .about-grid { justify-content: center; text-align: center; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
