/* ============================================
   Leestaete.nl — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --forest: #2D5F3F;
  --forest-deep: #1E4430;
  --forest-light: #3D7A54;
  --sage: #8FAE8B;
  --sage-soft: #B8CCAF;
  --warm-white: #FDFBF7;
  --linen: #F5F0E8;
  --linen-dark: #E8DFD1;
  --terracotta: #C67B4E;
  --terracotta-soft: #D4956E;
  --bark: #3A3228;
  --bark-light: #5C5147;
  --bark-muted: #8A7F73;
  --text: #3E3830;
  --text-soft: #6B6158;
  --text-faint: #9B9185;
  --white: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(58,50,40,0.06), 0 1px 2px rgba(58,50,40,0.04);
  --shadow-md: 0 4px 12px rgba(58,50,40,0.08), 0 2px 4px rgba(58,50,40,0.04);
  --shadow-lg: 0 12px 32px rgba(58,50,40,0.12), 0 4px 8px rgba(58,50,40,0.06);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --font-display: 'DM Serif Display', serif;
  --font-serif: 'Lora', serif;
  --font-sans: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bark);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.35em; }

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section--linen {
  background: var(--linen);
}

.section--warm-white {
  background: var(--warm-white);
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--terracotta);
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-label::before {
  display: none;
}

.section-header p {
  font-family: var(--font-serif);
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(58,50,40,0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}

.nav-logo span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-faint);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 8px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--forest);
  background: rgba(143,174,139,0.12);
}

.nav-links a.active {
  color: var(--forest);
  background: rgba(143,174,139,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bark);
  padding: 8px;
}

/* Nav bewoners button */
.nav-bewoners {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  white-space: nowrap;
}

.nav-bewoners:hover {
  background: var(--forest);
  color: var(--white);
}

.has-hero .site-header:not(.scrolled) .nav-bewoners {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
}

.has-hero .site-header:not(.scrolled) .nav-bewoners:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* Login modal */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(58,50,40,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.login-modal-overlay.active {
  display: flex;
}

.login-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: calc(100% - 48px);
  text-align: center;
  position: relative;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.login-modal-close:hover {
  background: var(--linen);
  color: var(--text);
}

.login-modal .lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(143,174,139,0.12);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.login-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.login-modal p {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 20px;
}

.login-modal input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--linen-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--linen);
  color: var(--text);
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.login-modal input[type="password"]:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
}

.login-modal .login-error {
  display: none;
  color: var(--terracotta);
  font-size: 14px;
  margin-bottom: 10px;
}

.login-modal button[type="submit"] {
  width: 100%;
}

/* Mobile bewoners button — hidden on desktop */
.nav-bewoners-mobile {
  display: none;
}

/* Hero needs transparent header */
.has-hero .site-header:not(.scrolled) {
  background: transparent;
}

.has-hero .site-header:not(.scrolled) .nav-logo {
  color: var(--white);
}

.has-hero .site-header:not(.scrolled) .nav-logo span {
  color: rgba(255,255,255,0.6);
}

.has-hero .site-header:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.8);
}

.has-hero .site-header:not(.scrolled) .nav-links a:hover,
.has-hero .site-header:not(.scrolled) .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.has-hero .site-header:not(.scrolled) .nav-toggle {
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 25s ease-out forwards;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,68,48,0.55) 0%,
    rgba(30,68,48,0.40) 50%,
    rgba(30,68,48,0.65) 100%
  );
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.8s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--white);
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-soft);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(143,174,139,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--forest);
}

.card h3 {
  color: var(--bark);
}

.card p {
  color: var(--text-soft);
}

/* ============================================
   PAGE HEADER (non-hero pages)
   ============================================ */
.page-header {
  background: var(--linen);
  padding: 80px 0 48px;
  margin-top: 72px;
}

.page-header .section-label {
  margin-bottom: 12px;
}

.page-header h1 {
  font-family: var(--font-display);
  color: var(--bark);
  margin-bottom: 12px;
}

.page-header .lead {
  font-family: var(--font-serif);
  color: var(--text-soft);
  font-size: 1.15rem;
  max-width: 600px;
}

/* ============================================
   QUOTE BAND
   ============================================ */
.quote-band {
  background: var(--forest-deep);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.quote-band .container {
  position: relative;
}

.quote-band .deco-quote {
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--font-display);
  font-size: 10rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--linen);
  padding: 80px 0;
}

.cta-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}

.cta-card h2 {
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-soft);
  font-family: var(--font-serif);
  margin-bottom: 28px;
}

.cta-card .btn + .btn {
  margin-left: 12px;
}

