/* ============================================================
   Maschinenhandel Presslaber — style.css
   Design: Condensed industrial nameplate typography (Big Shoulders
   Display) paired with an engineering-spec body face (IBM Plex Sans)
   and a tabular mono face for numbers/data (IBM Plex Mono).
   Palette pulled from the actual field photography: spruce-forest
   dark, straw-paper light, burnt machine-orange as the single accent.
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-900.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-500.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-600.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.ttf') format('truetype');
}

/* ---------- tokens ---------- */
:root {
  --ink: #21231d;
  --forest: #2b3a2e;
  --forest-deep: #1b2119;
  --straw: #efe6cd;
  --paper: #faf7ee;
  --surface: #ffffff;
  --orange: #c94f19;
  --orange-strong: #ad3f13;
  --stone: #8a8570;
  --line: rgba(33, 35, 29, 0.14);
  --line-strong: rgba(33, 35, 29, 0.28);

  --bg: var(--paper);
  --bg-alt: var(--straw);
  --surface-1: var(--surface);
  --text: var(--ink);
  --text-muted: #57594c;
  --text-on-dark: #f3eeda;
  --text-on-dark-muted: #c7c3ac;
  --accent: var(--orange);
  --accent-ink: #ffffff;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(33, 35, 29, 0.06), 0 8px 24px -12px rgba(33, 35, 29, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--forest-deep);
    --bg-alt: #202a1e;
    --surface-1: #232c20;
    --text: var(--text-on-dark);
    --text-muted: var(--text-on-dark-muted);
    --accent: #e0692f;
    --accent-ink: #1b2119;
    --line: rgba(243, 238, 218, 0.14);
    --line-strong: rgba(243, 238, 218, 0.26);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme='dark'] {
  --bg: var(--forest-deep);
  --bg-alt: #202a1e;
  --surface-1: #232c20;
  --text: var(--text-on-dark);
  --text-muted: var(--text-on-dark-muted);
  --accent: #e0692f;
  --accent-ink: #1b2119;
  --line: rgba(243, 238, 218, 0.14);
  --line-strong: rgba(243, 238, 218, 0.26);
}
:root[data-theme='light'] {
  --bg: var(--paper);
  --bg-alt: var(--straw);
  --surface-1: var(--surface);
  --text: var(--ink);
  --text-muted: #57594c;
  --accent: var(--orange);
  --accent-ink: #ffffff;
  --line: rgba(33, 35, 29, 0.14);
  --line-strong: rgba(33, 35, 29, 0.28);
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--orange-strong); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 0.9rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.55rem;
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: #fff; }
.site-header.is-scrolled .brand { color: var(--text); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.88;
  position: relative;
}
.site-header.is-scrolled .main-nav a { color: var(--text); }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(20,22,16,0.86) 0%, rgba(20,22,16,0.42) 46%, rgba(20,22,16,0.35) 65%, rgba(20,22,16,0.55) 100%);
}
.hero-body { padding-block: 8rem 3.5rem; }
.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.96;
  max-width: 15ch;
  margin-block: 1.1rem 1.3rem;
  text-transform: uppercase;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-lede {
  font-size: 1.2rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.1rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* nameplate strip */
.nameplate {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,17,12,0.55);
  backdrop-filter: blur(6px);
}
.nameplate .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-block: 1.3rem;
}
.nameplate-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.92);
  border-left: 2px solid var(--accent);
  padding-left: 0.85rem;
}
.nameplate-item .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  margin-bottom: 0.3rem;
}

/* ---------- section headers ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-top: 0.6rem;
}
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.08rem; }
.section-alt { background: var(--bg-alt); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.service-card {
  background: var(--surface-1);
  padding: 2rem 1.6rem 2.2rem;
  position: relative;
}
.service-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 2.6rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  margin-bottom: 1.3rem;
}
.service-card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.services-extra {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 1rem;
}
.services-extra strong { color: var(--text); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 13vw;
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 3;
  grid-row: span 1;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 4; }
.gallery-item.narrow { grid-column: span 2; }
.gallery-item.full { grid-column: span 6; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(15,17,12,0.82), rgba(15,17,12,0));
  transform: translateY(6%);
  opacity: 0.92;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.about-media img { aspect-ratio: 4/5; object-fit: cover; }
.about-text p { color: var(--text-muted); margin-top: 1.1rem; }
.about-text p:first-of-type { margin-top: 1rem; }
.about-quote {
  margin-top: 1.8rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.15;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-call {
  background: var(--forest-deep);
  color: var(--text-on-dark);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
}
.contact-call .eyebrow { color: var(--accent); }
.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  color: #fff;
  text-decoration: none;
  margin-block: 0.7rem 0.3rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--accent); }
.contact-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(243,238,218,0.3);
}
.contact-email:hover { color: #fff; border-color: #fff; }
.contact-call .hours { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(243,238,218,0.18); }
.hours-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding-block: 0.35rem; font-family: var(--font-mono); color: var(--text-on-dark-muted); }
.hours-row span:last-child { color: #fff; font-variant-numeric: tabular-nums; }
.hours-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-on-dark-muted); font-style: italic; }
.hours-note-highlight {
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.contact-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--surface-1);
}
.contact-card h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.address-block { font-size: 1.02rem; color: var(--text); }
.address-block address { font-style: normal; line-height: 1.75; }
.contact-card .btn { margin-top: 1.4rem; }
.legal-note { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.4rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; }
.footer-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); text-align: right; line-height: 1.6; }
.footer-meta a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.designer-credit { background: var(--forest-deep); padding-block: 1.8rem; }
.designer-credit .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: flex-start; }
.designer-credit-intro { max-width: 32rem; }
.designer-credit-tagline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-on-dark-muted); }
.designer-credit-headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.5vw, 1.7rem); text-transform: uppercase; letter-spacing: 0.01em; color: var(--text-on-dark); margin: 0.5rem 0 0.15rem; }
.designer-credit-subheadline { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); margin: 0 0 0.6rem; }
.designer-credit-text { font-size: 0.85rem; color: var(--text-on-dark-muted); line-height: 1.6; margin: 0; }
.designer-credit-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-on-dark-muted); text-align: right; line-height: 1.6; }
.designer-credit-meta a { color: var(--text-on-dark); text-decoration: none; border-bottom: 1px solid rgba(243,238,218,0.3); }
.designer-credit-meta a:hover { color: #fff; border-color: #fff; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; }
  .gallery-item { grid-column: span 2 !important; grid-row: span 1 !important; }
}
@media (max-width: 720px) {
  .header-actions .btn-outline { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
  }
  .site-header.is-scrolled .nav-toggle { border-color: var(--line-strong); }
  .nav-toggle span { display: block; height: 2px; margin-inline: 0.6rem; background: #fff; }
  .site-header.is-scrolled .nav-toggle span { background: var(--text); }
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--forest-deep);
    padding: 6rem 1.5rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { color: var(--text-on-dark); opacity: 1; font-size: 1.3rem; padding-block: 0.7rem; border-bottom: 1px solid rgba(243,238,218,0.12); width: 100%; }
  .nameplate .container { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .hero-body { padding-top: 7rem; }
  section { padding-block: 3.2rem; }
  .designer-credit-meta { text-align: left; }
}
@media (min-width: 721px) {
  .nav-toggle { display: none; }
}
@media (max-width: 400px) {
  .hours-row { flex-direction: column; gap: 0.15rem; }
  .hours-row span:last-child { text-align: left; }
}
