/* ========================================================
   brepp — hoofdstylesheet
   Rustige, moderne stijl met accent op eenvoud en overzicht
   ======================================================== */

/* ========== VARIABELEN & THEMING ===a======= */
:root {
  --color-accent: #1f3a93;
  --color-accent-light: #a6cedc;
  --color-accent-alt: #f09d51;
  --font-base: 'Montserrat', sans-serif;
  --transition-fast: 0.3s ease;
  --hero-bg: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
   
   /* ===== Tools UI tokens (brepp) ===== */
  --tool-radius: 1rem;
  --tool-radius-sm: 0.75rem;

  --tool-border: rgba(0,0,0,0.10);
  --tool-shadow: 0 10px 34px rgba(31,58,147,0.08);

  --tool-panel: rgba(255,255,255,0.75);
  --tool-panel-solid: var(--color-bg-secondary);
  --tool-input-bg: var(--color-bg);
  --tool-muted: rgba(0,0,0,0.55);

}

:root[data-theme="light"] {
  --color-bg: #ffffff;
  --color-bg-secondary: #f4f4f4;
  --color-bg-tertiary: #e6e6e6;
  --color-text-primary: #333333;
  --color-text-secondary: #1a1a1a;
  --color-text-dark: #000000;
  --color-form-bg: #f4f4f4;
  --color-nav-bg: rgba(255, 255, 255, 0.85);
}

:root[data-theme="light"] .page-background-b {
  opacity: 0.12;
  filter: blur(1px) grayscale(100%) contrast(100%);
}

:root[data-theme="dark"] {
  --color-bg: #1a1a1a;
  --color-bg-secondary: #333333;
  --color-bg-tertiary: #444444;
  --color-form-bg: #1a1a1a;
  --color-text-primary: #e6e6e6;
  --color-text-secondary: #ffffff;
  --color-text-dark: #ffffff;
  --color-nav-bg: rgba(26, 26, 26, 0.6);
  --hero-bg: linear-gradient(180deg, #1a1a1a 0%, #333333 100%);

  /* ===== Tools UI tokens (brepp) - dark ===== */
  --tool-border: rgba(255,255,255,0.14);
  --tool-shadow: 0 10px 34px rgba(0,0,0,0.35);

  --tool-panel: rgba(34,34,34,0.75);
  --tool-panel-solid: rgba(34,34,34,1);
  --tool-input-bg: rgba(26,26,26,1);
  --tool-muted: rgba(230,230,230,0.62);

}

:root[data-theme="dark"] .contact input:focus,
:root[data-theme="dark"] .contact textarea:focus {
  background: var(--color-bg-secondary);
  box-shadow: 0 0 0 2px var(--color-accent-light);
}

:root[data-theme="dark"] .contact-expectations-list .check-icon {
  color: var(--color-accent-alt);
}

:root[data-theme="dark"] .contact-info-list a {
  color: var(--color-accent-alt);
}

:root[data-theme="dark"] .contact-icon {
  stroke: var(--color-accent-alt);
}

/* ========== BASISLAYOUT ========== */
html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}


.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

.text-left {
  text-align: left !important;
}

.content-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.content-medium {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-background-b {
  content: "";
  position: fixed;
  z-index: -1;
  top: 15%;
  left: 40%;
  width: 1200px;
  height: 1200px;
  background: url('/assets/brepp-b-deco.svg') no-repeat center center;
  background-size: contain;
  opacity: 0.02; /* subtieler */
  filter: blur(1.5px);
  transform: translateX(-40%);
  pointer-events: none;
}

@media (max-width: 800px) {
  .page-background-b {
    display: none;
  }
}



/* ========== HEADER & NAVIGATIE ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] header::before {
  background: rgba(0, 0, 0, 0.55);
}

.nav {
  background-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.with-header-offset {
  padding-top: 80px;
}

#brepp-logo {
  height: 42px !important;
  width: auto !important;
  max-width: 100% !important;
}

.nav {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
  align-items: center;
  height: 72px;
  width: 100%;
  z-index: 20;
  background-color: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-bg-tertiary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav.scrolled {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.nav-right > * {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: -1; /* belangrijk! */
  background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .nav::before {
 background: rgba(26, 26, 26, 0.25);
}

.logo,
.logo-footer {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.logo:hover,
.logo-footer:hover {
  color: var(--color-accent-alt);
  transform: none;
}
.logo:focus,
.logo-footer:focus,
.nav-links a:focus {
  outline: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-accent-alt);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-bg-tertiary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: none;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 99;
  flex-direction: column;
}

.has-submenu:hover .submenu {
  display: flex;
}

.submenu li a {
  display: block;
  padding: 0.5rem 2rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text-primary);
}

.submenu li a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-accent-alt);
}

/* WhatsApp link in header */
.whatsapp-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff; /* wit op donkere achtergrond */
  text-decoration: none;
  height: 40px;
  padding: 0 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