/* ============================================
   TWO COLUMN LAYOUTS
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--text-left .col-text { order: 1; }
.two-col--text-left .col-media { order: 2; }
.two-col--text-right .col-text { order: 2; }
.two-col--text-right .col-media { order: 1; }

.col-media {
  position: relative;
}

.col-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Floating stat block */
.stat-block {
  position: absolute;
  bottom: -24px;
  right: -16px;
  background: var(--forest);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.stat-block .stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-block .stat-label {
  font-size: 14px;
  opacity: 0.85;
  max-width: 160px;
}

/* Overlapping photos */
.photos-overlap {
  position: relative;
  padding-bottom: 32px;
  padding-right: 32px;
}

.photos-overlap .photo-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.photos-overlap .photo-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--warm-white);
}

/* ============================================
   FEATURE CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================
   ACTIVITIES LIST
   ============================================ */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.activity-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linen-dark);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-day {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--forest);
  min-width: 100px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.activity-desc {
  color: var(--text-soft);
}

/* ============================================
   CALENDAR
   ============================================ */
.calendar-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calendar-nav h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
}

.calendar-nav button {
  background: none;
  border: 1px solid var(--linen-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all 0.2s;
  font-size: 1.2rem;
}

.calendar-nav button:hover {
  background: var(--linen);
  color: var(--forest);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: default;
  position: relative;
  font-size: 15px;
  color: var(--text);
  transition: background 0.15s;
  gap: 3px;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.has-events {
  cursor: pointer;
  font-weight: 500;
}

.calendar-day.has-events:hover {
  background: var(--linen);
}

.calendar-day.today {
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
}

.calendar-day.today:hover {
  background: var(--forest-light);
}

.calendar-dots {
  display: flex;
  gap: 3px;
  height: 6px;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.calendar-dot.sociaal { background: var(--terracotta); }
.calendar-dot.ontspanning { background: var(--sage); }
.calendar-day.today .calendar-dot.sociaal { background: var(--terracotta-soft); }
.calendar-day.today .calendar-dot.ontspanning { background: var(--sage-soft); }

/* Event popup */
.calendar-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  min-width: 200px;
  z-index: 10;
  text-align: left;
}

.calendar-popup.show {
  display: block;
}

.calendar-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--white);
}

.popup-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}

.popup-event + .popup-event {
  border-top: 1px solid var(--linen);
}

.popup-event .emoji {
  font-size: 16px;
}

.popup-event .time {
  color: var(--text-faint);
  font-size: 13px;
  margin-left: auto;
}

/* ============================================
   YEARLY HIGHLIGHTS
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-card .emoji {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.highlight-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-faint);
}

/* ============================================
   STEPS / PROCEDURE
   ============================================ */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  counter-increment: step;
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--linen-dark);
}

.step:last-child { border-bottom: none; }

.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  background: var(--forest);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-soft);
}

/* ============================================
   REQUIREMENTS BOX
   ============================================ */
.requirements-box {
  background: var(--white);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.requirements-box h3 {
  color: var(--forest);
  margin-bottom: 12px;
}

.requirements-box ul {
  margin: 0;
  color: var(--text-soft);
}

/* Info box */
.info-box {
  background: rgba(143,174,139,0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.info-box p {
  color: var(--text-soft);
  font-size: 16px;
}

.info-box strong {
  color: var(--forest);
}

/* ============================================
   TABLES
   ============================================ */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.styled-table thead {
  background: var(--forest);
  color: var(--white);
}

.styled-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  padding: 14px 20px;
}

.styled-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--linen);
  font-size: 16px;
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table tbody tr:nth-child(even) {
  background: var(--linen);
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(58,50,40,0.7));
  color: var(--white);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(58,50,40,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CONTACT GRID
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--linen);
  border-radius: var(--radius-md);
  transition: transform 0.2s;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.contact-value {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.contact-value a {
  color: var(--forest);
}

.contact-value a:hover {
  color: var(--terracotta);
}

/* ============================================
   FLOORPLANS
   ============================================ */
.floorplans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.floorplan-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.floorplan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.floorplan-card img {
  width: 100%;
}

.floorplan-label {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--forest);
  text-align: center;
}

/* ============================================
   FACILITIES
   ============================================ */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  color: var(--text);
}

.facility-item svg {
  color: var(--forest);
  flex-shrink: 0;
}

/* ============================================
   COMMISSIONS
   ============================================ */
.commissions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.commissions-list li {
  padding: 12px 18px;
  background: var(--linen);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-soft);
  text-align: center;
}

/* ============================================
   IMAGE BLOCK
   ============================================ */
.image-block {
  margin: 32px 0;
}

.image-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.image-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 12px;
}

/* ============================================
   CONTENT CARD (simple white card wrapper)
   ============================================ */
.content-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.content-card h2 {
  margin-bottom: 16px;
}

.content-card ul {
  color: var(--text-soft);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color 0.2s;
}

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

