/*
Theme Name: Lilyweb
Theme URI: https://lilyweb.nl
Author: Lilyweb
Author URI: https://lilyweb.nl
Description: Persoonlijk WordPress theme voor Lilyweb.
Version: 2.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lilyweb
*/

/* -----------------------------
   1. Basis reset & typografie
------------------------------ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

a {
    color: #A8D9E6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

/* -----------------------------
   2b. Grid systeem: container / row / col
------------------------------ */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row > [class*="col-"] {
    padding: 0 15px;
}

/* 12-koloms grid */
.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;      max-width: 25%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6  { flex: 0 0 50%;      max-width: 50%; }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9  { flex: 0 0 75%;      max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%;     max-width: 100%; }

/* Gelijke kolommen zonder vast aantal op te geven */
.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

/* Responsive: op mobiel alles onder elkaar */
@media (max-width: 768px) {
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* -----------------------------
   3. Header
------------------------------ */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

/* -----------------------------
   4. Navigatie / Navbar
------------------------------ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.site-branding-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-branding-link .site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

/* Logo-formaat: nooit groter dan dit, ongeacht origineel uploadformaat */
.site-branding-link img,
.custom-logo {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 240px;
    border-radius: 10px;
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu > li > a {
    display: inline-block;
    color: #333;
    font-weight: 500;
    padding: 10px 16px;
}

/* Laatste menu-item automatisch als contactknop stylen */
.main-navigation .nav-menu > li:last-child > a {
    background: #A8D9E6;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.main-navigation .nav-menu > li:last-child > a:hover {
    background: #B7E0EB;
    text-decoration: none;
}

/* Hamburger-knop: standaard verborgen op desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle-bar {
    display: block;
    height: 3px;
    width: 100%;
    background: #111;
    border-radius: 2px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* -----------------------------
   4b. Navbar responsive (mobiel)
------------------------------ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px 0;
    }

    .main-navigation .nav-menu > li:last-child > a {
        display: inline-block;
    }
}

/* -----------------------------
   5. Content
------------------------------ */
.site-main {
    padding: 0;
    min-height: 50vh;
}

/* -----------------------------
   5a. Knoppen (herbruikbaar)
------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: #A8D9E6;
    color: #fff !important;
}

.btn-primary:hover {
    background: #C7F2FF;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: #A8D9E6 !important;
    border: 2px solid #A8D9E6;
}

.btn-secondary:hover {
    background: #A8D9E6;
    color: #fff !important;
}

/* -----------------------------
   5b. Hero-sectie
------------------------------ */
.hero {
    background-color: #f7f7f7;
    padding: 90px 0;
    position: relative;
}

/* Alleen actief zodra er een uitgelichte afbeelding is ingesteld bij de homepage */
.hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.has-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero.has-bg-image .hero-title {
    color: #fff;
}

.hero.has-bg-image .hero-subtitle {
    color: #f0f0f0;
}

.hero-title {
    margin: 0 0 16px;
    font-size: 2.6rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.hero-subtitle {
    margin: 0 0 28px;
    font-size: 1.15rem;
    color: #555;
    max-width: 560px;
}

/* -----------------------------
   5c. Sectietitels (herbruikbaar)
------------------------------ */
.section-title {
    margin: 0 0 32px;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
}

/* -----------------------------
   5d. Diensten-sectie
------------------------------ */
.services {
    padding: 80px 0;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 32px 24px;
    height: 100%;
    margin-bottom: 24px;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: #111;
}

.service-card p {
    margin: 0;
    color: #555;
}

/* -----------------------------
   5e. Contact-sectie (homepage)
------------------------------ */
.contact-cta {
    background: #f7f7f7;
    padding: 80px 0;
}

.contact-cta p {
    color: #555;
    max-width: 560px;
    margin: 0 0 24px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .services,
    .contact-cta {
        padding: 50px 0;
    }
}

/* -----------------------------
   5f. Standaard pagina's (page.php)
------------------------------ */
.page-header {
    background: #f7f7f7;
    padding: 90px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 48px;
    position: relative;
}

/* Alleen actief zodra de pagina zelf een uitgelichte afbeelding heeft */
.page-header.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
}

.page-header.has-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header.has-bg-image .page-title {
    color: #fff;
}

.page-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
}

.page-featured-image {
    margin: -48px 0 48px;
}

.page-featured-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.page-body {
    padding-bottom: 80px;
}

/* Leesbare opmaak voor content die via de WordPress-editor is ingevoerd */
.entry-content {
    max-width: 820px;
    font-size: 1.05rem;
    color: #333;
}

.entry-content h2 {
    margin: 40px 0 16px;
    font-size: 1.6rem;
    color: #111;
}

.entry-content h3 {
    margin: 32px 0 14px;
    font-size: 1.3rem;
    color: #111;
}

.entry-content p {
    margin: 0 0 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid #A8D9E6;
    background: #f7f7f7;
    font-style: italic;
    color: #444;
}

.entry-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.entry-content a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-header {
        padding: 36px 0;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-featured-image {
        margin-top: 0;
    }
}

/* -----------------------------
   5g. Contactformulier
------------------------------ */
.contact-form {
    max-width: 480px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: #222;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A8D9E6;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Honeypot: onzichtbaar voor mensen, blijft wel in de DOM voor bots */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-message-success {
    background: #e6f4ea;
    color: #1e7a34;
    border: 1px solid #b7e0c3;
}

.form-message-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f3b8b4;
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
    }
}

