/* Netjus Eiland — klassiek-statig designsysteem */

:root {
  --ink: #1a1f2b;
  --parchment: #f4ecdc;
  --parchment-dark: #e8dcc8;
  --hofgreen: #1d3a2e;
  --hofgreen-light: #2a5240;
  --gold: #b8862b;
  --gold-light: #d4a84a;
  --burgundy: #6b1f24;
  --white: #faf8f4;
  --shadow: rgba(26, 31, 43, 0.12);
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --max-content: 960px;
  --nav-height: 3.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hofgreen);
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

/* ——— Navigation ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--shadow);
  min-height: var(--nav-height);
}

.site-nav .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hofgreen) !important;
  letter-spacing: 0.04em;
}

.site-nav .nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink) !important;
  padding: 0.5rem 0.75rem !important;
  letter-spacing: 0.03em;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--gold) !important;
}

.site-nav .navbar-toggler {
  border-color: var(--gold);
}

.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(26, 31, 43, 0.45) 0%,
      rgba(29, 58, 46, 0.55) 50%,
      rgba(26, 31, 43, 0.7) 100%
    ),
    url("netjus-eiland-main.jpg") center center / cover no-repeat;
  color: var(--white);
  padding: 4rem 1.5rem 5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
}

.hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  opacity: 0.95;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero .hero-lead {
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.scroll-cue {
  display: inline-block;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--parchment-dark);
}

.section-dark {
  background-color: var(--hofgreen);
  color: var(--parchment);
}

.section-dark h2,
.section-dark h3 {
  color: var(--gold-light);
}

.section-dark a {
  color: var(--gold-light);
}

.section-dark a:hover {
  color: var(--white);
}

.content-narrow {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 0;
  margin: 0.75rem auto 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-top: 3px;
}

.fleuron {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 1.25rem;
  margin: 2rem 0;
  letter-spacing: 0.5em;
}

.fleuron::before {
  content: "❧";
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 0.9;
  padding-right: 0.6rem;
  padding-top: 0.25rem;
  color: var(--hofgreen);
  font-weight: 700;
  letter-spacing: 0;
}

/* ——— Feature cards (Hofvijver / Eiland facts) ——— */
.fact-card {
  background: var(--white);
  border: 1px solid rgba(184, 134, 43, 0.35);
  border-radius: 2px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 16px var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.fact-card:hover {
  box-shadow: 0 8px 28px rgba(26, 31, 43, 0.18);
  transform: translateY(-2px);
}

.fact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--hofgreen);
}

.fact-card .fact-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Timeline ——— */
.timeline {
  --timeline-gutter: 2rem;
  position: relative;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 0 0 var(--timeline-gutter);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--hofgreen));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: var(--timeline-gutter);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--timeline-gutter));
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: calc(1px - 6px);
  background: var(--gold);
  border: 2px solid var(--hofgreen);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--parchment);
}

.timeline-item .timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--white);
  border: 1px solid rgba(184, 134, 43, 0.3);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: box-shadow 0.3s ease;
}

.timeline-card:hover {
  box-shadow: 0 8px 28px rgba(26, 31, 43, 0.2);
}

.timeline-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 280px;
}

.timeline-card .timeline-body {
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.timeline-card .badge-title,
.folklore-card .badge-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  background: var(--parchment-dark) !important;
  color: var(--hofgreen) !important;
  border: 1px solid var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.35;
}

.timeline-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.timeline-item--text-only .timeline-card {
  padding: 1.25rem 1.5rem;
}

/* ——— Folklore ——— */
.folklore-section {
  background:
    linear-gradient(135deg, rgba(107, 31, 36, 0.04) 0%, rgba(29, 58, 46, 0.06) 100%),
    var(--parchment-dark);
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
}

.folklore-banner {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 2rem;
}

.folklore-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 0;
  padding: 2rem;
  height: 100%;
  position: relative;
}

.folklore-card::before {
  content: "\201C";
  position: absolute;
  top: -0.25rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}

.folklore-card h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ——— Gallery ——— */
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(26, 31, 43, 0.25);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 31, 43, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ——— Sources ——— */
.section-compact {
  padding: 2rem 0 2.5rem;
}

.section-compact .section-title {
  margin-bottom: 1rem;
}

.section-compact .section-title h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sources-list li {
  padding: 0.15rem 0;
  break-inside: avoid;
}

.sources-list a {
  font-size: inherit;
}

@media (min-width: 992px) {
  .sources-list {
    columns: 3;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--hofgreen);
  color: var(--parchment);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .footer-ornament {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ——— Image vignette ——— */
.img-vignette {
  border: 1px solid var(--gold);
  padding: 4px;
  background: var(--white);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ——— Responsive ——— */
@media (max-width: 767.98px) {
  .hero {
    min-height: 70vh;
    padding: 3rem 1rem 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-compact {
    padding: 1.5rem 0 2rem;
  }

  .sources-list {
    columns: 1;
  }

  .timeline {
    --timeline-gutter: 1.5rem;
  }

  .site-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 0 !important;
  }

  .gallery-grid img {
    height: 160px;
  }
}

@media (min-width: 768px) {
  .timeline-card:has(img) {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: stretch;
  }

  .timeline-card:has(img) img {
    max-height: none;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
  }
}
