/* ===============================
   FONT
================================ */
@font-face {
  font-family: "Dax";
  src: url("../fonts/dax-regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "Dax";
  src: url("../fonts/dax-medium.woff2") format("woff2");
  font-weight: 600;
}
body {
  font-family: "Dax", sans-serif;
  background: #ffffff;
  color: #064864;
  margin: 0;
}

/* ===============================
   TOPBAR & CONTRAST POPUP
================================ */
.topbar {
  background: #e8f7fd;
  padding: 12px 0;
  border-bottom: 1px solid #d5eef8;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #064864;
  font-size: 15px;
  text-decoration: none;
  user-select: none;
}
.topbar-item .icon {
  font-size: 16px;
}
.arrow {
  margin-left: 4px;
}
/* contrast wrapper */
.contrast-wrapper {
  position: relative;
}
.contrast-button {
  background: none;
  border: none;
  color: #064864;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}

/* popup menu */
.contrast-menu {
  position: absolute;
  right: 0;
  top: 30px;
  background: #f0f0f0;
  padding: 20px 30px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  min-width: 220px;
  z-index: 1050;
}
/* popup zichtbaar */
.contrast-menu.active {
  display: block;
}

/* switch styling */
.contrast-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #064864;
}
.contrast-switch input {
  display: none;
}
.slider {
  width: 45px;
  height: 24px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  transition: 0.2s;
}
.slider::before {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
input:checked + .slider {
  background: #064864;
}
input:checked + .slider::before {
  transform: translateX(21px);
}
.label-text {
  user-select: none;
}

/* ===============================
   LOGOBAR
================================ */
.logobar {
  background: white;
  padding: 35px 0;
  border-bottom: 1px solid #eee;
}
.logo {
  height: 60px;
}

/* ===============================
   HERO IMAGE
================================ */
.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ===============================
   SEARCH SECTION
================================ */
/* Center 'Projecten in jouw buurt' blok */
.search-section{
	background-color: #8dd5f4;
}

.search-section .container {
  display: flex;
	
  justify-content: center;
	
}


.search-card {
  max-width: 700px;
  width: 50%;
	margin-top: -30px;
	margin-bottom: 30px;
}

.search-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #064864;
}

/* Zoekknop 100% hoogte zoals input */
.row.g-3 {
  align-items: center;
}

/* Search card met blauwe achtergrond */
.search-card.bg-blue {
  color: #064864;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Titels centreren */
.search-card .search-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #064864;
}

/* Align input en button in row */
.row.g-3 {
  align-items: center;
  justify-content: center;
}

/* Button full height */
#searchBtn {
  height: 100%;
}

#searchBtn {
  height: 100%;
}

/* ===============================
   BUTTON
================================ */
.btn-primary {
  background: #064864;
  border: none;
  color: white;
}
.btn-primary:hover {
  background: #04384d;
}

/* ===============================
   FORM
================================ */
.form-control {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ccc;
}
.form-control:focus {
  border-color: #064864;
  box-shadow: none;
}

/* ===============================
   RESULTS SECTION
================================ */
.results {
  background: white;
  padding: 60px 0;
}

/* ===============================
   FILTER BOX
================================ */
.filterbox {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
}
.filterbox h5 {
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 20px;
}
.filterbox label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

/* ===============================
   PROJECT CARDS
================================ */
.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.project-title {
  font-weight: 600;
  font-size: 20px;
  color: black;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 regels */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-planning {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-top: auto;
}

/* ===============================
   MODAL
================================ */
.modal-title {
  color: #064864;
  font-weight: 600;
}
.modal-body {
  color: #064864;
}

/* ===============================
   HIGH CONTRAST MODE
================================ */
body.high-contrast {
  background: black;
  color: white;
}
body.high-contrast a {
  color: yellow;
}
body.high-contrast .topbar {
  background: black;
}
body.high-contrast .search-section {
  background: black;
}
body.high-contrast .search-card {
  background: #111;
  color: white;
}
body.high-contrast .filterbox {
  background: #111;
  color: white;
  border: none;
}
body.high-contrast .project-card {
  background: #111;
  color: white;
}
body.high-contrast .btn-primary {
  background: white;
  color: black;
}