/* -----------------------------
   5h. Locatie & contactgegevens (contactpagina)
------------------------------ */
.map-embed {
    margin: 0 0 28px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 320px;
}

.contact-details h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #111;
}

.contact-details p {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.6;
}

.contact-details a {
    color: #A8D9E6;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .map-embed iframe {
        height: 240px;
    }
}

/* -----------------------------
   5i. Blogberichten (single.php)
------------------------------ */
.post-categories {
    margin-bottom: 14px;
}

.post-category-badge {
    display: inline-block;
    background: #e8f0fb;
    color: #A8D9E6 !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    margin-right: 8px;
}

.post-category-badge:hover {
    background: #C7F2FF;
}

.post-meta {
    margin-top: 10px;
    color: #777;
    font-size: 0.9rem;
}

.post-meta-sep {
    margin: 0 8px;
}

.post-tags {
    margin: 32px 0;
}

.post-tag {
    display: inline-block;
    color: #A8D9E6;
    font-size: 0.9rem;
    margin-right: 14px;
    text-decoration: none;
}

.post-tag:hover {
    text-decoration: underline;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 24px 0;
    margin: 32px 0;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-navigation a {
    display: block;
    text-decoration: none;
}

.post-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #A8D9E6;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-nav-title {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.post-nav-title:hover {
    text-decoration: underline;
}

.post-sidebar {
    position: sticky;
    top: 20px;
}

.post-author-box {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.post-author-box img {
    border-radius: 50%;
    margin-bottom: 12px;
}

.post-author-box h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #111;
}

.post-author-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
    }

    .post-nav-next {
        text-align: left;
        margin-left: 0;
    }

    .post-sidebar {
        position: static;
        margin-top: 32px;
    }
}

/* -----------------------------
   5j. Blogoverzicht (home.php)
------------------------------ */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 32px);
}

.blog-card-image {
    display: block;
    line-height: 0;
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    margin: 6px 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #111;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #C7F2FF;
}

.blog-card-excerpt {
    margin: 12px 0;
    font-size: 0.92rem;
    color: #555;
    flex: 1;
}

.blog-card-excerpt p {
    margin: 0;
}

.blog-card-readmore {
    display: inline-block;
    color: #A8D9E6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
}

.blog-card-readmore:hover {
    text-decoration: underline;
}

.blog-pagination {
    margin: 24px 0 60px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.blog-pagination a {
    color: #A8D9E6;
    font-weight: 600;
    text-decoration: none;
}

.blog-pagination a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-pagination .nav-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* -----------------------------
   6. Footer
------------------------------ */
.footer-top {
    background-color: black;
    color: white !important;
    border-top: 1px solid #eee;
    padding: 48px 0;
}

/* Harde reset: voorkomt dat WordPress' eigen core-CSS (bijv. standaard
   ul/li-marges uit de block-library stylesheet) de vier kolommen
   onderling laat verschillen. Alles binnen de footer-top volgt vanaf hier
   uitsluitend onze eigen opmaak. */
.footer-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-top li {
    margin: 0;
    padding: 0;
}

.footer-top p {
    margin: 0 0 8px;
}

.footer-top p:last-child {
    margin-bottom: 0;
}

.footer-top h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
}

.footer-top,
.footer-top a {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
}

.footer-col {
    margin-bottom: 24px;
}

.footer-widget-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.footer-navigation .footer-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* -----------------------------
   6b. Social-icons in de footer
------------------------------ */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #A8D9E6;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.social-links a:hover {
    background: #C7F2FF;
    transform: translateY(-2px);
}

/* Handig voor social-icon links: zet ze naast elkaar i.p.v. onder elkaar */
.footer-widget a {
    display: inline-block;
    margin-right: 12px;
}

.footer-bottom {
    border-top: 1px solid #e2e2e2;
    padding: 18px 0;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom a {
    color: #777;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-top .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}