[data-theme="light"] .whatsapp-link a {
  color: var(--color-accent);
}

[data-theme="dark"] .whatsapp-link a {
  color: #fff;
}

.whatsapp-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-link a:hover {
  color: var(--color-accent-alt);
  background: rgba(240, 157, 81, 0.1);
  transform: scale(1.05);
}

.whatsapp-link .whatsapp-text {
  font-weight: 600;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .whatsapp-link .whatsapp-text {
    display: none;
  }
}


/* ========== HAMBURGER MENU & MOBIEL ========== */
.hamburger {
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  display: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hamburger:hover span {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    flex-direction: column;
    border-top: 1px solid var(--color-bg-tertiary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-fast) ease;
  }

.nav-links.active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem 1.5rem 2rem;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 72px;
  width: 100%;
  height: calc(100vh - 72px);
  max-height: none;
  overflow-y: auto;
  background: var(--color-bg);
  border-top: 1px solid var(--color-bg-tertiary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1001;
}

  .nav-links li {
    margin: 0;
  width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-primary);
    text-decoration: none;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--color-bg-secondary);
    color: var(--color-accent-alt);
  }

  .has-submenu .submenu {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0.5rem;
    flex-direction: column;
  }

  .has-submenu .submenu li a {
    padding-left: 2.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
  }

  .has-submenu .submenu li a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-accent-alt);
  }
}


/* ========== THEME TOGGLE ========== */
.theme-switch{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
}

/* Button uses theme-toggles 'around' SVG.
   Requirements:
   - light: default blue, hover orange
   - dark: default orange, hover stays orange
   - no extra rotation (moon must be upright) */
.theme-toggle.icon-button{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  /* light mode: zelfde donkerblauw als de rest van de header */
  color:var(--color-accent);
}

/* keep icon size consistent */
.theme-toggle.icon-button svg{
  width:20px;
  height:20px;
  display:block;
  pointer-events:none;
}

/* Voorkom korte animatie bij page-load (initThemeToggle zet deze class tijdelijk) */
.theme-toggle--no-anim,
.theme-toggle--no-anim * {
  transition: none !important;
  animation: none !important;
}

/* light mode hover: orange */
.theme-toggle.icon-button:hover{
  color:var(--color-accent-alt);
}

/* dark mode: orange by default and on hover */
[data-theme="dark"] .theme-toggle.icon-button{
  color:var(--color-accent-alt);
}
[data-theme="dark"] .theme-toggle.icon-button:hover{
  color:var(--color-accent-alt);
}

/* Match focus-ring color to theme */
.theme-toggle.icon-button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(166,206,220,0.28);
}
[data-theme="dark"] .theme-toggle.icon-button:focus-visible{
  box-shadow:0 0 0 3px rgba(240,157,81,0.22);
}

/* ========== HERO ========== */

.hero {
  width: 100%;
  padding: 3.5rem 0 3rem 0;
  background: var(--hero-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 4rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hero-text {
  text-align: left;
  max-width: 640px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.hero-text .subtitle {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent-alt);
  margin-top: 0.4rem;
}

.hero-text p {
  font-size: 1.14rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  color: var(--color-text-primary);
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
}

.hero-text .btn.primary {
  font-size: 1rem;
  min-width: 220px;
  white-space: nowrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
}

.mockup-wrapper {
  width: 100%;
  max-width: 720px;
}

.mockup-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease 0.2s both;
  transition: transform 0.4s ease;
}

.mockup-wrapper img:hover {
  transform: scale(1.02);
}

.hero-divider {
  height: 4px;
  background-color: var(--color-accent-alt);
  margin-top: 0rem;
  border-radius: 2px;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* ========== RESPONSIVE ========== */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
    padding: 0 1.4rem;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .btn.primary {
    margin: 0 auto;
  }

  .hero-visual {
    margin-top: 1.8rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .mockup-wrapper img {
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.5rem 0;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-text p {
    font-size: 1.05rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .mockup-wrapper img {
    transform: none;
  }
}


/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn.primary {
  border: none;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-alt));
  background-size: 200% 200%;
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.3s ease;
}

.btn.primary:hover {
  background-position: right center;
  color: #fff;
  transform: translateY(-2px);
}

/* Unified disabled style (used across tools) */
.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* Make disabled buttons look uniform across tools (KvK + SEPA) */
.btn:disabled,
.btn.is-disabled {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.12);
  color: inherit;
}
:root[data-theme="dark"] .btn:disabled,
:root[data-theme="dark"] .btn.is-disabled {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.14);
}

.btn.primary:disabled,
.btn.primary.is-disabled {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.12);
  color: inherit;
  filter: none;
}
:root[data-theme="dark"] .btn.primary:disabled,
:root[data-theme="dark"] .btn.primary.is-disabled {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.14);
}

