/* ==========================================================================
  Olega — Design tokens
  Concept: "Het pegboard" — vaste rasterposities, artikelcodes, functionele
  precisie i.p.v. decoratie.
   ========================================================================== */
:root {
  --ink: #1b1d1f;
  --paper: #edebe4;
  --white: #ffffff;
  --steel: #4a5568;
  --steel-light: #8b93a1;
  --work-orange: #c8511b;
  --work-orange-dark: #a03f13;
  --line: rgba(27, 29, 31, 0.14);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--work-orange);
  outline-offset: 2px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { max-width: 62ch; margin: 0 0 1em; }

.lead {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 52ch;
}

/* ---------- Pegboard texture ---------- */
.pegboard-bg {
  background-image: radial-gradient(var(--line) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Swap .brand-mark for an <img class="brand-logo"> once the real Olega logo
   is supplied — sized to fit the same 34px header slot. */
.brand-logo { height: 34px; width: auto; }

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

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--work-orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.hero-code {
  font-family: var(--font-display);
  color: var(--work-orange);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-figures {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: right;
  min-width: 180px;
}

.hero-figure .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.hero-figure .label {
  color: var(--steel);
  font-size: 0.88rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--work-orange); border-color: var(--work-orange); color: var(--white); }

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

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

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

/* ---------- Category / value grid ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
}

.value-cell .code {
  font-family: var(--font-display);
  color: var(--steel-light);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.value-cell p { font-size: 0.92rem; color: var(--steel); margin: 0; }

/* ---------- Product catalog ---------- */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.filter-btn {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.slot {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 168px;
}

.slot-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  background-image: radial-gradient(var(--line) 1.4px, transparent 1.4px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

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

.slot-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--steel-light);
  letter-spacing: 0.5px;
}

.slot-photo--empty .slot-photo-fallback { display: flex; }

.slot-body {
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slot .slot-code {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--work-orange);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.slot h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.slot .slot-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.slot .slot-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.slot .slot-unit {
  font-size: 0.78rem;
  color: var(--steel-light);
}

.slot p {
  font-size: 0.87rem;
  color: var(--steel);
  margin: 0;
}

.catalog-empty {
  padding: 3rem;
  text-align: center;
  color: var(--steel);
  border: 1px solid var(--line);
  border-top: none;
  display: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-family: var(--font-display);
  color: var(--steel-light);
  font-size: 0.85rem;
  margin-top: 1.4rem;
}

.contact-details dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

form.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--steel);
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--ink);
}

.form-status--success {
  background: var(--white);
  border-color: var(--ink);
}

.form-status--error {
  background: var(--white);
  border-color: var(--work-orange);
  color: var(--work-orange-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 2.4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid .brand { margin-bottom: 0.6rem; }

.footer-meta {
  font-size: 0.85rem;
  color: var(--steel);
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .value-grid,
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figures { flex-direction: row; text-align: left; }
}

@media (max-width: 620px) {
  nav.main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    transform: translateY(-110%);
    transition: transform 0.2s ease;
    border-top: 1px solid var(--line);
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 24px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--line); }
  nav.main-nav a { display: block; padding: 1rem 0; }
  .nav-toggle { display: flex; }
  .value-grid,
  .catalog-grid { grid-template-columns: 1fr; }
}

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