/* ============================================================
   Beter Wonen – Landing Page  (premium redesign)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #171b25;
  line-height: 1.7;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
section { position: relative; overflow: hidden; }

/* ── Navbar ──────────────────────────────────────────────────── */
.bw-nav {
  height: 64px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.bw-powered {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.bw-logo {
  height: 22px;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.bw-logo:hover { opacity: 1; }
@media (max-width: 575px) { .bw-logo { height: 15px; } }

/* ── Hero ─────────────────────────────────────────────────────── */
.bw-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: url(../img/landingspage-header.jpg) center center / cover no-repeat;
  background-attachment: fixed;
}
.bw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.6) 50%, rgba(0,28,26,0.88) 100%);
}
.bw-hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0 56px;
}
.bw-stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bw-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.bw-stat:last-child { border-right: none; }
.bw-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,148,136,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.bw-stat-text {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 767px) {
  .bw-hero { background-attachment: scroll; min-height: 85vh; }
  .bw-stat { padding: 14px 14px; gap: 8px; }
  .bw-stat-icon { width: 32px; height: 32px; font-size: 0.88rem; }
  .bw-stat-text { font-size: 0.74rem; }
}

/* ── Hero text ────────────────────────────────────────────────── */
.bw-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,148,136,0.2);
  border: 1px solid rgba(0,200,185,0.4);
  color: #7ee8e0;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.bw-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 740px;
}
.bw-hero-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ── Section helpers ──────────────────────────────────────────── */
.bw-section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: 0.4rem;
}
.bw-section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #171b25;
  margin-bottom: 0.75rem;
}
.bw-section-lead {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.72;
}

/* ── Aanpak (steps) ───────────────────────────────────────────── */
.bw-aanpak { background: #f5f9f8; padding: 88px 0; }
.bw-step-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 6px 20px rgba(0,148,136,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.bw-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--bs-primary), var(--bs-primary-dark));
  border-radius: 18px 0 0 18px;
}
.bw-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.07), 0 16px 40px rgba(0,148,136,0.12);
}
.bw-step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,148,136,0.3);
}
.bw-step-icon { font-size: 1.6rem; color: var(--bs-primary); margin-bottom: 0.6rem; display: block; }
.bw-step-card h5 { font-weight: 700; font-size: 0.975rem; margin-bottom: 0.5rem; color: #1a202c; }
.bw-step-card p { font-size: 0.875rem; color: #6b7280; margin: 0; line-height: 1.65; }

/* ── Samenwerking ─────────────────────────────────────────────── */
.bw-samenwerking {
  background: linear-gradient(148deg, var(--bs-primary-dark) 0%, var(--bs-primary) 100%);
  padding: 88px 0;
}
.bw-samenwerking .bw-section-label { color: rgba(255,255,255,0.58); }
.bw-samenwerking .bw-section-title { color: #fff; }
.bw-samenwerking .bw-section-lead { color: rgba(255,255,255,0.76); }
.bw-partner-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px; padding: 2rem 1.75rem;
  height: 100%;
  transition: background 0.25s, transform 0.25s;
}
.bw-partner-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-4px); }
.bw-partner-card img {
  height: 28px; margin-bottom: 1.25rem;
  filter: brightness(0) invert(1); opacity: 0.95; object-fit: contain;
}
.bw-partner-card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin: 0; line-height: 1.65; }

