/* =============================================
   Scarabee – base stylesheet
   Matches the original scarabee.plantyn.com look
   ============================================= */

/* --- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #404040;
    background: #fff;
    border-top: 36px solid #476890; /* blauwe balk bovenaan */
}

a { color: #294a70; text-decoration: none; }
a:hover { color: #ffab1f; }

ul { list-style: none; }

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

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal;
}

/* --- Layout --------------------------------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

#page { background: #fff; }

/* --- Site Header ---------------------------- */
.site-header {
    background: #fff;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.custom-logo-link { display: block; flex-shrink: 0; }

.custom-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.site-title-wrap { line-height: 1.2; }

.site-title {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #294a70;
    margin: 0;
}

.site-title a { color: #294a70; }
.site-title a:hover { color: #ffab1f; }

.site-description {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #666;
    margin: 6px 0 0;
}

/* Header search */
.header-search { flex-shrink: 0; }

.header-search .search-form {
    display: flex;
    gap: 0;
}

.header-search .search-field {
    padding: 10px 18px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 22px 0 0 22px;
    font-size: 0.9rem;
    color: #666;
    width: 262px;
    outline: none;
}

.header-search .search-field:focus { border-color: #294a70; }

.header-search .search-submit {
    padding: 10px 15px;
    background: #294a70;
    color: #fff;
    border: 1px solid #294a70;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.header-search .search-submit:hover { background: #15305b; }

/* --- Main Navigation ------------------------ */
#main-nav {
    background: #294a70;
    border-bottom: 4px solid #f5a623;
    position: relative;
    z-index: 100;
}

.main-navigation { position: relative; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px 16px;
    cursor: pointer;
}

#primary-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#primary-menu > li { position: relative; border-right: 1px solid #fff; }
#primary-menu > li:first-child { border-left: 1px solid #fff; }

#primary-menu > li > a {
    display: block;
    color: #fff;
    padding: 10px 25px;
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s;
}

#primary-menu > li > a:hover,
#primary-menu > li:hover > a {
    background: #15305b;
    color: #fff;
}

#primary-menu > li.current-menu-item > a {
    background: #f5a623;
    color: #fff;
}

/* Dropdown */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #294a70;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 200;
}

.menu-item-has-children:hover .sub-menu { display: block; }

.sub-menu li a {
    display: block;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.88rem;
    border-top: 1px solid #3a5a80;
    transition: background 0.2s;
}

.sub-menu li a:hover,
.sub-menu li.current-menu-item > a { background: #f5a623; color: #fff; }

/* Dropdown caret indicator */
.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
}

/* --- Site Content --------------------------- */
.site-content {
    padding: 30px 0;
}

.site-content .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Main column */
#primary {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.widget-area {
    flex: 0 0 260px;
}

/* --- Article / Entry ------------------------ */
.entry-header { margin-bottom: 16px; }

.entry-title {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #294a70;
}

.entry-content { font-size: 16px; line-height: 1.5; color: #666; }

.entry-content strong { color: #555; }

.entry-content p { margin-bottom: 15px; }

.entry-content h2,
.entry-content h3 {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-weight: 600;
    color: #294a70;
    line-height: 1.3;
    margin: 1.2em 0 0.5em;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }

.entry-content ul { list-style: disc; margin: 0 0 1em 1.5em; }
.entry-content li { margin-bottom: 0.4em; }

.content-figure { margin: 0 0 1em; text-align: center; }
.content-figure img { margin: 0 auto; }

/* Zoekresultaten */
.search-result { margin-bottom: 28px; }

.search-result-title {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-result p { color: #666; font-size: 0.9rem; }
.search-result mark { background: #ffe9b8; color: inherit; padding: 0 1px; }
.search-result .read-more { color: #000; }
.search-result .read-more:hover { color: #ffab1f; }

/* Winkel (virtuele shop, gesloten) */
.notice-virtual {
    display: inline-block;
    margin: 10px 0 0 44px;
    padding: 8px 12px;
    border: 2px solid #e00;
    color: #e00;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    letter-spacing: 0.05em;
}

.shop-closed {
    max-width: 450px;
    margin: 100px auto 80px;
    padding: 40px 30px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.shop-closed p {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
}

.entry-content img { margin: 0; }

/* Homepage: afbeelding vult de kolom (bronbestand is 1024px breed) */
.home .entry-content img { width: 100%; max-width: 1024px; }

/* --- Widgets -------------------------------- */
.widget {
    margin-bottom: 20px;
}

.widget .search-form {
    display: flex;
    gap: 0;
}

.widget .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 22px 0 0 22px;
    font-size: 0.88rem;
    color: #666;
    outline: none;
}

.widget .search-field:focus { border-color: #294a70; }

.widget .search-submit {
    padding: 10px 15px;
    background: #294a70;
    color: #fff;
    border: 1px solid #294a70;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s;
}

.widget .search-submit:hover { background: #15305b; }

/* --- Footer --------------------------------- */
.site-footer {
    background: #15305b;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a { color: #ffab1f; }
.site-footer a:hover { color: #fff; }

/* --- Tables --------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1em 0;
}

.data-table td,
.data-table th {
    border: 1px solid #555;
    padding: 8px 12px;
    vertical-align: middle;
    text-align: center;
    color: #555;
}

/* --- Responsive ----------------------------- */
@media (max-width: 900px) {
    .site-content .container { flex-direction: column; }
    .widget-area { flex: 1; width: 100%; }
}

@media (max-width: 700px) {
    .header-inner { flex-wrap: wrap; }
    .header-search { width: 100%; }
    .header-search .search-field { width: 100%; flex: 1; }

    .menu-toggle { display: block; }

    #primary-menu {
        display: none;
        flex-direction: column;
    }

    #primary-menu.is-open { display: flex; }

    #primary-menu > li,
    #primary-menu > li:first-child { border-left: none; border-right: none; }
    #primary-menu > li > a { padding: 10px 16px; border-top: 1px solid #3a5a80; }

    .sub-menu { position: static; box-shadow: none; }
    .menu-item-has-children:hover .sub-menu { display: none; }
    .menu-item-has-children.is-open .sub-menu { display: block; }
}