/* ========== SECTIES & GRID ========== */
section h2 {
  font-size: 2.1rem;
  margin-bottom: 1.4rem;
  scroll-margin-top: 100px;
  text-align: left;
  padding-left: 0.8rem;
}

section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent-alt);
  margin-top: 0.4rem;
}

.contact h2::after {
  display: none;
}

section.alt-bg {
  background-color: var(--color-bg-secondary);
  border-radius: 1rem;
  padding: 3.5rem 1rem;
  margin-top: 4rem;
}


section:not(.hero) {
  margin-top: 4rem;
}

section:not(.hero)::before {
  content: "";
  display: none;
  height: 1px;
  background-color: var(--color-bg-tertiary);
  margin: 0 auto 2.5rem;
  max-width: 80%;
}



@media (min-width: 1000px) {
  section:not(.hero) {
    margin-top: 6rem;
  }
}

.contact h2 {
  text-align: center;
}

.why {
  margin-top: 4rem;
  padding: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: none;
  border-radius: 0;
}

.why-text {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.why .emphasis {
  color: var(--color-accent-alt);
  font-weight: 700;
  font-size: 1.1rem;
}


.why .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why h2 {
  text-align: left;
  padding-left: 0;
}

.why-textblock {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.why-textblock p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.why-benefits {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.why-benefits svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent-alt);
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.why-benefits li svg {
  color: var(--color-accent-alt);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .why-left,
  .why-left .why-textblock,
  .why-left .why-benefits {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start;
  }
  .why-left .why-benefits li {
    justify-content: flex-start;
  }
}

.services .service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-item {
  background: transparent;
  padding: 1.5rem;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: transform var(--transition-fast), border-color 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background-color: var(--color-bg-tertiary);
  border-left: 3px solid var(--color-accent-alt);
  text-decoration: none;
}

.service-item h3,
.service-item p {
  color: inherit;
  margin-bottom: 0.6rem;
}

@media (max-width: 600px) {
  .service-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.brepp-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  color: var(--color-accent);
  transition: color 0.25s ease;
}

@keyframes wiggle {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.08) rotate(-1.5deg); }
  40% { transform: scale(1.08) rotate(1.5deg); }
  60% { transform: scale(1.05) rotate(-1deg); }
  80% { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.service-item:hover .brepp-icon {
  color: var(--color-accent-alt);
  animation: wiggle 0.5s ease;
}


@media (max-width: 600px) {
  .brepp-icon {
    width: 60px;
  }
}


.audience-textblock p {
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ========== AUDIENCE SVG ANIMATION ========== */

/* Variabelen – makkelijk aan te passen */
:root {
  --circle-radius: 55px;
  --circle-offset-x: 80px;
  --circle-offset-y: 75px;
  --folder-size: 48px;
  --file-size: 20px;
}

.example-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  padding: 1rem 0;
  position: relative;
}

.file-folder-anim {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%)
    translate(var(--circle-offset-x), var(--circle-offset-y));
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.folder-icon {
  animation: none;
}

.animate-hover .folder-icon {
  animation: pulseFolder 8s ease-in-out infinite;
}


@keyframes pulseFolder {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.file-icon {
  position: absolute;
  width: var(--file-size);
  height: var(--file-size);
  stroke: var(--color-accent);
  fill: none;
  opacity: 1;
  transform-origin: center center;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Cirkelposities */
.file-icon:nth-child(1) {
  transform: rotate(0deg) translate(var(--circle-radius)) rotate(-0deg);
}
.file-icon:nth-child(2) {
  transform: rotate(72deg) translate(var(--circle-radius)) rotate(-72deg);
}
.file-icon:nth-child(3) {
  transform: rotate(144deg) translate(var(--circle-radius)) rotate(-144deg);
}
.file-icon:nth-child(4) {
  transform: rotate(216deg) translate(var(--circle-radius)) rotate(-216deg);
}
.file-icon:nth-child(5) {
  transform: rotate(288deg) translate(var(--circle-radius)) rotate(-288deg);
}

.folder {
  position: absolute;
  top: calc(50% - 10px);
  left: 50%;
  width: var(--folder-size);
  height: var(--folder-size);
  transform: translate(-50%, -50%);
}

.folder-icon {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform-origin: center center;
}

.folder-default {
  stroke: var(--color-accent);
  opacity: 1;
  transform: scale(1);
}

.folder-heart {
  stroke: var(--color-accent-alt);
  opacity: 0;
  transform: scale(0.8);
}

/* ========== Hover Animations (desktop) ========== */

.file-folder-anim:hover .file-icon {
  opacity: 0;
  transform: translate(0, 0) scale(0.3);
}

/* Vloeiende vertraging per file */
.file-folder-anim:hover .file-icon:nth-child(1) { transition-delay: 0s; }
.file-folder-anim:hover .file-icon:nth-child(2) { transition-delay: 0.1s; }
.file-folder-anim:hover .file-icon:nth-child(3) { transition-delay: 0.2s; }
.file-folder-anim:hover .file-icon:nth-child(4) { transition-delay: 0.3s; }
.file-folder-anim:hover .file-icon:nth-child(5) { transition-delay: 0.4s; }

.file-folder-anim:hover .folder-default {
  opacity: 0;
  transform: scale(0.8);
  transition-delay: 0.6s;
}

.file-folder-anim:hover .folder-heart {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* ========== Scroll Animations (mobiel) ========== */

.file-folder-anim.animate-hover .file-icon {
  opacity: 0;
  transform: translate(0, 0) scale(0.3);
}

.file-folder-anim.animate-hover .file-icon:nth-child(1) { transition-delay: 0s; }
.file-folder-anim.animate-hover .file-icon:nth-child(2) { transition-delay: 0.1s; }
.file-folder-anim.animate-hover .file-icon:nth-child(3) { transition-delay: 0.2s; }
.file-folder-anim.animate-hover .file-icon:nth-child(4) { transition-delay: 0.3s; }
.file-folder-anim.animate-hover .file-icon:nth-child(5) { transition-delay: 0.4s; }

.file-folder-anim.animate-hover .folder-default {
  opacity: 0;
  transform: scale(0.8);
  transition-delay: 0.6s;
}

.file-folder-anim.animate-hover .folder-heart {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.6s;
}

/* Langzamer afspelen op touch devices (mobiel/tablet) */
@media (hover: none) {
  .file-folder-anim .file-icon,
  .file-folder-anim .folder-icon {
    transition-duration: 0.8s; /* was 0.4s */
  }

  .file-folder-anim.animate-hover .file-icon:nth-child(1) { transition-delay: 0.05s; }
  .file-folder-anim.animate-hover .file-icon:nth-child(2) { transition-delay: 0.25s; }
  .file-folder-anim.animate-hover .file-icon:nth-child(3) { transition-delay: 0.45s; }
  .file-folder-anim.animate-hover .file-icon:nth-child(4) { transition-delay: 0.65s; }
  .file-folder-anim.animate-hover .file-icon:nth-child(5) { transition-delay: 0.85s; }

  .file-folder-anim.animate-hover .folder-default,
  .file-folder-anim.animate-hover .folder-heart {
    transition-delay: 1.1s; /* was 0.6s */
  }

  .animate-hover .folder-icon {
    animation-duration: 12s; /* was 8s */
  }
}

@media (prefers-reduced-motion: reduce) {
  .file-folder-anim * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========== EXAMPLES ========== */
.example-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.example-image img {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.example-body {
  padding: 1.5rem;
}
.example-body h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}
.example-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ========== PRODUCTEN & OPLOSSINGEN ========== */
.products {
  margin-top: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--color-bg-secondary);
  border-radius: 1rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border-left: 3px solid transparent;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  border-left-color: var(--color-accent-alt);
}

.product-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.product-tagline {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.product-meta {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  opacity: 0.9;
}

.product-meta span {
  display: inline-block;
  margin-right: 0.8rem;
}

.products-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.products-track {
  position: relative;
  flex: 1;
  min-height: 260px; /* basishoogte, JS zet exact */
  height: auto;
}

.products-track .product-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
  max-width: 380px;
  width: min(380px, 92vw);
  /* vaste hoogte zodat kaarten niet 'springen' op basis van inhoud */
  height: 320px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center top;
  overflow: hidden;
}

/* Klikbaar links/rechts (niet alleen het kleine pijltje) */
.product-card.is-prev,
.product-card.is-next {
  pointer-events: auto;
  cursor: pointer;
}

/* Copy clamp: houdt hoogte consistent, voorkomt 'oneindige' kaarten */
.product-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card.is-center {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1.03);
  z-index: 3;
}

.product-card.is-prev {
  opacity: 0.75;
  transform: translateX(-150%) scale(0.92);
  z-index: 2;
}

.product-card.is-next {
  opacity: 0.75;
  transform: translateX(50%) scale(0.92);
  z-index: 2;
}

.product-card.is-hidden {
  opacity: 0;
  z-index: 1;
}

/* pijltjes */
.products-arrow {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-text-primary);
  transition: background 0.18s ease, transform 0.18s ease;
}

.products-arrow:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

/* Mobiel: nog steeds één kaart per keer, maar met swipe i.p.v. pijltjes */
@media (max-width: 768px) {
  .products-carousel {
    align-items: stretch;
  }

  .products-track {
    position: relative;
    min-height: 360px; /* mobile: enough room for longer copy */
    height: auto; /* JS sets exact height based on card */
    /* Laat links/rechts een klein stukje van de volgende kaart zien als swipe-hint */
    overflow: visible;
    padding: 0;
  }

  .products-track .product-card {
    max-width: 100%;
    /* iets smaller zodat er links/rechts een 'peek' zichtbaar blijft */
    width: min(520px, 86vw);
    height: 380px;
    min-height: 380px;
  }

  /* Mobiel: voorkom 'uitsteken' van de center card door scaling */
  .product-card.is-center {
    transform: translateX(-50%) scale(1);
  }
  .product-card.is-prev {
    transform: translateX(-135%) scale(0.92);
  }
  .product-card.is-next {
    transform: translateX(35%) scale(0.92);
  }

  .products-arrow {
    display: none; /* op mobiel alleen swipe, geen pijltjes */
  }
}

/* Breppie input: zorg dat globale focus styles niet alsnog een rand/outline toevoegen */
#brepp-chat-input,
#brepp-chat-input:focus,
#brepp-chat-input:focus-visible{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


/* ========== CAROUSEL ========== */
.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scroll-snap-type: x mandatory;
}

.carousel-track img {
  scroll-snap-align: center;
  max-height: 60px;
  transition: transform var(--transition-fast);
}

.carousel-track img:hover {
  transform: scale(1.05);
}

/* ========== CLIENT CAROUSEL ========== */
.clients {
  margin-top: 4rem;
}

.clients-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.client-carousel {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.client-slide {
  min-width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.client-slide.active {
  display: flex;
}

.client-slide img {
  max-height: 42px;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.client-slide img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

.carousel-arrow {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-primary);
}

.carousel-arrow:hover {
  background: rgba(0,0,0,0.03);
}

@media (max-width: 700px) {
  .clients-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .client-carousel {
    width: 100%;
  }
}

/* ========== CONTACT FORM ========== */
.contact {
  margin-bottom: 2rem;
  text-align: left;
}

.contact form {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 810px;
  box-sizing: border-box;
  margin: 0 auto;
  background: var(--color-form-bg);
  padding: 1.5rem 1.2rem 1.6rem;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.contact form label {
  margin-bottom: 0.5rem;
}

.required-marker {
  color: var(--color-accent-alt);
  font-weight: 600;
  margin-left: 0.2rem;
}

@media (max-width: 600px) {
  .contact form {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 95%;
  }
}

.contact label {
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
  display: block;
}

.contact input,
.contact textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.1rem;
  border: 1.6px solid var(--color-bg-tertiary);
  border-radius: 0.6rem;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-base);
  font-size: 1.05rem;
  line-height: 1.4;
  transition: border-color 0.17s, box-shadow 0.17s, background 0.18s, color 0.18s;
  outline: none;
  margin-top: 0.15rem;
}

:root[data-theme="dark"] .contact input,
:root[data-theme="dark"] .contact textarea {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-bg-tertiary);
}

.contact textarea {
  resize: vertical;
  min-height: 130px;
  max-height: 400px;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-light);
  background: var(--color-bg-secondary);
  transition: border-color 0.17s ease, box-shadow 0.17s ease, background-color 0.18s ease;
}

.contact .btn.primary {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1.05rem 0;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  border-radius: 0.6rem;
}

.contact .btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-accent-light);
  color: var(--color-text-primary);
}

