/* ============================================================
   Paul Bakt Brood — paulbaktbrood.nl
   Tokens uit Huisstijl v2.0 (mei 2026)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,100..900,0..100,0..1;1,9..144,100..900,0..100,0..1&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Kleur */
  --espresso: #1F1408;
  --creme: #F4EFE4;
  --mos: #5E6E36;
  --mos-hover: #4E5C2C;
  --mos-press: #414D24;
  --terracotta: #B5532C;
  --zand: #D9C9AA;
  --tarwe: #EBE2CF;
  --border-dark: #3A2A1A;

  --fg1: var(--espresso);
  --fg2: #5C4A33;
  --bg: var(--creme);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing (4pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-1: 4px; --r-2: 8px; --r-3: 14px; --r-pill: 999px;

  /* Warme schaduwen — nooit blauw of grijs */
  --shadow-1: 0 1px 2px rgba(31, 20, 8, 0.06);
  --shadow-2: 0 2px 8px rgba(31, 20, 8, 0.08), 0 1px 2px rgba(31, 20, 8, 0.05);
  --shadow-3: 0 6px 20px rgba(31, 20, 8, 0.12), 0 2px 6px rgba(31, 20, 8, 0.06);

  /* Motion */
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, .84, .32, 1);
  --t-fast: 140ms;
  --t-state: 240ms;
  --t-enter: 420ms;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

img { max-width: 100%; display: block; }

a { color: var(--mos); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t-fast) var(--ease-soft); }
a:hover { color: var(--mos-hover); }
a:active { color: var(--mos-press); }
a:focus-visible { outline: 1px dotted var(--mos); outline-offset: 3px; }

::selection { background: var(--zand); color: var(--espresso); }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: var(--s-4);
}
.eyebrow.on-dark { color: var(--zand); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 0;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 1.04;
  color: var(--creme);
  margin-bottom: var(--s-5);
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 72, 'SOFT' 40, 'WONK' 0;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.12;
  margin-bottom: var(--s-4);
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title.on-dark { color: var(--creme); }

.section-intro {
  max-width: 56ch;
  color: var(--fg2);
  margin-bottom: var(--s-7);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 20, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 20px;
  color: var(--creme);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--creme); opacity: 0.85; }

.site-nav {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--creme);
  text-decoration: none;
}
.site-nav a:hover { color: var(--zand); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--creme);
  border: 1px solid var(--zand);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-soft);
}
.lang-toggle svg {
  width: 16px;
  height: 8px;
  border-radius: 1px;
  display: block;
  flex-shrink: 0;
}
.lang-toggle:hover { background: rgba(244, 239, 228, 0.08); }
.lang-toggle:active { background: rgba(244, 239, 228, 0.12); }
.lang-toggle:focus-visible { outline: 2px solid var(--zand); outline-offset: 2px; }

/* ===== Knoppen ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-2);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-soft),
              color var(--t-fast) var(--ease-soft),
              border-color var(--t-fast) var(--ease-soft);
}

.btn-primary { background: var(--mos); color: var(--creme); }
.btn-primary:hover { background: var(--mos-hover); color: var(--creme); }
.btn-primary:active { background: var(--mos-press); }
.btn-primary:focus-visible { outline: 2px solid var(--mos); outline-offset: 2px; }

.btn-ghost { background: transparent; color: var(--creme); border-color: var(--zand); }
.btn-ghost:hover { background: rgba(244, 239, 228, 0.08); color: var(--creme); }
.btn-ghost:active { background: rgba(244, 239, 228, 0.12); }
.btn-ghost:focus-visible { outline: 2px solid var(--zand); outline-offset: 2px; }

.btn-light { background: var(--creme); color: var(--espresso); }
.btn-light:hover { background: var(--tarwe); color: var(--espresso); }
.btn-light:active { background: var(--zand); }
.btn-light:focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }

.btn-small { padding: 9px 18px; font-size: 13px; }

.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--creme);
  padding: var(--s-9) 0 var(--s-9);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Protection gradient — tekst links leesbaar, Paul rechts zichtbaar */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(31, 20, 8, 0.88) 30%,
    rgba(31, 20, 8, 0.55) 65%,
    rgba(31, 20, 8, 0.25) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-lead {
  font-size: 18px;
  max-width: 52ch;
  color: var(--tarwe);
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.hero-note {
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: var(--zand);
}

/* ===== Secties ===== */
.section { padding: var(--s-9) 0; }
.section-tarwe { background: var(--tarwe); }
.section-dark { background: var(--espresso); color: var(--creme); }

.section-foot { margin-top: var(--s-6); color: var(--fg2); }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}