/* ── Contact ──────────────────────────────────────────────────── */
.bw-contact { background: #fff; padding: 88px 0; }
.bw-contact-card {
  border-radius: 18px; border: 1.5px solid #ddf0ee;
  padding: 2.25rem 1.75rem; text-align: center;
  text-decoration: none !important; display: block;
  color: #171b25;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  background: #fff;
}
.bw-contact-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 28px rgba(0,148,136,0.14);
  transform: translateY(-5px); color: var(--bs-primary);
}
.bw-contact-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #e8f8f7;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--bs-primary); margin: 0 auto 1rem;
  transition: background 0.25s, color 0.25s;
}
.bw-contact-card:hover .bw-contact-icon { background: var(--bs-primary); color: #fff; }
.bw-contact-label { font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.bw-contact-value { font-weight: 700; font-size: 1.05rem; }

/* ── Partners (financiering) ──────────────────────────────────── */
.bw-partners { background: #f5f9f8; padding: 88px 0; }
.bw-fpartner-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  border: 1.5px solid #e6efee; height: 100%;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.bw-fpartner-card:hover {
  box-shadow: 0 6px 24px rgba(0,148,136,0.1); border-color: #b3ddd9; transform: translateY(-3px);
}
.bw-fpartner-card img { max-height: 36px; margin-bottom: 1rem; object-fit: contain; display: block; }
.bw-fpartner-card p { font-size: 0.875rem; color: #6b7280; margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.bw-faq { background: #fff; padding: 88px 0; }
.bw-faq-wrap .accordion-item {
  border: none; margin-bottom: 10px; border-radius: 12px !important; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.055); transition: transform 0.2s, box-shadow 0.2s;
}
.bw-faq-wrap .accordion-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.bw-faq-wrap .accordion-button {
  font-weight: 600; font-size: 0.95rem; color: #171b25; background: #fff; padding: 18px 22px;
}
.bw-faq-wrap .accordion-button::before { content: none !important; }
.bw-faq-wrap .accordion-button::after { display: inline-block !important; background-size: 16px; transition: transform 0.3s, filter 0.3s; }
.bw-faq-wrap .accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(135deg, var(--bs-primary-dark), var(--bs-primary));
  box-shadow: none !important;
}
.bw-faq-wrap .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.bw-faq-wrap .accordion-button:focus { box-shadow: none; }
.bw-faq-wrap .accordion-collapse { background: #fff !important; }
.bw-faq-wrap .accordion-body { padding: 20px 22px; color: #4b5563; font-size: 0.93rem; line-height: 1.75; }

/* ── CTA Banner ───────────────────────────────────────────────── */
.bw-cta {
  background: linear-gradient(135deg, var(--bs-primary-dark) 0%, var(--bs-primary) 100%);
  padding: 80px 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.bw-footer {
  background: url(../img/landingspage-header.jpg) center 70% / cover no-repeat;
  position: relative; padding: 88px 0 52px; background-attachment: fixed;
}
.bw-footer-overlay { position: absolute; inset: 0; background: rgba(0,18,16,0.88); }
.bw-footer-inner { position: relative; z-index: 2; text-align: center; }
.bw-footer-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 2.25rem; flex-wrap: wrap;
}
.bw-footer-logos img { height: 22px; filter: brightness(0) invert(1); opacity: 0.65; transition: opacity 0.2s; }
.bw-footer-logos img:hover { opacity: 1; }
.bw-footer-title { font-size: 1.5rem; font-weight: 700; color: #fff; max-width: 540px; margin: 0 auto 0.5rem; line-height: 1.35; }
.bw-footer-sub { color: rgba(255,255,255,0.48); font-size: 0.875rem; margin-bottom: 2rem; }
.bw-footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.5rem; }
.bw-footer-links a { color: rgba(255,255,255,0.42); font-size: 0.8rem; text-decoration: none; margin: 0 12px; transition: color 0.2s; }
.bw-footer-links a:hover { color: rgba(255,255,255,0.88); }
.bw-footer-copy { color: rgba(255,255,255,0.26); font-size: 0.74rem; margin-top: 1rem; }

/* ── Scroll-to-top ────────────────────────────────────────────── */
.scroll-top-wrapper { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: auto !important; }
.scroll-top {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bs-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none; border: none;
  box-shadow: 0 4px 14px rgba(0,148,136,0.38); transition: all 0.25s; font-size: 1rem;
}
.scroll-top:hover { background: var(--bs-primary-dark); color: #fff; transform: translateY(-4px); }

/* ── Legacy compat ────────────────────────────────────────────── */
.bg-grey { background: #f5f9f8 !important; }
.bg-half { background: linear-gradient(148deg, var(--bs-primary-dark), var(--bs-primary)) !important; }
.bg-green { background: linear-gradient(135deg, var(--bs-primary-dark), var(--bs-primary)) !important; }
.pe-6 { padding-right: 3.5rem !important; }
@media (max-width: 767px) { .bw-hero, .bw-footer { background-attachment: scroll; } }