/* Honeypot altijd onzichtbaar */
#honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ========== CONTACT PAGE ========== */

.contact-page-wrapper {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-page-wrapper h1 {
  margin-bottom: 1.5rem;
}

.contact-page-wrapper .why-text {
  margin-bottom: 1.5rem;
}

#responseMessage {
  margin-top: 1rem;
  min-height: 2.2em;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  transition: color 0.18s;
}

#responseMessage.success {
  color: var(--color-accent);
}
#responseMessage.error {
  color: var(--color-accent-alt);
}

.contact-info-list {
  line-height: 1.8;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
}

.contact-info-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-expectations-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-expectations-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.contact-expectations-list .check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  color: var(--color-accent);
}

.section-spacing {
  margin-top: 2.5rem;
}

.section-spacing.small {
  margin-top: 3rem;
}

.section-spacing.large {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

@media (max-width: 768px) {
  .section-spacing.large {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-secondary);
  padding: 3.2rem 0 2rem;
  color: var(--color-text-primary);
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  box-shadow: 0 -2px 12px rgba(31,58,147,0.03);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 2.2rem 2.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 140px;
}

.logo-footer {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  display: inline-block;
}

.footer-tagline {
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}


:root[data-theme="dark"] .footer-tagline {
  color: var(--color-accent-alt);
}
.footer-subtext {
  color: var(--color-text-primary);
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.footer-social img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: opacity 0.14s, transform 0.17s;
}
.footer-social img:hover {
  opacity: 1;
  }

.footer-social a svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  opacity: 0.9;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

:root[data-theme="dark"] .footer-social a svg {
  color: var(--color-text-secondary);
}



:root[data-theme="dark"] .footer-social a:hover svg {
  color: var(--color-accent-alt);
  opacity: 1;
}
.footer-services h3,
.footer-contact h3,
.footer-legal h3,
.footer-cta h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.footer-content a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-content a:hover,
.footer-content a:focus {
  color: var(--color-accent-alt);
}

.footer-legal p {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}
.footer-legal p strong {
  font-weight: 600;
}

/* Call-to-Action blok */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.8rem;
}

