/* === Reset & basis === */
* { box-sizing: border-box; }
body, html { margin: 0; padding: 0; font-family: 'Inter', sans-serif; line-height: 1.6; }
:root {
  --gold: #D8C79C;
  --ink: #1F2937;
  --bg: #F9FAFB;
  --muted: #F3F4F6;
  --cta: #E63946; /* opvallend rood */
  --cta-hover: #c92f3a;
}

/* === Header === */
/* HEADER */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--gold); /* doré sablé */
    display: flex; align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* LOGO */
  .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink); /* anthracite */
    text-decoration: none;
  }
  
  /* NAV */
  .nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0; padding: 0;
  }
  .nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease;
  }
  .nav a:hover,
  .nav a.active {
    color: #fff;
  }
  
  /* ACTIONS */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  /* BURGER */
  .burger {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--ink);
    cursor: pointer;
    display: none;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }
  
  .burger:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .burger:active {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  /* MOBILE */
  @media (max-width: 768px) {
    /* Improve touch targets */
    * {
      -webkit-tap-highlight-color: transparent;
    }
    
    body {
      -webkit-overflow-scrolling: touch;
    }
    
    .burger { 
      display: block; 
      z-index: 1001;
      min-height: 44px;
      min-width: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .nav {
      display: none;
      position: absolute;
      top: 70px; 
      left: 0;
      right: 0;
      width: 100%;
      background: var(--gold);
      padding: 20px;
      flex-direction: column;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      z-index: 1000;
    }
    .nav.open { 
      display: flex !important; 
    }
  
    .nav ul {
      flex-direction: column;
      gap: 20px;
      width: 100%;
    }
    
    .nav a { 
      font-size: 1.2rem; 
      display: flex !important;
      padding: 15px 10px !important;
      min-height: 44px !important;
      align-items: center !important;
      justify-content: center !important;
      text-decoration: none !important;
      color: var(--ink) !important;
      border-radius: 4px !important;
      transition: background-color 0.2s ease !important;
    }
    
    .nav a:hover {
      background-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Debug styles for mobile menu */
    .nav.open {
      border: 2px solid red !important; /* Temporary debug border */
    }
    
    .burger {
      border: 2px solid blue !important; /* Temporary debug border */
    }
    
    .header-actions {
      gap: 15px;
      align-items: center;
    }
    
    /* Mobile language dropdown fixes */
    .lang-dropdown {
      position: relative;
    }
    
    .lang-btn {
      background: #fff !important;
      color: var(--ink) !important;
      border: 1px solid rgba(0,0,0,0.25) !important;
      padding: 12px 15px !important;
      border-radius: 6px !important;
      cursor: pointer !important;
      font-weight: 600 !important;
      font-size: 16px !important;
      -webkit-appearance: none !important;
      appearance: none !important;
      -webkit-tap-highlight-color: transparent !important;
      touch-action: manipulation !important;
      min-height: 44px !important;
      min-width: 44px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      user-select: none !important;
      -webkit-user-select: none !important;
    }
    
    .lang-btn:active,
    .lang-btn:focus {
      outline: 2px solid var(--gold) !important;
      outline-offset: 2px !important;
    }
    
    .lang-menu {
      position: absolute !important;
      top: calc(100% + 5px) !important;
      right: 0 !important;
      left: auto !important;
      background: white !important;
      border: 1px solid #ccc !important;
      border-radius: 8px !important;
      min-width: 180px !important;
      max-width: 250px !important;
      box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
      z-index: 9999 !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
      overflow: hidden !important;
    }
    
    /* Ensure dropdown doesn't go off-screen */
    @media (max-width: 480px) {
      .lang-menu {
        right: -10px !important;
        min-width: 200px !important;
      }
    }
    
    .lang-menu.hidden {
      display: none !important;
      visibility: hidden !important;
    }
    
    .lang-menu:not(.hidden) {
      display: block !important;
      visibility: visible !important;
    }
    
    .lang-menu li {
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .lang-menu a {
      display: block !important;
      padding: 15px 18px !important;
      color: var(--ink) !important;
      text-decoration: none !important;
      font-size: 15px !important;
      font-weight: 500 !important;
      border-bottom: 1px solid #f5f5f5 !important;
      transition: all 0.2s ease !important;
      -webkit-tap-highlight-color: transparent !important;
      touch-action: manipulation !important;
    }
    
    .lang-menu a:last-child {
      border-bottom: none !important;
    }
    
    .lang-menu a:hover,
    .lang-menu a:active,
    .lang-menu a.active {
      background-color: var(--gold) !important;
      color: var(--ink) !important;
    }
    
    .lang-menu a:focus {
      outline: 2px solid var(--gold) !important;
      outline-offset: -2px !important;
    }
  }
  

/* === Hero === */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
  }
  .hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* assombrit l’image */
  }
  
.hero-content { position: relative; max-width: 900px; z-index: 1; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; margin-bottom: 15px; }
.hero .subtitle { font-size: 1.3rem; margin-bottom: 25px; }

/* === CTA Buttons === */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; padding: 14px 26px;
  border-radius: 8px; transition: .2s;
}
.btn.cta { background: var(--cta); color: #fff; }
.btn.cta:hover { background: var(--cta-hover); }

/* === Sections === */
.section { padding: 48px 20px; }
.section-plain { background: #fff; }
.section-alt { background: var(--muted); }
.container { max-width: 1100px; margin: 0 auto; }

/* Risks */
.risks { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.highlight { font-weight: 600; color: var(--cta); }

/* Steps & lists */
.process ol { padding-left: 20px; margin-bottom: 20px; }
.process .urgent { font-weight: 700; color: var(--cta); }

/* Reviews */
.reviews .review {
  background: #fff; padding: 20px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 16px; font-style: italic;
}
.reviews h2::before { content: "★★★★★ "; color: gold; }

/* === Form (harmonised) === */
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(31,41,55,0.06);
  border: 1px solid rgba(31,41,55,0.04);
}
.contact-form label {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media(min-width:768px){ .form-grid { grid-template-columns: 1fr 1fr; } .full-width { grid-column: 1 / -1; } }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px; border: 1px solid #e6e7ea; border-radius: 10px; width: 100%;
  background: #fff; font-size: 1rem; color: var(--ink);
  transition: box-shadow .18s ease, border-color .12s ease, transform .08s ease;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--cta); outline: none; box-shadow: 0 6px 18px rgba(230,57,70,0.08);
  transform: translateY(-1px);
}

/* Small helper / hint */
.contact-form .form-note { font-size: .9rem; color: #6b7280; margin-top: 6px; }

/* File input: modern look using native button where possible */
.contact-form input[type="file"] {
  display: block; padding: 10px 12px; border-radius: 10px; border: 1px dashed #e6e7ea; background: #fbfbfc;
}
.contact-form input[type="file"]::-webkit-file-upload-button { padding: 8px 12px; border-radius: 8px; background: var(--gold); border: none; color: var(--ink); font-weight: 700; }
.contact-form input[type="file"]::file-selector-button { padding: 8px 12px; border-radius: 8px; background: var(--gold); border: none; color: var(--ink); font-weight: 700; }

/* Radio / checkbox groups */
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label { font-weight: 600; }
.radio-group input[type="radio"], .checkbox input[type="checkbox"] { margin-right: 8px; }

/* Inline checkbox layout: ensure the box appears to the left of the text */
.checkbox { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.checkbox input[type="checkbox"] { margin: 0; flex: 0 0 auto; width: 18px; height: 18px; }
.checkbox label { margin: 0; line-height: 1.4; flex: 1 1 auto; }

/* Make checkbox keyboard-focus visible */
.checkbox input[type="checkbox"]:focus-visible { outline: 3px solid rgba(230,57,70,0.18); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 480px) {
  .checkbox { align-items: flex-start; gap: 8px; }
  .checkbox input[type="checkbox"] { margin-top: 6px; }
}

/* Submit button more prominent */
.contact-form .btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-weight: 800; }
.contact-form .btn.cta { background: linear-gradient(180deg, var(--cta), var(--cta-hover)); color: #fff; box-shadow: 0 8px 20px rgba(230,57,70,0.12); border: none; }
.contact-form .btn.cta:hover { transform: translateY(-2px); }

/* Make the submit area aligned and roomy */
.contact-form .trust-badges { margin-top: 18px; }
.contact-form .btn-row { margin-top: 18px; display: flex; align-items: center; gap: 18px; }

/* Progress bar */
.progressbar {
  background: var(--muted); border-radius: 20px; margin-bottom: 20px; overflow: hidden;
  position: relative; font-size: .9rem; font-weight: 600; text-align: center;
  height: 22px; line-height: 22px; color: #fff;
}
.progressbar::before {
  content: ""; position: absolute; inset: 0;
  width: 50%; /* stap 1 van 2 */
  background: var(--cta);
}
.progressbar span { position: relative; z-index: 1; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust-badges span { background: var(--muted); padding: 6px 12px; border-radius: 6px; }

/* Footer */
.footer { background: var(--gold); color: var(--ink); padding: 20px 16px 10px; margin-top: 24px; }
.footer-container { max-width: 1100px; margin: auto; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.footer-col h4 { border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 6px; padding-bottom: 4px; font-size: .98rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--cta); }
.footer-bottom { text-align: center; margin-top: 12px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.08); font-size: .85rem; }

.progressbar {
    --progress: 50%;
    position: relative;
    background: var(--muted);
    border-radius: 20px;
    margin-bottom: 20px;
    height: 22px;
    line-height: 22px;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
  }
  .progressbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--progress);
    background: var(--cta);
  }
  .progressbar span { position: relative; z-index: 1; }
  
  /* Container */
.lang-dropdown {
    position: relative;
    font-size: 0.95rem;
  }
  
  /* Bouton */
  .lang-btn {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(0,0,0,0.25);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: background 0.2s, border-color 0.2s;
  }
  .lang-btn:hover {
    background: var(--gold);
    border-color: var(--ink);
    color: var(--ink);
  }
  
  /* Menu */
  .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 2000;
  }
  .lang-menu li a {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .lang-menu li a:hover {
    background: var(--gold);
    color: var(--ink);
  }

  /* highlight active language */
  .lang-menu a.active { font-weight: 800; background: rgba(0,0,0,0.04); }
  .lang-menu a:focus { outline: 2px solid rgba(31,41,55,0.06); }
  
  /* Masqué par défaut */
  .hidden {
    display: none;
  }
  
  /* PROFIEL PRESENTATIE */
.advocaat-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }
  .profile-photo img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  .profile-text {
    flex: 1;
  }
  .profile-text h2 {
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
  }
  
  .avocat-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .avocat-photo {
    flex: 1 1 250px;
    max-width: 300px;
  }
  
  .avocat-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  .avocat-bio {
    flex: 2 1 500px;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .avocat-bio h2 {
    margin-bottom: 1rem;
  }
  
  .avocat-bio ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }
  
  .avocat-bio ul li {
    margin: 0.5rem 0;
  }
  
  .contact-info {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .contact-info a {
    color: var(--cta);
    font-weight: 600;
    text-decoration: none;
  }
  
  .contact-info a:hover {
    text-decoration: underline;
  }
  .logo img {
    height: 50px;       /* adjust to your desired size */
    width: auto;
    display: block;
  }
  
  @media (max-width: 768px) {
    .logo img {
      height: 40px;
    }
  }
  
/* === Mobile enhancements === */
@media (max-width: 900px) {
  /* make the header smaller and easier to tap */
  .site-header { height: 60px; }
  .header-container { padding: 0 14px; }
  .logo a { font-size: 1.2rem; }

  /* nav / burger improvements */
  .burger { font-size: 1.6rem; padding: 6px; }
  .nav ul { gap: 14px; }

  /* hero more compact on phones */
  .hero { height: 60vh; padding: 12px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.2; }
  .hero .subtitle { font-size: 1rem; }

  /* stack containers and reduce big paddings */
  .section { padding: 32px 12px; }
  .container { padding: 0 8px; }

  /* CTAs larger tap target */
  .btn { padding: 12px 18px; font-size: 1rem; border-radius: 10px; }

  /* Forms: single column, larger inputs */
  .contact-form { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form input, .contact-form select, .contact-form textarea { padding: 14px; font-size: 1rem; }
  .contact-form .full-width { grid-column: 1 / -1; }

  /* mobile: stack radio groups and make buttons full width */
  .radio-row { flex-direction: column; }
  .contact-form .btn-row { flex-direction: column; align-items: stretch; }
  .contact-form .btn { width: 100%; justify-content: center; }

  /* Make progress bar taller and readable on small screens */
  .progressbar { height: 28px; line-height: 28px; font-size: 1rem; }

  /* Trust badges wrap nicely */
  .trust-badges { gap: 8px; font-size: .95rem; }

  /* Footer spacing */
  .footer { padding: 30px 12px 20px; }
  .footer-bottom { font-size: .85rem; }

  /* Profile and avocat stacks */
  .advocaat-profile, .avocat-container { flex-direction: column; gap: 20px; }
  .profile-photo img, .avocat-photo img { max-width: 100%; height: auto; }
}

/* Extra small screens */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.3rem; }
  .hero .subtitle { font-size: 0.95rem; }
  .nav a { font-size: 1rem; }
  .lang-btn { padding: 6px 10px; font-size: .95rem; }
}
  
/* Floating form toggle + modal */
.floating-form-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 2001;
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cta); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.18); border: none; cursor: pointer;
  font-size: 1.6rem; transition: transform .12s ease, box-shadow .12s ease;
}
.floating-form-toggle:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.22); }
.floating-form-toggle:focus { outline: 3px solid rgba(230,57,70,0.18); }

.floating-form-modal {
  position: fixed; inset: 0; display: none; z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}
.floating-form-modal.open { display: flex; }
.floating-form-modal .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px);
}
.floating-form-modal .modal-card {
  position: relative; max-width: 920px; width: 100%; background: #fff; border-radius: 12px; padding: 18px; z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28); max-height: 92vh; overflow: auto;
}
.floating-form-modal .modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 8px; }
.floating-form-modal .modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 8px; color: var(--ink); }
.floating-form-modal .modal-content { padding-top: 6px; }

@media (max-width: 768px) {
  .floating-form-toggle { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .floating-form-modal .modal-card { padding: 12px; border-radius: 10px; }
}
