/* ==========================================================================
   Goed Speel Goed Bloemendaal
   Mobile-first. Kleuren komen uit het logo en de winkel zelf
   (rode kasten, rood-witte carrousel, hemelsblauw behang, gouden wanden).
   ========================================================================== */

/* ---------- Fonts (zelf gehost, geen externe verzoeken) ----------
   Saira Condensed wordt vooraf geladen en staat op "optional": zo verspringt
   de layout niet als het font binnenkomt. */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --rood: #ea3323;          /* logo-rood: grote koppen en decoratie */
  --rood-donker: #c8231a;   /* knoppen en links: voldoende contrast met wit */
  --rood-hover: #a51a12;
  --grafiet: #464646;       /* logo-grijs: lopende tekst */
  --grafiet-zacht: #5a5a5a;
  --hemel: #d6ecec;         /* behang in de winkel */
  --goud: #b9800c;          /* sterren */
  --goud-licht: #f6e7bd;    /* gouden wanden, zacht */
  --wit: #ffffff;
  --open: #2e7d3a;

  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 1.5rem;
  --arch: 999px 999px 1.75rem 1.75rem;
  --space-section: clamp(4rem, 2.5rem + 6vw, 8rem);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grafiet);
  background: var(--wit);
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--rood-donker); }
a:hover { color: var(--rood-hover); }

:focus-visible {
  outline: 3px solid var(--grafiet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--wit);
  color: var(--grafiet);
  font-weight: 700;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typografie ---------- */
.h2,
.h3,
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--rood);
  text-wrap: balance;
}

.h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  line-height: .95;
}

.h3 {
  margin: 2.5rem 0 .75rem;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--grafiet);
}

.link { font-weight: 700; text-underline-offset: .2em; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .6rem 1.4rem;
  border: 2px solid var(--rood-donker);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--rood-donker); color: var(--wit); }
.btn--primary:hover { background: var(--rood-hover); border-color: var(--rood-hover); color: var(--wit); }
.btn--ghost { background: transparent; color: var(--rood-donker); }
.btn--ghost:hover { background: var(--wit); color: var(--rood-hover); }

/* ---------- Luifel (rood-wit gestreept, zoals boven de winkel) ---------- */
.awning {
  height: 44px;
  background:
    radial-gradient(circle at 20px 0, var(--rood) 19.5px, transparent 20px) 0 24px / 80px 20px repeat-x,
    radial-gradient(circle at 60px 0, var(--wit) 19.5px, transparent 20px) 0 24px / 80px 20px repeat-x,
    repeating-linear-gradient(90deg, var(--rood) 0 40px, var(--wit) 40px 80px) 0 0 / 100% 24px no-repeat;
  transform-origin: top;
  animation: awning-open .7s cubic-bezier(.3, .8, .3, 1) both;
}

.awning--footer {
  transform: scaleY(-1);
  animation: none;
  background-color: var(--hemel);
}

/* ---------- Header ---------- */
.top,
.hero-band { background: var(--hemel); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem .5rem;
}

.site-header__logo { display: block; width: clamp(12.5rem, 45vw, 19rem); }
.site-header__logo img { width: 100%; }

.site-nav { max-width: 100%; overflow-x: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(.85rem, 3vw, 1.25rem);
  white-space: nowrap;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.2rem);
  color: var(--grafiet);
  text-decoration: none;
}
.site-nav a:hover { color: var(--rood-donker); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: 2rem 4.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: .4rem 1rem .4rem .8rem;
  border-radius: 999px;
  background: var(--wit);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  min-height: 2.2rem;
}
/* Plek blijft gereserveerd tot het script de tekst invult: geen verspringende layout */
.status:empty { visibility: hidden; }
.status::before {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--grafiet-zacht);
}
.status.is-open::before { background: var(--open); }

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 1.6rem + 5.2vw, 6rem);
  line-height: .9;
  letter-spacing: -.005em;
  animation: rise .8s .15s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__lead {
  max-width: 34em;
  margin-bottom: 2rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem);
  line-height: 1.55;
}

.hero__actions,
.bezoek__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__photo {
  justify-self: center;
  width: min(100%, 26rem);
  animation: arch-up 1s .25s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------- Boogvorm (zoals de beschilderde raampjes in het bos) ---------- */
.arch {
  padding: .6rem;
  background: var(--wit);
  border-radius: var(--arch);
}
.arch img { border-radius: 999px 999px 1.2rem 1.2rem; }

/* ---------- Secties ---------- */
.section { padding-block: var(--space-section); }

/* Sprookjesbos */
.bos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.bos__text { grid-column: 1 / -1; max-width: 34em; font-size: 1.15rem; }
.bos__main { grid-column: 1 / -1; grid-row: 3; }
.bos__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 70%;
  border-radius: var(--radius);
}
.bos .arch { padding: 0; background: none; }
.bos__small--offset { margin-top: 2.5rem; }

/* Merken */
.merken { background: var(--goud-licht); }
.merken__grid { display: grid; gap: 3rem; align-items: center; }

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem);
  line-height: 1.05;
  color: var(--grafiet);
}
.brands li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: .26em;
  height: .26em;
  margin: 0 .1em 0 .3em;
  border-radius: 50%;
  background: var(--rood);
  vertical-align: .12em;
}
.brands__more {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--rood-donker);
}