.card {
  background: var(--bg);
  border: 1px solid var(--zand);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--t-state) var(--ease-soft),
              transform var(--t-fast) var(--ease-soft);
}
.card:hover { box-shadow: var(--shadow-3); }
.card:hover .card-photo { transform: scale(1.02); filter: brightness(1.02); }
.card:active { transform: translateY(1px); }

.card-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform var(--t-state) var(--ease-soft),
              filter var(--t-state) var(--ease-soft);
}

.card-body { padding: var(--s-5); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 21px;
  line-height: 1.25;
}

.price {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.price-per { font-weight: 500; font-size: 12px; color: var(--fg2); }

.card-text {
  font-size: 15px;
  color: var(--fg2);
  margin-bottom: var(--s-4);
}

/* ===== Pills ===== */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--zand);
}
.pill-ok { color: var(--mos); border-color: var(--mos); }
.pill-low { color: var(--terracotta); border-color: var(--terracotta); }
.pill-season { color: var(--terracotta); border-color: var(--terracotta); font-style: italic; }

/* ===== Foto-placeholders (tot Paul de foto's stuurt) ===== */
.photo-ph {
  background: var(--tarwe);
  border-bottom: 1px solid var(--zand);
  position: relative;
}
.photo-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg2);
}
.photo-ph-terra { background: #E8D5C4; }
.photo-ph-dark {
  background: #2C1F10;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-3);
}
.photo-ph-dark::after { color: var(--zand); }

/* ===== Stappen (i. ii. iii.) ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-7);
  margin-top: var(--s-7);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: 'opsz' 72, 'SOFT' 40, 'WONK' 0;
  font-size: 40px;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: var(--s-4);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 20px;
  margin-bottom: var(--s-2);
}

.step-text { font-size: 15px; color: var(--fg2); }
.section-tarwe .step-text { color: #4A3B28; }

/* ===== Procesfoto bij de stappen — ongesneden, volledige compositie ===== */
.how-photo {
  display: block;
  width: 100%;
  max-width: 780px;
  margin: var(--s-6) auto 0;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
}

/* ===== Sfeerband ===== */
.photo-band img {
  display: block;
  width: 100%;
  height: min(60vh, 460px);
  object-fit: cover;
}

.photo-band-caption {
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg2);
  text-align: center;
  padding: var(--s-3) var(--s-5);
}

/* ===== Verhaal ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
}

.story-p {
  color: var(--tarwe);
  margin-bottom: var(--s-4);
  max-width: 58ch;
}
.story-p:last-child { margin-bottom: 0; }

.story-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--mos);
  color: var(--creme);
  padding: var(--s-8) 0;
}

.cta-inner { text-align: center; max-width: 640px; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 72, 'SOFT' 40, 'WONK' 0;
  font-size: clamp(32px, 4.5vw, 44px);
  margin-bottom: var(--s-3);
}
.cta-title em { font-style: italic; }

.cta-text { margin-bottom: var(--s-6); color: rgba(244, 239, 228, 0.85); }

/* ===== Footer ===== */
.site-footer {
  background: var(--espresso);
  color: var(--tarwe);
  padding: var(--s-8) 0 var(--s-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border-dark);
}

.footer-wordmark { font-size: 22px; margin-bottom: var(--s-3); }

.footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zand);
  margin-bottom: var(--s-2);
}

.footer-text { font-size: 14px; color: var(--tarwe); }
.footer-text a { color: var(--creme); }

.footer-bottom {
  padding-top: var(--s-5);
  font-size: 12px;
  color: #8A7558;
}

