/* ============================================
   Prosolit — Modern CSS (Light + Dark Mode)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);

  /* Transitions */
  --transition: 0.2s ease;

  /* Light mode (default) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-sidebar: #F1F3F5;
  --bg-nav: #1E293B;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-dark: #F1F5F9;
  --accent: #F97C31;
  --accent-hover: #E86B1A;
  --accent-light: rgba(249,124,49,0.1);
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --link: #2563EB;
  --link-hover: #1D4ED8;

  /* Layout */
  --sidebar-left-width: 220px;
  --sidebar-right-width: 260px;
  --header-height: auto;
  --content-max-width: 1200px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-sidebar: #1E293B;
  --bg-nav: #0F172A;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-on-dark: #F1F5F9;
  --accent: #FB923C;
  --accent-hover: #FDBA74;
  --accent-light: rgba(251,146,60,0.15);
  --border: #334155;
  --border-light: #1E293B;
  --link: #60A5FA;
  --link-hover: #93C5FD;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
}

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

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

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
h3 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* --- Links --- */
a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
  padding-left: 0;
}

/* Default bullets for non-nav lists */
ul:not(.nav-list) > li {
  position: relative;
  padding-left: var(--space-lg);
}

ul:not(.nav-list) > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Layout: Site Wrapper --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* --- Header --- */
.site-header {
  background-color: var(--bg-primary);
  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: var(--space-md) 0;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* --- Search --- */
.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  font-size: 0.875rem;
  font-family: var(--font-family);
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-btn {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--accent);
  border-left: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* --- Navigation --- */
.site-nav {
  background: var(--bg-nav);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-on-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Hero Image --- */
.hero-image {
  margin-bottom: var(--space-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 400px;
}

/* --- Main Content Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: var(--sidebar-left-width) 1fr var(--sidebar-right-width);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  min-height: 60vh;
}

/* --- Sidebar Left --- */
.sidebar-left {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  align-self: start;
  position: sticky;
  top: 120px;
}

.sidebar-left .submenu-section {
  margin-bottom: var(--space-md);
}

.sidebar-left .submenu-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-left .submenu-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-left .submenu-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.sidebar-left .submenu-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.sidebar-left .submenu-link.sub {
  padding-left: var(--space-xl);
  font-size: 0.8125rem;
}

/* --- Main Content --- */
.main-content {
  min-width: 0;
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.page-title-bar h1 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

.page-title-bar .print-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--transition);
}

.page-title-bar .print-btn:hover {
  background: rgba(255,255,255,0.35);
}

.page-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.page-content p,
.page-content td {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Sidebar Right --- */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-self: start;
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
  background: var(--bg-nav);
}

.sidebar-card-body {
  padding: var(--space-md) var(--space-lg);
}

.sidebar-card-body .news-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sidebar-card-body .news-item:last-child {
  border-bottom: none;
}

.sidebar-card-body .news-item a {
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-card-body .news-item a:hover {
  color: var(--accent);
}

/* --- Newsletter Widget --- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-family);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Poll --- */
.poll-question {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.poll-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.poll-option input[type="radio"] {
  accent-color: var(--accent);
}

.poll-bar-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xs) 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.poll-bar {
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  min-width: 4px;
  transition: width 0.5s ease;
}

.poll-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.poll-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* --- Banners --- */
.banner-item {
  display: block;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-nav);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
  text-align: center;
  font-size: 0.8125rem;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-on-dark);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* --- Module Styles --- */

/* Accordion (nieuws, vacatures) */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-family);
}

.accordion-header:hover {
  background: var(--border-light);
}

.accordion-header.active {
  background: var(--accent);
  color: #fff;
}

.accordion-header .arrow {
  transition: transform var(--transition);
  font-size: 0.75rem;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: var(--space-lg);
  display: none;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.accordion-body.open {
  display: block;
}

/* Portfolio / Partners Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.portfolio-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--bg-primary);
}

.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portfolio-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.portfolio-item .item-title {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.category-filter label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.category-filter label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-filter input:checked + span {
  color: var(--accent);
  font-weight: 600;
}

/* Links list */
.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.links-category {
  margin-bottom: var(--space-lg);
}

.links-category-title {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.links-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.links-item:hover {
  background: var(--accent-light);
}

.links-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #DC2626;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.form-success {
  color: #059669;
  font-size: 0.875rem;
  padding: var(--space-md);
  background: rgba(5,150,105,0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(5,150,105,0.2);
}

/* Sitemap */
.sitemap-tree {
  padding-left: 0;
}

.sitemap-tree li {
  padding: var(--space-xs) 0;
}

.sitemap-tree li a {
  font-size: 0.875rem;
}

.sitemap-tree ul {
  padding-left: var(--space-xl);
  border-left: 2px solid var(--border-light);
  margin-left: var(--space-sm);
}

/* --- Utilities --- */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}

/* Print mode */
body.print-mode {
  background: #fff;
}

body.print-mode .site-header,
body.print-mode .site-nav,
body.print-mode .sidebar-left,
body.print-mode .sidebar-right,
body.print-mode .site-footer,
body.print-mode .theme-toggle,
body.print-mode .print-btn {
  display: none !important;
}

body.print-mode .content-grid {
  display: block;
}

body.print-mode .page-content {
  border: none;
  box-shadow: none;
  padding: 0;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr var(--sidebar-right-width);
  }

  .sidebar-left {
    display: none;
  }

  .search-input {
    width: 160px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sidebar-left,
  .sidebar-right {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .search-form {
    order: 3;
    width: 100%;
  }

  .search-input {
    width: 100%;
    flex: 1;
  }

  /* Hamburger menu */
  .nav-hamburger {
    display: flex;
  }

  .site-nav .site-container {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-list {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    overflow-x: visible;
    background: var(--bg-nav);
    border-top: 1px solid rgba(255,255,255,0.1);
  }

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

  .nav-link {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    border-bottom-color: rgba(255,255,255,0.05);
    border-left-color: var(--accent);
  }

  .page-title-bar {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-logo .logo-text {
    font-size: 1rem;
  }

  .nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }
}
