/* =========================================================================
   JustAdmin — one-pager thema
   Overgenomen uit design/version2 (design-referentie). Inline styles uit de
   handoff zijn hier omgezet naar nette classes; waarden zijn 1-op-1 behouden.
   ========================================================================= */

/* ---- Reset / basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FAF8F3;
  color: #173B37;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

/* ---- Design tokens ---- */
.ja-page {
  --p: #0E7C72;      /* primair groen */
  --p2: #0E9B8E;     /* groen accent  */
  --soft: #9FE9DF;   /* mint          */
  --bg: #FAF8F3;     /* crème         */
  --ink: #173B37;    /* donker        */
  --muted: #5D6F6B;  /* gedempt       */
  --wa: #25D366;     /* WhatsApp      */
  --line: #ECE9E1;   /* randkleur     */
  --input: #E0DDD4;  /* input-rand    */
  --err: #C0392B;    /* foutmelding   */
  container-type: inline-size;
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ja-page [id] { scroll-margin-top: 84px; }

/* Lettertype-helpers */
.ja-display { font-family: 'Bricolage Grotesque', sans-serif; }
.ja-serif   { font-family: 'Instrument Serif', serif; }

/* Decoratieve zweefanimaties (hero-cirkels) */
@keyframes jaFloat  { 0%,100% { transform: translateY(0);  } 50% { transform: translateY(-16px); } }
@keyframes jaFloat2 { 0%,100% { transform: translateY(0);  } 50% { transform: translateY(12px);  } }

/* =========================================================================
   Knoppen
   ========================================================================= */
.ja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ja-btn--wa   { background: var(--wa);  color: #fff; }
.ja-btn--ink  { background: var(--ink); color: #fff; }
.ja-btn--p    { background: var(--p);   color: #fff; }
.ja-btn--lg   { padding: 17px 26px; border-radius: 14px; font-size: 16px; }
.ja-btn--sm   { padding: 11px 18px; border-radius: 11px; font-size: 14.5px; }
.ja-btn--pill { padding: 14px 24px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
.ja-btn svg { flex-shrink: 0; }

/* =========================================================================
   Navigatie
   ========================================================================= */
.ja-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  background: rgba(250, 248, 243, 0.96);
  border-bottom: 1px solid var(--line);
}
.ja-nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.ja-nav-links a { color: var(--ink); text-decoration: none; }
.ja-nav-links a:hover { color: var(--p); }
.ja-nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}
.ja-nav-logo a { color: var(--ink); text-decoration: none; }
.ja-nav-logo span { color: var(--p2); }
.ja-nav-cta { display: flex; justify-content: flex-end; }

/* =========================================================================
   Hero
   ========================================================================= */
.ja-hero {
  position: relative;
  padding: 84px 48px 72px;
  overflow: hidden;
  text-align: center;
}
.ja-hero-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--soft);
  pointer-events: none;
}
.ja-hero-circle--1 { top: -80px; left: 60px; width: 260px; height: 260px; opacity: 0.35; animation: jaFloat 9s ease-in-out infinite; }
.ja-hero-circle--2 { bottom: -60px; right: 60px; width: 220px; height: 220px; opacity: 0.30; animation: jaFloat2 8s ease-in-out infinite; }
.ja-hero-inner { position: relative; }
.ja-h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 760px;
  color: var(--ink);
}
.ja-lead {
  margin: 22px auto 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}
.ja-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 540px;
  margin: 34px auto 0;
}

/* Dashboard-strip */
.ja-check {
  margin: 56px auto 0;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 60px -36px rgba(20, 40, 38, 0.4);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
}
.ja-check-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--p);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ja-check-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 25px; color: var(--ink);
}
.ja-check-sub { font-size: 16px; color: var(--muted); margin-top: 4px; }

