/*
Theme Name: drechtelektronica - goed
Author: Jouw Naam
Version: 1.2
Description: Premium responsive topmenu met submenu’s, mobiel menu in huisstijl, modern en clean + CF7 styling.
*/

/* --- Algemene layout en reset --- */
html, body {
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    background: #fff;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #232a4e;
}
body {
    min-height: 100vh;
    position: relative;
}

/* ---- Topnavbar ---- */
.top-navbar {
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 3px 18px rgba(44,58,105,0.08);
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 110;
    min-height: 62px;
    padding: 0;
}
.top-navbar .navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 0 10px 0 18px;
    min-height: 62px;
}
.top-navbar .red-circle {
    margin-right: 10px;
    width: 28px;
    height: 28px;
    background: #b20033;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    flex-shrink: 0;
    position: relative;
    top: 1px;
}
.top-navbar .brand {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.03em;
    color: #232a4e;
    margin-right: 14px;
    font-family: Arial, sans-serif;
    user-select: none;
    white-space: nowrap;
}
.top-navbar .brand span {
    color: #b20033;
    font-style: italic;
    font-weight: 900;
}
.top-navbar .menu-lead {
    color: #b20033;
    font-weight: 600;
    font-size: 12px;
    margin-right: 7px;
    letter-spacing: 0.02em;
    opacity: .92;
    white-space: nowrap;
}
.top-navbar nav {
    flex: 1;
    min-width: 0;
}
.top-navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
}
.top-navbar ul li {
    position: relative;
    margin: 0 2px;
}
.top-navbar ul li a {
    display: block;
    padding: 7px 10px;
    border-radius: 11px;
    color: #30528b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    background: transparent;
    transition: background 0.17s, color 0.17s, box-shadow 0.14s;
}
.top-navbar ul li a:hover,
.top-navbar ul li.current-menu-item > a {
    background: #e6e7f2;
    color: #b20033;
    box-shadow: 0 1px 4px rgba(44,58,105,0.06);
}

/* Hamburger: altijd RECHTS in de flexbox */
.menu-toggle {
    display: none;
    margin-left: auto;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 0;
}
.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
    display: block;
    background: #b20033;
    height: 3.2px;
    width: 28px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}
.menu-toggle span:before,
.menu-toggle span:after {
    content: '';
    position: absolute;
}
.menu-toggle span:before {
    top: -9px;
}
.menu-toggle span:after {
    top: 9px;
}
.menu-toggle.open span {
    background: transparent;
}
.menu-toggle.open span:before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.open span:after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---- Desktop submenu dropdowns ---- */
@media (min-width: 771px) {
  .top-navbar ul li.menu-item-has-children {
    position: relative;
  }
  .top-navbar ul li.menu-item-has-children > a::after {
    content: '\25BE';
    font-size: 12px;
    margin-left: 7px;
    color: #30528b;
    opacity: 0.6;
    vertical-align: middle;
    transition: color .15s;
  }
  .top-navbar ul li.menu-item-has-children:hover > a::after {
    color: #b20033;
  }
  .top-navbar ul.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 190px;
    background: #fff;
    box-shadow: 0 6px 30px rgba(44,58,105,0.10);
    padding: 7px 0;
    border-radius: 0 0 14px 14px;
    z-index: 1000;
    margin: 0;
  }
  .top-navbar ul li.menu-item-has-children:hover > .sub-menu,
  .top-navbar ul li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
    animation: menufade .18s;
  }
  .top-navbar ul.sub-menu li {
    margin: 0;
    border: none;
  }
  .top-navbar ul.sub-menu li a {
    padding: 8px 20px;
    color: #30528b;
    font-size: 15px;
    font-weight: 400;
    background: none;
    border-radius: 8px;
    transition: background 0.14s, color 0.14s;
    white-space: nowrap;
  }
  .top-navbar ul.sub-menu li a:hover {
    background: #e6e7f2;
    color: #b20033;
  }
}

/* ---- Mobiel menu & submenu ---- */
@media (max-width: 770px) {
    .menu-toggle { display: flex !important; }
    .top-navbar .menu-lead { display: none !important; }

    .top-navbar nav {
        position: absolute;
        top: 52px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 8px 30px rgba(44,58,105,0.08);
        border-radius: 0 0 24px 24px;
        display: none;
        padding: 0;
        z-index: 999;
        border-top: 1px solid #ececec;
        transition: all 0.18s;
        box-sizing: border-box;
    }
    .top-navbar nav.open { display: block !important; }

    .top-navbar ul {
        flex-direction: column;
        align-items: stretch;
        width: 100vw;
        margin: 0;
        padding: 0;
        background: #fff;
    }
    .top-navbar ul li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #ececec;
    }
    .top-navbar ul li:last-child { border-bottom: none; }
    .top-navbar ul li a {
        width: 100%;
        display: block;
        padding: 17px 24px;
        font-size: 18px;
        font-weight: 700;
        color: #30528b;
        border-radius: 0;
        background: #fff;
        margin: 0;
        transition: background 0.14s, color 0.14s;
    }
    .top-navbar ul li a:hover,
    .top-navbar ul li.current-menu-item > a {
        background: #f7f7f7;
        color: #b20033;
    }
    .top-navbar ul li.menu-item-has-children > a::after {
        content: '\25BC';
        font-size: 16px;
        color: #888;
        margin-left: 12px;
        transition: transform 0.2s;
        display: inline-block;
    }
    .top-navbar ul li.menu-item-has-children.open > a::after {
        transform: rotate(-180deg);
    }
    .top-navbar ul.sub-menu {
        display: none;
        background: #fafafa;
        padding: 0;
    }
    .top-navbar ul li.open > .sub-menu {
        display: block;
    }
    .top-navbar ul.sub-menu li a {
        font-size: 16px;
        font-weight: 400;
        padding: 14px 38px;
        color: #232a4e;
        background: #fafafa;
        border-bottom: 1px solid #e7e7e7;
    }
}

