/*
Theme Name: MyM Blocks
Theme URI: https://www.my-m.eu
Author: Tizio B.V.
Author URI: https://www.tizio.eu
Description: Block editor variant of MyM theme. All page content is entered via the WordPress block editor (Gutenberg). Templates provide header, footer, sidebar logic, and page wrapper with body classes. Page-specific styling targets standard WordPress block classes scoped to body classes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://www.my-m.eu
Text Domain: mym-blocks
*/

/* ============================================
   Self-hosted Inter font
   ============================================ */

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-semibold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f0f1f3;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: #00a4e4;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #003768;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: #00414a;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.9375rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

/* Preformatted / model source code listing */
.model-source {
    display: block;
    margin: 1rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #eef6fc;
    color: #1a1a1a;
    border: 1px solid #cfe4f2;
    border-radius: 8px;
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    tab-size: 4;
    -moz-tab-size: 4;
}

/* ============================================
   Layout
   ============================================ */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: 900px;
}

.content-area {
    flex: 1;
    padding-top: 80px;
}

.content-area--with-bg {
    background: #e8ecf1 url('images/bg_alles_geenrep.jpg') center top / cover no-repeat;
    background-blend-mode: overlay;
    background-attachment: fixed;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 55, 104, 0.08);
    height: 80px;
    transition: box-shadow 0.3s ease;
}

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

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
}

/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 0.625rem 1rem;
    color: #003768;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #00a4e4;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a:focus::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current-menu-parent > a::after,
.main-nav > ul > li.current-page-ancestor > a::after {
    transform: scaleX(1);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-parent > a,
.main-nav > ul > li.current-page-ancestor > a {
    color: #00a4e4;
}

/* Dropdown */

.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 55, 104, 0.12);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #00a4e4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.main-nav > ul > li:hover > ul,
.main-nav > ul > li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul li {
    border-bottom: 1px solid #f0f0f0;
}

.main-nav ul ul li:last-child {
    border-bottom: none;
}

.main-nav ul ul a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.main-nav ul ul a:hover,
.main-nav ul ul a:focus {
    background: #f5f7fa;
    color: #00a4e4;
    padding-left: 1.5rem;
}

/* Hamburger */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #003768;
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Page Header (Sub-pages)
   ============================================ */

.page-header {
    background: #003768 url('images/bg_alles_geenrep.jpg') center bottom / cover no-repeat;
    color: #fff;
    padding: 3.5rem 0 3rem;
    position: relative;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 55, 104, 0.3);
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a4e4, #c1d72e);
}

.page-header--has-image {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 3.5rem 0 3rem;
}

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

.page-header h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

/* ============================================
   Home Content Layout (with sidebar)
   ============================================ */

.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.home-layout--full {
    grid-template-columns: 1fr;
}

/* ============================================
   General Block Enhancements
   ============================================ */

/* Headings in content */
.entry-content .wp-block-heading {
    color: #003768;
    font-weight: 500;
    line-height: 1.3;
}

.entry-content h2.wp-block-heading {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecf1;
}

.entry-content h2.wp-block-heading:first-child {
    margin-top: 0;
}

.entry-content h3.wp-block-heading {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #004a8c;
}

/* A heading that opens a group/card shouldn't add top margin on top of the
   card's own padding. */
.entry-content .wp-block-group > .wp-block-heading:first-child,
.entry-content .wp-block-column > .wp-block-heading:first-child {
    margin-top: 0;
}

/* Paragraphs — force left align, override block editor centering */
.entry-content .wp-block-paragraph,
.entry-content .has-text-align-center {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #444;
    text-align: left !important;
}

/* Headings — force left align */
.entry-content .wp-block-heading,
.entry-content h2.has-text-align-center,
.entry-content h3.has-text-align-center,
.entry-content h4.has-text-align-center {
    text-align: left !important;
}

/* Exception: keep centered inside cover blocks (hero) */
.wp-block-cover .wp-block-heading,
.wp-block-cover .wp-block-paragraph,
.wp-block-cover .has-text-align-center {
    text-align: center !important;
}

/* Lists */
.entry-content .wp-block-list {
    margin: 0 0 1.5rem 1.25rem;
}

.entry-content .wp-block-list li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
    color: #444;
}

.entry-content ul.wp-block-list {
    list-style: none;
    margin-left: 0;
}

.entry-content ul.wp-block-list > li {
    padding-left: 1.5rem;
    position: relative;
}

.entry-content ul.wp-block-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00a4e4;
}