.footer-cta h3 {
  color: var(--color-accent);
}

[data-theme="dark"] .footer-cta h3 {
  color: var(--color-text-dark);
}

.footer-cta .btn.primary {
  text-align: center;  
  font-weight: 600;
  padding-left: 0;
  padding-right: 0;
  min-width: 180px;
  margin-top: 0.2rem;
  width: 100%;
  padding: 1.05rem 0;
  border-radius: 0.6rem;
  box-shadow: 0 1px 5px rgba(240, 157, 81, 0.05);
  align-self: stretch;
}

@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .footer-cta {
    margin-top: 1.4rem;
    align-items: flex-start;
  }
}

@media (max-width: 550px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem 0;
    padding-bottom: 0.5rem;
  }
  .footer-cta .btn.primary {
    margin-bottom: 1rem;
    margin-top: 0.6rem;
    width: 100%;
    text-align: center;
  }
}

.footer-bottom {
  border-top: 1px solid var(--color-bg-tertiary);
  padding: 1.05rem 0 0.6rem 0;
  margin-top: 0.2rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.83rem;
  color: var(--color-text-secondary);
  gap: 0.35rem;
  letter-spacing: 0.01em;
}

@media (min-width: 601px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-credit a {
  font-style: italic;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.footer-credit a:hover,
.footer-credit a:focus {
  text-decoration: underline;
}

/* ========== ANIMATIES ========== */
.animate {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: none;
}

/* Alleen hero subtiel extra */
.hero-text.animate {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

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

/* ========== PREVIEW OVERLAY ========== */
#preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none !important;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.32s cubic-bezier(.53,.18,.23,1.07);
}

#preview-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
}

#preview-overlay .overlay-content {
  z-index: 10000;
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 10px 34px rgba(31,58,147,0.11);
  text-align: center;
  max-width: 370px;
  width: 94%;
  animation: overlayUp 0.5s cubic-bezier(.61,.06,.21,.99);
}

