/* ============================================
   Renneberg – Machinepark
   Clean standalone CSS – layout matcht homepage
   Brand: donkergrijs bg, wit/grijs tekst, goud #87704C
   Font: Saira (Google Fonts)
   ============================================ */

/* ---------- SAIRA via Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Achtergronden: donkergrijs in plaats van puur zwart voor minder hard contrast */
  --black:       #0f0f0f;
  --black-2:     #161616;
  --black-3:     #1c1c1c;
  --border:      #2a2a2a;
  --white:       #f0f0f0;
  --heading:     #ddd2bf;
  /* Grijstinten voor subtitels en secundaire tekst */
  --grey-light:  #c8c8c8;
  --grey:        #999999;
  --grey-dark:   #555555;
  --grey-subtle: #3a3a3a;
  --accent:      #87704C;
  --accent-dark: #5E4C31;
  --accent-light:#D9A441;
  --font:        'Saira', sans-serif;
  --font-btn:    'Saira', sans-serif;
  --max-width:   1230px;
  --header-h:    69px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  /* Lichtgrijs i.p.v. puur wit voor minder contrast */
  color: var(--grey-light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* (Header en page-body vervangen door gedeelde tab-nav uit /style.css) */

/* ============================
   INNER WRAPPER
   max-width 85% = zelfde breedte als header-inner zodat
   de linker-rand van de content uitlijnt met het logo.
   ============================ */
.inner,
.section-inner,
.detail-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 60px;
}

/* ============================
   PAGE HERO
   ============================ */
.page-hero {
  background: var(--black);
  padding-top: 90px;
  padding-bottom: 64px;
}

.page-hero h1 {
  font-family: "Saira", sans-serif !important;
  font-size: 42px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--heading) !important;
  margin-bottom: 52px !important;
  padding-left: 0 !important;
}

/* Subtitel — match bewerkingen styling */
.page-hero p {
  font-family: "Saira", sans-serif !important;
  font-size: 21px !important;
  color: #c8c8c8 !important;
  max-width: 980px;
  line-height: 1.65 !important;
  padding-left: 0 !important;
}

/* CATEGORIE NAV (intern – Technologie / Productie / Service) */
.cat-nav {
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 78px;
  z-index: 90;
}

.cat-nav-inner {
  padding: 0 60px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  display: block;
  padding: 14px 24px 14px 0;
  margin-right: 8px;
  text-decoration: none;
  color: #999;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cat-link:hover { color: #fff; }
.cat-link.active { color: #fff; border-bottom-color: var(--accent); }

/* ============================
   CATEGORY SECTION
   ============================ */
.category-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.category-section:nth-child(even) { background: var(--black-2); }

.section-header { margin-bottom: 48px; padding-left: 0; }

.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: "Saira", sans-serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--heading) !important;
  padding-left: 0 !important;
}

.section-header p {
  margin-top: 14px;
  font-family: "Saira", sans-serif !important;
  font-size: 21px !important;
  color: #c8c8c8 !important;
  max-width: 980px;
  padding-left: 0 !important;
}

/* ============================
   CARDS GRID
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--black-3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(135, 112, 76, 0.15);
}

.card-icon {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.card:hover .card-icon { background: #1f1a12; }

.card-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.25s;
}

.card:hover .card-icon svg { opacity: 1; }

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.card-desc {
  font-family: var(--font);
  font-size: 16px;
  color: var(--grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
}

.card:hover .card-arrow { gap: 12px; }

.card-arrow svg {
  width: 16px; height: 16px;
  color: var(--accent);
}

/* ============================
   DETAIL PAGE
   ============================ */
.detail-hero {
  padding: 60px 0;
  background: var(--black-2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--grey-dark);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--grey-dark);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: #444; }

.detail-hero h1 {
  font-family: var(--font);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--heading);
  margin-bottom: 16px;
}

.detail-hero .category-badge {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.detail-hero p {
  font-family: var(--font);
  font-size: 21px;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.65;
}

.detail-content {
  padding: 64px 0;
}

.placeholder-box {
  border: 1px dashed var(--border);
  border-left: 3px solid var(--accent);
  background: var(--black-2);
  padding: 32px;
  color: var(--grey);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.placeholder-box strong { color: var(--grey); }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--font);
  font-size: 16px;
}

.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:first-child { border-top: 1px solid var(--border); }

.specs-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.specs-table td:first-child {
  color: var(--grey-dark);
  font-weight: 700;
  width: 40%;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specs-table td:last-child { color: var(--white); }

/* CTA section */
.cta-section {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 64px 17px;
  text-align: center;
}

.cta-section h3 {
  font-family: var(--font);
  font-size: 42px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 16px;
}

.cta-section p {
  font-family: var(--font);
  color: var(--grey);
  font-size: 21px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  margin-left: 16px;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; height: 16px; }

/* ============================
   FOOTER – matcht homepage footer
   ============================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 28px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer p {
  font-family: var(--font);
  font-size: 13px;
  color: var(--grey-dark);
}

/* ============================
   HAMBURGER
   ============================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   RESPONSIVE
   Matcht Elementor breakpoints:
   ≤ 1200px → max-width 90%
   ≤ 1024px → max-width 90%
   ≤ 767px  → max-width 85%
   ============================ */
@media (max-width: 1200px) {
  .page-hero h1 { font-size: 48px; line-height: 48px; }
  .section-header h2 { font-size: 32px; }
  .cta-section h3 { font-size: 32px; }
}

@media (max-width: 1024px) {
  .page-hero h1 { font-size: 42px; line-height: 42px; }
}

@media (max-width: 767px) {
  :root { --header-h: 69px; }

  .header-inner { max-width: 100%; padding: 0; }
  .site-logo { max-width: 55%; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 24px 17px;
    z-index: 999;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; font-size: 16px; }

  .nav-toggle { display: flex; }

  .page-hero { padding-top: 48px; padding-bottom: 40px; }
  .page-hero h1 { font-size: 24px; line-height: 1.125em; }
  .page-hero p { font-size: 16px; }

  .tab-link { padding: 16px 18px; font-size: 13px; }

  .category-section { padding: 56px 0; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 16px; }
  .cards-grid { grid-template-columns: 1fr; }

  .detail-hero { padding: 40px 0; }
  .detail-hero h1 { font-size: 28px; }
  .detail-hero p { font-size: 16px; }
  .detail-content { padding: 40px 0; }

  .cta-section { padding: 48px 17px; }
  .cta-section h3 { font-size: 24px; }
  .cta-section p { font-size: 16px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
