/* Huisstijl Wijns Techniek: navy #162738, oranje #fd521e, achtergrond #f9f9f9, lettertype BR Sonoma */
@font-face {
  font-family: "BRSonoma";
  src: url("/assets/BRSonoma-Regular.otf") format("opentype"),
       url("https://www.wijnstechniek.nl/wp-content/uploads/2025/11/BRSonoma-Regular-BF654c45266c042.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #162738;
  --navy-2: #22374c;
  --orange: #fd521e;
  --orange-dark: #e2440f;
  --base: #f9f9f9;
  --white: #ffffff;
  --sky: #23aef5;
  --grey: #a4a4a4;
  --line: #dfe3e8;
  --muted: #5b6b7b;
  --danger-bg: #fdecea; --danger-fg: #a12a17;
  --warn-bg: #fff4e0;   --warn-fg: #8a4b00;
  --info-bg: #e7f5fe;   --info-fg: #0b5a85;
  --ok-bg: #e9f5ec;     --ok-fg: #1f6b35;
  --radius: 5.28px;
  --radius-lg: 12px;
  --font: "BRSonoma", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.8px; line-height: 1.6;
  color: var(--navy); background: var(--base);
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--base); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; }
.brand img { width: 40px; height: 40px; }
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--orange); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.header-phone i { color: var(--orange); font-size: 18px; }

/* Hero */
.hero { background: var(--navy); color: var(--base); padding: 48px 0 96px; }
.hero h1 { font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero p { margin: 0; max-width: 560px; color: #d6dde5; font-size: 17px; }

/* Kaart met de stappen */
main { margin-top: -64px; padding-bottom: 56px; }
.card {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 32px; min-height: 380px; box-shadow: 0 12px 32px rgba(22, 39, 56, 0.08);
}
.progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 16px; min-height: 20px; }
.progress .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.progress .dot.on { background: var(--orange); }
.step-title { font-weight: 400; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; margin: 0 0 8px; outline: none; }
.step-text { color: var(--muted); margin: 0 0 24px; max-width: 640px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; background: var(--white); color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  font: inherit; font-size: 16px; line-height: 1.35; transition: border-color .15s, background .15s;
}
.option i { font-size: 24px; color: var(--orange); flex: none; }
.option:hover { border-color: var(--orange); background: #fff8f5; }
.option:focus-visible, .btn:focus-visible, .chip:focus-visible, .time:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 2px;
}
.option.selected { border-color: var(--orange); background: #fff1eb; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  background: var(--orange); color: var(--base);
}
.btn:hover { background: var(--orange-dark); }
.btn i { font-size: 18px; }
.btn.secondary { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--navy); background: transparent; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.big { font-size: 18px; padding: 14px 24px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.note { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; display: flex; gap: 12px; align-items: flex-start; }
.note i { font-size: 20px; flex: none; margin-top: 2px; }
.note.danger { background: var(--danger-bg); color: var(--danger-fg); }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); }
.note.info { background: var(--info-bg); color: var(--info-fg); }
.note.ok { background: var(--ok-bg); color: var(--ok-fg); }

.steps { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--base); font-size: 14px; display: grid; place-items: center;
}

.subq { font-size: 18px; margin: 8px 0 12px; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Prijs */
.price { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin: 0 0 20px; }
.price .amount { font-size: 34px; line-height: 1.1; }
.price .unit { color: var(--muted); font-size: 15px; }
.price p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* Agenda */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 0 16px; scrollbar-width: thin; }
.chip {
  flex: none; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 14px; cursor: pointer; text-align: left; line-height: 1.3; color: var(--navy);
}
.chip small { display: block; color: var(--muted); font-size: 12px; }
.chip.on { border-color: var(--orange); background: #fff1eb; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.time {
  padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 15px; cursor: pointer; color: var(--navy);
}
.time:hover { border-color: var(--orange); }
.time small { display: block; color: var(--muted); font-size: 12px; }

/* Formulier */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; }
label .req { color: var(--orange); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: var(--white);
  border: 1px solid #c9d1da; border-radius: var(--radius); padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input.invalid, textarea.invalid { border-color: var(--danger-fg); }
.error { color: var(--danger-fg); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.hint { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.file-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; }
.file-pill button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; font-size: 16px; }

.summary { background: var(--base); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.summary i { color: var(--orange); font-size: 22px; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--navy); }

.loading { color: var(--muted); display: flex; align-items: center; gap: 10px; padding: 24px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: grid; place-items: center; font-size: 30px; margin-bottom: 16px; }

.demo-banner { background: var(--warn-bg); color: var(--warn-fg); font-size: 13px; text-align: center; padding: 6px 12px; }

/* Footer */
.site-footer { background: var(--navy); color: #d6dde5; padding: 32px 0; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--base); font-weight: 500; }
.site-footer a { color: var(--base); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 80px; }
  .card { padding: 22px 18px; }
  .header-nav a:not(.header-phone) { display: none; }
  .header-phone span { display: none; }
  .header-phone i { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
}

/* Ingebed als iframe op wijnstechniek.nl: alleen de kaart tonen */
body.embed .site-header, body.embed .hero, body.embed .site-footer { display: none; }
body.embed { background: transparent; }
body.embed main { margin-top: 0; padding: 0; }
body.embed .wrap { padding: 0; max-width: none; }
body.embed .card { box-shadow: none; }
