/* Resotech Cyber Security - Main Stylesheet */
:root {
  --primary: #021E73;       /* donker navy blauw — hoofdkleur */
  --red: #C41230;           /* rood accent — logo kleur */
  --secondary: #578BF2;     /* helder blauw */
  --tertiary: #A8C5E8;      /* lichtblauw — logo highlight */
  --dark: #021E73;          /* footer achtergrond = primary navy */
  --light: #f0f4fb;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #dde3f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(2,30,115,0.10);
  --shadow-lg: 0 8px 40px rgba(2,30,115,0.18);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Wix Madefor Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: 'Wix Madefor Display', 'Wix Madefor Text', sans-serif; line-height: 1.2; color: var(--primary); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; color: #374151; font-weight: 400; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; max-width: 240px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: #1a1a2e; font-weight: 600; font-size: 0.95rem; position: relative; }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--red); transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Language switcher */
.lang-switch {
  display: flex; border: 2px solid var(--primary); border-radius: 6px; overflow: hidden;
}
.lang-switch button {
  padding: 4px 12px; border: none; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; color: var(--primary); transition: var(--transition);
}
.lang-switch button.active {
  background: var(--primary); color: var(--white);
}
.lang-switch button:hover:not(.active) { background: var(--light); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 100%; height: 3px; background: var(--primary);
  border-radius: 2px; transition: var(--transition); position: absolute; left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: 8px; font-weight: 700; font-size: 0.95rem; border: none;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,18,48,0.30); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--white); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a3299 60%, var(--secondary) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.hero.hero-img {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(2,30,115,0.75) 0%, rgba(2,30,115,0.65) 60%, rgba(2,30,115,0.55) 100%);
  z-index: 0;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(145,178,242,0.15) 0%, transparent 70%);
  border-radius: 50%; z-index: 1;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 640px; }
.hero .btn-light { margin-top: 20px; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 16px;
  border-radius: 20px; font-size: 0.85rem; margin-bottom: 16px; color: var(--tertiary);
}

/* Hero two-column with photo */
.hero-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 2;
}
.hero-photo-wrap {
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  position: relative;
}
.hero-photo-wrap img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header p { color: var(--gray); }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-light);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--white); font-size: 1.4rem;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

/* Number badge for step-cards */
.card-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0; margin-bottom: 14px;
}

/* Service cards with link */
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link .card { cursor: pointer; display: flex; flex-direction: column; height: 100%; }
.card-link:hover .card { border-color: var(--red); }
.card-link:hover .card h3 { color: var(--red); }
.card-link:hover .card-icon { background: linear-gradient(135deg, var(--red), #e05070); }
.card-body-grow { flex: 1; }
.card-more { display: block; margin-top: 16px; color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.card-link:hover .card-more { color: var(--red); }

/* Steps / Timeline */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 24px; margin-bottom: 32px; counter-increment: step;
}
.step-number {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.step-content h4 { margin-bottom: 6px; }
.step-content p { margin-bottom: 0; color: var(--gray); }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-text { max-width: 560px; }

/* Stats */
.stats { display: flex; gap: 48px; margin-top: 32px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 0.85rem; color: var(--gray); }

/* Team */
.team-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-light);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-body { padding: 24px; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--secondary); font-weight: 600; margin-bottom: 12px; font-size: 0.9rem; }
.team-card p { font-size: 0.95rem; }
.team-img {
  width: 100%; height: 300px; object-fit: cover; object-position: top center;
  display: block;
}
.team-img-placeholder {
  width: 100%; height: 300px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 3rem; font-weight: 800;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--gray-light); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--secondary); box-shadow: 0 2px 12px rgba(87,139,242,0.1); }
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 700; color: var(--primary); background: var(--white);
  user-select: none;
}
.faq-question:hover { background: var(--light); }
.faq-question .arrow {
  transition: var(--transition); font-size: 0.8rem; color: var(--secondary);
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--gray); line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 600px; }

/* Contact form */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-light);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(87,139,242,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: auto; margin-top: 4px; }
.form-check label { font-weight: 400; font-size: 0.9rem; }

