/**
 * FlitternCloud — Main Stylesheet v2.0
 * GDPR-compliant | Google Ads ready | WCAG 2.1 AA | Mobile-first
 */

/* ── Google Fonts ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  --primary:      #FF9B00;
  --primary-dark: #e68a00;
  --secondary:    #0033A0;
  --secondary-dark:#00236e;
  --accent:       #AE1C28;
  --bg-light:     #F8F9FA;
  --text-dark:    #212529;
  --text-muted:   #6c757d;
  --white:        #ffffff;
  --border:       #dee2e6;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   all .3s ease;
  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a { color: var(--secondary); }
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

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

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

#skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
#skip-nav:focus { top: 0; }

/* ── Bootstrap overrides ────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-secondary{ color: var(--secondary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.bg-secondary  { background-color: var(--secondary) !important; }

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  font-family: var(--font-head);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,155,0,.35);
}
.btn-outline-secondary {
  border-color: var(--secondary);
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-head);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  box-shadow: var(--shadow-sm);
  z-index: 1040;
}
.navbar-brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-link:hover { color: var(--primary) !important; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
}
.nav-phone:hover { color: var(--primary); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .8rem;
  font-family: var(--font-head);
  font-weight: 700;
}
.lang-btn {
  padding: .25rem .55rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}
.lang-btn.active, .lang-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)),
              url('../images/dutch-office-meeting.jpeg') center/cover no-repeat;
  color: var(--white);
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero-section h1 { color: var(--white); }
.hero-section .lead { color: rgba(255,255,255,.9); }

/* ── Section utils ──────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem auto 0;
}
.section-divider.left { margin-left: 0; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.icon-box {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.testimonial-card {
  border-left: 5px solid var(--primary);
  background: var(--white);
  padding: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.star-rating { color: var(--primary); letter-spacing: 2px; }

/* Trust badge */
.trust-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.trust-badge-icon {
  width: 44px; height: 44px;
  background: rgba(0,51,160,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-badge-text .label { font-size: .75rem; color: var(--text-muted); line-height: 1; }
.trust-badge-text .value { font-size: 1.15rem; font-weight: 700; font-family: var(--font-head); color: var(--secondary); line-height: 1.2; }

/* ── Forms ──────────────────────────────────────────────────────── */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
}
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-size: .9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,51,160,.12);
}
.form-check-input:checked { background-color: var(--secondary); border-color: var(--secondary); }

/* Honeypot - hidden from humans, visible to bots */
.field-website {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  tabindex: -1;
}

/* Form state messages */
.form-success, .form-error {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}
.form-success { background: #d1fae5; color: #065f46; }
.form-error   { background: #fee2e2; color: #991b1b; }
.form-success.show, .form-error.show { display: block; }

/* ── FAQ Accordion ──────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: rgba(0,51,160,.06);
  color: var(--secondary);
  font-weight: 700;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(0,51,160,.15); }

/* ── About / Mission cards ──────────────────────────────────────── */
.mission-card {
  border-left: 5px solid var(--primary);
  background: var(--bg-light);
  padding: 2rem;
  height: 100%;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Course cards ───────────────────────────────────────────────── */
.course-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.course-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  background: rgba(0,51,160,.08);
  color: var(--secondary);
  margin-bottom: .5rem;
}

/* ── Header gradient (courses/contact pages) ────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-header h1 { color: var(--white); }
.page-header p  { color: rgba(255,255,255,.85); }

/* Breadcrumb */
.breadcrumb-item { font-size: .85rem; }
.breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
}
.legal-section { margin-bottom: 2.25rem; }
.legal-section h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.legal-section p, .legal-section li {
  line-height: 1.8;
  color: #4a4a4a;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer-main {
  background: #111827;
  color: var(--white);
  padding: 3.5rem 0 0;
}
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.footer-desc  { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.1rem;
}
.footer-link {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer-link:hover { color: var(--primary); }
.footer-address {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  font-style: normal;
}
.footer-address a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-address a:hover { color: var(--primary); }
.footer-kvk {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: .5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  margin-top: 2.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── Cookie Consent Banner ──────────────────────────────────────── */
#gd-consent-overlay {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  /* full-screen backdrop on mobile */
}
@media (min-width: 768px) {
  #gd-consent-overlay { background: transparent; }
}

#gd-consent-banner {
  background: var(--white);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  padding: 1.25rem 0;
}

.gd-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.gd-consent-text { flex: 1; min-width: 260px; }
.gd-consent-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .3rem;
}
.gd-consent-desc {
  font-size: .825rem;
  color: var(--text-muted);
  margin: 0 0 .35rem;
  line-height: 1.55;
}
.gd-consent-links { font-size: .8rem; margin: 0; }
.gd-consent-links a { color: var(--secondary); }
.gd-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

/* Consent buttons */
.gd-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  padding: .55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
.gd-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-dark);
}
.gd-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.gd-btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
  color: var(--white);
}
.gd-btn-secondary:hover { background: #5a6268; border-color: #5a6268; }
.gd-btn-outline {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}
.gd-btn-outline:hover { background: var(--secondary); color: var(--white); }
.gd-btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
  text-decoration: underline;
  padding-left: 0; padding-right: 0;
}
.gd-btn-text:hover { color: var(--primary-dark); }

/* ── Cookie Preferences Modal ───────────────────────────────────── */
#gd-prefs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#gd-prefs-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.gd-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.gd-prefs-header h2 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--secondary);
}
.gd-prefs-close-btn {
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; color: var(--text-muted);
  padding: 0 .25rem;
  transition: color .2s;
}
.gd-prefs-close-btn:hover { color: var(--accent); }

.gd-prefs-body {
  padding: 1.25rem 1.75rem;
  flex: 1;
}
.gd-prefs-body > p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.gd-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.gd-category-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.gd-category-info h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  color: var(--text-dark);
}
.gd-category-info p {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.gd-always-on {
  font-size: .75rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* Toggle switch */
.gd-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  align-self: center;
}
.gd-switch input { opacity: 0; width: 0; height: 0; }
.gd-switch-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: .3s;
}
.gd-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: .3s;
}
.gd-switch input:checked + .gd-switch-slider { background: var(--secondary); }
.gd-switch input:checked + .gd-switch-slider::before { transform: translateX(20px); }
.gd-switch input:focus-visible + .gd-switch-slider { outline: 3px solid var(--primary); outline-offset: 2px; }

.gd-prefs-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* ── Utility ────────────────────────────────────────────────────── */
.divider-accent {
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem 0 0;
}
.divider-center { margin-left: auto; margin-right: auto; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--secondary);
  line-height: 1;
}
.stat-label { font-size: .875rem; color: var(--text-muted); }

/* ── Contact icons ──────────────────────────────────────────────── */
.contact-icon-box {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,51,160,.09);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section { padding: 72px 0 60px; min-height: auto; }
  .lead-form-card { padding: 1.5rem 1.25rem; }
  .legal-card { padding: 1.5rem 1.25rem; }
  .gd-consent-content { flex-direction: column; }
  .gd-consent-actions { width: 100%; }
  .gd-btn { width: 100%; text-align: center; }
  .gd-btn-text { width: auto; }
  .gd-prefs-footer { justify-content: stretch; }
  .gd-prefs-footer .gd-btn { flex: 1; text-align: center; }
}

@media (min-width: 768px) {
  #gd-consent-overlay {
    background: transparent;
    pointer-events: none;
  }
  #gd-consent-banner {
    pointer-events: all;
  }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  #gd-consent-overlay, #gd-prefs-overlay, .navbar, .footer-main { display: none !important; }
}
