/*
Theme Name: BessRe Theme
Theme URI: https://bess.re
Author: BessRe group
Description: BessRe — BESS After-Sales & O&M Partner in the Benelux. Design restored from Lovable original (brand green #00D26A, Inter + Noto Sans SC).
Version: 1.0.0
License: GPL-3.0-or-later
*/

:root {
  --green: #00D26A;
  --green-deep: #00a855;
  --green-tint: #e6faf0;
  --ink: #0f172a;
  --surface: #f6f8f7;
  --background: #ffffff;
  --muted: #6B7280;
  --border: #e5e7eb;
  --radius: .5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green-deep); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 120;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
header.site .hd {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 64px;
}
header.site .wordmark {
  font-weight: 800; font-size: 1.3rem; color: var(--ink);
  text-decoration: none; display: flex; align-items: baseline; gap: 2px;
}
header.site .wordmark .re { color: var(--green); }
nav.main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
nav.main a:hover { color: var(--green-deep); background: var(--surface); }
nav.main a.cta {
  background: var(--green); color: #002a17; font-weight: 700; margin-left: 8px;
}
nav.main a.cta:hover { background: var(--green-deep); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--green-tint) 0%, var(--background) 100%);
  padding: 80px 0 48px;
}
.hero .badge {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--green-deep);
  background: var(--green-tint); border: 1px solid var(--green);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
}
.btn.primary { background: var(--green); color: #002a17; }
.btn.primary:hover { background: var(--green-deep); color: #fff; }
.btn.ghost { border: 1px solid var(--border); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }

/* Stats */
.stats { padding: 40px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.stat .label { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 10px; }
.lede { font-size: 1.1rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.card a { font-weight: 600; font-size: .9rem; }

/* Footer */
footer.site {
  background: var(--ink); color: #d1d5db; padding: 48px 0 24px;
}
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
footer.site a { color: #d1d5db; text-decoration: none; display: block; margin-bottom: 8px; font-size: .9rem; }
footer.site a:hover { color: var(--green); }
footer.site .legal { grid-column: 1 / -1; font-size: .8rem; color: #9ca3af; border-top: 1px solid #374151; padding-top: 16px; margin-top: 16px; }
footer.site .legal a { display: inline; }

/* Responsive */
@media (max-width: 900px) {
  .stats .grid, .grid-2, .grid-3, footer.site .grid { grid-template-columns: 1fr; }
  header.site .hd { flex-wrap: wrap; height: auto; padding: 12px 24px; }
  nav.main { flex-wrap: wrap; }
}

/* Language switcher */
.lang-switch { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.lang-switch a { font-size: .85rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang-switch a.active { background: var(--green-tint); color: var(--green-deep); }
