/* ─────────────────────────────────────────────
   shared.css – Waseontstopping common styles
   Used by all service pages & projecten.html
───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.6;
  --nav-h: 72px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%; max-width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  height: var(--nav-h);
  z-index: 1000;
}

nav > * { margin: 0 5%; }

nav img { height: 62px; }

.nav-links { display: flex; align-items: center; }

nav .nav-links a {
  margin-left: 22px;
  text-decoration: none;
  color: #0c3c78;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}
nav .nav-links a:hover { color: #145dbe; }

.nav-cta {
  background: linear-gradient(135deg, #2440bf 0%, #0c3c78 100%) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  margin-left: 22px !important;
  font-size: 14px !important;
  box-shadow: 0 3px 12px rgba(36,64,191,0.3);
  transition: all 0.2s ease !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(36,64,191,0.45) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.hamburger span {
  width: 25px; height: 3px;
  background: #0c3c78;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;  /* bridge the visual gap so hover isn't lost */
  margin-bottom: -10px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 234px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 10;
  border-radius: 12px;
  padding: 8px 0;
  border: 1px solid rgba(0,0,0,0.06);
  top: 100%;
  left: 0;
  max-height: 80vh;
  overflow-y: auto;
}
.dropdown-content .dropdown-header {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dropdown-content a {
  color: #222;
  padding: 9px 16px;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.dropdown-content a:hover { background: #f0f5ff; color: #0c3c78; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown > a { cursor: pointer; }

/* ── Hero Small (service pages) ── */
.hero-small {
  margin-top: var(--nav-h);
  background-color: #0c3c78;
  background-size: cover;
  background-position: center center;
  color: white;
  padding: 90px 20px;
  text-align: center;
  position: relative;
}
.hero-small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,22,65,0.72) 0%, rgba(12,60,120,0.52) 50%, rgba(6,22,65,0.78) 100%);
  z-index: 1;
}
.hero-small h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.3px;
}
.hero-small p {
  font-size: clamp(15px, 2vw, 20px);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  line-height: 1.6;
}

/* ── Content sections ── */
.content-section {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 24px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.content-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.content-text h2 {
  color: #0c3c78;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.content-text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: #374151;
}
.content-text ul {
  margin: 16px 0;
  padding-left: 20px;
}
.content-text ul li {
  font-size: 17px;
  margin-bottom: 9px;
  color: #374151;
}

/* ── CTA Box ── */
.cta-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #dce6f8 100%);
  padding: 52px 40px;
  border-radius: 18px;
  text-align: center;
  margin: 64px 0;
  border: 1px solid rgba(36,64,191,0.12);
}
.cta-box h2 {
  color: #0c3c78;
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
  font-weight: 700;
}
.cta-box p {
  font-size: 18px;
  margin-bottom: 28px;
  color: #374151;
}
.cta-btn {
  background: linear-gradient(135deg, #2440bf 0%, #163696 100%);
  color: white;
  padding: 17px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 6px 22px rgba(12,54,150,0.38);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12,54,150,0.52);
  color: white;
}

/* ── Floating CTA ── */
.float-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all 0.25s ease;
  border: none;
}
.float-btn a svg {
  width: 22px; height: 22px;
  fill: white;
  flex-shrink: 0;
}
.float-wa {
  background: #25D366;
  box-shadow: 0 4px 18px rgba(37,211,102,0.42);
}
.float-wa:hover {
  background: #1fbe5c;
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(37,211,102,0.55);
  color: white;
}
.float-mail {
  background: linear-gradient(135deg, #2440bf 0%, #0c3c78 100%);
  box-shadow: 0 4px 18px rgba(36,64,191,0.42);
}
.float-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(36,64,191,0.55);
  color: white;
}

/* ── Footer ── */
footer {
  background: linear-gradient(160deg, #081e41 0%, #1e3c72 60%, #2a5298 100%);
  color: white;
  padding: 60px 20px 28px;
  margin-top: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h3 {
  font-size: 17px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #fff;
}
.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-section a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  background: rgba(255,255,255,0.1);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.25s;
  margin-bottom: 0;
}
.footer-social a:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.footer-bottom {
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* ── Info Cards (24/7 page) ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px 0;
}
.info-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: 0 6px 28px rgba(12,60,120,0.14); transform: translateY(-3px); }
.info-card .card-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.info-card h3 { color: #0c3c78; font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.info-card p { font-size: 16px; line-height: 1.7; color: #374151; }

/* ── Emergency Box (24/7 page) ── */
.emergency-box {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: white;
  padding: 56px 40px;
  border-radius: 18px;
  text-align: center;
  margin: 64px 0;
  box-shadow: 0 8px 36px rgba(185,28,28,0.32);
}
.emergency-box h2 { color: white; font-size: clamp(26px,4vw,38px); margin-bottom: 16px; font-weight: 700; }
.emergency-box p { font-size: 19px; margin-bottom: 30px; color: rgba(255,255,255,0.92); }
.emergency-box .cta-btn {
  background: white;
  color: #dc2626;
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}
.emergency-box .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); color: #dc2626; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav > * { margin: 0 4%; }
  nav .nav-links a { margin-left: 14px; font-size: 14px; }
}

@media (max-width: 768px) {
  body { --nav-h: 60px; }
  nav { height: 60px; }
  nav > * { margin: 0 4%; }
  nav img { height: 44px; }
  .hamburger { display: flex; }
  .nav-cta { display: none !important; }

  nav .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 72%; max-width: 300px;
    height: 100vh; height: 100dvh;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 28px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }
  nav .nav-links.active { right: 0; }
  nav .nav-links a { margin: 11px 0; margin-left: 0; font-size: 16px; width: 100%; display: block; }

  .dropdown { width: 100%; display: block; }
  .dropdown-content {
    position: static; display: none;
    box-shadow: none; background: transparent; border: none;
    padding-left: 12px; margin-top: 6px;
  }
  .dropdown.active .dropdown-content { display: block; }
  .dropdown > a::after { content: ' ▼'; font-size: 11px; margin-left: 4px; }
  .dropdown.active > a::after { content: ' ▲'; }

  .hero-small { padding: 60px 20px; }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .content-grid img { height: 280px; }
  .content-text h2 { font-size: 22px; }
  .content-text p, .content-text ul li { font-size: 16px; }

  .cta-box { padding: 32px 20px; }
  .cta-box h2 { font-size: 24px; }
  .cta-box p { font-size: 16px; }
  .cta-btn { font-size: 16px; padding: 14px 30px; }

  .footer-content { grid-template-columns: 1fr; gap: 26px; }

  .info-cards { grid-template-columns: 1fr; gap: 16px; margin: 36px 0; }
  .emergency-box { padding: 36px 20px; }
  .emergency-box p { font-size: 17px; }

  .float-btn a span { display: none; }
  .float-btn a { border-radius: 50%; padding: 14px; width: 54px; height: 54px; justify-content: center; gap: 0; }
}

@media (max-width: 480px) {
  .hero-small h1 { font-size: 24px; }
}
