/* =========================================================
   familiescheffer.nl — gedeelde stijl
   Eén bestand stuurt alle pagina's aan.
   Palet: warm parkament, diep bosgroen, zachte terracotta.
   Lettertypes: Fraunces (display) + Instrument Sans (tekst).
   ========================================================= */

:root {
  /* kleuren */
  --paper:      #f6f1e7;
  --paper-deep: #efe7d6;
  --ink:        #2a2620;
  --ink-soft:   #5b544a;
  --green:      #44563a;
  --green-deep: #313f2a;
  --terra:      #b75d3b;
  --line:       #ddd2bd;

  /* header/footer-palet (overgenomen uit oude site) */
  --bar-green:  #88c74e;   /* topbar + footer */
  --bar-dark:   #241d18;   /* menubar — heel donker warm bruin */
  --bar-white:  #ffffff;
  --bar-muted:  rgba(255, 255, 255, 0.7);

  /* typografie */
  --display: "Fraunces", Georgia, serif;
  --body:    "Instrument Sans", system-ui, sans-serif;

  /* ritme */
  --maxw: 920px;
  --gap:  clamp(1.5rem, 4vw, 3rem);

  /* header-/footer-hoogtes */
  --menubar-h: 80px;
  --bar-h:     28px;   /* topbar én footer; ~1/3 van menubar */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* heel subtiele warme diepte i.p.v. een platte vlakke kleur */
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(183, 93, 59, 0.06), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(68, 86, 58, 0.07), transparent 55%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }

/* ---------- layout-omhulsel ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =========================================================
   HEADER  (groene topbar + zwart-bruine menubar)
   ========================================================= */
.site-header { width: 100%; }

/* --- topbar: dunne groene strook met social-links rechts --- */
.site-topbar {
  background: var(--bar-green);
  height: var(--bar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.social-topbar { display: flex; gap: 1.2rem; }
.social-topbar a {
  color: var(--bar-white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.social-topbar a:hover { text-decoration: underline; }

/* --- menubar: donkere balk met A&A links en nav rechts --- */
.site-menubar {
  background: var(--bar-dark);
  height: var(--menubar-h);
  display: flex;
  align-items: center;
}
.menubar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--bar-white);
  text-decoration: none;
}
.brand:hover { color: var(--bar-green); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bar-muted);
  padding: 0.4rem 0;
  transition: color 0.15s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--bar-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--bar-green); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--bar-green); }

/* =========================================================
   HERO  (alleen op de homepagina)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  /* Foto over de volle breedte, met een zachte parkament-overlay zodat de
     warme palet-kleuren doorlopen en de donkere tekst leesbaar blijft. */
  background-image:
    linear-gradient(to bottom,
      rgba(246, 241, 231, 0.55) 0%,
      rgba(246, 241, 231, 0.35) 45%,
      rgba(246, 241, 231, 0.78) 100%),
    url('/images/site/profielfotos/header.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  min-height: clamp(320px, 48vw, 560px);
  display: flex;
  align-items: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(246, 241, 231, 0.6);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  text-shadow: 0 1px 3px rgba(246, 241, 231, 0.55);
}
.hero h1 .amp { color: var(--terra); font-style: italic; }
.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink);
  max-width: 38ch;
  margin: 0;
  text-shadow: 0 1px 2px rgba(246, 241, 231, 0.65);
}

/* =========================================================
   ALGEMENE SECTIES
   ========================================================= */
main { padding-bottom: clamp(3rem, 8vw, 6rem); }

.page-head {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-head .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0;
}

.section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.8rem;
}
.section p { margin: 0 0 1rem; max-width: 62ch; }
.section p:last-child { margin-bottom: 0; }

.intro-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 56ch;
}

/* ---------- teaserkaarten op de home ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.card {
  display: block;
  padding: 1.6rem 1.5rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(49, 63, 42, 0.5);
  border-color: var(--green);
  color: var(--ink);
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.card .arrow { color: var(--terra); font-weight: 700; }

/* --- Kaartjes met portretfoto als doorschijnende achtergrond.
   Zelfde idee als de hero op /: parkament-overlay zorgt dat de
   donkere tekst leesbaar blijft. */