.footer-contact-info {
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.6);
}

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

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-info svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.btn + .btn {
  margin-left: 12px;
}

/* ============================================
   BEWONERS SECTION
   ============================================ */

/* Login gate */
.login-gate {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.login-card .lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(143,174,139,0.12);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.login-card h2 {
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--linen-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--linen);
  color: var(--text);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
}

.login-card button[type="submit"] {
  width: 100%;
}

.login-error {
  display: none;
  color: var(--terracotta);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Bewoners dashboard */
.bewoners-dashboard {
  display: none;
}

.bewoners-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linen-dark);
}

.bewoners-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.bewoners-nav a:hover {
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bewoners-nav a.active {
  background: var(--forest);
  color: var(--white);
}

.bewoners-nav .nav-emoji {
  font-size: 18px;
}

/* Bewoners header bar */
.bewoners-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bewoners-bar h1 {
  font-size: 2rem;
}

.bewoners-bar .btn-logout {
  font-size: 14px;
  padding: 8px 18px;
  color: var(--text-faint);
  border: 1px solid var(--linen-dark);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.bewoners-bar .btn-logout:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Birthday calendar */
.birthday-list {
  list-style: none;
  padding: 0;
}

.birthday-month {
  margin-bottom: 28px;
}

.birthday-month h3 {
  font-size: 1.1rem;
  color: var(--forest);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-soft);
  margin-bottom: 12px;
}

.birthday-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
}

.birthday-date {
  min-width: 32px;
  font-weight: 600;
  color: var(--terracotta);
}

.birthday-name {
  color: var(--text);
}

/* Commissie table */
.commissie-section {
  margin-bottom: 32px;
}

.commissie-section h3 {
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-soft);
}

.commissie-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linen);
  font-size: 16px;
}

.commissie-row:last-child {
  border-bottom: none;
}

.commissie-wat {
  min-width: 240px;
  font-weight: 500;
  color: var(--text);
}

.commissie-wie {
  color: var(--text-soft);
}

/* Reglement articles */
.reglement-article {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linen);
}

.reglement-article:last-child {
  border-bottom: none;
}

.reglement-article h3 {
  color: var(--forest);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.reglement-article h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 6px;
  margin-top: 16px;
}

.reglement-article ol {
  padding-left: 1.5em;
}

.reglement-nav {
  background: var(--linen);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.reglement-nav h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.reglement-nav ol {
  column-count: 2;
  column-gap: 24px;
  font-size: 15px;
}

.reglement-nav a {
  color: var(--forest);
}

/* Muntenverkoop */
.munten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.munten-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.munten-date {
  font-weight: 600;
  color: var(--forest);
  min-width: 100px;
}

.munten-dag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  min-width: 80px;
}

.munten-wie {
  color: var(--text-soft);
}

/* ============================================
   RESPONSIVE — 900px
   ============================================ */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--text-left .col-media,
  .two-col--text-right .col-media { order: 2; }
  .two-col--text-left .col-text,
  .two-col--text-right .col-text { order: 1; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .commissie-row {
    flex-direction: column;
    gap: 4px;
  }

  .commissie-wat {
    min-width: 0;
  }

  .reglement-nav ol {
    column-count: 1;
  }

  .bewoners-nav {
    gap: 8px;
  }

  .bewoners-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}

/* ============================================
   RESPONSIVE — 640px
   ============================================ */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .page-header {
    padding: 64px 0 36px;
  }

  .hero {
    height: 90vh;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,251,247,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: block;
  }

  /* Hide desktop bewoners button, show mobile version */
  .nav-bewoners {
    display: none;
  }

  .nav-links .nav-bewoners-mobile {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--forest);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-align: left;
    width: 100%;
    min-height: 44px;
    border-top: 1px solid var(--linen);
    margin-top: 4px;
    padding-top: 16px;
  }

  .has-hero .site-header:not(.scrolled) .nav-links .nav-bewoners-mobile {
    color: rgba(255,255,255,0.9);
    border-top-color: rgba(255,255,255,0.15);
  }

  .login-modal {
    padding: 32px 24px;
  }

  /* Mobile hero nav override */
  .has-hero .site-header:not(.scrolled) .nav-links {
    background: rgba(30,68,48,0.95);
  }

  /* Stacked buttons */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    padding: 40px 28px;
  }

  .cta-card .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .cta-card .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .btn + .btn {
    margin-left: 0;
  }

  .stat-block {
    right: 0;
    bottom: -16px;
  }

  .quote-band blockquote {
    font-size: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calendar-wrap {
    padding: 20px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floorplans {
    grid-template-columns: 1fr;
  }

  .step {
    gap: 16px;
  }

  .step::before {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .content-card {
    padding: 28px 20px;
  }
}

/* Touch-friendly */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
