/* ===== Variables ===== */
:root {
  --c-text: #111;
  --c-muted: #676767;
  --c-line: #e5e5e5;
  --c-soft: #fafafa;
  --c-dark: #111;
  --max-width: 1240px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-stretch: 125%; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-stretch: 125%;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--c-text); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--c-text); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--c-dark);
  color: #fff;
  text-decoration: none;
  font-stretch: 125%;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 14px 30px;
  border: 1px solid var(--c-dark);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: #fff; color: var(--c-dark); }

/* ===== Homepage ===== */
.home-hero { padding: 96px 0 56px; }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 0 0 24px; }
.home-hero p { max-width: 640px; color: var(--c-muted); font-size: 1.1rem; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  background: #2b2b2b center / cover no-repeat;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.75) 100%);
}
.tile:hover { transform: translateY(-4px); }
.tile > * { position: relative; }
.tile-code { font-stretch: 125%; font-size: 2.4rem; font-weight: 600; }
.tile-title { display: block; font-stretch: 125%; font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.tile-summary { display: block; font-size: 0.9rem; opacity: 0.85; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--c-line); }
.about h2 { font-size: 1.8rem; margin: 0; }
.about p { color: var(--c-muted); font-size: 1.05rem; margin-top: 0; }

/* ===== Sections / page intro ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--c-soft); }
.section-title { font-size: 1.8rem; margin: 0 0 10px; }
.section-subtitle { color: var(--c-muted); max-width: 620px; margin: 0 0 40px; }
.page-intro { padding: 72px 0 40px; border-bottom: 1px solid var(--c-line); }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 12px; }
.page-intro .lead { font-size: 1.15rem; color: var(--c-muted); margin: 0; max-width: 640px; }
.eyebrow { font-stretch: 125%; font-size: 0.85rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.narrow p { color: var(--c-muted); font-size: 1.05rem; }
.narrow p.big { font-size: 1.35rem; color: var(--c-text); font-weight: 500; }

/* ===== Timber ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--c-line); padding: 24px; }
.step h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--c-muted); }
.step-num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-dark); color: #fff; font-weight: 600; }
.result { max-width: 700px; margin: 32px 0 0; font-weight: 500; }

.products { display: grid; grid-template-columns: 1fr; gap: 28px; }
.product-card { border: 1px solid var(--c-line); background: #fff; display: flex; flex-direction: column; }
.product-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.product-gallery img { width: 100%; height: 220px; object-fit: cover; cursor: pointer; transition: opacity 0.15s; }
.product-gallery img:hover { opacity: 0.85; }
.product-body { padding: 28px; }
.product-body h2 { margin: 0 0 8px; font-size: 1.5rem; }
.product-body h3 { margin: 24px 0 8px; font-size: 1rem; }
.product-body p { color: var(--c-muted); }
.product-price { font-weight: 600; margin: 14px 0 18px; }
.table-wrap { overflow-x: auto; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs-table th, .specs-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.specs-table th { font-stretch: 125%; font-size: 0.8rem; background: var(--c-soft); }
.specs-table td:last-child { color: var(--c-muted); }
.lengths p { margin: 4px 0; color: var(--c-text); }
.product-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.product-video iframe, .product-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Contacts ===== */
.details-table { width: 100%; border-collapse: collapse; border: 1px solid var(--c-line); }
.details-table tr { border-bottom: 1px solid var(--c-line); }
.details-table tr:last-child { border-bottom: none; }
.details-table th, .details-table td { text-align: left; padding: 16px 20px; }
.details-table th { width: 38%; color: var(--c-muted); font-weight: 500; background: var(--c-soft); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ===== Footer ===== */
.site-footer { background: var(--c-dark); color: #fff; padding: 64px 0 24px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-tagline { font-stretch: 125%; font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin: 0; }
.site-footer h4 { margin: 0 0 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: #a2a2a2; }
.site-footer a, .site-footer span { display: block; color: #fff; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #333; color: #8c8c8c; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 32px 20px; border-bottom: 1px solid var(--c-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .about, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .home-hero { padding: 56px 0 32px; }
  .section { padding: 40px 0; }
  .product-gallery img { height: 120px; }
  .product-body { padding: 18px; }
  .details-table, .details-table tbody, .details-table tr, .details-table th, .details-table td { display: block; width: auto; }
  .details-table th { padding: 12px 16px 0; background: transparent; }
  .details-table td { padding: 4px 16px 12px; }
}

/* ===== Checklist ===== */
.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--c-line); font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--c-text); border-bottom: 2px solid var(--c-text); transform: rotate(-45deg); }

/* ===== Page banner ===== */
.page-banner img { width: 100%; height: clamp(200px, 32vw, 460px); object-fit: cover; object-position: center 60%; }

/* ===== Photo gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; background: var(--c-soft); transition: opacity 0.15s, transform 0.2s; }
.gallery img:hover { opacity: 0.88; transform: scale(1.015); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 0; color: #fff; font-size: 2.6rem; width: 52px; height: 72px; cursor: pointer; }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