.card--photo {
  background-color: var(--paper-deep);
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  min-height: 200px;
}
.card--photo h3,
.card--photo p {
  /* dubbele shadow: scherp wit-randje + zachte halo, zodat tekst altijd uitspringt */
  text-shadow:
    0 1px 1px rgba(246, 241, 231, 0.95),
    0 0 10px rgba(246, 241, 231, 0.7);
}
/* Arjan staat links in z'n foto -> tekst rechts uitlijnen zodat "Arjan"
   niet over zijn gezicht heen valt, maar tegen de rustige achtergrond
   in de rechterhoek staat. */
.card--arjan {
  text-align: right;
  background-image:
    linear-gradient(to bottom,
      rgba(239, 231, 214, 0.78) 0%,
      rgba(239, 231, 214, 0.55) 38%,
      rgba(239, 231, 214, 0.90) 100%),
    url('/images/site/profielfotos/arjan3.jpg');
}
.card--alex {
  background-image:
    linear-gradient(to bottom,
      rgba(239, 231, 214, 0.78) 0%,
      rgba(239, 231, 214, 0.55) 38%,
      rgba(239, 231, 214, 0.90) 100%),
    url('/images/site/profielfotos/alex3.jpg');
}

/* =========================================================
   FOOTER  (dunne groene strook, zelfde hoogte als topbar)
   ========================================================= */