@keyframes overlayUp {
  from {
    transform: translateY(32px) scale(0.98);
    opacity: 0.7;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

#preview-overlay h2 {
  margin-bottom: 1rem;
  font-size: 1.37rem;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

#preview-overlay p {
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

#preview-button {
  padding: 0.92rem 2.1rem;
  font-size: 1.08rem;
  border: none;
  border-radius: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.17s;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 7px rgba(31,58,147,0.08);
}
#preview-button:hover,
#preview-button:focus {
  background: var(--color-accent-alt);
  color: var(--color-text-primary);
  transform: translateY(-2px) scale(1.05);
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

html, body {
  overflow-x: hidden;
}

/* ========== CHAT WIDGET ========== */
#brepp-chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-alt));
  border-radius: 999px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: none;
}

#brepp-chat-launcher svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

#brepp-chat-launcher:hover {
  transform: translateY(-1px) scale(1.03);
}

/* Chat launcher nudge */
@keyframes breppNudge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-1px) rotate(-6deg); }
  40% { transform: translateY(-1px) rotate(6deg); }
  60% { transform: translateY(-1px) rotate(-4deg); }
  80% { transform: translateY(-1px) rotate(4deg); }
}

#brepp-chat-launcher.brepp-chat-launcher--nudge {
  animation: breppNudge 0.9s ease-in-out 0s 2;
}

.brepp-chat-tip {
  position: fixed;
  right: 1.5rem;
  bottom: 4.8rem;
  z-index: 1101;
  max-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  cursor: pointer;
}

.brepp-chat-tip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brepp-chat-tip__close {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  opacity: .7;
  cursor: pointer;
  padding: 0;
}

.brepp-chat-tip__close:hover {
  opacity: 1;
}

:root[data-theme="dark"] .brepp-chat-tip {
  background: rgba(20,24,36,0.88);
  border-color: rgba(255,255,255,0.14);
}


#brepp-chat-window {
  position: fixed;
  right: 1.5rem;
  bottom: 4.5rem;
  width: 360px;
  max-height: 480px;
  background: rgba(255,255,255,0.82);
  border-radius: 1.15rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
}

#brepp-chat-window.open {
  display: flex;
}

.brepp-chat-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(31,58,147,0.06), rgba(255,255,255,0));
}

.brepp-chat-messages {
  padding: 0.8rem 1rem;
  flex: 1;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}

.brepp-chat-message {
  margin-bottom: 0.6rem;
  max-width: 90%;
  display: flex;
  gap: .55rem;
  align-items: flex-end;
}

.brepp-chat-message::before{
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  flex: 0 0 24px;
  opacity: .95;
}

.brepp-chat-message--bot::before,
.brepp-chat-message--system::before{
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-alt));
}

.brepp-chat-message--user{
  margin-left: auto;
  flex-direction: row-reverse;
}