/* Footer */
.footer {
  background: #eef2fa; /* licht blauw-grijs zodat het logo in originele kleuren zichtbaar is */
  color: #374151;
  padding: 60px 0 24px;
  border-top: 4px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--primary); margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; color: #374151; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #4b5563; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid #c8d4ec; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
  color: #6b7280;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: var(--primary); }

/* Page header / hero (for inner pages) */
.page-header, .page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a3299 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.page-header.page-header-img, .page-hero.page-header-img {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-header.page-header-img::after, .page-hero.page-header-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(2,30,115,0.65) 0%, rgba(10,50,153,0.55) 100%);
  z-index: 0;
}
.page-header .container, .page-hero .container { position: relative; z-index: 1; }
.page-header h1, .page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-header p, .page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; font-size: 1.1rem; }

/* Content image in two-col layout */
.content-img {
  width: 100%; border-radius: var(--radius); object-fit: cover;
  box-shadow: var(--shadow-lg); display: block;
}
.content-img-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Profile page */
.profile-section { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.profile-info h2 { margin-bottom: 4px; }
.profile-role { color: var(--secondary); font-weight: 600; margin-bottom: 20px; display: block; }

/* Benefits list */
.benefits-list { list-style: none; }
.benefits-list li {
  padding: 12px 0; border-bottom: 1px solid var(--gray-light);
  display: flex; gap: 12px; align-items: flex-start;
}
.benefits-list li::before {
  content: '✓'; color: var(--secondary); font-weight: 800; flex-shrink: 0; margin-top: 2px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 60px 0; text-align: center; color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }

/* Privacy / Legal pages */
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; }
.legal-content ul { margin: 0 0 16px 24px; }
.legal-content li { margin-bottom: 6px; color: #374151; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .nav a { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 72px; }
  .two-col { gap: 36px; }
}

/* ============================================================
   RESPONSIVE — Mobiel (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Body scroll blokkeren als menu open is */
  body.menu-open { overflow: hidden; }

  /* Header */
  .header .container { height: 64px; }
  .header .btn { display: none; }
  .logo img { height: 44px; }
  .menu-toggle { display: block; }

  /* backdrop-filter verwijderen zodat .nav position:fixed het hele viewport bedekt */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,0.98);
  }

  /* Mobiel navigatiemenu */
  .nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    flex-direction: column; justify-content: center;
    align-items: center; gap: 28px; z-index: 1050;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

  /* Menu toggle bovenop nav overlay */
  .menu-toggle { z-index: 1100; }

  /* Hero (homepage) */
  .hero { padding: 100px 0 56px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero p { font-size: 1rem; }
  .hero-two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-wrap img { height: 240px; }

  /* Hero knoppen onder elkaar */
  .hero-buttons {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Pagina header (subpagina's) */
  .page-header, .page-hero { padding: 88px 0 44px; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }

  /* Afbeeldingen in two-col: hoogte beperken op mobiel */
  .content-img-wrap { height: 220px !important; }

  /* Kaartgrids */
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }

  /* Statistieken */
  .stats { flex-direction: column; gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Profielpagina */
  .profile-section { grid-template-columns: 1fr; }
  .profile-photo { max-width: 240px; margin: 0 auto; display: block; }

  /* Contact: map vaste hoogte op mobiel (flex werkt niet zonder hoogte-context) */
  .map-wrap { flex: none !important; min-height: 280px; }
  .map-wrap iframe { height: 280px !important; }

  /* Team avatar */
  .team-avatar { width: 90px; height: 90px; }
}

/* ============================================================
   RESPONSIVE — Klein mobiel (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
  .hero { padding: 88px 0 48px; }
  .page-header, .page-hero { padding: 80px 0 36px; }

  h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .btn { padding: 11px 20px; font-size: 0.9rem; }
  .card { padding: 20px; }

  /* Assurance Type I/II kaarten naast elkaar op klein scherm */
  .card-grid-2 { grid-template-columns: 1fr; }

  .cta-banner { padding: 44px 0; }
}