.entry-content ol.wp-block-list {
    list-style: decimal;
}

/* Buttons */
.wp-block-buttons {
    margin-bottom: 1.5rem;
}

.wp-block-button__link {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 55, 104, 0.15);
}

.wp-block-button__link.has-secondary-background-color {
    border-color: #c1d72e;
}

.wp-block-button__link.has-secondary-background-color:hover {
    background: #d4e84a !important;
    border-color: #d4e84a;
}

.wp-block-button__link.has-primary-accent-background-color {
    border-color: #00a4e4;
}

.wp-block-button__link.has-primary-accent-background-color:hover {
    background: #008cc4 !important;
    border-color: #008cc4;
}

.is-style-outline .wp-block-button__link {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid #fff;
    backdrop-filter: blur(4px);
}

.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Separator */
.wp-block-separator {
    border: none;
    border-top: 2px solid #e8ecf1;
    margin: 2.5rem 0;
}

.wp-block-separator.is-style-wide {
    border-top-width: 3px;
}

.wp-block-separator.has-primary-accent-background-color {
    border-top-color: #00a4e4;
}

/* Images */
.entry-content .wp-block-image img {
    border-radius: 8px;
}

.entry-content .wp-block-image figcaption {
    font-size: 0.8125rem;
    color: #888;
    text-align: center;
    padding-top: 0.75rem;
}

/* Image scale utilities — size relative to the image's own natural size.
   Add via the block's Advanced > Additional CSS class(es) field, or as an
   image class. Works whether the class lands on the figure or the <img>. */
.img-25 img,
img.img-25 {
    max-width: 25%;
    height: auto;
}

.img-half img,
img.img-half {
    max-width: 50%;
    height: auto;
}

.img-75 img,
img.img-75 {
    max-width: 75%;
    height: auto;
}

/* Center a scaled image */
.img-center img,
img.img-center {
    display: block;
    margin-inline: auto;
}

/* Cover */
.wp-block-cover {
    border-radius: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Quote */
.wp-block-quote {
    border-left: 4px solid #00a4e4;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 55, 104, 0.06);
}

.wp-block-quote p {
    color: #444;
    font-style: italic;
    font-size: 1.0625rem;
}

.wp-block-quote cite {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.75rem;
    font-style: normal;
}

/* Table */
.wp-block-table {
    margin: 2rem 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
}

.wp-block-table th {
    background: #003768;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wp-block-table tr:nth-child(even) td {
    background: #f9fafb;
}

/* Group block */
.wp-block-group {
    margin-bottom: 1.5rem;
}

/* Columns block */
.wp-block-columns {
    margin-bottom: 1.25rem;
}

/* Keep an empty column's space in the layout, just don't render its content.
   Headings should never break mid-word if a column ends up narrow. */
.wp-block-column:empty {
    visibility: hidden;
}

.entry-content .wp-block-heading {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

/* Details block (FAQ accordion) */
.wp-block-details {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 55, 104, 0.06);
    border: 1px solid #dde4ec;
    overflow: hidden;
}

.wp-block-details summary {
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    color: #003768;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: "+";
    font-size: 1.25rem;
    color: #00a4e4;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
    content: "\2013";
}

.wp-block-details summary:hover {
    background: #f5f7fa;
}

.wp-block-details > *:not(summary) {
    padding: 0 1.5rem 1.25rem;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   Template: FAQ accordion
   ============================================ */

.faq-search {
    margin-bottom: 1rem;
}

.faq-search__input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #333;
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') 0.75rem center no-repeat;
    transition: border-color 0.2s ease;
}

.faq-search__input:focus {
    outline: none;
    border-color: #00a4e4;
}

.faq-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.faq-nav__item {
    display: inline-block;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #00414a;
    background: transparent;
    border: 1px solid #d3dbe4;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.faq-nav__item:hover {
    border-color: #00a4e4;
    color: #00a4e4;
}

.faq-nav__item.is-active {
    background: #00a4e4;
    border-color: #00a4e4;
    color: #fff;
}

.faq-list {
    margin-top: 0;
}

.faq-section {
    margin-top: 2.5rem;
}

.faq-section:first-child {
    margin-top: 0;
}

.faq-section-title {
    font-size: 1.125rem;
    color: #003768;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00a4e4;
    font-weight: 700;
    display: block;
}

/* Each Q&A is its own card */
.faq-entry {
    background: #fff;
    border: 1px solid #dde4ec;
    border-radius: 10px;
    margin-bottom: 0.625rem;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-entry:hover {
    border-color: #b9d9ec;
    box-shadow: 0 2px 10px rgba(0, 55, 104, 0.06);
}

.faq-entry[open] {
    border-color: #00a4e4;
    box-shadow: 0 4px 16px rgba(0, 55, 104, 0.08);
}

.faq-entry summary {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #003768;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.15s ease;
    list-style: none;
}

.faq-entry summary::-webkit-details-marker {
    display: none;
}

/* Chevron that rotates open — clear "expand" affordance */
.faq-entry summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.6rem;
    height: 0.6rem;
    margin-left: auto;
    border-right: 2px solid #00a4e4;
    border-bottom: 2px solid #00a4e4;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-entry[open] summary::after {
    transform: rotate(225deg);
}

.faq-entry summary:hover {
    color: #00a4e4;
}

/* Answer reads clearly as separate from the question */
.faq-entry__content {
    margin: 0 1.25rem 1.25rem;
    padding: 1rem 1.25rem;
    background: #f5f9fc;
    border-left: 3px solid #00a4e4;
    border-radius: 0 6px 6px 0;
    color: #444;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-entry__content > *:last-child {
    margin-bottom: 0;
}

.faq-entry.faq-hidden {
    display: none;
}

.faq-section.faq-hidden {
    display: none;
}

/* ============================================
   Template: Tips list
   ============================================ */

.tips-list {
    margin-top: 2rem;
}

.tip-entry {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 55, 104, 0.06);
    border: 1px solid #dde4ec;
}