/* Stats */
.ja-stats { display: flex; gap: 28px; margin-top: 36px; justify-content: center; }
.ja-stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 22px; color: var(--ink);
}
.ja-stat-lbl { font-size: 13px; color: var(--muted); }
.ja-vdiv { width: 1px; background: #ddd9cf; }

/* =========================================================================
   Secties (algemeen)
   ========================================================================= */
.ja-sec { padding: 84px 48px; }
.ja-sec--white { background: #fff; }
.ja-sec-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.ja-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--p);
}
.ja-sec-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 40px; letter-spacing: -0.02em;
  margin: 10px 0 0; color: var(--ink);
}
/* De reviews-sectiekop is in design/version2 iets kleiner (38px) dan de
   overige sectiekoppen (40px). */
.ja-sec-title--reviews { font-size: 38px; }
.ja-sec-intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* =========================================================================
   Diensten
   ========================================================================= */
.ja-rows { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; }
.ja-row {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 6px; border-top: 1px solid var(--line);
}
.ja-row:last-of-type { border-bottom: 1px solid var(--line); }
.ja-row-ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--soft); color: var(--p);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ja-row-t { font-weight: 700; font-size: 18px; color: var(--ink); width: 260px; flex-shrink: 0; }
.ja-row-d { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Achterstanden-callout (zwarte rand bewust overgenomen uit de handoff) */
.ja-late {
  margin-top: 26px;
  background: var(--bg);
  border-radius: 18px;
  padding: 30px 34px;
  display: flex; align-items: center; gap: 22px;
  border: 1px solid #000000;
}
.ja-late-body { flex: 1; }
.ja-late-title { font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.ja-late-text { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.ja-late .ja-btn { flex-shrink: 0; }

/* =========================================================================
   Jortt
   ========================================================================= */
.ja-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.ja-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.ja-card-head { display: flex; align-items: center; justify-content: space-between; }
.ja-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 22px; color: var(--ink);
}
.ja-price {
  font-weight: 800; font-size: 17px; color: var(--p);
  background: var(--soft); padding: 6px 14px; border-radius: 100px;
  white-space: nowrap;
}
.ja-price small { font-weight: 600; font-size: 12px; }
.ja-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* =========================================================================
   Over mij
   ========================================================================= */
.ja-about-sec { position: relative; overflow: hidden; }
.ja-about-circle {
  position: absolute; bottom: -80px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--soft); opacity: 0.35; pointer-events: none;
}
.ja-about {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center;
  position: relative;
}
.ja-about-head { position: relative; }
.ja-about-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 40px; letter-spacing: -0.02em;
  margin: 12px 0 0; line-height: 1.06; color: var(--ink);
}
.ja-about-rule { width: 46px; height: 4px; border-radius: 4px; background: var(--p2); margin: 24px 0 0; }
.ja-quote {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 26px; line-height: 1.45; color: var(--ink); font-style: normal;
}
.ja-about-p { margin: 22px 0 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 520px; }
.ja-sign { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.ja-sign-name { font-family: 'Instrument Serif', serif; font-size: 34px; font-style: italic; color: var(--p); }
.ja-sign-div { height: 22px; width: 1px; background: #ddd9cf; }
.ja-sign-role { font-size: 14px; font-weight: 600; color: var(--muted); }

/* =========================================================================
   Reviews (carrousel)
   ========================================================================= */
.ja-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ja-marquee-track { display: flex; gap: 20px; width: max-content; }
.ja-review {
  flex: 0 0 380px; align-self: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column;
}
.ja-stars { color: var(--p2); font-size: 14px; letter-spacing: 2px; }
.ja-review p { margin: 12px 0 16px; font-size: 16px; line-height: 1.55; color: var(--ink); flex: 1; }
.ja-review-name { font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* =========================================================================
   Contact
   ========================================================================= */
.ja-contact-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.ja-contact-head .ja-2col { margin: 26px auto 0; }

.ja-form {
  max-width: 640px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px;
}
/* Contact Form 7 rendert een <form>; deze regels stijlen de CF7-velden.
   De .ja-form wrapper zit in de template rondom de shortcode. */
.ja-form .wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
.ja-form .ja-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* Contact Form 7 kan bij automatische opmaak de twee velden in een <p> (met
   <br>) wikkelen; dan komt het naam/e-mail-blok onder elkaar in één kolom.
   Maak die <p>/<br> transparant zodat de velden echt naast elkaar staan.
   Zonder auto-<p> heeft dit geen effect. */
.ja-form .ja-form-grid > p { display: contents; }
.ja-form .ja-form-grid > br,
.ja-form .ja-form-grid > p > br { display: none; }
.ja-form input[type="text"],
.ja-form input[type="email"],
.ja-form input[type="tel"],
.ja-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--input);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.ja-form textarea { resize: none; }
.ja-form input::placeholder,
.ja-form textarea::placeholder { color: #9aa5a2; opacity: 1; }
.ja-form input:focus,
.ja-form textarea:focus { outline: none; border-color: var(--p2); box-shadow: 0 0 0 3px rgba(14, 155, 142, 0.12); }

/* CF7 wikkelt elk veld in <span class="wpcf7-form-control-wrap"> — laat die
   zich als blok gedragen zodat de grid/gap klopt. */
.ja-form .wpcf7-form-control-wrap { display: block; }

/* Verzendknop (CF7 submit) */
.ja-form input[type="submit"] {
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--p);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}
.ja-form input[type="submit"]:hover { background: var(--p2); }

/* CF7 laadspinner netjes naast de knop */
.ja-form .wpcf7-spinner { margin: 0 auto; }

/* Honeypot: volledig uit beeld, niet focusbaar */
.ja-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* CF7 status-/validatieteksten in de stijl van het design */
.ja-form .wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--input) !important;
  font-size: 14px; font-weight: 600; text-align: center;
  color: var(--ink);
}
.ja-form .wpcf7-not-valid-tip {
  color: var(--err);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}
