/* ==========================================================================
   kimreijnen.nl — Reijnen Legal Support

   Built from the Claude Design canvas in Design/ ("Classical" system:
   Cormorant Garamond + Lora on warm off-white, bronze accent). Every rule
   lives here — the pages carry no inline styles, so the CSP needs no
   'unsafe-inline' for style-src.

    1. Fonts (self-hosted, OFL — see assets/fonts/OFL.txt)
    2. Tokens
    3. Base
    4. Buttons, links, kicker, display type
    5. Header and navigation
    6. Home
    7. Diensten
    8. Over mij
    9. Contact
   10. Legal pages
   11. Footer
   12. 404
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts

   Latin + latin-ext subsets, the same split Google Fonts serves. Both
   families are variable, so one file covers every weight in its range.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens

   Hex first, then the oklch() the design system was generated in; browsers
   that understand oklch take the later line. Never use a raw colour further
   down — add a token here instead.

   --color-accent (#b68235) is the design's bronze, but it only reaches 3.0:1
   on the background, so it is kept for borders, rules and focus rings.
   Text that has to be read in the accent colour uses --color-link (the
   system's accent-700, 6.0:1). Muted text is the ink at 70% (5.8:1); the
   design's 55% fell short of 4.5:1.
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #f3f2f2;
  --color-bg: oklch(96.2% 0.001 17.2);
  --color-surface: #eae9e9;
  --color-surface: oklch(93.5% 0.001 17.2);
  --color-text: #201f1d;
  --color-text: oklch(24% 0.004 84.6);
  --color-muted: #5f5e5d;
  --color-muted: oklch(48.3% 0.002 67.8);
  --color-accent: #b68235;
  --color-accent: oklch(64.4% 0.112 73.8);
  --color-link: #7d5411;
  --color-link: oklch(47.9% 0.095 73.6);

  --color-divider: rgba(32, 31, 29, 0.16);
  --color-field-border: rgba(32, 31, 29, 0.5); /* 3.4:1 — form fields need 3:1 */
  --color-accent-wash: rgba(182, 130, 53, 0.1);
  --color-accent-wash-strong: rgba(182, 130, 53, 0.2);

  --font-heading: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body: 'Lora', 'Georgia', serif;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 9px;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }

p { margin: 0 0 14px; }
strong { font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
::selection { background: var(--color-accent-wash-strong); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-muted { color: var(--color-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius);
}
.skip-link:focus { left: 16px; }

/* --------------------------------------------------------------------------
   4. Buttons, links, kicker, display type
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 17px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary { color: var(--color-link); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-wash); }
.btn-primary:active { background: var(--color-accent-wash-strong); }
.btn-ghost { color: var(--color-link); padding-inline: 8px; }
.btn-ghost:hover { background: var(--color-accent-wash); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.kicker {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link);
}

.display {
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.display--page { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; margin-bottom: 24px; }
.display--doc { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 40px; }

.lead { font-size: 17px; line-height: 1.65; max-width: 54ch; margin: 0 0 28px; }

/* Photographs get the design system's "plate": a warm tint in a mount. */
.plate {
  filter: sepia(0.22) saturate(0.82) contrast(1.05);
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-divider);
}

/* --------------------------------------------------------------------------
   5. Header and navigation

   Without JS the links stay inline and simply wrap under the brand on a
   narrow screen. With JS (the `js` class set in <head>) they collapse behind
   the toggle below 720px. Keep the breakpoint in step with main.js.
   -------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--color-divider); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
  color: var(--color-text);
  text-decoration: none;
}
.nav__brand img { width: auto; height: 34px; }

.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.nav__links a:not(.btn) { padding-block: 6px; font-size: 15px; color: var(--color-text); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--color-link); }
.nav__links a:not(.btn)[aria-current='page'] {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 7px;
}

.nav__toggle { display: none; }
.nav__icon--close { display: none; }
.nav__toggle[aria-expanded='true'] .nav__icon--open { display: none; }
.nav__toggle[aria-expanded='true'] .nav__icon--close { display: block; }

@media (max-width: 720px) {
  .js .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    color: var(--color-text);
    background: none;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
  }
  .js .nav__links { display: none; }
  .js .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    gap: 2px;
    padding: 10px 0 8px;
    border-top: 1px solid var(--color-divider);
  }
  .js .nav__links.is-open a:not(.btn) { padding: 10px 2px; }
  .js .nav__links.is-open .btn { align-self: flex-start; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   6. Home
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 64px;
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 72px);
}
.hero__image { width: min(440px, 100%); justify-self: center; }

.section {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(36px, 5vw, 64px);
}
.section:last-child { padding-bottom: 8px; }

.services,
.mottos,
.sectors { list-style: none; margin: 0; padding: 0; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
}
.services > li { display: flex; }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
}
.service-card {
  width: 100%;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.service-card:hover { border-color: var(--color-accent); background: var(--color-accent-wash); }
.service-card img { width: 44px; height: 44px; margin-bottom: 6px; }
.card-title { margin: 0; font-size: 21px; line-height: 1.2; }
.card-body { margin: 0; font-size: 14px; color: var(--color-muted); }

.more { margin: 28px 0 0; }

.mottos { display: grid; gap: 28px; max-width: 760px; }
.mottos li {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}
.sectors img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sectors h3 { margin: 14px 0 6px; font-size: 22px; }
.sectors p { margin: 0; font-size: 14px; }

/* --------------------------------------------------------------------------
   7. Diensten
   -------------------------------------------------------------------------- */
.page-header {
  max-width: 720px;
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
}
.page-header .lead { margin-bottom: 0; }

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  column-gap: 64px;
  border-top: 1px solid var(--color-divider);
}
.service {
  padding-block: 40px;
  border-bottom: 1px solid var(--color-divider);
  scroll-margin-top: 16px;
}
.service img { width: 48px; height: 48px; margin-bottom: 16px; }
.service h2 { margin-bottom: 12px; font-size: 27px; }
.service p { margin: 0; line-height: 1.7; }