/* Kleine details */
a { color: #30528b; text-decoration: none; }
a:hover { color: #b20033; text-decoration: underline; }

/* ---- Layout hoofdcontainer ---- */
.site-wrapper {
    position: relative;
    max-width: 1150px;
    min-height: 680px;
    margin: 44px auto 0 auto;
    background: transparent;
    border-radius: 48px;
    display: flex;
    flex-direction: row;
    z-index: 1;
    box-sizing: border-box;
}
.left-shape-block {
    width: 60%;
    min-width: 420px;
    background: transparent;
    position: relative;
    border-radius: 48px 0 0 48px;
    min-height: 680px;
    overflow: hidden;   /* blijft binnen border-radius */
    box-sizing: border-box;
}
.shape-bg-img {
    position: absolute;   /* blijft meeschalen */
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 48px 0 0 48px;
    display: block;
}
.site-slogan {
    position: absolute;
    left: 48px;
    bottom: 36px;
    color: #30528b;
    font-size: 22px;
    font-family: Arial, sans-serif;
    z-index: 2;
}
.site-slogan strong {
    color: #b20033;
    font-style: italic;
}
.right-content-block {
    width: 50%;
    min-width: 330px;
    background: #c0c2db;
    padding: 52px 54px 44px 44px;
    border-radius: 0 48px 48px 0;
    color: #232a4e;
    min-height: 680px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
}
.right-content-block h1, .right-content-block h2, .right-content-block h3 {
    color: #232a4e;
    margin-top: 0;
}
.right-content-block p {
    line-height: 1.48;
    font-size: 17px;
}
.footer-menu {
    width: 100%;
    padding: 0 32px 18px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    position: absolute;
    bottom: 14px; right: 54px;
    z-index: 10;
}
.footer-menu ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0; padding: 0;
}
.footer-menu ul li a { color: #30528b; }

/* --- Responsive stacking --- */
@media (max-width: 950px) {
    .site-wrapper { 
        flex-direction: column; 
        max-width: 98vw; 
        border-radius: 32px;
    }
    .left-shape-block, 
    .right-content-block { 
        width: 100%; 
        min-width: 0;
        min-height: auto;
    }
    .left-shape-block { border-radius: 32px 32px 0 0; }
    .shape-bg-img { border-radius: 32px 32px 0 0; }
    .right-content-block { 
        border-radius: 0 0 32px 32px;
        padding: 32px 16px 24px 16px; 
    }
    .footer-menu { 
        position: static; 
        justify-content: center; 
        padding-right: 0; 
    }
}

/* Animatie dropdown */
@keyframes menufade {
    from { opacity:0; transform:translateY(-16px);}
    to   { opacity:1; transform:translateY(0);}
}

/* Contact center blok */
.contact-center {
  font-size: 10px;
  line-height: 1.4;
}
.contact-center h1,
.contact-center .btn-contact {
  font-size: 10px;
}
.contact-center .btn-contact {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px 6px 0 0;
  background-color: #1f2f62;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.contact-center .btn-contact:hover {
  background-color: #005f87;
}
.contact-center .contact-details p {
  margin: 6px 0;
}

/* ---- Contact Form 7 Styling ---- */
.wpcf7 form {
    font-family: Arial, sans-serif;
    color: #232a4e;
    max-width: 100%;
    margin: 0 auto;
}
.wpcf7 form p {
    margin-bottom: 10px;
    font-size: 14px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.3;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* Contact Form 7 textarea vast formaat */
.wpcf7 textarea {
    min-height: 160px;   /* vaste hoogte */
    max-height: 160px;   /* laat het niet groeien */
    resize: none;        /* voorkomt dat gebruiker zelf kan slepen */
    overflow-y: auto;    /* verticale scrollbalk bij veel tekst */
border: 1px solid #ccc;
 border-radius: 8px;
box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
    padding: 8px 10px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #b20033;
    outline: none;
    box-shadow: 0 0 6px rgba(178,0,51,0.2);
}
.wpcf7 input[type="submit"] {
    background: #b20033;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover {
    background: #8e0029;
}
.wpcf7-not-valid-tip {
    color: #b20033;
    font-size: 12px;
    margin-top: 2px;
}
.wpcf7-response-output {
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
}
.wpcf7-response-output.wpcf7-validation-errors {
    background: #ffe6eb;
    border: 1px solid #b20033;
    color: #b20033;
}
.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #e6f7e9;
    border: 1px solid #3c763d;
    color: #3c763d;
}
/* 404 pagina layout */
/* ---- 404 pagina ---- */
/* 404 contentblok */
.error-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px;
  height: 100%;
  box-sizing: border-box;
}
.error-404 h1 {
  font-size: 4em;
  margin-bottom: 10px;
  color: #232a4e;
  font-weight: 900;
}
.error-404 h2 {
  color: #b20033;
  margin-bottom: 20px;
  font-size: 1.6em;
  font-weight: bold;
}
.error-404 p {
  color: #232a4e;
  font-size: 1.1em;
  margin-bottom: 28px;
}
.error-404 a {
  display: inline-block;
  background: #1f2f62;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background .3s ease;
}
.error-404 a:hover {
  background: #30528b;
}
.error-illustration img {
  width: 120px;
  opacity: 0.9;
  margin-top: 30px;
}
/* responsief */
@media (max-width: 950px) {
  .error-404 {
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }
  .error-illustration img {
    width: 90px;
  }
}