.brepp-chat-message--user::before{
  background: rgba(31,58,147,0.18);
}

.brepp-chat-message--user p {
  background: linear-gradient(45deg, var(--color-accent), #2a52cc);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem 0.7rem 0.1rem 0.7rem;
  display: inline-block;
}

.brepp-chat-message--bot p,
.brepp-chat-message--system p {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem 0.7rem 0.7rem 0.1rem;
  display: inline-block;
}

/* Bot bubble can contain text + action links below (not next to) */
.brepp-chat-bubble {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
}

.brepp-chat-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.brepp-chat-link {
  display: block;
  width: 100%;
}

#brepp-chat-form {
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
}

#brepp-chat-input {
  flex: 1;
  border: none;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  outline: none;
}

/* Geen extra focus-rand op het inputveld (houdt het rustig/clean) */
#brepp-chat-input:focus,
#brepp-chat-input:focus-visible {
  outline: none;
  box-shadow: none;
}

#brepp-chat-form button {
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

#brepp-chat-form button:hover{
  background: var(--color-accent-alt);
}

#brepp-chat-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

:root[data-theme="dark"] #brepp-chat-input {
  color: var(--color-text-primary);
}

:root[data-theme="dark"] #brepp-chat-input::placeholder {
  color: rgba(230, 230, 230, 0.6);
}

:root[data-theme="dark"] #brepp-chat-window {
  background: rgba(10,14,25,0.78);
  border-color: rgba(255,255,255,0.12);
}

:root[data-theme="dark"] .brepp-chat-header {
  border-bottom-color: rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(240,157,81,0.12), rgba(10,14,25,0));
}

@media (max-width: 520px) {
  #brepp-chat-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  #brepp-chat-window {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 4.9rem;
    max-height: 70vh;
  }
}

:root[data-theme="dark"] .brepp-chat-message--bot p,
:root[data-theme="dark"] .brepp-chat-message--system p{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

:root[data-theme="dark"] #brepp-chat-form{
  background: rgba(0,0,0,0.22);
  border-top-color: rgba(255,255,255,0.12);
}

@media (max-width: 520px){
  #brepp-chat-window{
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: 60vh;
    bottom: 5rem;
  }
  #brepp-chat-launcher{ right: 1rem; bottom: 1rem; }
}

#brepp-chat-close {
  color: var(--color-text-primary);
}


/* ========================================================
   POLISH OVERRIDES (premium consistency pass)
   - Keeps existing layout intact
   - Improves tokens, typography rhythm, and UI states
   ======================================================== */

:root{
  /* Core UI tokens */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --ui-border: rgba(0,0,0,.10);
  --ui-border-strong: rgba(0,0,0,.14);
  --ui-shadow-sm: 0 10px 30px rgba(0,0,0,.07);
  --ui-shadow-md: 0 18px 60px rgba(0,0,0,.10);

  --focus-ring: 0 0 0 4px rgba(31,58,147,.18);
  --ui-transition: 160ms ease;
}

@media (prefers-color-scheme: dark){
  :root{
    --ui-border: rgba(255,255,255,.12);
    --ui-border-strong: rgba(255,255,255,.18);
    --ui-shadow-sm: 0 10px 30px rgba(0,0,0,.35);
    --ui-shadow-md: 0 18px 60px rgba(0,0,0,.45);
    --focus-ring: 0 0 0 4px rgba(166,206,220,.18);
  }
}

/* Typography rhythm */
body{ line-height: 1.6; }
h1,h2,h3{ letter-spacing: -0.02em; }
p{ max-width: 72ch; }

/* Buttons */
.btn{
  border-radius: var(--radius-md);
  transition: transform var(--ui-transition), filter var(--ui-transition), box-shadow var(--ui-transition);
  will-change: transform;
}

.btn.primary{
  border-radius: var(--radius-md);
  box-shadow: var(--ui-shadow-sm);
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); filter: brightness(.98); }

.btn:focus-visible,
a.btn:focus-visible{
  outline: none;
  box-shadow: var(--focus-ring), var(--ui-shadow-sm);
}

/* Inputs / controls (global) */
input, select, textarea{
  border-radius: var(--radius-md);
  border: 1px solid var(--ui-border);
  transition: box-shadow var(--ui-transition), border-color var(--ui-transition), background var(--ui-transition);
}

input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: none;
  border-color: rgba(31,58,147,.45);
  box-shadow: var(--focus-ring);
}

@media (prefers-color-scheme: dark){
  input:focus-visible, select:focus-visible, textarea:focus-visible{
    border-color: rgba(166,206,220,.45);
  }
}



/* === UI polish v3: icon buttons + nav badge === */
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Consistent icon sizing (prevents "thin" look differences across pages) */
.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-button:hover {
  background: transparent; /* no pill background on hover */
  color: var(--color-accent-alt);
  transform: translateY(-1px);
}