/* Ronde foto met een rood-witte rand, zoals de carrousel */
.merken__photo {
  justify-self: center;
  width: min(80%, 24rem);
  padding: .9rem;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--rood) 0 7.5deg, var(--wit) 7.5deg 15deg);
}
.merken__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 60%;
  border: .5rem solid var(--goud-licht);
  border-radius: 50%;
}

/* Reviews */
.reviews__source { margin-top: -.75rem; margin-bottom: 3rem; color: var(--grafiet-zacht); }

.review-list { columns: 1; column-gap: 3.5rem; margin-bottom: 1rem; }

.review {
  break-inside: avoid;
  margin-bottom: 2.75rem;
  max-width: 34em;
}
.review blockquote { margin: .75rem 0 .5rem; }
.review blockquote::before {
  content: "\201C";
  display: block;
  height: .45em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--rood);
}
.review blockquote p { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.review__name { margin: 0; font-weight: 700; }

.stars {
  display: block;
  width: 6.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23b9800c' d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9L10 14.9l-5.2 2.8 1-5.9L1.5 7.7l5.9-.8z'/%3E%3C/svg%3E") 0 0 / 1.25rem 1.25rem repeat-x;
}
.stars[data-stars="4"] { width: 5rem; }

/* Bezoek */
.bezoek { background: var(--hemel); }
.bezoek__grid { display: grid; gap: 3.5rem; }

.address {
  margin-bottom: 1.5rem;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  font-size: 1.1rem;
}
.hours th,
.hours td {
  padding: .6rem .75rem;
  border-bottom: 1px solid rgba(70, 70, 70, .2);
}
.hours th { text-align: left; font-weight: 400; }
.hours td {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hours .is-closed td { color: var(--grafiet-zacht); }
.hours .is-today th,
.hours .is-today td { background: var(--wit); font-weight: 700; }
.hours .is-today th { border-radius: .75rem 0 0 .75rem; }
.hours .is-today td { border-radius: 0 .75rem .75rem 0; }
.hours__today {
  margin-left: .5rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--rood-donker);
  color: var(--wit);
  font-size: .8rem;
  font-weight: 700;
  vertical-align: .1em;
}

.bezoek__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.bezoek__pui { margin-top: 3rem; }

.video-teaser {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--grafiet);
  text-decoration: none;
  background: var(--grafiet);
}
.video-teaser img { width: 100%; transition: transform .4s ease; }
.video-teaser:hover img { transform: scale(1.03); }
.video-teaser__label {
  position: absolute;
  left: .6rem;
  right: .6rem;
  bottom: .6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .6rem;
  padding: .6rem .9rem .6rem .6rem;
  border-radius: 1.1rem;
  background: var(--wit);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
}
.video-teaser__play {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--rood-donker);
  position: relative;
}
.video-teaser__play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .45rem 0 .45rem .75rem;
  border-color: transparent transparent transparent var(--wit);
}
.video-teaser__meta {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .85rem;
  color: var(--grafiet-zacht);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: #000;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rood-donker);
  color: var(--wit);
}
.site-footer__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--wit); font-weight: 700; text-underline-offset: .2em; }
.site-footer a:hover { color: var(--goud-licht); }
.site-footer__mark { width: 3.5rem; border-radius: .9rem; box-shadow: 0 0 0 2px var(--wit); }
.site-footer :focus-visible { outline-color: var(--wit); }
.social { display: flex; gap: 1.25rem; }
.site-footer__copy { font-size: .9rem; }

@media (max-width: 29.99em) {
  .video-teaser__label { font-size: 1rem; padding: .5rem .6rem .5rem .5rem; column-gap: .45rem; }
  .video-teaser__play { width: 1.9rem; height: 1.9rem; }
  .video-teaser__meta { font-size: .78rem; }
}

/* ---------- Grotere schermen ---------- */
@media (min-width: 40em) {
  .review-list { columns: 2; }
  .merken__photo { width: min(60%, 24rem); }
}

@media (min-width: 60em) {
  .site-header { padding-top: 1.75rem; }

  .hero {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 4rem;
    padding-block: 3rem 6rem;
  }
  .hero__photo { width: 100%; max-width: 28rem; justify-self: end; }

  .bos__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem 1.5rem;
    align-items: start;
  }
  .bos__text { grid-column: 1 / 6; grid-row: 1; align-self: center; }
  .bos__small { grid-column: 7 / 10; grid-row: 1; }
  .bos__small--offset { grid-column: 10 / 13; margin-top: 5rem; }
  .bos__main { grid-column: 1 / -1; grid-row: 2; margin-top: 1rem; }
  .bos__main img { aspect-ratio: 2 / 1; }

  .merken__grid { grid-template-columns: 1.25fr .75fr; gap: 4rem; }
  .merken__photo { width: 100%; }

  .review-list { column-gap: 5rem; }

  .bezoek__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

  .site-footer__inner {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 2.5rem;
  }
}

/* ---------- Beweging: één openingsmoment, de winkel gaat open ---------- */
@keyframes awning-open {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes rise {
  from { transform: translateY(.35em); }
  to { transform: none; }
}
@keyframes arch-up {
  from { transform: translateY(2rem); clip-path: inset(25% 0 0 0 round 999px 999px 1.75rem 1.75rem); }
  to { transform: none; clip-path: inset(0 0 0 0 round 999px 999px 1.75rem 1.75rem); }
}

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