.ja-form .wpcf7-form.invalid .wpcf7-response-output,
.ja-form .wpcf7-form.unaccepted .wpcf7-response-output,
.ja-form .wpcf7-form.spam .wpcf7-response-output,
.ja-form .wpcf7-form.failed .wpcf7-response-output {
  border-color: var(--err) !important;
  color: var(--err);
  background: rgba(192, 57, 43, 0.06);
}
.ja-form .wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--p) !important;
  color: var(--p);
  background: rgba(14, 124, 114, 0.06);
}
.ja-form input.wpcf7-not-valid,
.ja-form textarea.wpcf7-not-valid { border-color: var(--err); }

/* Fallback-melding als CF7 niet actief is (zie section-contact.php) */
.ja-form-fallback {
  padding: 18px; border-radius: 12px; border: 1px dashed var(--err);
  color: var(--err); font-size: 14px; font-weight: 600; text-align: center;
}

/* Contactregel (telefoon / e-mail) */
.ja-cinfo {
  display: flex; justify-content: center; gap: 24px;
  font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 16px;
}
.ja-cinfo > span { display: inline-flex; align-items: center; gap: 8px; }
.ja-cinfo a { color: inherit; text-decoration: none; }
.ja-cinfo a:hover { color: var(--p); }
.ja-cinfo-ico {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.ja-cinfo-ico--wa   { background: var(--wa); }
.ja-cinfo-ico--mail { background: var(--soft); color: var(--p); }

/* =========================================================================
   Footer
   ========================================================================= */
.ja-footer {
  padding: 30px 48px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.ja-footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 18px; color: #fff;
}
.ja-footer-logo span { color: var(--soft); }

/* =========================================================================
   Responsive — breekpunten 1020px en 760px (container queries, met
   @media-fallback voor oudere browsers).
   ========================================================================= */
@container (max-width: 1020px) {
  .ja-h1 { font-size: 56px; }
  .ja-about { grid-template-columns: 1fr; gap: 36px; }
  .ja-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; }
  .ja-nav-logo { order: 1; }
  .ja-nav-cta { order: 2; }
  .ja-nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px 18px; font-size: 13.5px; }
  .ja-page [id] { scroll-margin-top: 132px; }
}
@container (max-width: 760px) {
  .ja-hero { padding: 56px 20px 48px; }
  .ja-h1 { font-size: 42px; }
  .ja-lead { font-size: 16.5px; }
  .ja-2col { grid-template-columns: 1fr; max-width: 420px; }
  .ja-check { flex-direction: column; text-align: center; align-items: center; padding: 26px 22px; gap: 14px; margin-top: 40px; }
  .ja-check-title { font-size: 21px; }
  .ja-stats { flex-direction: column; gap: 16px; align-items: center; }
  .ja-stats > div { text-align: center; }
  .ja-vdiv { display: none; }
  .ja-late { flex-direction: column; align-items: flex-start; padding: 24px; gap: 14px; }
  .ja-late .ja-btn { margin-left: 0; }
  .ja-sec { padding: 56px 20px; }
  .ja-sec-title { font-size: 29px; }
  .ja-row { flex-wrap: wrap; row-gap: 8px; }
  .ja-row-t { width: auto; }
  .ja-row-d { flex-basis: 100%; }
  .ja-cols, .ja-form .ja-form-grid { grid-template-columns: 1fr; }
  .ja-cinfo { flex-wrap: wrap; gap: 12px; }
  .ja-footer { flex-direction: column; gap: 10px; text-align: center; }

  /* version3: reviews-carrousel op mobiel — kaart smaller dan de fade-mask,
     zodat hij niet aan beide randen wegblurt. */
  .ja-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  }
  .ja-marquee-track { gap: 14px; }
  .ja-review { flex: 0 0 80cqw; padding: 22px; }
}

