/* =========================================================
   Groeniek - Mobile components
   Hamburger menu + sticky bottom CTA
   Include on every page:
     <link rel="stylesheet" href="assets/mobile.css">
   ========================================================= */

/* --- Hamburger button --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav drawer --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--groeniek-blue);
  z-index: 49;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 500;
  color: hsl(45 20% 88%);
  border-bottom: 1px solid hsl(220 40% 22%);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: #fff; background: hsl(220 40% 20%); }
.mobile-nav .mobile-cta {
  padding: 24px 24px 32px;
  border-top: 1px solid hsl(220 40% 22%);
}
.mobile-nav .mobile-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  min-height: 52px;
}

/* --- Sticky bottom CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 48;
  background: var(--groeniek-blue-dark);
  border-top: 1px solid hsl(220 40% 22%);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -4px 24px hsl(220 60% 10% / 0.35);
}
.sticky-cta .btn {
  flex: 1;
  justify-content: center;
  font-size: 15px;
  min-height: 48px;
}
.sticky-cta .btn-call {
  background: transparent;
  border: 1px solid hsl(220 40% 40%);
  color: hsl(45 20% 90%);
}
.sticky-cta .btn-call:hover { border-color: #fff; color: #fff; }

/* --- Show on mobile --- */
@media (max-width: 980px) {
  html, body   { overflow-x: hidden; }
  .burger      { display: flex; }
  .sticky-cta  { display: flex; }
  body         { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* Op mobiel/tablet: alleen logo + hamburger in header. Geen telefoon-
     nummer, geen Plan adviesgesprek-knop. Het hamburger-menu bevat alle
     CTA's. */
  .header-cta  { display: none !important; }
}

@media (max-width: 560px) {
  .topbar      { display: none; }
}
