/* ==========================================================================
   Racefiets Lease — huisstijl gebaseerd op fietsleaseholland.nl
   Kleuren en font (Poppins) overgenomen uit de bestaande FLH-website.
   ========================================================================== */

:root {
  --color-primary: #5B8E2D;
  --color-primary-dark: #46701f;
  --color-primary-hover: #56862a;
  --color-primary-light: #eaf3e1;

  --color-text: #262D33;
  --color-text-secondary: #4B4E54;
  --color-muted: #7a7d82;

  --color-bg: #ffffff;
  --color-bg-alt: #F9F9FA;
  --color-bg-alt2: #f5f5f5;

  --color-border: #e0e0e0;
  --color-border-light: #f0f0f1;

  --font-body: "Poppins", "Poppins Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(38, 45, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(38, 45, 51, 0.10);

  --container-width: 1180px;
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--color-text-secondary); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.5em 1.1em; font-size: 0.9rem; }
.btn--lg { padding: 0.85em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; white-space: normal; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* -------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark { color: var(--color-primary); display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title { font-weight: 500; font-size: 1.15rem; color: var(--color-text); }
.brand__title strong { color: var(--color-primary); font-weight: 800; }
.brand__sub { font-size: 0.68rem; color: var(--color-muted); letter-spacing: 0.02em; }
.brand__title--footer { font-size: 1.3rem; }

.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); }
.main-nav a:hover { color: var(--color-primary); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 65%);
}
.hero__bg {
  position: absolute;
  top: -120px;
  right: -140px;
  color: var(--color-primary);
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner { position: relative; padding: 88px 24px 96px; }
.hero__content { max-width: 700px; }

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: 1.1rem;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 2rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.hero__trust strong { color: var(--color-primary-dark); }

/* -------------------------------- Sections --------------------------------- */
.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--form { background: var(--color-bg-alt); }

.section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section__intro { font-size: 1.05rem; }

.fine-print {
  font-size: 0.82rem;
  color: var(--color-muted);
  max-width: 760px;
  margin: 2.5rem auto 0;
  line-height: 1.6;
}

/* ---------------------------------- Grid ----------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------------------------- Cards ----------------------------------- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--bordered { border: 1px solid var(--color-border-light); box-shadow: none; }
.card--bordered:hover { border-color: var(--color-primary); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* --------------------------------- Steps ------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 0.25rem; }
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

/* -------------------------------- Bike cards -------------------------------- */
.bike-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border-light);
  text-align: center;
}
.bike-card__visual {
  display: block;
  height: 90px;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt2);
}
.bike-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bike-card h3 { font-size: 1rem; }
.bike-card p { font-size: 0.88rem; margin-bottom: 0.75rem; }
.bike-card__cta { width: 100%; margin-top: 0.25rem; }

/* --------------------------------- Accordion --------------------------------- */
.accordion__item { border-bottom: 1px solid var(--color-border-light); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}
.accordion__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.accordion__icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.accordion__icon::after { width: 2px; height: 100%; top: 0; left: 8px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion__panel p { padding-bottom: 1.25rem; font-size: 0.95rem; }

/* ----------------------------------- Form ------------------------------------ */
.offer-form {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.form-field textarea { resize: vertical; }

.form-field--checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-field--checkbox input { width: auto; margin-top: 0.25rem; }
.form-field--checkbox label { font-size: 0.85rem; font-weight: 400; color: var(--color-text-secondary); }
.form-field--checkbox a { color: var(--color-primary-dark); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: var(--color-primary-dark); }
.form-status[data-state="error"] { color: #b3261e; }

/* --------------------------------- Footer -------------------------------- */
.site-footer { background: #1f2429; color: #cfd2d6; padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand p { color: #9ba0a6; font-size: 0.9rem; margin: 0.75rem 0 1.25rem; }
.footer__flh-logo { filter: brightness(0) invert(1); opacity: 0.85; }

.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { color: #9ba0a6; font-size: 0.9rem; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #8a8f95;
}
.footer__bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__bottom a { color: #8a8f95; }
.footer__bottom a:hover { color: #fff; }

/* -------------------------------- Responsive ------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
    flex-direction: column;
    padding: 1rem 24px 1.5rem;
    gap: 0.25rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--sm { display: none; }

  .hero__inner { padding: 56px 24px 64px; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .offer-form { padding: 1.5rem; }

  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