.tip-entry__title {
    font-size: 1.125rem;
    color: #003768;
    margin-bottom: 0.5rem;
}

.tip-entry__content {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.tip-entry__content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Template: Demo Models list
   ============================================ */

.demo-models-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.demo-model-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 55, 104, 0.06);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 55, 104, 0.12);
    border-color: #00a4e4;
}

.demo-model-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.demo-model-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem;
}

.demo-model-card__title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6ebf1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #003768;
}

.demo-model-card__excerpt {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.demo-model-card__more {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: #00a4e4;
}

.demo-model-card:hover .demo-model-card__more {
    text-decoration: underline;
}

/* ============================================
   PAGE: Home (.page-home)
   ============================================ */

.page-home .content-area {
    padding-top: 80px;
}

/* ============================================
   Hero (hardcoded on homepage)
   ============================================ */

.hero {
    background: #003768 url('images/bg_alles_geenrep.jpg') center bottom / cover no-repeat;
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 5rem 2rem 4rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 55, 104, 0.55);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 300px;
    height: 400px;
    background: url('images/zijbeeld1.png') no-repeat left bottom;
    background-size: contain;
    opacity: 0.85;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #00a4e4;
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--hero-outline {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(4px);
}

.btn--hero-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 1024px) {
    .hero::after {
        width: 200px;
        height: 280px;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
        min-height: 360px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.0625rem;
    }

    .hero::after {
        display: none;
    }

    .demo-models-grid {
        grid-template-columns: 1fr;
    }
}


/* Section headings on home */
.page-home .entry-content > .wp-block-heading {
    margin-top: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #00a4e4;
}

