/* =========================================================
   Drup · Panoramabar · NYMA Watertoren
   Ontwerp: Claude Design, "drup.bar — nieuwe website" (DEFINITIEF).
   Maten en kleuren komen één-op-één uit design/Photos.dc.html.
   ========================================================= */

:root {
  --cream: #e4d3cb;
  --green: #06382c;
  --deep: #042c22;
  --wood: #014536;

  --text-muted: rgba(228, 211, 203, 0.92);
  --text-soft: rgba(228, 211, 203, 0.85);
  --text-label: rgba(228, 211, 203, 0.8);
  --line: rgba(228, 211, 203, 0.22);
  --line-strong: rgba(228, 211, 203, 0.3);

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 9vw, 128px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: "National Park", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* Wat het script verbergt (zoals de lege agenda), blijft verborgen, ook als de class iets anders zegt. */
[hidden] {
  display: none !important;
}

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

picture {
  display: block;
}

a {
  color: var(--cream);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--green);
}

.skip:focus {
  top: 12px;
}

/* ---------- Bouwstenen ---------- */

.wood {
  background-color: var(--wood);
  background-image: url("/assets/achtergrond/bg-hout.jpg");
  background-image: image-set(
    url("/assets/achtergrond/bg-hout.avif") type("image/avif"),
    url("/assets/achtergrond/bg-hout.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.section {
  padding: var(--section) var(--gutter);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}

.h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  max-width: 540px;
  color: var(--text-muted);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 0;
  font-size: 15px;
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--cream);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn--cream {
  background: var(--cream);
  color: var(--green);
}

.btn--cream:hover {
  background: #fff;
  color: var(--green);
}

.btn--line {
  color: var(--cream);
}

.btn--line:hover {
  background: rgba(228, 211, 203, 0.14);
  color: var(--cream);
}

.btn--green {
  border-color: var(--green);
  background: var(--green);
  color: var(--cream);
}

.btn--green:hover {
  background: var(--deep);
  color: var(--cream);
}

.btn--line-green {
  border-color: var(--green);
  color: var(--green);
}

.btn--line-green:hover {
  background: rgba(6, 56, 44, 0.08);
  color: var(--green);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
}

/* ---------- Header + hero ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav a {
  padding: 12px 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.lang {
  display: flex;
  border: 1px solid rgba(228, 211, 203, 0.55);
}

.lang a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang a:hover {
  background: rgba(228, 211, 203, 0.14);
  color: var(--cream);
}

.lang a[aria-current="page"] {
  background: var(--cream);
  color: var(--green);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 64px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero__hours {
  margin: 14px 0 0;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.hero__tagline {
  margin: clamp(32px, 4vw, 56px) 0 0;
  letter-spacing: 0.04em;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__buttons .btn--line {
  gap: 10px;
}

.hero__photo {
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, transparent 55%, var(--green) 55%);
}

.hero__photo img {
  width: 100%;
  max-width: 1200px;
  height: clamp(260px, 42vw, 600px);
  margin: 0 auto;
  object-fit: cover;
  object-position: 40% 55%;
}

/* ---------- Wisselend logo ----------
   logo.js kiest vóór de eerste paint een variant en zet de foto in --logo-image.
   Zonder JavaScript (of bij "beige") blijft het logo effen crème. */

.logo {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1200 / 394;
  margin-top: clamp(36px, 5vw, 64px);
  background: var(--cream) center / cover no-repeat;
  background-image: var(--logo-image, none);
  -webkit-mask: url("/assets/logo/druplogo.png") center / contain no-repeat;
          mask: url("/assets/logo/druplogo.png") center / contain no-repeat;
}

/* ---------- Bezoek ---------- */

.bezoek {
  background: var(--green);
}

.bezoek .wrap {
  gap: clamp(40px, 5vw, 64px);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 96px);
}

.bezoek__photo {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 420px;
}

.bezoek__photo picture,
.bezoek__photo img {
  width: 100%;
  height: 100%;
}

.bezoek__photo img {
  min-height: 420px;
  object-fit: cover;
  object-position: 8% 50%;
}

.bezoek__text {
  flex: 1.3 1 440px;
  min-width: 0;
  gap: 32px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps__nr {
  flex: 0 0 auto;
  width: 32px;
  padding-top: 2px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(228, 211, 203, 0.75);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact p:last-child {
  margin: 0;
  line-height: 1.7;
}

.map {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--deep);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 36vw, 440px);
  border: 0;
}

.map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: rgba(4, 44, 34, 0.9);
  border-top: 1px solid var(--line);
}

.map__bar span {
  font-size: 15px;
}

/* ---------- Fotoband ---------- */

.band {
  position: relative;
  margin: 0;
  background: var(--deep);
}

.band img {
  width: 100%;
  height: clamp(360px, 46vw, 680px);
  object-fit: cover;
  object-position: 72% 50%;
}