/* @media-fallback (zelfde breekpunten) voor browsers zonder container queries */
@media (max-width: 1020px) {
  .ja-h1 { font-size: 56px; }
  .ja-about { grid-template-columns: 1fr; gap: 36px; }
  .ja-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; }
  .ja-nav-logo { order: 1; }
  .ja-nav-cta { order: 2; }
  .ja-nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px 18px; font-size: 13.5px; }
  .ja-page [id] { scroll-margin-top: 132px; }
}
@media (max-width: 760px) {
  .ja-hero { padding: 56px 20px 48px; }
  .ja-h1 { font-size: 42px; }
  .ja-lead { font-size: 16.5px; }
  .ja-2col { grid-template-columns: 1fr; max-width: 420px; }
  .ja-check { flex-direction: column; text-align: center; align-items: center; padding: 26px 22px; gap: 14px; margin-top: 40px; }
  .ja-check-title { font-size: 21px; }
  .ja-stats { flex-direction: column; gap: 16px; align-items: center; }
  .ja-stats > div { text-align: center; }
  .ja-vdiv { display: none; }
  .ja-late { flex-direction: column; align-items: flex-start; padding: 24px; gap: 14px; }
  .ja-late .ja-btn { margin-left: 0; }
  .ja-sec { padding: 56px 20px; }
  .ja-sec-title { font-size: 29px; }
  .ja-row { flex-wrap: wrap; row-gap: 8px; }
  .ja-row-t { width: auto; }
  .ja-row-d { flex-basis: 100%; }
  .ja-cols, .ja-form .ja-form-grid { grid-template-columns: 1fr; }
  .ja-cinfo { flex-wrap: wrap; gap: 12px; }
  .ja-footer { flex-direction: column; gap: 10px; text-align: center; }

  /* version3: reviews-carrousel op mobiel — kaart smaller dan de fade-mask,
     zodat hij niet aan beide randen wegblurt. */
  .ja-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  }
  .ja-marquee-track { gap: 14px; }
  .ja-review { flex: 0 0 80cqw; padding: 22px; }
}

/* Respecteer 'reduce motion' */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ja-hero-circle--1, .ja-hero-circle--2 { animation: none; }
}