.page-home .entry-content > .wp-block-heading + .wp-block-paragraph {
    margin-top: 1rem;
    max-width: 800px;
    color: #555;
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* Home content columns */
.page-home .entry-content > .wp-block-columns {
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Home highlight sections */
.page-home .wp-block-columns.alignwide {
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.page-home .wp-block-columns.alignwide .wp-block-image img {
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 55, 104, 0.12);
}

/* ============================================
   PAGE: Products (.page-products)
   ============================================ */

.page-products .wp-block-columns.alignwide {
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e8ecf1;
}

.page-products .wp-block-columns.alignwide:last-of-type {
    border-bottom: none;
}

.page-products .wp-block-image img {
    border-radius: 10px;
}

.page-products .wp-block-column .wp-block-heading {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.page-products .wp-block-column .wp-block-paragraph {
    color: #555;
    line-height: 1.75;
}

.page-products .wp-block-group {
    padding: 2rem 0;
}

.page-products .wp-block-group.has-light-bg-background-color {
    background: #f5f7fa;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* ============================================
   PAGE: Support (.page-support)
   ============================================ */

.page-support .wp-block-details {
    max-width: 800px;
}

.page-support .entry-content > .wp-block-columns {
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.page-support .entry-content > .wp-block-columns > .wp-block-column {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 55, 104, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    border: 1px solid #dde4ec;
}

.page-support .entry-content > .wp-block-columns > .wp-block-column:hover {
    box-shadow: 0 8px 28px rgba(0, 55, 104, 0.1);
    transform: translateY(-2px);
}

.page-support .entry-content > .wp-block-columns > .wp-block-column .wp-block-heading {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.page-support .entry-content > .wp-block-columns > .wp-block-column .wp-block-paragraph {
    color: #555;
    font-size: 0.9375rem;
}

/* ============================================
   PAGE: Developer (.page-developer)
   ============================================ */

.page-developer .wp-block-columns {
    gap: 1.5rem;
}

.page-developer .entry-content > .wp-block-columns > .wp-block-column {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 55, 104, 0.06);
    border: 1px solid #dde4ec;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.page-developer .entry-content > .wp-block-columns > .wp-block-column:hover {
    box-shadow: 0 8px 28px rgba(0, 55, 104, 0.1);
    transform: translateY(-2px);
}

/* The column is already the card — a white Group nested directly inside it
   would double the padding/background, so flatten it. */
.page-developer .entry-content > .wp-block-columns > .wp-block-column > .wp-block-group {
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.page-developer .entry-content > .wp-block-columns > .wp-block-column .wp-block-heading {
    margin-bottom: 0.5rem;
}

.page-developer .entry-content > .wp-block-columns > .wp-block-column .wp-block-paragraph {
    color: #555;
    font-size: 0.9375rem;
}

.page-developer .wp-block-columns .wp-block-image img {
    border-radius: 10px 10px 0 0;
}

.page-developer .wp-block-separator {
    border-top: 2px solid #e8ecf1;
    margin: 2.5rem 0;
}

.page-developer > .entry-content > .wp-block-heading {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e8ecf1;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

/* ============================================
   PAGE: Store (.page-store)
   ============================================ */

.page-store .wp-block-columns.alignwide,
.page-store .entry-content > .wp-block-columns {
    gap: 2rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.page-store .entry-content > .wp-block-columns > .wp-block-column {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 55, 104, 0.08);
    padding: 2.5rem 2rem;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.page-store .entry-content > .wp-block-columns > .wp-block-column:hover {
    box-shadow: 0 12px 40px rgba(0, 55, 104, 0.14);
    transform: translateY(-4px);
}

.page-store .wp-block-column .wp-block-heading {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.page-store .wp-block-column .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.page-store .wp-block-column .wp-block-list li {
    padding: 0.625rem 0 0.625rem 1.75rem;
    position: relative;
    color: #555;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f0f0f0;
}

.page-store .wp-block-column .wp-block-list li:last-child {
    border-bottom: none;
}

.page-store .wp-block-column ul.wp-block-list > li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #00a4e4;
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================
   PAGE: Customers (.page-customers)
   ============================================ */

.page-customers .wp-block-columns {
    gap: 2rem;
    margin-bottom: 2rem;
}

.page-customers .wp-block-column .wp-block-group {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 55, 104, 0.06);
    height: 100%;
}

.page-customers .wp-block-column .wp-block-group .wp-block-heading {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    color: #003768;
}

.page-customers .wp-block-column .wp-block-group .wp-block-paragraph {
    color: #555;
    font-size: 0.9375rem;
}

.page-customers .wp-block-table th {
    background: #003768;
    color: #fff;
}

.page-customers .wp-block-table tr:nth-child(even) td {
    background: #f5f7fa;
}

/* ============================================
   PAGE: Contact (.page-contact)
   ============================================ */

.page-contact .wp-block-columns {
    gap: 3rem;
}

.page-contact .wp-block-group {
    margin-bottom: 1.5rem;
}

.page-contact .wp-block-group.has-light-bg-background-color {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 2rem;
}

.contact-email {
    font-size: 1rem;
    font-weight: 600;
    color: #003768;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 55, 104, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
            backdrop-filter: blur(12px) saturate(180%);
    transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
}

.contact-email::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background: #00a4e4;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>') center / contain no-repeat;
            mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>') center / contain no-repeat;
}

.contact-email:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
    box-shadow: 0 6px 26px rgba(0, 55, 104, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ============================================
   PAGE: Child pages of products
   ============================================ */

.page-products-child .wp-block-columns {
    gap: 3rem;
    align-items: center;
}

.page-products-child .wp-block-image img {
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 55, 104, 0.1);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: transparent;
}

/* Space between stacked sidebar widgets */
.sidebar-widget + .sidebar-widget {
    margin-top: 3.5rem;
}

.sidebar-widget__header {
    color: #00a4e4;
    padding: 0 0 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #00a4e4;
}

.sidebar-widget__body {
    padding: 0;
}

.news-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item__date {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.news-item__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #003768;
    line-height: 1.4;
}

.news-item__title a {
    color: #003768;
}

.news-item__title a:hover {
    color: #00a4e4;
}

.news-item__excerpt {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* ============================================
   Page Content Wrapper
   ============================================ */

.page-content {
    padding: 3rem 0 4rem;
    background: #fff;
}

/* Page layout — with sidebar */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 1px 260px;
    grid-template-rows: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.page-layout > .entry-content {
    grid-column: 1;
    grid-row: 1;
}

/* Full-height vertical divider between content and sidebar */
.page-layout::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    background: #e6ebf1;
}

.page-layout > .page-sidebar {
    grid-column: 3;
    grid-row: 1;
}

/* No sidebar — full width */
.page-layout--full {
    grid-template-columns: 1fr;
}

.page-layout--full::before {
    display: none;
}

/* Page sidebar */
.page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-subnav li {
    margin-bottom: 0.125rem;
}

.sidebar-subnav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #333;
    font-size: 0.9375rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-subnav a:hover {
    color: #00a4e4;
    background: #f0f6fb;
}

.sidebar-subnav li.current a {
    color: #00a4e4;
    font-weight: 600;
    background: #e3f1fa;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h2:first-child {
    margin-top: 0;
}

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

/* ============================================
   Changelog
   ============================================ */

.changelog-list {
    max-width: 800px;
}

.changelog-entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e8ecf1;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-entry__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.changelog-entry__version {
    background: linear-gradient(135deg, #003768, #004a8c);
    color: #fff;
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.changelog-entry__date {
    color: #999;
    font-size: 0.8125rem;
}

.changelog-entry__changes {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.changelog-entry__changes ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.changelog-entry__changes li {
    margin-bottom: 0.25rem;
}

/* ============================================
   Buttons (non-block utility classes)
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: #c1d72e;
    color: #003768;
    border-color: #c1d72e;
}

.btn--primary:hover,
.btn--primary:focus {
    background: #d4e84a;
    border-color: #d4e84a;
    color: #003768;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 215, 46, 0.3);
}

.btn--outline {
    background: transparent;
    color: #003768;
    border-color: #003768;
}

.btn--outline:hover,
.btn--outline:focus {
    background: #003768;
    color: #fff;
    transform: translateY(-2px);
}

.btn--blue {
    background: #00a4e4;
    color: #fff;
    border-color: #00a4e4;
}

.btn--blue:hover,
.btn--blue:focus {
    background: #008cc4;
    border-color: #008cc4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 164, 228, 0.3);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #003768 url('images/bg_alles_geenrep.jpg') center bottom / cover no-repeat;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2.5rem;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a4e4, #c1d72e, #00a4e4);
}

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

.footer-copyright {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

/* ============================================
   Pagination
   ============================================ */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecf1;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    color: #003768;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: #003768;
    border-color: #003768;
    color: #fff;
}

.nav-links .current {
    background: #003768;
    border-color: #003768;
    color: #fff;
    font-weight: 500;
}

.nav-links .dots {
    border: none;
    padding: 0.5rem 0.25rem;
    color: #999;
}

/* ============================================
   Utility
   ============================================ */

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   WordPress Core Alignment
   ============================================ */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #999;
    text-align: center;
    padding-top: 0.5rem;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 860px) {
    .home-layout,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .page-sidebar {
        position: static;
    }

    /* Stacked below content — divider goes on top, not the side */
    .page-sidebar {
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
        border-left: none;
        border-top: 1px solid #e6ebf1;
    }

    .page-contact .wp-block-columns {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0, 55, 104, 0.12);
        flex-direction: column;
        padding: 5rem 0 2rem;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1005;
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav > ul > li > a::after {
        display: none;
    }

    .main-nav ul ul {
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f9f9f9;
        display: none;
    }

    .main-nav > ul > li.is-sub-open > ul {
        display: block;
    }

    .main-nav ul ul a {
        padding-left: 2.5rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .nav-overlay.is-visible {
        display: block;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 1.25rem;
    }

    .wp-block-columns {
        flex-direction: column !important;
    }

    .page-store .wp-block-columns {
        max-width: 100%;
    }

    .page-content .entry-content {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn,
    .wp-block-button__link {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}
