/* ─── Google Fonts loaded in HTML ─────────────────────────────────────────── */

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --white:      #ffffff;
  --cream:      #f5f2ec;
  --cream-dk:   #ede9e1;
  --forest:     #1b4332;
  --forest-mid: #2d6a4f;
  --forest-lt:  #40916c;
  --gold:       #b5810a;
  --gold-lt:    #d4a017;
  --charcoal:   #1a1f1c;
  --ink:        #2c3530;
  --steel:      #4f5c55;
  --muted:      #7a8880;
  --border:     #d4cec4;
  --border-lt:  #e8e3da;

  /* Typography */
  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --nav-h:  88px;
  --radius: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow:    0 3px 14px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.13);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
p { line-height: 1.75; color: var(--steel); }
img { display: block; max-width: 100%; }

/* ─── NAVBAR — white bar, dark text ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  cursor: pointer;
}

.navbar-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.navbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Nav links — right-aligned, dark text */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--forest); }
.nav-link.active {
  color: var(--forest);
  font-weight: 700;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

/* Language switcher — flags only */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.18s;
  padding: 0;
}
.lang-btn:hover { border-color: var(--forest-mid); background: rgba(27,67,50,0.05); }
.lang-btn.active { border-color: var(--forest); background: rgba(27,67,50,0.1); }
.flag { font-size: 1.05rem; line-height: 1; }
.lang-label { display: none; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(0,0,0,0.5);
  border-radius: 2px;
}

/* ─── PAGE WRAPPER ───────────────────────────────────────────────────────── */
.page-wrapper {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.page-section {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}
.page-section.active {
  display: block;
  animation: pageIn 0.3s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-section::-webkit-scrollbar { width: 5px; }
.page-section::-webkit-scrollbar-track { background: transparent; }
.page-section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── HOME — HERO ────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 148px - 82px); /* 148 = partner-bar, 82 = contact-bar */
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--charcoal);
}

/* Full-bleed background photo */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Slight transparency / desaturation to give industrial feel */
  opacity: 0.72;
  filter: saturate(0.85) brightness(0.88);
  z-index: 0;
}

/* Gradient overlay — left-heavy so text reads clearly */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 22, 14, 0.88) 0%,
    rgba(10, 22, 14, 0.70) 40%,
    rgba(10, 22, 14, 0.20) 70%,
    rgba(10, 22, 14, 0.04) 100%
  );
  z-index: 1;
}

/* Left-aligned text column */
.hero-text-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 4rem 3.5rem 4rem 4.5rem;
  width: 55%;
  max-width: 660px;
}

/* Text colours over dark photo */
.hero-pre-text { color: var(--gold-lt); }
.hero-headline { color: #ffffff; }
.hero-headline em { color: #ffffff; font-style: normal; }
.hero-subline { color: rgba(255,255,255,0.85); max-width: 480px; }
.hero-cta { align-self: flex-start; }

/* ─── PARTNER BAR — full-width white bar ─────────────────────────────────── */
.partner-bar {
  background: #ffffff;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  flex-shrink: 0;
}

.partner-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.partner-bar-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

.partner-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-bar-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.partner-bar-logo img:hover { opacity: 0.85; }

.partner-bar-fallback {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.04em;
}

.hero-pre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-pre-line {
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.hero-pre-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  color: #ffffff;
  font-style: normal;
}

.hero-subline {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--forest);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.hero-cta:hover { background: var(--forest-mid); transform: translateY(-2px); }
.hero-cta-arrow { font-size: 1rem; transition: transform 0.2s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

/* Partner badges in hero bottom */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-badge-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hero-badge {
  display: flex;
  align-items: center;
}
.hero-badge img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.8);
  transition: filter 0.2s;
}
.hero-badge img:hover { filter: grayscale(0) opacity(1); }
.hero-badge-fallback {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.5;
}

/* Right column — hidden, photo fills full background */
.hero-visual-col {
  display: none;
}

/* ─── HOME — CONTACT BAR ─────────────────────────────────────────────────── */
.contact-bar {
  background: var(--charcoal);
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2.5rem;
  border-top: 2px solid var(--forest-mid);
}
.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.contact-bar-icon { font-size: 0.9rem; opacity: 0.6; }
.contact-bar-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1px;
}
.contact-bar-value {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.contact-bar-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.08);
}

/* ─── GENERIC PAGE SHELL ─────────────────────────────────────────────────── */
.page-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
}

/* Page header strip */
.page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-head-left {}
.page-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.page-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
}
.page-sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}
.page-head-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--border-lt);
  line-height: 1;
  user-select: none;
}

