/* FileCap Support — styling based on filecap.com brand
   Palette extracted from filecap.com Webflow CSS */
:root {
  --dark-slate-blue: #134585;
  --steel-blue: #3e84de;
  --deep-sky-blue: #00c1fe;
  --lime-green: #65b73f;
  --alice-blue: #e9f0f5;
  --dim-grey: #626262;
  --white: #ffffff;
  --border: #dbe6ef;
  --shadow: 0 8px 30px rgba(19, 69, 133, 0.10);
  --radius: 14px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-slate-blue);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 1.9rem; font-weight: 700; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 34px; }
.brand-badge {
  background: var(--alice-blue); color: var(--dark-slate-blue);
  font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.nav-link {
  color: var(--dark-slate-blue); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-link:hover { color: var(--steel-blue); }
/* Taalkeuze — zelfde patroon als de switcher op filecap.com */
.lang-switcher {
  position: relative; margin-right: 18px; cursor: pointer; user-select: none;
  font-size: 0.9rem; font-weight: 600; color: var(--dark-slate-blue);
}
.lang-option {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px;
  white-space: nowrap;
}
.lang-current .lang-option { padding: 7px 4px; }
.lang-current .lang-option::after {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.6;
}
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--light-grey, #d5dbe3);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 42, 67, 0.14);
  overflow: hidden; min-width: 100%;
}
.lang-list .lang-option:hover { background: var(--alice-blue, #eef4fa); }
.lang-list { max-height: 340px; overflow-y: auto; }

/* Down under: bij de Australische "taal" staat de hele pagina op de kop.
   Bewust per blok gedraaid in plaats van één transform op <body>: een
   geroteerde laag van duizenden pixels breekt position:sticky (balk zweeft
   halverwege) en browsers painten zulke lagen onbetrouwbaar bij diep
   scrollen. Per blok draaien geeft hetzelfde beeld zonder die problemen. */
html.down-under :is(.site-header, .hero > .container, .faq-section h2,
  .faq-section .section-subtitle, .faq-item, .contact-card, .footer-inner) {
  transform: rotate(180deg);
}
/* In de gedraaide balk opent de dropdown 'onder' de knop = visueel omhoog,
   buiten beeld. Aan de andere kant openen zodat hij visueel onder de balk
   valt en de taal terug te wisselen blijft. */
html.down-under .lang-list {
  top: auto;
  bottom: calc(100% + 6px);
  left: auto;
  right: 0;
}
nav { display: flex; align-items: center; }

/* ── Hero + chat ─────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(120% 120% at 50% 0%, var(--alice-blue) 0%, var(--white) 75%);
  padding: 64px 0 72px;
  text-align: center;
}
.hero-subtitle {
  max-width: 640px; margin: 16px auto 40px; color: var(--dim-grey); font-size: 1.1rem;
}

.chat-card {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--dark-slate-blue), var(--steel-blue));
  color: var(--white);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.chat-title { font-weight: 700; }
.chat-status { font-size: 0.8rem; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-green); display: inline-block; }

.chat-messages {
  height: 380px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f7fafc;
}
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: break-word; }
.msg.user {
  align-self: flex-end; background: var(--steel-blue); color: var(--white);
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start; background: var(--white); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.bot a { color: var(--steel-blue); }
.msg.typing { color: var(--dim-grey); font-style: italic; }
.feedback-bar { margin-top: 6px; display: flex; gap: 6px; }
.feedback-btn {
  border: 1px solid var(--light-grey, #d5dbe3); background: #fff; border-radius: 8px;
  padding: 2px 8px; font-size: 0.9rem; cursor: pointer; opacity: 0.65;
  transition: opacity 0.15s, transform 0.1s;
}
.feedback-btn:hover { opacity: 1; }
.feedback-btn.selected { opacity: 1; border-color: var(--steel-blue); background: var(--alice-blue, #eef4fa); transform: scale(1.08); }
.typing-dots span {
  display: inline-block; width: 6px; height: 6px; margin-right: 3px;
  background: var(--steel-blue); border-radius: 50%;
  animation: blink 1.2s infinite both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat-input-row {
  display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input-row input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 0.95rem; color: var(--dark-slate-blue);
}
.chat-input-row input:focus { outline: 2px solid var(--steel-blue); border-color: transparent; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 10px; transition: all 0.15s ease;
}
.btn-primary { background: var(--lime-green); color: var(--white); }
.btn-primary:hover { background: #57a234; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  background: transparent; color: var(--dark-slate-blue);
  border: 2px solid var(--dark-slate-blue);
}
.btn-outline:hover { background: var(--alice-blue); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section { padding: 72px 0; }
.faq-section h2, .section-subtitle { text-align: center; }
.section-subtitle { color: var(--dim-grey); margin: 10px auto 36px; max-width: 560px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); overflow: hidden; transition: box-shadow 0.15s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--dark-slate-blue); text-align: left;
}
.faq-toggle {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--alice-blue); color: var(--dark-slate-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: transform 0.2s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--lime-green); color: var(--white); }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--dim-grey); white-space: pre-wrap; }
.faq-item.open .faq-answer { display: block; }
.faq-empty { text-align: center; color: var(--dim-grey); }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact-section { padding: 0 0 72px; }
.contact-card {
  background: linear-gradient(90deg, var(--dark-slate-blue), var(--steel-blue));
  color: var(--white); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-card h2 { color: var(--white); }
.contact-card p { opacity: 0.85; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-card .btn-outline { color: var(--white); border-color: var(--white); }
.contact-card .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { text-align: center; color: var(--dim-grey); font-size: 0.9rem; }
.footer-logo { height: 26px; margin-bottom: 10px; }
.footer-meta { font-size: 0.85rem; color: var(--dim-grey); margin-bottom: 6px; }
.footer-meta a { color: var(--steel-blue); }
.footer-copy { margin-top: 6px; font-size: 0.8rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 16px; }

  .header-inner { height: 60px; }
  .brand { gap: 8px; }
  .brand-logo { height: 26px; }
  .nav-link { font-size: 0.85rem; }

  .hero { padding: 28px 0 40px; }
  .hero-subtitle { font-size: 1rem; margin: 12px auto 24px; }

  .chat-header { padding: 12px 14px; }
  /* dvh: houd de chat + invoerregel samen in beeld, ook met adresbalk */
  .chat-messages { height: min(400px, 55dvh); padding: 14px; }
  .msg { max-width: 90%; }
  .chat-input-row { padding: 10px 12px; gap: 8px; }
  /* 16px voorkomt dat iOS Safari inzoomt bij focus op het invoerveld */
  .chat-input-row input { font-size: 16px; padding: 11px 12px; }
  .chat-input-row .btn { padding: 11px 16px; flex-shrink: 0; }

  .faq-section { padding: 48px 0; }
  .faq-question { padding: 14px 16px; font-size: 0.95rem; gap: 10px; }
  .faq-answer { padding: 0 16px 14px; }

  .contact-section { padding: 0 0 48px; }
  .contact-card {
    flex-direction: column; align-items: stretch;
    padding: 28px 20px; text-align: center;
  }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; text-align: center; }
}

/* Extra smal (kleine telefoons) */
@media (max-width: 380px) {
  h1 { font-size: 1.5rem; }
  .brand-badge { display: none; }
  .chat-input-row .btn { padding: 11px 12px; font-size: 0.9rem; }
}
