/* Avonturen van een Golf Nomad — gedeelde opmaak voor alle pagina's */
@font-face { font-family: 'Bagel Fat One'; src: url(fonts/bagel-fat-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url(fonts/rubik.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  /* Achtergrond: klassiek marineblauw (clubblazer), accenten van de boekomslag */
  --achtergrond: #1C2A39;
  --achtergrond-diep: #152230;
  --achtergrond-nacht: #0F1923;
  --oranje: #F2A022;
  --kaartgroen: #A5B14C;
  --papier: #F6F1E1;

  --display: 'Bagel Fat One', 'Arial Black', sans-serif;
  --sans: 'Rubik', system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --breed: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--achtergrond);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--oranje); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--oranje); outline-offset: 3px; }

/* ================= Boven: omslag + tekst ================= */
.boek {
  max-width: var(--breed);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--rand) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.omslag {
  position: sticky;
  top: 40px;
  margin: 0;
}
.omslag img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 2px 6px 6px 2px;
  /* een echt boek: rugje links, schaduw eronder */
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.08),
    -1px 0 0 rgba(0,0,0,.25),
    0 2px 4px rgba(4,10,16,.25),
    0 22px 40px -12px rgba(4,10,16,.6);
}
.omslag figcaption {
  margin-top: 18px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--papier);
}
.omslag figcaption strong { color: var(--oranje); font-weight: 700; }

.bovenregel {
  margin: 0;
  font-weight: 800;
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--oranje);
  line-height: 1.1;
}
h1 {
  margin: .05em 0 .15em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.4vw, 7.25rem);
  line-height: .92;
  color: var(--oranje);
}
.ondertitel {
  margin: 0 0 1.4em;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  color: var(--kaartgroen);
}

.tekst { max-width: 36em; }
.tekst p { margin: 0 0 1.05em; }
.tekst p.intro { font-size: 1.25rem; line-height: 1.5; font-weight: 500; }

.gegevens {
  margin: 2.2em 0 0;
  padding: 1.4em 0 0;
  border-top: 2px solid var(--kaartgroen);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13em, 100%), 1fr));
  gap: .9em 2em;
  font-size: .9375rem;
  line-height: 1.4;
}
.gegevens div { display: flex; flex-direction: column; }
.gegevens dt { color: var(--kaartgroen); font-weight: 700; font-size: .8125rem; }
.gegevens dd { margin: 0; }

.naar-fotos, .knop {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-top: 2.2em;
  padding: .75em 1.3em;
  background: var(--oranje);
  color: var(--achtergrond-nacht);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .15s;
}
.naar-fotos:hover, .knop:hover { background: #FFB43C; }
.naar-fotos svg, .knop svg { width: 1em; height: 1em; }

/* ================= Onderweg: de fotogalerij ================= */
.onderweg {
  background: var(--achtergrond-diep);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.onderweg-kop {
  max-width: var(--breed);
  margin: 0 auto;
  padding: 0 var(--rand);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: end;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: .95;
  color: var(--oranje);
}
.onderweg-kop p { margin: 0; max-width: 32em; }

/* filter op golfbaan / streek */
.filter {
  max-width: var(--breed);
  margin: 32px auto 28px;
  padding: 0 var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter button {
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  padding: .6em .95em;
  border-radius: 999px;
  border: 1.5px solid rgba(246,241,225,.28);
  background: transparent;
  color: var(--papier);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.filter button:hover { border-color: var(--oranje); }
.filter button[aria-pressed="true"] { background: var(--oranje); border-color: var(--oranje); color: var(--achtergrond-nacht); font-weight: 700; }
.filter button span { opacity: .65; margin-left: .3em; font-weight: 400; }

.galerij {
  max-width: calc(var(--breed) + 120px);
  margin: 40px auto 0;
  padding: 0 clamp(12px, 3vw, 40px);
  columns: 4 260px;
  column-gap: 12px;
}
.galerij figure {
  margin: 0 0 12px;
  break-inside: avoid;
  position: relative;
}
.galerij figure[hidden] { display: none; }
.galerij button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--achtergrond-nacht);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 3px;
}
.galerij img {
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.galerij button:hover img { transform: scale(1.035); }
.galerij figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 9px;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(10,18,26,.78));
  border-radius: 0 0 3px 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.galerij figure:hover figcaption,
.galerij button:focus-visible + figcaption { opacity: 1; }
@media (hover: none) { .galerij figcaption { opacity: 1; } }

/* ================= Grote weergave ================= */
dialog.groot {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12,20,28,.96);
  color: var(--papier);
}
dialog.groot::backdrop { background: transparent; }
.groot-inhoud {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(12px, 3vw, 40px) clamp(12px, 6vw, 96px) 16px;
}
.groot figure { margin: 0; min-height: 0; display: grid; place-items: center; }
.groot img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.groot-balk { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.groot-titel { font-family: var(--display); color: var(--oranje); font-size: 1.35rem; line-height: 1.1; }
.groot-teller { font-size: .875rem; opacity: .7; margin-left: .6em; font-family: var(--sans); color: var(--papier); }
.groot-knoppen { display: flex; gap: 8px; }
.groot button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(246,241,225,.35);
  background: transparent;
  color: var(--papier);
  display: grid; place-items: center;
  cursor: pointer;
}
.groot button:hover { border-color: var(--oranje); color: var(--oranje); }
.groot button svg { width: 20px; height: 20px; }

/* ================= Taalkeuze ================= */
.talen {
  max-width: var(--breed);
  margin: 0 auto;
  padding: 20px var(--rand) 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.talen a {
  padding: .3em .7em;
  border: 1.5px solid rgba(246,241,225,.3);
  border-radius: 999px;
  color: var(--papier);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
}
.talen a:hover { border-color: var(--oranje); color: var(--oranje); }
.talen a[aria-current] { background: var(--oranje); border-color: var(--oranje); color: var(--achtergrond-nacht); }

/* ================= Bestellen (blok op de homepage) ================= */
.bestel-blok {
  max-width: var(--breed);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--rand);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 6vw, 88px);
  align-items: center;
}
.bestel-blok h2 { margin-bottom: .25em; }
.bestel-blok p { margin: 0; max-width: 30em; font-size: 1.125rem; }
.aanmelden label { display: block; margin-bottom: .5em; font-weight: 700; color: var(--kaartgroen); font-size: .9375rem; }
.aanmelden-velden { display: grid; gap: 14px; }
.aanmelden .knop { margin-top: 16px; }
.verborgen-veld { position: absolute; left: -9999px; }
.aanmelden input[type=email], .aanmelden input[type=text] {
  width: 100%;
  flex: 1 1 14em;
  min-width: 0;
  padding: .85em 1.2em;
  font: inherit;
  color: var(--achtergrond-nacht);
  background: var(--papier);
  border: 2px solid transparent;
  border-radius: 999px;
}
.aanmelden input:focus { outline: none; border-color: var(--oranje); }
.aanmelden .knop { border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: .85em 1.4em; }
.aanmelden .knop:disabled { opacity: .6; cursor: default; }
.bestel-blok .aanmelden-klein { margin-top: .8em; font-size: .875rem; opacity: .75; }
.bestel-blok .aanmelden-melding { margin-top: .6em; font-size: 1rem; font-weight: 700; color: var(--oranje); }
.bestel-blok .aanmelden-melding:empty { display: none; }
.aanmelden.klaar .aanmelden-velden, .aanmelden.klaar .knop, .aanmelden.klaar .aanmelden-klein { display: none; }
.bestel-blok .aanmelden.klaar .aanmelden-melding { margin-top: 0; font-size: 1.25rem; }