/* ─── SECTION LABEL ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.1rem; font-size: 0.95rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-block {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Partner cards on About */
.partner-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.partner-card-logo {
  background: var(--cream-dk);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid var(--border);
}
.partner-card-logo img {
  max-height: 112px;
  max-width: 280px;
  object-fit: contain;
}
.partner-logo-text-fallback {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.03em;
}
.partner-card-body { padding: 1.5rem 1.75rem; }
.partner-card-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.partner-card-body p { font-size: 0.88rem; }

/* ─── BIOGAS PAGE ────────────────────────────────────────────────────────── */
/* Override display:block only when active — homepage-style split layout */
#page-biogas.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Main body: photo left 2/3, white panel right 1/3 */
.biogas-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
}

/* Left: full-bleed biogas photo */
.biogas-photo-bg {
  background-image: url('../assets/biogas-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.biogas-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,14,0.35) 0%, rgba(10,22,14,0.05) 100%);
}

/* Right: white services panel */
.biogas-panel {
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.biogas-panel-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.biogas-panel-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-lt);
  margin-bottom: 0.4rem;
}
.biogas-panel-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

/* 2×3 grid inside the panel */
.biogas-matrix {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.biogas-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  background: #ffffff;
  transition: background 0.18s;
  user-select: none;
}
.biogas-card:nth-child(even) { border-right: none; }
.biogas-card:nth-last-child(-n+2) { border-bottom: none; }
.biogas-card:hover { background: var(--cream); }
.biogas-card:active { background: var(--cream-dk); }

.biogas-card-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest-lt);
  letter-spacing: 0.06em;
}
.biogas-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
}

/* White bottom bar — same structure as partner bar */
.biogas-bottom-bar {
  background: #ffffff;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.biogas-bottom-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}
.biogas-bottom-stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.biogas-bottom-stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.3rem;
}
.biogas-bottom-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
}
.biogas-bottom-text {
  color: var(--steel);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 520px;
}

/* Modal overlay */
.biogas-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,14,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  backdrop-filter: blur(3px);
}
.biogas-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.biogas-modal-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  max-width: 560px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s;
}
.biogas-modal-overlay.open .biogas-modal-card {
  transform: translateY(0) scale(1);
}
.biogas-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--steel);
  padding: 0.3rem 0.5rem;
  transition: color 0.15s;
  line-height: 1;
}
.biogas-modal-close:hover { color: var(--charcoal); }
.biogas-modal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
  line-height: 1.25;
  padding-right: 2rem;
}
.biogas-modal-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--steel);
}

/* ─── MAINTENANCE PAGE ───────────────────────────────────────────────────── */
#page-maintenance.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Split body: photo left 2/3, panel right 1/3 */
.maint-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
}

/* Left: shop floor photo */
.maint-photo-bg {
  background-image: url('../assets/maintenance-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.maint-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,14,0.25) 0%, rgba(10,22,14,0.04) 100%);
}

/* Right: white equipment panel */
.maint-panel {
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.maint-panel-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.maint-panel-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-lt);
  margin-bottom: 0.4rem;
}
.maint-panel-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

/* 2×3 equipment matrix */
.maint-matrix {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.maint-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  background: #ffffff;
  transition: background 0.18s;
  user-select: none;
}
.maint-card:nth-child(even) { border-right: none; }
.maint-card:nth-last-child(-n+2) { border-bottom: none; }
.maint-card:hover { background: var(--cream); }
.maint-card:active { background: var(--cream-dk); }
.maint-card-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest-lt);
  letter-spacing: 0.06em;
}
.maint-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
}

/* White bottom bar: Vogelsang logo + exclusive partner statement */
.maint-bottom-bar {
  background: #ffffff;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.maint-bottom-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.maint-bottom-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.maint-bottom-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}
.maint-bottom-statement {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.maint-bottom-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-lt);
}
.maint-bottom-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

/* Maintenance modal */
.maint-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,14,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  backdrop-filter: blur(3px);
}
.maint-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.maint-modal-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  max-width: 560px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s;
}
.maint-modal-overlay.open .maint-modal-card {
  transform: translateY(0) scale(1);
}
.maint-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--steel);
  padding: 0.3rem 0.5rem;
  transition: color 0.15s;
  line-height: 1;
}
.maint-modal-close:hover { color: var(--charcoal); }
.maint-modal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
  line-height: 1.25;
  padding-right: 2rem;
}
.maint-modal-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--steel);
}

/* ─── SPARE PARTS PAGE ───────────────────────────────────────────────────── */
#page-spare.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Split body: warehouse photo left 2/3, quote panel right 1/3 */
.spare-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
}

