/* =========================================
   Rosenau ICT Services — Huisstijl CSS
   Kleuren: Blauw #009FD4, Groen #7CC42A, Donkergrijs #3C3C3C
   ========================================= */

:root {
  --blue: #009FD4;
  --blue-dark: #0077A8;
  --blue-deeper: #005F8A;
  --green: #7CC42A;
  --green-dark: #62A01E;
  --dark: #3C3C3C;
  --mid: #5A5A5A;
  --light: #F5F7FA;
  --border: #E0E6EC;
  --white: #ffffff;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--blue);
  z-index: 200;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* =========================================
   LOGO
   ========================================= */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 40px;
  opacity: 0.9;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--blue);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(0,159,212,0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,159,212,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 96px 24px;
}

.hero-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--mid);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.clients-label {
  margin-top: 48px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mid);
  opacity: 0.6;
  margin-bottom: 16px;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 80px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.clients-track img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(50%);
  transition: filter var(--transition);
}

.clients-track img:hover {
  filter: grayscale(0%) opacity(100%);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body.dark-mode .clients-track img {
  filter: grayscale(100%) opacity(30%) invert(1);
}

body.dark-mode .clients-track img:hover {
  filter: grayscale(0%) opacity(80%) invert(1);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.2px;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(0,159,212,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header-light h2,
.section-header-light p {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-label-light {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,159,212,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
}

/* =========================================
   OVER MIJ
   ========================================= */
.over-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: center;
}

.over-card {
  background: var(--blue);
  border-radius: 12px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.over-card-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.over-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.over-content .section-label { margin-bottom: 8px; }

.over-content h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.over-title {
  font-size: 16px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.over-content p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.over-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.over-list li {
  font-size: 15px;
  color: var(--mid);
  padding-left: 22px;
  position: relative;
}

.over-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* =========================================
   CERTIFICATEN
   ========================================= */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.cert-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.cert-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 60%, var(--blue-dark) 100%);
}

.contact-section .section-header h2 {
  color: var(--white);
}

.contact-section .section-header p {
  color: rgba(255,255,255,0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  font-size: 16px;
  color: var(--white);
  font-weight: 400;
}

.contact-item a:hover { text-decoration: underline; }

.contact-details {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-details p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.contact-icon-wa {
  background: #25D366 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-li {
  background: #0A66C2 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--mid);
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--mid);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:first-child {
  border-right: 2px solid var(--border);
}

.lang-btn:hover { color: var(--blue); }

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

body.dark-mode .lang-switcher { border-color: #3A3A3C; }
body.dark-mode .lang-btn { color: #A0A0A8; }
body.dark-mode .lang-btn:first-child { border-right-color: #3A3A3C; }
body.dark-mode .lang-btn.active { background: var(--blue); color: #fff; }

/* =========================================
   DARK MODE TOGGLE
   ========================================= */
.logo-dark { display: none; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  color: var(--mid);
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.theme-toggle-knob {
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 50%;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.toggle-icon { flex-shrink: 0; }
.icon-moon { opacity: 0.4; }
.icon-sun { opacity: 1; }

/* =========================================
   DARK MODE
   ========================================= */
body.dark-mode {
  background: #1C1C1E;
  color: #F5F5F7;
  --dark: #F5F5F7;
  --mid: #A0A0A8;
  --light: #252527;
  --border: #3A3A3C;
  --white: #1C1C1E;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

body.dark-mode .logo-light { display: none; }
body.dark-mode .logo-dark  { display: block; }

body.dark-mode .theme-toggle {
  background: #2C2C2E;
  border-color: #3A3A3C;
  color: #A0A0A8;
}

body.dark-mode .icon-moon { opacity: 1; }
body.dark-mode .icon-sun  { opacity: 0.4; }

body.dark-mode .header {
  background: rgba(28,28,30,0.97);
}

body.dark-mode .nav-links {
  background: #1C1C1E;
  border-color: #3A3A3C;
}

body.dark-mode .nav-links a { color: #A0A0A8; }
body.dark-mode .nav-toggle span { background: #F5F5F7; }

body.dark-mode .hero { background: #1C1C1E; }
body.dark-mode .hero h1 { color: #F5F5F7; }
body.dark-mode .hero-sub { color: #A0A0A8; }

body.dark-mode .section-header h2 { color: #F5F5F7; }
body.dark-mode .section-header p  { color: #A0A0A8; }

body.dark-mode .service-card {
  background: #2C2C2E;
  border-color: #3A3A3C;
}
body.dark-mode .service-card h3 { color: #F5F5F7; }
body.dark-mode .service-card p  { color: #A0A0A8; }

body.dark-mode .over-content h2  { color: #F5F5F7; }
body.dark-mode .over-content p   { color: #A0A0A8; }
body.dark-mode .over-list li     { color: #A0A0A8; }

body.dark-mode .cert-item {
  background: #2C2C2E;
  border-color: #3A3A3C;
}

body.dark-mode .footer {
  background: #1C1C1E;
  border-color: #3A3A3C;
}
body.dark-mode .footer-copy { color: #A0A0A8; }

body.dark-mode .btn-outline {
  color: var(--blue);
  border-color: var(--blue);
}

/* nav-controls-mobile: alleen zichtbaar in mobiel menu */
.nav-links li.nav-controls-mobile {
  display: none;
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .section {
    padding: 60px 0;
  }

  .over-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .over-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stat {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 0 24px;
    padding-bottom: 0;
    align-items: center;
  }

  .stat:last-child { border-right: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Tablet breakpoint — iPad-formaten */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .over-card {
    padding: 36px 28px;
  }

  .hero-content {
    padding: 72px 24px;
  }
}

@media (max-width: 680px) {
  /* Navigatie */
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Desktop nav-controls verbergen, mobiele versie tonen */
  .nav > .lang-switcher,
  .nav > .theme-toggle {
    display: none;
  }

  .nav-links li.nav-controls-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }

  /* Hero */
  .hero-content { padding: 40px 24px; }
  .hero-bg { display: none; }
  .hero-sub { font-size: 16px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 36px; }

  /* Service cards */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }

  /* Over mij */
  .over-card { padding: 28px 20px; }
  .stat-num { font-size: 36px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Certs */
  .certs-grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .over-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 0 0 24px;
    align-items: flex-start;
  }

  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}