.icon-button:active {
  transform: translateY(0px);
}

/* Theme toggle should only respond when clicked (avoid any perceived "flash" on other clicks) */
.theme-toggle.icon-button:active {
  transform: none;
}
.theme-toggle__around {
  transition: none;
}

/* Tool usage pill: make number consistently bold across tools */
.tool-usage__pill > span {
  font-weight: 700;
}

.icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 58, 147, 0.22);
}

[data-theme="dark"] .icon-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 157, 81, 0.22);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.22rem 0.45rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  background: rgba(240, 157, 81, 0.18);
  color: var(--color-text-primary);
  border: 1px solid rgba(240, 157, 81, 0.28);
}

/* Zorg dat theme-toggle dezelfde hover/focus krijgt als whatsapp */
.theme-toggle.icon-button {
  border: 0;
  background: transparent;
}


.hero-tools-callout {
  margin-top: 0.85rem;
}

.hero-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 157, 81, 0.35);
  background: rgba(240, 157, 81, 0.10);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.hero-tools-link:hover {
  transform: translateY(-1px);
  background: rgba(240, 157, 81, 0.16);
}

/* Chat: context links */
.brepp-chat-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
  width: 100%;
}
.brepp-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.55);
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}
:root[data-theme="dark"] .brepp-chat-link {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.brepp-chat-link:hover {
  transform: translateY(-1px);
}

/* Chat: bubble wrapper so links sit under message text */
.brepp-chat-bubble{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Chat: bubble wrapper so links sit under message text */
.brepp-chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

/* Chat: typing dots */
.brepp-chat-message--typing {
  opacity: 0.9;
}

.brepp-chat-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.15rem 0.1rem;
}

.brepp-chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  animation: breppDot 1.1s infinite ease-in-out;
}

.brepp-chat-dots span:nth-child(2) { animation-delay: 0.15s; }
.brepp-chat-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes breppDot {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-2px); opacity: 0.85; }
}

/* === Theme toggle + header icons: unified colors & hover behavior === */
/* Base icon color: light mode = brand blue, dark mode = brand orange */
.icon-button{
  color: var(--color-accent);
}
[data-theme="dark"] .icon-button{
  color: var(--color-accent-alt);
}

/* Light: hover becomes orange. Dark: stay orange. */
.icon-button:hover{
  color: var(--color-accent-alt);
}
[data-theme="dark"] .icon-button:hover{
  color: var(--color-accent-alt);
}

/* WhatsApp: no background block on hover; match icon-button behavior */
.whatsapp-link a{
  background: transparent !important;
  transform: none !important;
  padding: 0 !important;
}
.whatsapp-link a:hover{
  background: transparent !important;
  transform: none !important;
}

/* Prevent any legacy WhatsApp styles from changing sizing */
.whatsapp-link a.icon-button{
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

/* Fix 'sideways' moon: counter-rotate only in dark mode */
[data-theme="dark"] .theme-toggle__around{
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
[data-theme="light"] .theme-toggle__around{
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}


/* CTA blok onderaan dienstpagina's */
.service-cta {
  margin-top: 2rem;
}

.service-cta-inner {
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .service-cta-inner {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.10);
}

.service-cta-list {
  margin: 0.9rem 0 1.1rem;
  padding-left: 1.2rem;
  list-style: disc;
  line-height: 1.8;
}

/* Tool cards (diensten > Tools) */
.tool-cards{
  margin: 14px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px){
  .tool-cards{ grid-template-columns: 1fr; }
}

.tool-card{
  position: relative;
  display: block;
  text-decoration: none;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

:root[data-theme="dark"] .tool-card{
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 12px 34px rgba(0,0,0,0.40);
}

.tool-card:hover{
  transform: translateY(-1px);
  border-color: rgba(240,157,81,0.35);
}

.tool-card-top{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.tool-card-title{
  color: var(--color-text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

:root[data-theme="dark"] .tool-card-title{
  color: var(--color-text-primary);
}

.tool-card-tag{
  color: rgba(10, 12, 18, 0.70);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .tool-card-tag{
  color: rgba(255,255,255,0.72);
}

.tool-card-desc{
  margin-top: 10px;
  color: rgba(10, 12, 18, 0.70);
  line-height: 1.55;
}

:root[data-theme="dark"] .tool-card-desc{
  color: rgba(255,255,255,0.72);
}

.tool-card-cta{
  margin-top: 14px;
  color: var(--color-text-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

:root[data-theme="dark"] .tool-card-cta{
  color: var(--color-text-primary);
}

.tool-card:hover .tool-card-cta{
  transform: translateY(0);
  opacity: 1;
}

.tool-card-shine{
  position:absolute;
  inset: -60px -60px auto -60px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(45,108,223,0.20), transparent 60%),
              radial-gradient(circle at 60% 10%, rgba(255,122,24,0.14), transparent 60%);
  filter: blur(10px);
  opacity: 0.9;
}
