/* ==========================================================
   Petit Bleu Joinville — stylesheet
   Stijl naar de oorspronkelijke Wix-site: foto's over de volle
   breedte met gescheurde papierranden, grote kapitale koppen,
   dunne Futura-achtige tekst (Jost), witte omlijnde knoppen.
   ========================================================== */

:root {
  --ink:      #1d1d1d;
  --muted:    #555;
  --paper:    #ffffff;
  --wash:     rgba(242, 241, 237, .86);   /* lichte waas over achtergrondfoto */
  --overlay:  rgba(18, 20, 24, .66);      /* donkere waas over panelen */
  --blue:     #8fb0dc;                    /* lichtblauw van het logo */

  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-head: "Montserrat", "Futura", "Avenir Next", sans-serif;
  --torn-h: 24px;                          /* hoogte van de scheurrand */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: #eceae5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

/* ---------- Koppen ---------- */
.big {                                      /* ABOUT, VISIT, CONTACT */
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  margin: 0 0 2.5rem;
  padding-left: .18em;                      /* compenseert letter-spacing voor centreren */
}
.small-caps {                               /* IMPRESSION e.d. */
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.center { text-align: center; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-block; margin-top: 1.2rem;
  padding: .55rem 1.8rem;
  border: 2px solid #fff; color: #fff;
  font-family: var(--font-body); font-weight: 400; font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.dark { border-color: var(--ink); color: var(--ink); }
.btn.dark:hover { background: var(--ink); color: #fff; }

/* ---------- Gescheurde papierrand (boven + onder) ---------- */
.torn { position: relative; }
.torn::before, .torn::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--torn-h);
  background: url('../images/torn.svg') repeat-x;
  background-size: 1200px var(--torn-h);
  z-index: 2; pointer-events: none;
}
.torn::before { top: -1px; }
.torn::after  { bottom: -1px; transform: scaleY(-1); background-position-x: 380px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s;
}
.site-header.scrolled { background: rgba(20, 22, 26, .55); backdrop-filter: blur(6px); }
.header-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: flex; align-items: center; min-height: 84px; padding-top: 6px;
}
.logo img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: .4rem 0;
  color: #fff; text-decoration: none;
  font-weight: 400; font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.nav a::before {                            /* wit balkje boven actief item */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: #fff; opacity: 0; transition: opacity .2s;
}
.nav a[aria-current="page"]::before, .nav a:hover::before { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; }

.lang { display: flex; gap: .4rem; margin-left: 1.8rem; }
.lang a {
  display: block; padding: 2px; line-height: 0;
  opacity: .55; border-radius: 3px; transition: opacity .2s;
}
.lang a:hover { opacity: .9; }
.lang a[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px #fff; }
.lang svg { display: block; border-radius: 2px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: .75rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .logo img { height: 46px; }
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none;
         background: rgba(20, 22, 26, .92); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 6%; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav a::before { display: none; }
}

/* ---------- Homepage: vaste achtergrondfilm ---------- */
.bg-video { position: fixed; inset: 0; z-index: 0; background: #2a3a2a; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; }
.page-home main, .page-home .site-footer { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  display: grid; place-items: center; text-align: center; color: #fff;
  padding: 90px 4% 60px;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.28));
}
.hero-logo { margin: 0 0 .6rem; line-height: 0; }
.hero-logo img { width: min(620px, 84vw); height: auto; margin: 0 auto;
                 filter: drop-shadow(0 2px 10px rgba(0,0,0,.3)); }
.since {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .32em; text-transform: uppercase; margin: 0;
}
.since .rule { width: 120px; height: 3px; background: #fff; }
@media (max-width: 600px) { .since .rule { width: 50px; } }

/* Fotopanelen (About / Visit / Contact op home) */
.panel {
  margin: 0 0 clamp(150px, 24vw, 320px);   /* tussenruimte toont de film */
  background: #555 center / cover no-repeat;
  color: #fff; text-align: center;
}
.panel::selection { background: #fff; }
.panel-inner {
  position: relative; z-index: 1;
  background: var(--overlay);
  padding: clamp(5rem, 10vw, 8rem) 6% clamp(5rem, 9vw, 7rem);
}
.panel-inner p { max-width: 380px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.panel .mail a { color: #fff; }
.panel.last { margin-bottom: 0; }

/* ---------- Subpagina's ---------- */
.bg-wash {
  position: fixed; inset: 0; z-index: 0;
  background: center / cover no-repeat;
}
.bg-wash::after { content: ""; position: absolute; inset: 0; background: var(--wash); }
.page-about main, .page-visit main, .page-contact main,
.page-about .band, .page-visit .band, .page-contact .band,
.page-about .site-footer, .page-visit .site-footer, .page-contact .site-footer { position: relative; z-index: 1; }

.page-hero {
  min-height: 62vh; display: grid; place-items: center; text-align: center; color: #fff;
  background: #555 center / cover no-repeat;
  padding: 110px 4% 60px;
}
.page-hero::selection { background: #fff; }
.page-hero .big { position: relative; z-index: 1; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.page-hero { box-shadow: inset 0 0 0 100vmax rgba(18,20,24,.5); }

.block { width: min(1040px, 92%); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 0 0; }
.card { background: var(--paper); padding: clamp(1.5rem, 3vw, 2rem); }
.card.narrow { max-width: 680px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); }
.card p { color: var(--muted); }

.about-sign { width: 100%; max-width: 520px; margin: 1.5rem auto 0; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem;
}
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.5rem; }
.item h3 {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .5rem;
}
.item p { margin: 0; font-size: 1rem; }
.item .meta { display: block; margin-top: .5rem; font-size: .85rem; font-weight: 400; color: var(--ink); }

.big-mail { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 400; color: var(--ink) !important; }
.big-mail a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.band { height: clamp(180px, 28vw, 300px); margin-top: clamp(4rem, 8vw, 6rem); background: #556 center / cover no-repeat; }
.site-footer { text-align: center; padding: 1.4rem 4% 1.8rem; font-size: .95rem; font-weight: 400; }
.site-footer p { margin: .2rem 0; }
.site-footer a { text-decoration: none; }
.site-footer.on-video { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); padding-top: 3rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.92);
            display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff;
                   font-size: 2.4rem; cursor: pointer; padding: 1rem; line-height: 1; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev  { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: .5rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .bg-video video { display: none; }
  .bg-video { background: #2a3a2a url('../images/hero-poster.jpg') center / cover; }
}

.item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }

/* ---------- Lichte panelen met scheurrand (Visit, zoals op Wix) ---------- */
.wash { margin-top: clamp(7rem, 15vw, 12rem); }
.wash-inner {
  background: rgba(246, 245, 241, .80);
  text-align: center;
  padding: clamp(4rem, 8vw, 5.5rem) 6% clamp(4rem, 8vw, 5rem);
}
.wash-inner > * { max-width: 500px; margin-left: auto; margin-right: auto; }
.wash-inner .small-caps { max-width: none; margin-bottom: 2.2rem; line-height: 1.5; }
.li { margin-bottom: 1.6rem; }
.li h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; margin: 0; }
.li p { margin: 0; color: #333; }
.bg-wash--video video { width: 100%; height: 100%; object-fit: cover; }
.bg-wash--video::after { background: rgba(242, 241, 237, .55); }

/* Eerste beeld: foto van de trap, net als op de oorspronkelijke site.
   De film schemert erachter door in de ruimte onder deze foto. */
.page-home .hero {
  min-height: 82vh;
  background: #555 center 62% / cover no-repeat;
  margin-bottom: clamp(150px, 24vw, 320px);
  position: relative;
}
.page-home .hero::selection { background: #fff; }
.page-home .hero .hero-inner { position: relative; z-index: 1; }
.page-home .hero { box-shadow: inset 0 0 0 100vmax rgba(18,20,24,.42); }

/* Iets zachte schaduw onder witte tekst op foto's */
.panel-inner p, .panel-inner .btn, .page-home .hero .since { text-shadow: 0 1px 8px rgba(0,0,0,.35); }


/* Homepage: klein logo linksboven verschijnt pas langzaam als het grote logo uit beeld is */
.logo img { transition: opacity 1.2s ease; }
.page-home .site-header:not(.show-logo) .logo img { opacity: 0; }

/* ---------- Fotoslider (zoals op de oorspronkelijke site) ---------- */
.slider { position: relative; }
.slider .gallery {
  display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider .gallery::-webkit-scrollbar { display: none; }
.slider .gallery a { flex: 0 0 calc((100% - 3.2rem) / 3); scroll-snap-align: start; }
.slider .gallery img { aspect-ratio: 3 / 4; height: auto; }
@media (max-width: 900px) { .slider .gallery a { flex-basis: calc((100% - 1.6rem) / 2); } }
@media (max-width: 560px) { .slider .gallery { gap: 1rem; } .slider .gallery a { flex-basis: 85%; } }
.sl-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(40, 40, 40, .55); color: #fff; font-size: 2.6rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 6px;
  transition: background .2s, opacity .2s;
}
.sl-btn:hover { background: rgba(40, 40, 40, .8); }
.sl-prev { left: 1.2rem; } .sl-next { right: 1.2rem; }
.sl-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .sl-btn { width: 46px; height: 46px; font-size: 2rem; } .sl-prev { left: .4rem; } .sl-next { right: .4rem; } }

/* ---------- Contactformulier ---------- */
.contact-form { text-align: left; margin-top: 2rem; }
.contact-form .field { display: block; margin: 0 0 1.3rem; border: 0; padding: 0; font-weight: 400; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem;
  font: inherit; font-weight: 300; color: var(--ink);
  border: 1px solid #bdbab3; border-radius: 0; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form legend { padding: 0; margin-bottom: .4rem; }
.contact-form .radio { display: flex; align-items: center; gap: .55rem; font-weight: 300; margin: .3rem 0; cursor: pointer; }
.contact-form .radio input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; border-radius: 3px; }
.contact-form .btn { margin-top: .4rem; cursor: pointer; background: none; font-size: 1rem; }
.contact-form .invalid input[type=text], .contact-form .invalid input[type=email] { border-color: #b3261e; }
.contact-form fieldset.invalid legend { color: #b3261e; }
.form-status { margin: 1rem 0 0; font-weight: 400; color: var(--ink) !important; }
.form-status.error { color: #b3261e !important; }
.hp { position: absolute; left: -9999px; }

.more-link {
  display: inline-block; margin-top: .3rem; font-weight: 400; font-size: .95rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor;
}
.more-link:hover { opacity: .65; }

/* Compacter formulier */
.contact-form { margin-top: 1.5rem; font-size: .97rem; }
.contact-form .field { margin-bottom: .85rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  margin-top: .25rem; padding: .45rem .65rem; font-size: .97rem;
}
.contact-form .radios { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.contact-form .radio { margin: 0; }
.contact-form .captcha:not(:empty) { margin: .2rem 0 .6rem; min-height: 65px; }

/* Naam en e-mail naast elkaar */
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 520px) { .contact-form .field-row { grid-template-columns: 1fr; } }

/* Tips in twee kolommen (onzichtbare tabel) */
.wash-inner > .li-grid {
  max-width: 920px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem; margin-bottom: 1.5rem; align-items: start;
}
.li-grid .li { margin: 0; }
@media (max-width: 760px) { .wash-inner > .li-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Boekingskalender ---------- */
.booking { border: 1px solid #bdbab3; padding: 1rem 1rem .4rem; margin: -.2rem 0 1rem; animation: calIn .25s ease; }
@keyframes calIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cal-hint { margin: 0 0 .8rem; font-size: .9rem; }
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; position: relative; }
@media (max-width: 620px) { .cal { grid-template-columns: 1fr; } .cal .cal-month:nth-child(2) { display: none; } }
.cal-month h4 { margin: 0 0 .5rem; text-align: center; font-weight: 500; font-size: .95rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #888; padding-bottom: .25rem; }
.cal-day {
  appearance: none; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 300;
  height: 34px; cursor: pointer; color: var(--ink); position: relative;
}
.cal-day:hover:not([disabled]) { outline: 1px solid var(--ink); outline-offset: -1px; }
.cal-day[disabled] { color: #c8c5be; cursor: default; text-decoration: line-through; }
.cal-day.today { font-weight: 500; }
.cal-day.in-range { background: #ecebe7; }
.cal-day.start, .cal-day.end { background: var(--ink); color: #fff; font-weight: 400; }
.cal-nav {
  position: absolute; top: -.2rem; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 0 .4rem; color: var(--ink);
}
.cal-nav[disabled] { opacity: .2; cursor: default; }
.cal-nav.prev { left: 0; } .cal-nav.next { right: 0; }
.cal-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.6rem; margin: .9rem 0 .8rem; padding-top: .8rem; border-top: 1px solid #e3e0d9; font-size: .92rem; }
.cal-k { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.cal-v { font-weight: 400; }
.cal-n { font-weight: 400; }
.cal-clear { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; color: #666; }
.booking .guests-row { margin-bottom: .2rem; }
.booking.invalid { border-color: #b3261e; }
.contact-form input[type=number] {
  display: block; width: 100%; margin-top: .25rem; padding: .45rem .65rem;
  font: inherit; font-size: .97rem; font-weight: 300; color: var(--ink);
  border: 1px solid #bdbab3; border-radius: 0; background: #fff;
}
.contact-form input[type=number]:focus { outline: none; border-color: var(--ink); }
.cal-max { display: none; margin: 0 0 .8rem; font-size: .9rem; font-weight: 400; color: #b3261e !important; }
.cal-max.show { display: block; }
.guests-row.over input { border-color: #b3261e; }
.cal-day.too-short { text-decoration: none; color: #c8c5be; background: repeating-linear-gradient(135deg, transparent 0 4px, #f0eee9 4px 6px); }
.field-msg { display: block; min-height: 0; margin-top: .25rem; font-size: .82rem; font-weight: 300; color: #555; }
.field-msg.error { color: #b3261e; font-weight: 400; }
.field-msg .sug { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 400; }
