/* ==========================================================
   assets/css/layout.css – gedeelde opmaak voor header, menu,
   footer en cookiebanner. Wordt op ELKE pagina geladen, zodat
   alles overal hetzelfde is. Pas het hier aan, niet per pagina.
   ========================================================== */


header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    white-space: nowrap;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2563eb;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.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);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu nav {
    padding: 1rem 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: #f8fafc;
    color: #2563eb;
    padding-left: 2rem;
}

/* actieve menu-item */
.nav-links a.active, .mobile-menu a.active { color: #2563eb; font-weight: 600; }
.nav-links a.nav-cta { background: #2563eb; color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-links a.nav-cta:hover { background: #1d4ed8; color: #fff; }


footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
}
.footer-section li { margin-bottom: .35rem; }
.footer-bottom p { font-size: .9rem; }
.footer-bottom a { color: #94a3b8; }

/* ===== Cookiebanner (toestemming voor Google Ads-meting) ===== */
.cc-cookie {
    position: fixed; bottom: 20px; right: 20px; left: auto; max-width: 420px; z-index: 9999;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 1.25rem; display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cc-cookie.show { display: block; }
.cc-cookie h3 { font-size: 1rem; color: #1e293b; margin: 0 0 .5rem; }
.cc-cookie p { font-size: .875rem; color: #64748b; line-height: 1.5; margin: 0 0 1rem; }
.cc-cookie p a { color: #2563eb; }
.cc-cookie-buttons { display: flex; gap: .5rem; }
.cc-cookie-buttons button {
    flex: 1; padding: .65rem 1rem; border-radius: 8px; font-weight: 600; font-size: .875rem; cursor: pointer;
    border: 2px solid #2563eb;
}
.cc-cookie-accept { background: #2563eb; color: #fff; }
.cc-cookie-accept:hover { background: #1d4ed8; }
.cc-cookie-decline { background: #fff; color: #2563eb; }
.cc-cookie-decline:hover { background: #eff6ff; }
.cc-cookie-settings-link { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; line-height: inherit; text-decoration: none; padding: 0; }
.footer-section .cc-cookie-settings-link { color: #94a3b8; font-size: inherit; transition: color 0.3s ease; }
.footer-section .cc-cookie-settings-link:hover { color: #60a5fa; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
}
@media (max-width: 768px) {
    .logo { font-size: 1.4rem; gap: .5rem; }
    .logo-image { height: 35px; }
}
@media (max-width: 480px) {
    .logo-text { display: none; }
    .logo-image { height: 40px; }
    .cc-cookie { bottom: 10px; right: 10px; left: 10px; max-width: none; padding: 1rem; }
}

/* ===== Logo (nov 2026): beeldmerk + tekst in één afbeelding ===== */
header .logo { gap: 0; }
header .logo picture { display: block; line-height: 0; }
header .logo .logo-image { height: 54px; width: auto; }
header { padding: .7rem 0; }
@media (max-width: 1100px) { header .logo .logo-image { height: 40px; } }
@media (max-width: 480px)  { header .logo .logo-image { height: 40px; width: 40px; } }

/* Uitklapmenu bij Blog (categorieën) */
.nav-links .nav-dd { position: relative; }
.nav-dd-caret { font-size: .7em; color: #94a3b8; margin-left: .1rem; }
.nav-dd-menu { list-style: none; position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 220px; margin: 0; padding: .45rem;
               background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.12);
               opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 200; }
.nav-dd-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 2px); }
.nav-dd-menu li { display: block; }
.nav-dd-menu a { display: block; padding: .5rem .75rem !important; border-radius: 8px; white-space: nowrap; font-size: .92rem; }
.nav-dd-menu a::after { display: none !important; }
.nav-dd-menu a:hover { background: #f1f5f9; }
.nav-dd-menu li:first-child a { color: #64748b; font-size: .85rem; }
.mobile-menu .mobile-sub { list-style: none; padding: 0 0 .3rem 1rem; margin: 0; }
.mobile-menu .mobile-sub a { font-size: .92rem; color: #64748b; padding-top: .35rem; padding-bottom: .35rem; }

/* Disclaimer onderaan elke pagina: kleiner en rustiger dan de copyrightregel */
.footer-bottom .footer-disclaimer { font-size: .76rem; line-height: 1.55; color: #94a3b8; max-width: 780px; margin: .5rem auto 0; opacity: .85; }
.footer-bottom .footer-disclaimer a { color: #cbd5e1; text-decoration: underline; }