.band figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  padding: 8px 14px;
  background: rgba(4, 44, 34, 0.88);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* ---------- Agenda ---------- */

.agenda {
  background: var(--deep);
}

.agenda .split {
  gap: clamp(40px, 5vw, 72px);
}

/* Standaard een staande foto (4:5). Op brede schermen zet main.js er een vaste hoogte op:
   die van de agenda met de lege staat, zodat foto en blok precies gelijk lopen.
   Die hoogte blijft staan, hoeveel events er ook naast komen. */
.agenda__photo {
  flex: 1 1 320px;
  min-width: 0;
  align-self: flex-start;
  aspect-ratio: 4 / 5;
}

.agenda__photo[style*="height"] {
  aspect-ratio: auto;
}

.agenda__photo picture,
.agenda__photo img {
  width: 100%;
  height: 100%;
}

.agenda__photo img {
  object-fit: cover;
}

.agenda__content {
  flex: 1.7 1 480px;
  min-width: 0;
  align-self: flex-start;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.section-head > a:not(.btn) {
  padding: 12px 0;
  font-size: 15px;
}

.empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(44px, 6vw, 72px) 24px;
  border: 1px dashed rgba(228, 211, 203, 0.45);
  text-align: center;
}

.empty svg {
  color: rgba(228, 211, 203, 0.7);
}

.empty__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
}

.empty__text {
  margin: 0;
  max-width: 480px;
  color: var(--text-soft);
}

.empty a {
  padding: 10px 0;
  font-size: 15px;
}

.events {
  border-top: 1px solid var(--line);
}

.event {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.event__date {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event__day {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.event__when {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-label);
}

.event__body {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.2;
}

.event__desc {
  margin: 0;
  color: var(--text-soft);
}

.event__link {
  padding: 6px 0 0;
}

.event__meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.event__time {
  font-size: 15px;
}

.event__tag {
  padding: 4px 10px;
  border: 1px solid rgba(228, 211, 203, 0.5);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Instagram ---------- */

.instagram {
  background: var(--green);
}

.instagram .wrap {
  gap: 40px;
}

.instagram .section-head {
  gap: 24px 32px;
}

.instagram .heading {
  max-width: 560px;
}

.instagram .lead {
  margin-top: 6px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(228, 211, 203, 0.06);
  border: 1px solid rgba(228, 211, 203, 0.16);
  color: rgba(228, 211, 203, 0.5);
  transition: background-color 0.2s;
}

.tile:hover {
  background: rgba(228, 211, 203, 0.13);
  color: rgba(228, 211, 203, 0.5);
}

.tile picture,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.tile:hover img {
  opacity: 0.85;
}

/* ---------- Verhuur (crème band) ---------- */

.verhuur {
  background: var(--cream);
  color: var(--green);
}

.verhuur a:not(.btn) {
  color: var(--green);
}

.verhuur .wrap {
  gap: clamp(40px, 5vw, 64px);
}

.verhuur .eyebrow {
  color: rgba(6, 56, 44, 0.8);
}

.verhuur .lead {
  color: var(--green);
}

.verhuur__intro {
  flex: 1 1 400px;
  min-width: 0;
  gap: 24px;
}

.verhuur__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.floors {
  flex: 1 1 420px;
  min-width: 0;
}

.floors .eyebrow {
  margin-bottom: 14px;
}

.floors ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(6, 56, 44, 0.3);
}

.floors li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(6, 56, 44, 0.3);
}

.floors__nr {
  flex: none;
  width: 88px;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  line-height: 1;
}

.floors__name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.floors__desc {
  margin: 4px 0 0;
  color: rgba(6, 56, 44, 0.85);
}

/* ---------- Zaalfoto over de overgang ----------
   Bovenste kwart crème (Verhuur), de rest groen (Ook in de watertoren),
   zodat de overgang op een kwart van de foto ligt. Net als de foto in de hero. */

.verhuur {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.overlap-photo {
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, var(--cream) 25%, var(--green) 25%);
}

.overlap-photo img {
  width: 100%;
  max-width: 1200px;
  height: clamp(260px, 38vw, 540px);
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 60%;
}

.watertoren {
  padding-top: clamp(48px, 6vw, 80px);
}

/* ---------- Ook in de watertoren ---------- */

.watertoren {
  background: var(--green);
}

.watertoren .wrap {
  gap: 40px;
}

.watertoren .heading {
  max-width: 640px;
}

.watertoren .lead {
  margin-top: 6px;
  max-width: none;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-strong);
}

.card h3 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
}

.card__hours {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.card .icon-link {
  margin-top: auto;
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(64px, 8vw, 104px) var(--gutter) 32px;
}

.footer .wrap {
  gap: 56px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer__top img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.footer__top p {
  margin: 0;
  max-width: 320px;
  letter-spacing: 0.04em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__col p:last-child {
  margin: 0;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .tile,
  .tile img {
    transition: none;
  }
}
