/* ==========================================================================
   Cooymans Vlees BV - cooymansvlees.nl
   Statisch, geen build-stap. Draait op elke standaard LAMP-omgeving.
   Huisstijl: navy #013c76 op wit, EB Garamond (display) + Great Vibes (script).
   ========================================================================== */

/* ---------- Fonts (zelf-gehost, geen externe requests) ---------- */
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../assets/fonts/great-vibes-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #013c76;
  --navy-deep: #022c56;
  --navy-soft: #eef2f7;
  --paper: #fdfdfc;
  --paper-soft: #f4f5f6;
  --text: #2b3540;
  --text-soft: #5c6874;
  --line: #dfe4e9;
  --on-navy: #f5f8fb;
  --on-navy-soft: #c3d2e2;
  --accent-link: #013c76;

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #6fa3d8;
    --navy-deep: #0a1a2c;
    --navy-soft: #142438;
    --paper: #0e1622;
    --paper-soft: #131e2d;
    --text: #dbe3ec;
    --text-soft: #9aa8b7;
    --line: #263447;
    --on-navy: #eef3f9;
    --on-navy-soft: #b9c8d9;
    --accent-link: #8ab4e2;
  }
}

/* ---------- Reset & basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 65ch; }

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem;
  z-index: 100;
  background: var(--navy); color: #fff;
  padding: 0.6rem 1rem; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--navy);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-soft); }

@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--navy); color: #0b1523; }
  .btn-primary:hover { background: #8ab4e2; border-color: #8ab4e2; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
}
.brand-caps {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--navy);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-list a:hover { color: var(--navy); text-decoration: underline; }
.nav-tel a {
  color: var(--navy);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 47.9rem) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1.05rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  min-height: min(88dvh, 46rem);
  border-bottom: 1px solid var(--line);
}
.hero-content {
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, var(--paper) 55%, color-mix(in srgb, var(--paper) 92%, var(--navy)) 100%);
}
.hero-inner {
  width: 100%;
  max-width: calc(var(--wrap) * 0.54);
  margin-left: auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.lockup-caps {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.lockup-caps b { font-size: 1.22em; font-weight: 620; }
.lockup-script {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  color: var(--navy);
  margin-top: 0.15em;
  padding-bottom: 0.12em;
}
.lockup-script small {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.34em;
  letter-spacing: 0.05em;
}
.lockup-sub {
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-slogan {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  padding-bottom: 0.15em; /* staartletters niet afsnijden */
}
.hero h1 { margin-bottom: 0.4em; }
.hero-sub { color: var(--text-soft); margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 59.9rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-inner { margin-inline: auto; max-width: var(--wrap); }
  .hero-media { min-height: 46vw; position: relative; }
  .hero-media img { position: absolute; }
}

/* ---------- Statement (navy band) ---------- */
.statement {
  background: var(--navy-deep);
  color: var(--on-navy);
}
.statement-inner {
  padding-block: clamp(3rem, 8vh, 5rem);
  text-align: center;
}
.statement h2 { color: var(--on-navy); }
.statement p {
  color: var(--on-navy-soft);
  max-width: 58ch;
  margin-inline: auto;
  font-size: 1.1rem;
}
.statement p:last-child { margin-bottom: 0; }
.statement p.statement-slogan {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--on-navy);
  margin: 1.4rem auto 0;
  padding-bottom: 0.15em; /* staartletters niet afsnijden */
}

/* ---------- Secties algemeen ---------- */
.section-title { margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }

/* ---------- Diensten ---------- */
.services { padding-block: clamp(3.5rem, 9vh, 6rem); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.service {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.service-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.service-body h3 { margin-top: 0.1em; }
.service-body p { font-size: 0.99rem; color: var(--text-soft); }
.service-body p:last-child { margin-bottom: 0; }
.service-list {
  margin: 0 0 1em;
  padding-left: 1.1rem;
  font-size: 0.97rem;
  color: var(--text);
}
.service-list li { margin-bottom: 0.3em; }
.service-list li::marker { color: var(--navy); }

@media (max-width: 63.9rem) {
  .services-grid { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .service-media { aspect-ratio: auto; min-height: 14rem; position: relative; }
  .service-media img { position: absolute; inset: 0; }
}
@media (max-width: 35.9rem) {
  .service { display: flex; }
  .service-media { aspect-ratio: 3 / 2; min-height: 0; }
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.values li {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Voor wie ---------- */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-block: 1px solid var(--line);
  background: var(--paper-soft);
}
.audience-media { position: relative; min-height: 24rem; }
.audience-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.audience-content { display: flex; align-items: center; }
.audience-inner {
  width: 100%;
  max-width: calc(var(--wrap) * 0.56);
  margin-right: auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.audience-intro { font-size: 1.1rem; margin-bottom: 1.6rem; }
.audience-group { margin-bottom: 1.4rem; }
.audience-group h3 { margin-bottom: 0.3em; }
.audience-group p { margin-bottom: 0; color: var(--text-soft); }
.audience-note {
  margin: 1.8rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}

@media (max-width: 59.9rem) {
  .audience { grid-template-columns: 1fr; }
  .audience-media { min-height: 0; aspect-ratio: 16 / 9; }
  .audience-inner { margin-inline: auto; max-width: var(--wrap); }
}

/* ---------- Werkwijze ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-bottom: 1px solid var(--line);
}
.process-content { display: flex; align-items: center; }
.process-inner {
  width: 100%;
  max-width: calc(var(--wrap) * 0.58);
  margin-left: auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.process-media { position: relative; min-height: 24rem; }
.process-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 1.6rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.6rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--line);
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin-bottom: 0; color: var(--text-soft); }

@media (max-width: 59.9rem) {
  .process { grid-template-columns: 1fr; }
  .process-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .process-inner { margin-inline: auto; max-width: var(--wrap); }
}

/* ---------- Historie ---------- */
.history { padding-block: clamp(3.5rem, 9vh, 6rem); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.timeline li {
  border-top: 3px solid var(--navy);
  padding-top: 1.1rem;
}
.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.timeline p { margin-bottom: 0; font-size: 0.99rem; color: var(--text-soft); }

.history-quote {
  margin: clamp(2.5rem, 6vh, 3.5rem) auto 0;
  max-width: 34ch;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.4;
  color: var(--navy);
}

@media (max-width: 47.9rem) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Beeldband ---------- */
.photo-band {
  position: relative;
  height: clamp(14rem, 38vh, 24rem);
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(3.5rem, 9vh, 6rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-details h3 { margin-bottom: 0.4em; }
.contact-details h3 + address { margin-bottom: 1.4rem; }
address { font-style: normal; line-height: 1.6; }

.contact-list, .hours-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.contact-list li, .hours-list li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.contact-list li span, .hours-list li span { color: var(--text-soft); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }


.contact-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.map-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 500;
}

@media (max-width: 59.9rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
}
.footer-inner {
  padding-block: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
}
.footer-inner p { margin: 0 0 0.4em; max-width: none; }
.footer-brand .brand-caps,
.footer-brand .brand-script { color: var(--on-navy); }
.footer-brand { margin-bottom: 0.8rem; }

/* ---------- Reveal-animatie (subtiel, respecteert reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

.footer-credit { margin-top: 1rem !important; font-size: 0.85rem; }
.footer-credit a { color: var(--on-navy); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
