/* ========================================
   RegieNemen.nl - Design System
   Based on Designconcept EigenRegie.nl
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Primary - Trust */
  --blue-dark: #2F6FA3;
  --blue-light: #4A90C2;

  /* Background - Calm */
  --bg-light: #F5F7FA;
  --bg-white: #FAFAFA;

  /* Accent - Hope/Action */
  --green: #5FAF8F;
  --green-light: #6BBF9A;

  /* Secondary - Humanity */
  --lavender: #8E7CC3;
  --lavender-light: #A593E0;

  /* CTA - Self-check */
  --teal: #2AA198;
  --teal-hover: #238b80;

  /* Footer */
  --footer-bg: #2F6FA3;

  /* Text */
  --text-dark: #2D3748;
  --text-medium: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;

  /* Sections */
  --section-recognition: #F5F7FA;
  --section-thoughts: #F2F0FA;
  --section-message: #E8F4EE;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Max width */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-medium);
  font-size: 1.0625rem;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-dark);
}

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

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

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

/* --- Quick Escape Button --- */
.quick-escape {
  position: fixed;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1000;
  background: #E2E8F0;
  color: var(--text-medium);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-escape:hover {
  background: #CBD5E0;
  transform: scale(1.02);
}

.quick-escape svg {
  width: 16px;
  height: 16px;
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--text-white);
  border-bottom: 1px solid #E2E8F0;
  padding: var(--space-sm) 0;
  padding-right: 200px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

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

.nav-menu a:hover {
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--text-white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(42, 161, 152, 0.3);
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--teal-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 161, 152, 0.4);
}

.btn-cta--small {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-cta__note {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.9;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #EBF2FA 0%, #F5F7FA 100%);
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content h1 {
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero__content .subtitle {
  font-size: 1.1875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.hero__content .extra-text {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.hero__trust {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-medium);
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
}

.hero__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(47, 111, 163, 0.15);
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Section Base --- */
.section {
  padding: var(--space-xxl) 0;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section__header p {
  font-size: 1.125rem;
}

/* --- Recognition Section --- */
.section--recognition {
  background: var(--section-recognition);
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.recognition-card {
  background: var(--text-white);
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recognition-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.recognition-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
}

.recognition-card__text {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* --- Thoughts Section --- */
.section--thoughts {
  background: var(--section-thoughts);
}

.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.thought-card {
  background: var(--text-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  border-left: 4px solid var(--lavender);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-style: italic;
  color: var(--text-medium);
  font-size: 1.0625rem;
  line-height: 1.7;
  position: relative;
}

.thought-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 3rem;
  color: var(--lavender-light);
  font-style: normal;
  line-height: 1;
}

/* --- Insight Section --- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.insight-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.insight-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-white);
}

.insight-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--blue-dark);
}

.insight-card p {
  font-size: 0.9375rem;
}

/* --- How It Works Section --- */
.section--how {
  background: var(--section-recognition);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(to right, var(--blue-light), var(--teal), var(--green));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--text-white);
  border: 3px solid var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(47, 111, 163, 0.15);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: 0.9375rem;
}

/* --- Message Section --- */
.section--message {
  background: var(--section-message);
}

.message-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.message-content h2 {
  color: var(--green);
}

.message-content p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* --- Safety Section --- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.safety-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--text-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.safety-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--section-message);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.25rem;
}

.safety-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.safety-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Trust Checklist --- */
.section--trust {
  background: var(--bg-white);
}

.trust-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 1.0625rem;
  color: var(--text-medium);
  border-bottom: 1px solid #EDF2F7;
}

.trust-list li:last-child {
  border-bottom: none;
}

.trust-list__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--section-message);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
}

/* --- CTA Section --- */
.section--cta {
  text-align: center;
  background: linear-gradient(135deg, #EBF2FA 0%, #F2F0FA 100%);
  padding: var(--space-xl) 0;
}

.section--cta h2 {
  margin-bottom: var(--space-md);
}

.section--cta p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-size: 1.125rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  max-width: 300px;
}

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

.footer-links h4 {
  color: var(--text-white);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  :root {
    --space-xxl: 3.5rem;
    --space-xl: 2.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  /* Header mobile */
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F7FAFC;
  }

  /* Hero mobile */
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero__image {
    order: -1;
  }

  /* Grids mobile */
  .insight-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .steps::before {
    display: none;
  }

  .recognition-grid,
  .thoughts-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

  /* Quick escape mobile */
  .quick-escape {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* CTA bigger touch targets */
  .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__content h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }
}

/* --- Page Styles --- */
.page-header {
  background: linear-gradient(135deg, #EBF2FA 0%, #F5F7FA 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: var(--space-xl) 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  margin-top: var(--space-lg);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.page-content li {
  margin-bottom: var(--space-xs);
  color: var(--text-medium);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.1);
}

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

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .recognition-card,
  .thought-card,
  .insight-card,
  .safety-card,
  .step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
  }

  .recognition-card:nth-child(1) { animation-delay: 0.1s; }
  .recognition-card:nth-child(2) { animation-delay: 0.2s; }
  .recognition-card:nth-child(3) { animation-delay: 0.3s; }
  .recognition-card:nth-child(4) { animation-delay: 0.4s; }
  .recognition-card:nth-child(5) { animation-delay: 0.5s; }

  .thought-card:nth-child(1) { animation-delay: 0.1s; }
  .thought-card:nth-child(2) { animation-delay: 0.2s; }
  .thought-card:nth-child(3) { animation-delay: 0.3s; }
  .thought-card:nth-child(4) { animation-delay: 0.4s; }

  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(2) { animation-delay: 0.3s; }
  .step:nth-child(3) { animation-delay: 0.5s; }
}

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