/* Automotive Consult - styles */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Roboto, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

a { color: #000066; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

/* ---------- Sticky top (header + nav) ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dcdcdc;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: #000066;
}
.brand img {
  height: 80px;
  width: auto;
  display: block;
}
/* Naam naast logo verbergen */
.brand span { display: none; }

/* ---------- Language dropdown ---------- */
.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #555;
  height: 34px;
  line-height: 34px;
  border: 1px solid #dcdcdc;
  background: #fff;
  cursor: pointer;
}
.lang-switch a {
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  padding: 0 14px;
  line-height: 32px;
}
.lang-switch a.active {
  color: #000066;
  font-weight: 700;
  padding-right: 26px;
  position: relative;
}
.lang-switch a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000066;
  transform: translateY(-50%);
}
.lang-switch span { display: none; } /* verberg | separators */

/* Niet-actieve talen: uit de normale flow gehaald, in absolute dropdown */
.lang-switch a:not(.active) {
  display: none;
  position: absolute;
  left: -1px;
  right: -1px;
  top: 33px;
  background: #fff;
  border: 1px solid #000066;
  border-top: 1px solid #dcdcdc;
  line-height: 32px;
  padding: 0 14px;
  z-index: 20;
}
/* Tonen in open / hover / focus */
.lang-switch.open a:not(.active),
.lang-switch:hover a:not(.active),
.lang-switch:focus-within a:not(.active) { display: block; }

/* Elke volgende niet-actieve link 33px lager — onafhankelijk van positie actieve */
.lang-switch a:not(.active) ~ a:not(.active) { top: 66px; }
.lang-switch a:not(.active) ~ a:not(.active) ~ a:not(.active) { top: 99px; }

.lang-switch.open,
.lang-switch:hover,
.lang-switch:focus-within { border-color: #000066; }

/* Scheidingslijn tussen actieve taal en dropdown als hij open is */
.lang-switch.open a.active,
.lang-switch:hover a.active,
.lang-switch:focus-within a.active {
  border-bottom: 1px solid #dcdcdc;
  line-height: 31px;
}

.lang-switch a:not(.active):hover { background: #f0f0f3; text-decoration: none; }

/* ---------- Navigation ---------- */
.site-nav {
  background: #000066;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  margin: 8px 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
  background: #00004d;
  border-bottom-color: #ffffff;
  text-decoration: none;
}

.nav-list .has-sub > a::after {
  content: " \25BE";
  font-size: 10px;
}
.nav-list .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #00004d;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  display: none;
  z-index: 10;
}
.nav-list .submenu a {
  padding: 10px 18px;
  border-bottom: 1px solid #1a1a7a;
}
.nav-list .has-sub:hover > .submenu,
.nav-list .has-sub:focus-within > .submenu { display: block; }

/* ---------- Layout ---------- */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-title {
  color: #000066;
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 700;
}
.page-title-bar {
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 12px;
  margin-bottom: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.content p { margin: 0 0 1em; }
.content ul { padding-left: 1.2em; }
.content li { margin-bottom: 4px; }
.content h2 {
  color: #000066;
  font-size: 20px;
  margin: 28px 0 8px;
}
.content strong, .content b { color: #1a1a1a; }

/* ---------- Home ---------- */
.hero {
  background: #f5f5f7;
  border: 1px solid #dcdcdc;
  padding: 36px 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  color: #000066;
  font-size: 30px;
  margin: 0 0 12px;
  line-height: 1.25;
}
.hero-text p { margin: 0 0 12px; font-size: 17px; }
.hero-img { flex: 0 0 auto; }
.hero-img img { display: block; max-width: 260px; height: auto; }

.contact-cta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #dcdcdc;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.card {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 22px 22px 60px;
  display: block;
  color: #1a1a1a;
  position: relative;
}
.card:hover { border-color: #000066; text-decoration: none; }
.card h3 {
  margin: 0 0 10px;
  color: #000066;
  font-size: 20px;
}
.card p { margin: 0; font-size: 14px; color: #555; }

/* "Meer info" knop per taal via CSS */
.card::after {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: inline-block;
  padding: 8px 16px;
  background: #000066;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 3px;
  content: "More info \2192";
}
html[lang="nl"] .card::after { content: "Meer info \2192"; }
html[lang="fr"] .card::after { content: "Plus d'infos \2192"; }
html[lang="en"] .card::after { content: "More info \2192"; }
html[lang="de"] .card::after { content: "Mehr erfahren \2192"; }
.card:hover::after { background: #00004d; }

.cta {
  display: inline-block;
  background: #000066;
  color: #fff;
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 3px;
}
.cta:hover { background: #00004d; text-decoration: none; color: #fff; }

/* ---------- Contact ---------- */
.contact-box {
  background: #f5f5f7;
  border: 1px solid #dcdcdc;
  padding: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-box img { display: none; }
.contact-details { flex: 1 1 280px; color: #000066; }
.contact-details p { margin: 4px 0; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: #f0f0f3;
  border-top: 1px solid #dcdcdc;
  padding: 20px 24px;
  font-size: 13px;
  color: #555;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #000066; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .brand img { height: 56px; }
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    flex-direction: column;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 0; border-bottom: 1px solid #1a1a7a; }
  .nav-list .submenu {
    position: static;
    display: block;
    background: transparent;
    padding-left: 16px;
  }
  .nav-list .submenu a { border-bottom: none; padding: 8px 0; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-img img { max-width: 200px; }
  .hero-text h1 { font-size: 24px; }
  .page-title { font-size: 22px; }
  .header-inner {
    flex-direction: row;
    align-items: center;
  }
}
