/*
Theme Name: TopSafety
Theme URI: https://topsafety.nl
Description: Professioneel onepager thema voor TopSafety Consultancy
Version: 1.0.0
Author: TopSafety Consultancy
*/

/* =============================================
   RESET & BASIS
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blauw:      #0f2540;
  --middenblauw:#1a3a5c;
  --accent:     #5bb8f5;
  --wit:        #ffffff;
  --lichtgrijs: #f5f7fa;
  --tekstgrijs: #5a6a7a;
  --rand:       #e2e8f0;
  --donker:     #2d3748;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: var(--donker);
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NAVIGATIE
   ============================================= */
.ts-nav {
  background: var(--blauw);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ts-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ts-logo a,
.ts-logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ts-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--middenblauw);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-logo-icon svg { width: 20px; height: 20px; }

.ts-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ts-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Logo afbeelding — altijd netjes in de balk */
.ts-logo img,
.ts-logo a img {
  height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}

.ts-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.ts-menu a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.ts-menu a:hover { color: var(--accent); }

.ts-nav-cta {
  background: var(--accent);
  color: var(--blauw) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 6px;
  transition: background 0.2s;
}

.ts-nav-cta:hover { background: #4aaee3; }

/* Hamburger mobiel */
.ts-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.ts-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#home {
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 60%, #1e5073 100%);
  padding: 80px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content { flex: 0 0 auto; max-width: 520px; }

.hero-cards-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

#home h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
}

#home h1 .accent { color: var(--accent); }

#home .hero-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
  background: var(--accent);
  color: var(--blauw);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover { background: #4aaee3; }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }

.hero-stat {
  border-left: 2px solid rgba(91,184,245,0.4);
  padding-left: 14px;
}

/* Verberg stat-blokje automatisch als beide spans leeg zijn */
.hero-stat:has(.hero-stat-num:empty) {
  display: none;
}

.hero-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px 140px;
  gap: 14px;
  width: 680px;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(91,184,245,0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-card-body { display: flex; flex-direction: column; }

.hero-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.hero-card-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* =============================================
   SECTIES ALGEMEEN
   ============================================= */
.ts-section { padding: 72px 5%; }
.ts-section-alt { background: var(--lichtgrijs); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--middenblauw);
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--tekstgrijs);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

/* =============================================
   DIENSTEN
   ============================================= */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dienst-kaart {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.dienst-kaart:hover {
  border-color: var(--middenblauw);
  transform: translateY(-3px);
}

.dienst-icoon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dienst-kaart h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.dienst-kaart p {
  font-size: 14px;
  color: var(--tekstgrijs);
  line-height: 1.65;
}

.dienst-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* =============================================
   WAAROM
   ============================================= */
.waarom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.usp-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 20px;
}

.usp-icoon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  background: #e8f0f8;
  color: var(--middenblauw);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.usp-item p {
  font-size: 13px;
  color: var(--tekstgrijs);
  line-height: 1.6;
}

/* =============================================
   CTA BANNER
   ============================================= */
.ts-cta {
  background: var(--blauw);
  padding: 60px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.ts-cta h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.ts-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.65;
}

.ts-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 14px;
}

.contact-info p {
  font-size: 15px;
  color: var(--tekstgrijs);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--tekstgrijs);
  margin-bottom: 12px;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--middenblauw);
  flex-shrink: 0;
}

.cert-badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.cert-badge {
  background: #eef2f7;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--middenblauw);
}

/* Contactformulier */
.ts-form .form-rij { margin-bottom: 14px; }

.ts-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ts-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tekstgrijs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.ts-form input,
.ts-form textarea,
.ts-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: 14px;
  color: var(--donker);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.ts-form input:focus,
.ts-form textarea:focus,
.ts-form select:focus {
  outline: none;
  border-color: var(--middenblauw);
}

.ts-form textarea { height: 110px; resize: vertical; }

.ts-form .btn-verstuur {
  width: 100%;
  background: var(--middenblauw);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 4px;
}

.ts-form .btn-verstuur:hover { background: var(--blauw); }

/* =============================================
   FOOTER
   ============================================= */
.ts-footer {
  background: #0a1e35;
  padding: 48px 5% 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.ts-footer h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.ts-footer p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.8; }

.ts-footer ul { list-style: none; }

.ts-footer ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
  transition: color 0.2s;
}

.ts-footer ul li a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  #home { flex-direction: column; padding: 60px 5%; }
  .hero-cards-wrapper { display: none; }
  .diensten-grid { grid-template-columns: 1fr 1fr; }
  .waarom-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  #home h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
  .diensten-grid { grid-template-columns: 1fr; }
  .waarom-grid { grid-template-columns: 1fr; }
  .ts-cta { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .ts-menu { display: none; flex-direction: column; }
  .ts-menu.open { display: flex; }
  .ts-hamburger { display: flex; }
  .ts-nav { flex-wrap: wrap; height: auto; padding: 14px 5%; gap: 12px; }
}

.entry-content p { margin-bottom: 16px; }
.entry-content ol, .entry-content ul { margin-bottom: 16px; padding-left: 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: #1a202c; font-weight: 700; }


.entry-content p {
  margin-bottom: 16px;
  display: block;
}

.entry-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  display: block;
}

.entry-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  display: block;
}

.entry-content li {
  margin-bottom: 6px;
  display: list-item;
}

.entry-content strong {
  font-weight: 700;
  color: #1a202c;
}

.ts-footer a {
  color: rgba(255,255,255,0.45) !important;
}