/* =====================================================
   Stichting tot Behoud van Varend en Rijdend Erfgoed
   Main Stylesheet
   ===================================================== */

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

/* === CSS Variables === */
:root {
  --teal:          #0f9688;
  --teal-dark:     #0c7a6e;
  --teal-light:    #e8f7f5;
  --navy:          #1b2d52;
  --navy-light:    #2d4a7a;
  --accent:        #c4914a;
  --accent-light:  #fdf3e7;
  --bg:            #f8f6f1;
  --white:         #ffffff;
  --text:          #2d3748;
  --text-muted:    #718096;
  --border:        #e2ddd6;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 6px 20px rgba(0,0,0,0.12);
  --radius:        8px;
  --radius-lg:     14px;
  --max-width:     1100px;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Open Sans', Arial, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TOP BAR === */
.topbar {
  background: var(--teal);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.topbar a { color: rgba(255,255,255,0.9); font-weight: 600; }
.topbar a:hover { color: #fff; }

/* === HEADER === */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo svg { flex-shrink: 0; }
.logo-text span { display: block; }
.logo-text .logo-sub { font-size: 0.7rem; font-family: var(--font-body); font-weight: 400; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; }

/* === NAV === */
nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav ul li a {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  position: relative;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}
nav ul li a.nav-cta {
  background: var(--teal);
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
}
nav ul li a.nav-cta:hover { background: var(--teal-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* === HERO === */
.hero {
  /* Replace the background with a real photo:
     background: url('../images/eb51-hero.jpg') center/cover no-repeat;  */
  background: linear-gradient(160deg,
    #0a1628 0%,
    #0d2a52 25%,
    #0e4d81 50%,
    #1a7db5 70%,
    #2ba4c8 85%,
    #4dbfcf 100%
  );
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 110px 24px 140px;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom / cover;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === HERO small (sub pages) === */
.hero-sm {
  background: linear-gradient(135deg, #0a1628 0%, #0e4d81 60%, #1a7db5 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-sm::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8f6f1' d='M0,30 C360,60 1080,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom / cover;
}
.hero-sm h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}
.hero-sm p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ae7e3c; color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.84rem; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all .2s;
}
.btn-download:hover { background: var(--teal); color: #fff; }
.btn-download svg { flex-shrink: 0; }

/* === SECTIONS === */
.section { padding: 72px 0; }
.section-bg { background: var(--bg); }
.section-teal { background: var(--teal-light); }
.section-navy { background: var(--navy); color: #fff; }
.section-accent { background: var(--accent-light); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-navy .section-header h2,
.section-navy h2 { color: #fff; }
.section-navy .section-divider { background: var(--accent); }

/* === INTRO BLOCK === */
.intro-block {
  background: var(--accent-light);
  border-left: 5px solid var(--accent);
  padding: 32px 40px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 52px 0;
  position: relative;
}
.intro-block p { font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.drop-cap::first-letter {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--navy);
  float: left;
  line-height: 0.75;
  margin: 8px 12px 0 0;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.card-icon svg { opacity: 0.85; }
.card-icon.teal { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); }
.card-icon.accent { background: linear-gradient(135deg, #8b6220 0%, var(--accent) 100%); }
.card-body { padding: 24px 28px 30px; }
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.card-body p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; }

/* === INFO ROWS === */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.info-row.reverse { direction: rtl; }
.info-row.reverse > * { direction: ltr; }
.info-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.info-img-placeholder {
  height: 300px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  font-style: italic;
}
.info-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.info-text p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.97rem; }

/* === BOARD TABLE === */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.board-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.board-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--navy-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.board-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.board-card .role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.board-card a { font-size: 0.82rem; color: var(--text-muted); }
.board-card a:hover { color: var(--teal); }

/* === ANBI INFO TABLE === */
.anbi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.anbi-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}
.anbi-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.anbi-table tr:last-child td { border-bottom: none; }
.anbi-table tr:nth-child(even) td { background: var(--bg); }
.anbi-table td:first-child { font-weight: 600; color: var(--navy); width: 220px; }

/* === DOWNLOAD CARDS === */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.doc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.doc-card h3 { font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.doc-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.doc-card .doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}
.doc-card .doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === STAT BOXES === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  text-align: center;
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-box .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-box .stat-label { font-size: 0.84rem; color: var(--text-muted); font-weight: 600; }

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin: 32px 0;
}
.highlight-box h3 { color: var(--teal-dark); font-family: var(--font-heading); margin-bottom: 12px; }
.highlight-box ul { padding-left: 18px; list-style: disc; }
.highlight-box ul li { margin-bottom: 6px; color: var(--text); font-size: 0.95rem; }

/* === BUDGET TABLE === */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.budget-table thead th {
  background: var(--teal);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.budget-table thead th:last-child { text-align: right; }
.budget-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.budget-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.budget-table tr:last-child td { border-bottom: none; }
.budget-table tfoot td { background: var(--navy); color: #fff; font-weight: 700; }
.budget-table tfoot td:last-child { color: #fff; }
.budget-table tr:nth-child(even) td { background: var(--bg); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-text strong { display: block; color: var(--navy); font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.contact-text span, .contact-text a { font-size: 0.92rem; color: var(--text-muted); }

/* === BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.cta-banner p { opacity: 0.85; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === FOOTER === */
footer {
  background: #111c30;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 260px;
}
footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
footer ul li {
  margin-bottom: 8px;
}
footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color .2s;
}
footer ul li a:hover { color: var(--teal); }
.footer-contact li {
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--teal); }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { opacity: 0.5; }

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-accent { background: var(--accent-light); color: #8b6220; }
.badge-navy { background: rgba(27,45,82,0.1); color: var(--navy); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .info-row { grid-template-columns: 1fr; }
  .info-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-md); border-top: 2px solid var(--teal); }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 20px 110px; }
  .intro-block { padding: 24px; }
  .anbi-table td:first-child { width: 140px; }
  .budget-table { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