.cta { padding-block: clamp(36px, 5vw, 56px) 8px; text-align: center; }
.cta__text { margin: 0 0 20px; font-family: var(--font-heading); font-size: 27px; line-height: 1.3; }

/* --------------------------------------------------------------------------
   8. Over mij
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 72px;
  align-items: start;
  padding-block: clamp(40px, 6vw, 80px) 8px;
}
.portrait { max-width: 380px; }
.portrait img { width: 100%; }
.portrait__name {
  margin: 20px 0 4px;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.12;
}
.portrait .text-muted { margin: 0; }

.about__body .display--page { margin-bottom: 32px; }
.subhead { margin: 0 0 12px; font-size: 22px; }
.bullets {
  display: grid;
  gap: 6px;
  margin: 0 0 32px;
  padding-left: 20px;
  line-height: 1.8;
}
.bullets:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 80px;
  align-items: start;
  padding-block: clamp(40px, 6vw, 80px) 8px;
}
.contact .display--page { margin-bottom: 32px; }

.contact-list { display: grid; gap: 18px; margin: 0; }
.contact-list > div { display: grid; gap: 2px; }
.contact-list dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-list dd { margin: 0; font-size: 19px; }

.note { max-width: 52ch; margin: 36px 0 0; font-size: 14px; line-height: 1.7; color: var(--color-muted); }

/* The form never submits: main.js turns it into a pre-filled email in the
   visitor's own mail program. Without JS it cannot do that, so it stays
   hidden and the email link in the list is the way in. */
.contact-form { display: none; }
.js .contact-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
}
.contact-form__title { margin: 0; font-size: 27px; }
.contact-form__intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-muted); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--color-muted); }
.field__optional { font-size: 12px; }

.input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
  font-size: 16px; /* below 16px, iOS zooms into the field on focus */
  color: var(--color-text);
  caret-color: var(--color-link);
  background: transparent;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
}
.input:hover { border-color: var(--color-muted); }
.input:focus-visible { border-color: var(--color-link); outline-offset: 0; }
textarea.input { min-height: 160px; line-height: 1.6; resize: vertical; }

.form-status {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   10. Legal pages (algemene voorwaarden, privacy verklaring, disclaimer)
   -------------------------------------------------------------------------- */
.doc {
  max-width: calc(760px + 2 * var(--gutter));
  padding-block: clamp(40px, 6vw, 72px) 8px;
  line-height: 1.75;
}
.doc h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.25; }
.doc h1 + h2 { margin-top: 0; }
.doc ul { display: grid; gap: 4px; margin: 0 0 20px; padding-left: 20px; }
.doc .doc__intro { margin-bottom: 6px; }
.display--doc + .doc__meta { margin-top: -32px; }
.doc__meta {
  margin-bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.doc__meta + h2 { margin-top: 0; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--color-divider); }

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
  padding-block: 56px 36px;
}
.footer__brand img { width: 100%; max-width: 210px; }
.footer__title { margin: 0 0 14px; font-size: 24px; }
.footer p { margin: 0 0 18px; }
.footer p:last-child { margin-bottom: 0; }

.footer__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer__links a[aria-current='page'] { color: var(--color-text); }

.footer__bottom { margin-block: 0; padding-block: 0 32px; font-size: 13px; color: var(--color-muted); }

/* --------------------------------------------------------------------------
   12. 404
   -------------------------------------------------------------------------- */
.notfound { padding-block: clamp(56px, 9vw, 120px) clamp(16px, 3vw, 40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
