/* Jessie's Oven — huisstijl
   Kleuren: alles hieronder in :root, pas ze hier aan i.p.v. in losse regels. */
:root {
  --choc: #3A2219;        /* tekst, donkere vlakken, randen */
  --choc-soft: #6B4A3C;   /* lijnen op donker, foto-placeholder op donker */
  --dough: #EAD5B7;       /* koekjesdeeg — hero, bedankt-melding */
  --baked: #C68A4E;       /* goudbruin — logo, grote fotovlakken */
  --oat: #F4ECE1;         /* havermout — lichte secties */
  --caramel: #A4471B;     /* accent — knoppen, tags, cijfers */
  --cream-text: #F3E6DA;  /* tekst op donker */
  --muted: #5C4337;
  --line: #EFE2CF;
  --white: #FFFFFF;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-lg: 28px;
  --radius-md: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--choc);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--choc); }
a:hover { color: var(--caramel); }
input, select, textarea, button { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 88px 0; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.stack-md { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 34rem; }
.lead-sm { font-size: 1.1rem; line-height: 1.55; }

.bg-oat { background: var(--oat); }
.bg-dough { background: var(--dough); }
.bg-baked { background: var(--baked); }
.bg-choc { background: var(--choc); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-sm { padding: 10px 20px; font-size: 1rem; min-height: 44px; }
.btn-dark { background: var(--choc); color: var(--white); }
.btn-accent { background: var(--caramel); color: var(--white); }
.btn-outline { background: var(--white); color: var(--choc); border-color: var(--choc); }
.btn-dark:hover, .btn-accent:hover { color: var(--white); filter: brightness(1.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a:not(.btn) { padding: 10px 14px; text-decoration: none; font-weight: 500; }

/* Hero */
.hero { background: var(--dough); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge-outline { align-self: flex-start; padding: 6px 14px; background: var(--white); border: 2px solid var(--choc); border-radius: 999px; font-weight: 700; font-size: 14px; }

/* Foto-placeholders — vervang door <img src="/images/..."> */
.photo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-weight: 700; }
.photo-hero { flex: 1 1 380px; min-width: 0; height: 26rem; border-radius: 32px; background: var(--baked); border: 2px dashed var(--choc); }
.photo-card { height: 15rem; }
.photo-about { flex: 1 1 300px; min-width: 0; height: 22rem; border-radius: var(--radius-lg); background: var(--choc-soft); border: 2px dashed var(--cream-text); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Smaken */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border: 2px solid var(--choc); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-dark { background: var(--choc); color: var(--white); padding: 28px; gap: 16px; }
.card-wide { grid-column: 1 / -1; }
.price-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 32px; }
.tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--white); }
.tag-dark { background: var(--choc); }
.tag-accent { background: var(--caramel); }
.price { font-weight: 700; font-size: 1.2rem; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--choc-soft); }
.muted-light { color: var(--cream-text); }

/* Stappen */
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { background: var(--white); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; letter-spacing: 0; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--caramel); line-height: 1; }

/* Bestelformulier */
.order-form { border: 2px solid var(--choc); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.order-form fieldset { border: 0; margin: 0; padding: 0; }
.order-form legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px;
  border-radius: 999px; border: 2px solid var(--choc); background: var(--white);
  font-weight: 700; cursor: pointer; user-select: none;
}
.pill input:checked + span { background: var(--choc); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--caramel); outline-offset: 2px; }
.hint { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.box-lines { display: flex; flex-direction: column; gap: 12px; }
.box-line { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 2px solid var(--choc); border-radius: 20px; background: var(--oat); }
.box-line legend { margin-bottom: 12px; }
.line-remove { position: absolute; top: 4px; right: 12px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--choc); font-size: 0.95rem; text-decoration: underline; cursor: pointer; }
.line-remove:hover { color: var(--caramel); }
.line-remove:focus-visible, .add-line:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }
.size-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding: 8px 4px; border: 2px solid var(--choc); border-radius: 16px; background: var(--white); font-weight: 700; cursor: pointer; user-select: none; }
.size-option small { font-size: 0.9rem; font-weight: 400; }
.size-option input:checked + span { background: var(--choc); color: var(--white); }
.size-option input:focus-visible + span { outline: 3px solid var(--caramel); outline-offset: 2px; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--choc); border-bottom: 2px solid var(--choc); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { width: 100%; min-height: 52px; padding: 12px 44px 12px 14px; border: 2px solid var(--choc); border-radius: 14px; background: var(--white); color: var(--choc); font-weight: 400; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select:focus { outline: 3px solid var(--caramel); outline-offset: 1px; }
.box-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-price { font-size: 1.15rem; }
.add-line { width: 100%; margin-top: 12px; }
.stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.stepper button { width: 44px; height: 44px; padding: 0; border: 2px solid var(--choc); border-radius: 999px; background: var(--white); color: var(--choc); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.stepper input { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--choc); font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.size-option input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.limit-note { color: var(--muted); font-size: 0.95rem; }
.stepper button:focus-visible, .stepper input:focus { outline: 3px solid var(--caramel); outline-offset: 1px; }
.order-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; font-weight: 700; }
.order-total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.total-note { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.form-submit .order-total { margin-top: 0; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { padding: 14px; border: 2px solid var(--choc); border-radius: 14px; font-weight: 400; background: var(--white); color: var(--choc); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--caramel); outline-offset: 1px; }
.order-form .btn { align-self: flex-start; }
.form-error { color: #9B1C1C; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.success { background: var(--dough); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.success h3 { font-size: 2rem; }
.success .btn { align-self: flex-start; }

/* Over */
.about-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text p { font-size: 1.1rem; line-height: 1.6; color: var(--cream-text); }
.about-text a { color: var(--dough); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 0.95rem; line-height: 1.6; }
.footer-inner > div { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; }
.allergens { max-width: 32rem; color: var(--muted); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .order-form { padding: 22px; }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; }
}
