* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-soft: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --primary: #1f2937;
    --primary-dark: #172554;
    --accent: #c2410c;
    --accent-dark: #9a3412;
    --accent-soft: #fff1e8;
    --blue-soft: #e0ecff;
    --border: #e5e7eb;
    --footer-bg: #1f2937;
    --footer-text: #d1d5db;
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 30px rgba(0, 0, 0, 0.10);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-main);
}

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

a {
    transition: 0.25s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    background: black;
    color: white;
    padding: 10px;
    z-index: 1000;
    border-radius: 8px;
}

/* SHARED SECTIONS */
section {
    padding: 70px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 2rem;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 2px solid var(--footer-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 20px;
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* not nowrap */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.cta-small {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
    transition: 0.25s ease;
}

/* remove nav underline from header button */
.main-nav a.cta-small::after {
    display: none;
}

.cta-small:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

/* SHARED BUTTONS */
.btn-primary,
.btn-secondary {
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
    background-color: rgba(255, 255,     255, 0.82);
    color: var(--primary);
    border: 2px solid rgba(30, 58, 138, 0.14);
    backdrop-filter: blur(8px);
}

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

/* FOOTER */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    margin-top: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 0 25px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-brand h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--footer-text);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 16px 20px;
    color: var(--footer-text);
}

.floating-chat.hidden,
.floating-chat-window.hidden {
  display: none;
}

.floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.floating-chat-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: #111827;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.floating-chat-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 500px;
  height: 650px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  overflow: hidden;
}

.floating-chat-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: calc(100% - 56px);
}

.floating-chat-header {
  height: 56px;
  padding: 0 16px;
  background: #111827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-chat-header button {
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.floating-chat-sidebar {
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  background: #f9fafb;
}

.floating-chat-contact {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.floating-chat-contact:hover,
.floating-chat-contact.active {
  background: #eef2ff;
}

.floating-chat-contact-name {
  font-weight: 700;
  font-size: 13px;
}

.floating-chat-contact-last {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

.floating-chat-contact-badge {
  display: inline-block;
  margin-top: 6px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 7px;
}

.floating-chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.floating-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.floating-chat-placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.floating-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.floating-chat-message.me {
  margin-left: auto;
  background: #2563eb;
  color: white;
}

.floating-chat-message.them {
  margin-right: auto;
  background: #e5e7eb;
  color: black;
}

.floating-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
}

.floating-chat-input-area input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.floating-chat-input-area button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: white;
  cursor: pointer;
}
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.header-search {
    display: flex;
    align-items: center;
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.header-search button:hover {
    background: var(--primary-dark);
}

@media (max-width: 980px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
        min-height: auto;
    }

    .main-nav ul {
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 700px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .logo-img {
        height: 46px;
    }

    .main-nav ul {
        gap: 14px;
    }
}

/* ------------------ */
/* GLOBAL SPINNER */
/* ------------------ */

.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e7eb;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
#toast.success { background: #3b6d11; }
#toast.error   { background: #a32d2d; }
#toast.info    { background: #185fa5; }

/* ── Nav avatar ── */


.main-nav li a[href="accountinstellingen.html"] {
  padding: 0;
  display: flex;
  align-items: center;
}

#navAvatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ddd;
  background: #e8e4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

#navAvatar:hover {
  border-color: #7F77DD;
}

#navAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#navAvatar span {
  font-size: 13px;
  font-weight: 500;
  color: #534AB7;
  user-select: none;
}

.header-search input[type="text"] {
    border: none;
    box-shadow: none;
}