.site-footer {
  background: var(--bar-green);
  height: var(--bar-h);
  display: flex;
  align-items: center;
  margin-top: auto;
}
.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-meta {
  margin: 0;
  color: var(--bar-white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* layout: zorg dat de footer onderaan blijft bij weinig inhoud */
body { min-height: 100vh; display: flex; flex-direction: column; }
.flow { flex: 1 0 auto; }

/* =========================================================
   PULL QUOTE  (citaat-blok, bv. tussen secties op de homepage)
   ========================================================= */
.pull-quote {
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  max-width: 36rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote a {
  display: block;
  padding: clamp(1.8rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pull-quote a:hover,
.pull-quote a:focus { color: var(--terra); }
.pull-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.pull-quote blockquote::before {
  content: "\201C";  /* curly opening quote */
  display: block;
  font-size: 2.6em;
  line-height: 0.55;
  font-style: normal;
  color: var(--terra);
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
.pull-quote figcaption {
  margin-top: 1.1rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* =========================================================
   DOG SUMMARY  (overzichts-blokken op /honden/)
   Foto links, naam + intro + "Lees meer" rechts.
   Op mobiel stapelen ze; op desktop staan ze naast elkaar.
   ========================================================= */
.dog-summary-inner {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  margin-top: 0.6rem;
}
.dog-summary-photo {
  margin: 0;
}
.dog-summary-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.5rem;
  border-radius: 2px;
  box-shadow: 0 6px 14px -8px rgba(49, 63, 42, 0.4);
  transform: rotate(-1.2deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dog-summary:nth-of-type(even) .dog-summary-photo img {
  transform: rotate(1deg);
}
.dog-summary-photo img:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 14px 26px -10px rgba(49, 63, 42, 0.5);
}
.dog-summary-text p { margin: 0 0 0.8rem; max-width: 56ch; }
.dog-summary-text p:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
  .dog-summary-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .dog-summary-photo { width: 60%; max-width: 220px; }
  .dog-summary-text { text-align: left; width: 100%; }
}

/* =========================================================
   PHOTO WALL  (foto's op /alex/ en /arjan/)
   Polaroid-stijl: witte rand, lichte schaduw, kleine rotatie per
   kaartje. Hover trekt 'm recht en licht 'm op.
   ========================================================= */
.photo-wall {
  list-style: none;
  padding: 0;
  margin: clamp(1rem, 3vw, 1.6rem) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}
.photo-wall li {
  margin: 0;
  background: #fff;
  padding: 0.55rem 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 6px 14px -8px rgba(49, 63, 42, 0.4);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
/* Lichte rotatie per kaartje, met een paar varianten zodat het rijtje speels blijft. */
.photo-wall li:nth-child(3n+1) { transform: rotate(-1.6deg); }
.photo-wall li:nth-child(3n+2) { transform: rotate(1.2deg); }
.photo-wall li:nth-child(3n+3) { transform: rotate(-0.5deg); }
.photo-wall li:hover,
.photo-wall li:focus-within {
  transform: rotate(0deg) translateY(-4px) scale(1.04);
  box-shadow: 0 16px 30px -12px rgba(49, 63, 42, 0.5);
  z-index: 2;
}
.photo-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .photo-wall li { transition: none; }
  .photo-wall li:hover { transform: none; }
}

/* --- Video-grid: filmpjes op de honden-pagina's --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
  margin-top: clamp(1rem, 3vw, 1.6rem);
}
.video-grid figure { margin: 0; }
.video-grid video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: 3px;
  box-shadow: 0 8px 18px -10px rgba(49, 63, 42, 0.45);
}
.video-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* --- Enkele foto met bijschrift (bv. Tarzan-portret) --- */
.single-photo {
  margin: clamp(1rem, 3vw, 1.6rem) 0 0;
  max-width: 420px;
}
.single-photo img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 0.55rem;
  box-shadow: 0 6px 14px -8px rgba(49, 63, 42, 0.4);
}
.single-photo figcaption {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================================================
   FAMILIEREIS  (overzichtspagina + kwartierstaten)
   ========================================================= */
.familiereis-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
}
.familiereis-lijst li { margin: 0; }
.familiereis-lijst li + li {
  border-top: 1px solid var(--line);
}
.familiereis-lijst a {
  display: block;
  padding: 0.8rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.familiereis-lijst a:hover { color: var(--terra); }

/* De kwartierstaat-tabel komt uit de oude site, met al zijn eigen kolom-
   indeling. We laten de structuur intact en geven hem alleen leesbare
   typografie + horizontale scroll op mobiel. */
.kwartierstaat {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}
.kwartierstaat table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.kwartierstaat td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.kwartierstaat tr:first-child td {
  background: var(--paper-deep);
  font-family: var(--display);
}
.kwartierstaat b { font-weight: 600; }
.kwartierstaat u { text-decoration: none; border-bottom: 1px dotted var(--ink-soft); }

/* Onderaan elke kwartierstaat: "naar Alex" / "naar Arjan"-navigatie. */
.familiereis-nav {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
}
.familiereis-nav li { margin: 0; }
.familiereis-nav a {
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 500;
}
.familiereis-nav a:hover { color: var(--terra); }

/* Vorige/volgende-knoppen voor de chronologische reis door de kwartierstaten.
   Volgt de volgorde uit _data/familiereis.yml, ingevoegd door de layout. */
.familiereis-prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 0;
  margin: 2.5rem 0 clamp(2.5rem, 6vw, 4rem);
}
.familiereis-prev-next a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 48%;
  text-decoration: none;
  color: var(--ink);
}
.familiereis-prev-next a:hover { color: var(--terra); }
.familiereis-prev-next .dir {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}
.familiereis-prev-next .name {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.3;
}
.familiereis-prev-next .familiereis-next {
  margin-left: auto;
  text-align: right;
}

/* =========================================================
   LAAD-ANIMATIE  (subtiele, getrapte fade-up)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: fadeUp 0.7s ease forwards; }
  .reveal:nth-child(1) { animation-delay: 0.05s; }
  .reveal:nth-child(2) { animation-delay: 0.15s; }
  .reveal:nth-child(3) { animation-delay: 0.25s; }
  .reveal:nth-child(4) { animation-delay: 0.35s; }
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* =========================================================
   MOBIEL
   ========================================================= */
@media (max-width: 540px) {
  .brand { font-size: 1.35rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.9rem; }
  .social-topbar { gap: 0.9rem; }
  .social-topbar a { font-size: 0.72rem; }
  .footer-meta { font-size: 0.72rem; text-align: center; }
}
