/* ═══════════════════════════════════════════
   Zakelijk Energie Advies — Shared Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --green:        #1B9C85;
  --green-dark:   #137A6E;
  --green-bg:     #071816;
  --green-light:  #E0F5F2;
  --green-subtle: #F0FAF8;
  --text:         #0E1E1C;
  --muted:        #4A6660;
  --border:       rgba(15,31,20,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text); background: #fff;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ── Noise grain ── */
.noise { position: relative; isolation: isolate; }
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  mix-blend-mode: overlay; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ── Typography ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-light); color: var(--green-dark);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.375rem 1rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: var(--green); color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9375rem;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(27,156,133,0.25), 0 1px 2px rgba(0,0,0,0.08);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, background 0.15s ease;
  letter-spacing: -0.01em; border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #18AE9A; transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(27,156,133,0.14), 0 8px 24px rgba(27,156,133,0.28);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border: 1.5px solid rgba(255,255,255,0.28); color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9375rem;
  border-radius: 100px; text-decoration: none; background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px); letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.11); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 3px; }

.btn-outline-green {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border: 1.5px solid var(--green); color: var(--green);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9375rem;
  border-radius: 100px; text-decoration: none; background: transparent;
  letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), background 0.15s ease, color 0.15s ease;
}
.btn-outline-green:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-outline-green:active { transform: translateY(0); }
.btn-outline-green:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.2rem 0;
  transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(7,24,22,0.96) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(27,156,133,0.12), 0 4px 20px rgba(0,0,0,0.2);
  padding: 0.8rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-link {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

.nav-links { display: flex; align-items: center; gap: 2.25rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after {
  content: ' ▾'; font-size: 0.7rem; opacity: 0.6;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: rgba(7,24,22,0.97); backdrop-filter: blur(14px);
  border: 1px solid rgba(27,156,133,0.14); border-radius: 14px;
  padding: 0.5rem; min-width: 230px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.9rem; color: rgba(255,255,255,0.68);
  text-decoration: none; font-size: 0.9rem; border-radius: 9px;
  transition: color 0.15s ease, background 0.15s ease;
}
.dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.dropdown-menu a.active { color: var(--green); }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1.25rem; background: var(--green); color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.875rem;
  border-radius: 100px; text-decoration: none; letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(27,156,133,0.3);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,156,133,0.4); }
.nav-cta:active { transform: translateY(0); }
.nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Mobile nav ── */
#mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: rgba(7,24,22,0.98); backdrop-filter: blur(16px);
  position: absolute; top: 100%; left: 0; right: 0;
  border-bottom: 1px solid rgba(27,156,133,0.12);
  padding: 1rem 1.5rem 1.5rem;
}
#mobile-menu.open { display: flex; }
.mob-link {
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 1.0625rem; font-weight: 500;
  padding: 0.875rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s ease; letter-spacing: -0.01em;
}
.mob-link:hover { color: var(--green); }
.mob-link.sub {
  font-size: 0.9375rem; padding: 0.625rem 0 0.625rem 1rem;
  color: rgba(255,255,255,0.5);
}
.mob-link.sub:hover { color: var(--green); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background-color: var(--green-bg);
  background-image:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(27,156,133,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 50%, rgba(27,156,133,0.08) 0%, transparent 55%);
  padding: 8rem 0 4rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid rgba(15,31,20,0.08); border-radius: 20px; padding: 2rem;
  box-shadow: 0 2px 8px rgba(15,31,20,0.04), 0 1px 2px rgba(0,0,0,0.04);
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(27,156,133,0.12), 0 12px 32px rgba(27,156,133,0.12), 0 4px 8px rgba(0,0,0,0.06);
  border-color: rgba(27,156,133,0.2);
}
.card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; flex-shrink: 0;
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--green); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; letter-spacing: -0.01em; margin-top: 1rem;
  transition: gap 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.arrow-link:hover { gap: 0.7rem; }
.arrow-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ── USP check list ── */
.usp-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.usp-item:last-child { border-bottom: none; }
.check-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ── Stat card ── */
.stat-card {
  background: var(--green-bg); border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(7,24,22,0.25);
}
.stat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(27,156,133,0.18) 0%, transparent 70%);
}

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: -0.01em; }
.form-label.dark { color: var(--muted); }
.form-input {
  width: 100%; padding: 0.875rem 1.125rem;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.9375rem; outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.28); }
.form-input:hover { border-color: rgba(255,255,255,0.25); }
.form-input:focus { border-color: var(--green); background: rgba(27,156,133,0.07); }
.form-input.light {
  background: #fff; border-color: rgba(15,31,20,0.15); color: var(--text);
}
.form-input.light::placeholder { color: rgba(79,102,87,0.5); }
.form-input.light:focus { border-color: var(--green); background: var(--green-light); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── CTA strip ── */
.cta-strip {
  background-color: var(--green-bg);
  background-image: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(27,156,133,0.18) 0%, transparent 70%);
  padding: 5rem 0; text-align: center;
}

/* ── Footer ── */
footer {
  background: var(--green-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-links a {
  color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-copy p { color: rgba(255,255,255,0.28); font-size: 0.875rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .hamburger    { display: flex !important; }
  .two-col      { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .four-col     { grid-template-columns: 1fr 1fr !important; }
  .section      { padding: 4rem 0; }
}
@media (max-width: 768px) {
  .four-col  { grid-template-columns: 1fr !important; }
  .two-stat  { grid-template-columns: 1fr 1fr !important; }
  .hero-stats { gap: 2rem !important; }
}
@media (max-width: 480px) {
  .two-stat  { grid-template-columns: 1fr !important; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--green-subtle); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