/* ===== Bestelformulier ===== */
.order-container { max-width: 720px; }

.order-banner {
  width: 100%;
  height: clamp(220px, 36vw, 320px);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-3);
  border: 1px solid var(--zand);
  box-shadow: var(--shadow-2);
  margin-bottom: var(--s-4);
}

.order-group-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 22px;
  margin: var(--s-7) 0 var(--s-4);
}

.order-group-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta);
  margin-left: var(--s-2);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  background: var(--bg);
  border: 1px solid var(--zand);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-state) var(--ease-soft),
              box-shadow var(--t-state) var(--ease-soft);
}
.order-item.is-selected { border-color: var(--mos); box-shadow: var(--shadow-2); }

.order-item-main {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-width: 0;
}

.order-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-2);
  border: 1px solid var(--zand);
  flex-shrink: 0;
}

.order-thumb-ph {
  display: block;
  background: var(--tarwe);
}

.order-item-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 18px;
  margin-bottom: 2px;
}

.order-item-text { font-size: 13px; color: var(--fg2); margin-bottom: var(--s-1); }

.order-item-side {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--zand);
  border-radius: var(--r-pill);
  background: var(--tarwe);
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg1);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background-color var(--t-fast) var(--ease-soft);
}
.stepper-btn:hover { background: var(--zand); }
.stepper-btn:active { background: #CDBB97; }
.stepper-btn:focus-visible { outline: 2px solid var(--mos); outline-offset: 2px; }

.stepper-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* Velden — underline inputs, mos focus */
.order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: var(--s-2);
}

.field-optional { text-transform: none; letter-spacing: 0; font-weight: 500; font-style: italic; }

.field-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg1);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--zand);
  padding: var(--s-2) 0;
  transition: border-color var(--t-fast) var(--ease-soft);
}
.field-input::placeholder { color: #A8987D; }
.field-input:focus { outline: none; border-bottom: 2px solid var(--mos); margin-bottom: -1px; }

/* Samenvatting */
.order-summary {
  margin-top: var(--s-7);
  background: var(--tarwe);
  border: 1px solid var(--zand);
  border-radius: var(--r-3);
  padding: var(--s-5);
}

.order-summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: var(--s-3);
}

.order-summary-msg {
  white-space: pre-line;
  font-size: 15px;
  color: var(--fg1);
  margin-bottom: var(--s-3);
}

.order-summary-total {
  font-size: 14px;
  color: var(--fg2);
  border-top: 1px solid var(--zand);
  padding-top: var(--s-3);
}

.order-actions {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn:disabled:hover { background: var(--mos); }

.order-hint { font-size: 13px; font-style: italic; color: var(--fg2); }

.order-success {
  background: var(--tarwe);
  border: 1px solid var(--mos);
  border-radius: var(--r-3);
  padding: var(--s-6);
  box-shadow: var(--shadow-2);
}

.order-success-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'WONK' 0;
  font-size: 22px;
  color: var(--mos);
  margin-bottom: var(--s-2);
}

.order-success-text { color: var(--fg1); max-width: 56ch; }

.order-foot {
  margin-top: var(--s-6);
  font-size: 13px;
  color: var(--fg2);
}

.footer-bottom-solo { padding-top: 0; }

@media (max-width: 560px) {
  .order-item { flex-direction: column; align-items: flex-start; }
  .order-item-side { width: 100%; justify-content: space-between; }
  .order-fields { grid-template-columns: 1fr; }
  .stepper-btn { width: 44px; height: 44px; }
  .order-actions .btn { width: 100%; justify-content: center; }
}

/* ===== Entrance animatie ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-enter) var(--ease-out),
              transform var(--t-enter) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .story-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { gap: var(--s-3); }
  .header-inner .btn-small { margin-left: auto; }
  .wordmark { font-size: 18px; }
  .btn-small { padding: 8px 12px; font-size: 12px; }
  .lang-toggle { padding: 6px 10px; font-size: 11px; }
  .btn-back .btn-back-label { display: none; }
  .hero { padding: var(--s-8) 0; }
  .section { padding: var(--s-8) 0; }
}