/* Left: warehouse photo */
.spare-photo-bg {
  background-image: url('../assets/spare-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.spare-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,14,0.18) 0%, rgba(10,22,14,0.03) 100%);
}

/* Right: white panel */
.spare-panel {
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.spare-panel-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.spare-panel-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-lt);
  margin-bottom: 0.4rem;
}
.spare-panel-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.spare-panel-sub {
  font-size: 0.85rem;
  color: var(--steel);
}

/* Quote block */
.spare-quote-block {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex: 1;
}
.spare-quote-intro {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--steel);
}
.spare-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.spare-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.spare-bullet-dot {
  width: 7px;
  height: 7px;
  background: var(--forest);
  border-radius: 50%;
  flex-shrink: 0;
}
.spare-cta-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  align-self: stretch;
  margin-top: auto;
}
.spare-cta-btn:hover { background: var(--forest-mid); }

/* White bottom bar: Suma logo + statement */
.spare-bottom-bar {
  background: #ffffff;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.spare-bottom-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.spare-bottom-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.spare-bottom-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}
.spare-bottom-statement {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.spare-bottom-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-lt);
}
.spare-bottom-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

/* ─── CONTACT PAGE ───────────────────────────────────────────────────────── */
#page-contact.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top details bar */
.contact-details-bar {
  background: var(--charcoal);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  border-bottom: 2px solid var(--forest-mid);
}
.contact-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.contact-detail-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.contact-detail-val {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
}
.contact-detail-sep {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Main split body */
.contact-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* Left half: van photo */
.contact-photo-bg {
  background-image: url('../assets/contact-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.contact-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,14,0.25) 0%, rgba(10,22,14,0.04) 100%);
}

/* Right half: form panel */
.contact-form-panel {
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem;
  overflow-y: auto;
}
.contact-form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.contact-form-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-lt);
  margin-bottom: 0.4rem;
}
.contact-form-heading {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.contact-form-sub {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.55;
}
.tba {
  font-style: italic;
  opacity: 0.45;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-textarea--short { min-height: 90px; }
.form-submit {
  width: 100%;
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--forest-mid); }

/* ─── REVEAL ANIMATION ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-visual-col { display: none; }
  .maint-body { grid-template-columns: 1fr; }
  .maint-photo-bg { display: none; }
  .maint-panel { border-left: none; }
  .spare-body { grid-template-columns: 1fr; }
  .spare-photo-bg { display: none; }
  .spare-panel { border-left: none; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .partner-bar { height: auto; padding: 1.25rem 1.5rem; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .partner-bar-logo img { height: 60px; }
  .partner-bar-sep { display: none; }
  .home-hero { min-height: calc(100vh - 58px - 100px - 82px); }
  .hero-text-col { width: 100%; padding: 2.5rem 1.5rem; }
  .navbar { padding: 0 1rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--charcoal);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 999;
    border-bottom: 2px solid var(--forest);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.65rem 1rem; }
  .nav-link.active::after { display: none; }
  .menu-toggle { display: flex; }
  .lang-btn { font-size: 0.6rem; padding: 0.22rem 0.38rem; }
  .hero-text-col { padding: 2.5rem 1.5rem; }
  .contact-bar { flex-wrap: wrap; height: auto; padding: 1rem 1.5rem; gap: 1rem; }
  .contact-details-bar { height: auto; padding: 1rem; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
  .contact-detail-sep { display: none; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-photo-bg { display: none; }
  .contact-form-panel { border-left: none; padding: 1.5rem; }
  .partner-cards { grid-template-columns: 1fr; }
  .spare-bottom-bar { height: auto; padding: 1.25rem 1.5rem; gap: 1.5rem; flex-wrap: wrap; }
  .spare-bottom-sep { display: none; }
  .spare-bottom-title { font-size: 1.15rem; }
  .page-inner { padding: 2rem 1.25rem 3rem; }
  .page-head { grid-template-columns: 1fr; }
  .page-head-num { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .spare-features { grid-template-columns: 1fr 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
  .maint-bottom-bar { height: auto; padding: 1.25rem 1.5rem; gap: 1.5rem; flex-wrap: wrap; }
  .maint-bottom-sep { display: none; }
  .maint-bottom-title { font-size: 1.15rem; }
  .biogas-body { grid-template-columns: 1fr; }
  .biogas-photo-bg { display: none; }
  .biogas-panel { border-left: none; }
  .biogas-bottom-bar { height: auto; padding: 1.25rem 1.5rem; gap: 1.5rem; flex-wrap: wrap; }
  .biogas-bottom-sep { display: none; }
  .biogas-bottom-text { font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 2.6rem; }
}
