/*
Theme Name: Icebrain Natuur
Description: De plantencollectie en het kattenarchief van Cattery Narnia.
Version: 3.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: icebrain-natuur
*/
:root {
    --ib-ink: #102b48;
    --ib-dark: #0a2442;
    --ib-blue: #1766ad;
    --ib-sky: #eaf4ff;
    --ib-line: #cee1f2;
    --ib-muted: #46627d;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ib-ink); background: #f7fbff; font: 17px/1.7 Inter, system-ui, -apple-system, sans-serif; }
a { color: var(--ib-blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, input[type=submit] { cursor: pointer; }
:focus-visible { outline: 3px solid #358ce0; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 5.8vw, 5.5rem); font-weight: 740; }
h2 { font-size: clamp(1.8rem, 3.1vw, 3rem); font-weight: 720; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin-block: 0 1em; }
.ib-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 20px max(24px, calc((100vw - 1440px)/2)); gap: 18px 36px;
    background: var(--ib-dark); color: white;
}
.ib-brand { color: inherit; text-decoration: none; font-size: 1.9rem; letter-spacing: -.06em; font-weight: 800; line-height: 1; }
.ib-brand span { display: block; margin-top: 7px; letter-spacing: .01em; font-size: .75rem; font-weight: 450; color: #b6d9ff; }
.ib-header .ib-brand { font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.15; }
.ib-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ib-menu a { color: white; font-size: .95rem; text-decoration: none; display: block; padding: 7px 0; }
.ib-menu a:hover, .ib-menu .current-menu-item > a { color: #a8d7ff; }
.ib-menu .sub-menu { padding-left: 18px; list-style: none; font-size: .9rem; }
.ib-search { display: flex; align-items: stretch; border: 1px solid #a5bfd7; border-radius: 10px; overflow: hidden; background: white; max-width: 100%; }
.ib-search input { min-width: 0; width: 200px; max-width: 100%; padding: 8px 10px; color: var(--ib-ink); background: white; border: 0; font-size: .88rem; }
.ib-search button { border: 0; background: #daedff; color: var(--ib-dark); padding: 8px 13px; font-size: .88rem; }
.ib-search button:hover { background: #bce0ff; }
.ib-main { min-height: 68vh; }
.ib-page { max-width: 1440px; margin-inline: auto; padding: clamp(24px, 4vw, 70px) clamp(20px, 4vw, 60px) 80px; }
.ib-page-title { max-width: 1100px; margin-bottom: 38px; }
.ib-page-title h1 { margin-block: 20px; }
.ib-breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .88rem; margin-bottom: 25px; }
.ib-content > p, .ib-content > h2, .ib-content > h3 { max-width: 78ch; }
.ib-content > h2 { margin-block: 46px 20px; }
.ib-content p { overflow-wrap: anywhere; }
.ib-content a { overflow-wrap: anywhere; }
.ib-hero { margin-top: 8px; margin-bottom: 70px; }
.ib-hero-copy { max-width: 1020px; margin-bottom: 40px; }
.ib-hero-copy > p:first-child { color: var(--ib-blue); font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.ib-hero-copy h1 { margin: 0 0 25px; font-size: clamp(2.8rem, 6.6vw, 6.3rem); line-height: 1.02; letter-spacing: -.065em; }
.ib-hero-copy > p:last-child { max-width: 62ch; color: var(--ib-muted); font-size: 1.18rem; }
.ib-grid, .ib-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 22px; margin-block: 24px 38px; }
.ib-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ib-card { min-width: 0; background: white; border: 1px solid var(--ib-line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 24px #183e6610; }
.ib-card h2, .ib-card h3 { font-size: 1.22rem; margin-block: 4px 9px; letter-spacing: -.025em; }
.ib-card h3 a, .ib-card h2 a { color: var(--ib-ink); text-decoration: none; }
.ib-card h3 a::after { content: ' ↗'; font-size: .86em; color: var(--ib-blue); white-space: nowrap; }
.ib-card h3 a:hover { color: var(--ib-blue); }
.ib-card p { font-size: .94rem; color: var(--ib-muted); margin-bottom: 0; }
.ib-card .wp-block-image { display: grid; place-items: center; min-height: 170px; margin: -22px -22px 22px; padding: 18px; background: #dfefff; border-radius: 18px 18px 0 0; }
.ib-card .wp-block-image img { max-height: 220px; width: auto; display: block; }
.ib-choice-grid .ib-card { padding: 25px; background: var(--ib-dark); border: 0; color: white; box-shadow: 0 16px 34px #10325820; }
.ib-choice-grid .ib-card:nth-child(2) { background: #154c7c; }
.ib-choice-grid .ib-card .wp-block-image { min-height: 265px; margin: -25px -25px 24px; padding: 18px; background: #d3e8fc; }
.ib-choice-grid .ib-card:nth-child(2) .wp-block-image { background: #b4d6f4; }
.ib-choice-grid .ib-card img { max-height: 245px; }
.ib-choice-grid .ib-card h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.ib-choice-grid .ib-card h3 a { color: white; }
.ib-choice-grid .ib-card h3 a::after { color: #b6d9ff; }
.ib-choice-grid .ib-card p { color: #c7e2fb; }
.ib-feature { margin-top: 50px; padding: clamp(24px, 4vw, 50px); background: #e2f0ff; border-radius: 24px; text-align: center; }
.ib-feature h2 { margin-top: 0; }
.ib-feature figure { margin-inline: auto; }
.wp-block-image { margin: 24px 0; }
.wp-block-image img { vertical-align: middle; border-radius: 8px; }
.ib-content > .wp-block-image img { max-height: 500px; width: auto; }
.ib-guide { background: #eaf4ff; border-left: 4px solid #337ab8; border-radius: 0 16px 16px 0; padding: 25px clamp(20px, 3vw, 40px); max-width: 900px; margin-block: 25px; }
.ib-guide h3 { margin-top: 22px; }
.ib-guide h3:first-child { margin-top: 0; }
.ib-guide p:last-child { margin-bottom: 0; }
.ib-record { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 35px; align-items: start; margin-block: 24px 40px; }
.ib-record > .wp-block-image { display: grid; place-items: center; min-height: 300px; padding: 25px; margin: 0; background: #e0efff; border-radius: 22px; }
.ib-record-copy h2 { margin-top: 0; }
.ib-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; margin-block: 30px; }
.ib-gallery-item { padding: 0 0 18px; border: 1px solid var(--ib-line); border-radius: 16px; overflow: hidden; background: white; }
.ib-gallery-item .wp-block-image { display: grid; place-items: center; aspect-ratio: 4/3; margin: 0 0 15px; padding: 12px; background: #deedfc; }
.ib-gallery-item img { max-height: 240px; width: auto; }
.ib-gallery-item p { margin: 0 18px; font-weight: 600; font-size: .94rem; }
.ib-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; background: var(--ib-dark); color: #c4def7; padding: 48px max(24px, calc((100vw - 1320px)/2)); }
.ib-footer p { margin-top: 20px; font-size: .9rem; }
.ib-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 30px; }
.ib-footer a { color: inherit; }
.ib-skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ib-skip:focus { width: auto; height: auto; clip-path: none; left: 15px; top: 15px; padding: 10px; background: white; z-index: 99; }
#ib-lightbox { max-width: min(95vw, 1000px); width: max-content; max-height: 94vh; padding: 20px; border: 1px solid #729ac0; border-radius: 16px; background: var(--ib-dark); color: white; }
#ib-lightbox::backdrop { background: #061426df; }
#ib-lightbox figure { text-align: center; margin: 20px 0; }
#ib-lightbox img { width: auto; max-width: 85vw; max-height: 65vh; height: auto; }
#ib-lightbox figcaption { margin-top: 15px; }
#ib-lightbox button, #ib-lightbox a { color: white; background: #244e77; border: 1px solid #769bbc; border-radius: 7px; padding: 7px 12px; font-size: .9rem; }
#ib-lightbox .ib-close { display: block; margin-left: auto; }
.ib-lightbox-controls { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
    .ib-header { align-items: flex-start; gap: 18px; }
    .ib-navigation { order: 3; width: 100%; }
    .ib-menu { gap: 4px 20px; }
    .ib-search input { width: 160px; }
    .ib-choice-grid, .ib-record { grid-template-columns: 1fr; }
    .ib-hero { margin-bottom: 40px; }
    .ib-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
    .ib-choice-grid .ib-card .wp-block-image { min-height: 200px; }
    .ib-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
}
@media (max-width: 400px) {
    .ib-header .ib-search { width: 100%; }
    .ib-header .ib-search label { flex: 1; }
    .ib-header .ib-search input { width: 100%; }
}