/* ================= Voet ================= */
footer {
  background: var(--achtergrond-nacht);
  padding: clamp(40px, 6vw, 64px) var(--rand);
}
.voet {
  max-width: var(--breed);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
}
.voet h3 { margin: 0 0 .4em; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--oranje); line-height: 1.1; }
.voet p { margin: 0; font-size: .9375rem; max-width: 30em; }
.voet .merk { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(246,241,225,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .875rem; opacity: .8; }

/* ================= Telefoon ================= */
@media (max-width: 820px) {
  .boek { grid-template-columns: minmax(0, 1fr); }
  .omslag { position: static; display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: end; }
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 24px 0 20px; padding-bottom: 4px;
            -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filter::-webkit-scrollbar { display: none; }
  .filter button { flex: none; }
  .omslag figcaption { margin: 0; }
  .onderweg-kop, .voet, .bestel-blok { grid-template-columns: minmax(0, 1fr); }
  .galerij { columns: 2 140px; column-gap: 8px; }
  .galerij figure { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .galerij img, .galerij figcaption { transition: none; }
  .galerij button:hover img { transform: none; }
}

/* ================= Bedankpagina ================= */
.paginakop {
  max-width: var(--breed);
  margin: 0 auto;
  padding: 24px var(--rand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.paginakop .merk { font-family: var(--display); color: var(--oranje); font-size: 1.35rem; line-height: 1; text-decoration: none; }

.bedankt {
  max-width: var(--breed);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 96px) var(--rand) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.bedankt img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -1px 0 0 rgba(0,0,0,.25), 0 2px 4px rgba(4,10,16,.25), 0 22px 40px -12px rgba(4,10,16,.6);
}
.bedankt h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin: 0 0 .3em; }
.bedankt p { margin: 0 0 1em; max-width: 32em; font-size: 1.125rem; }
.bedankt .stappen { list-style: none; margin: 1.8em 0 2.2em; padding: 0; display: grid; gap: 14px; max-width: 32em; }
.bedankt .stappen li { display: grid; grid-template-columns: 2.2em 1fr; gap: 12px; align-items: baseline; }
.bedankt .stappen b { font-family: var(--display); font-weight: 400; color: var(--oranje); font-size: 1.4rem; line-height: 1; }

@media (max-width: 820px) {
  .bedankt { grid-template-columns: minmax(0, 1fr); }
  .bedankt img { max-width: 160px; }
}
