@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Barlow:wght@400;500;600&display=swap');

/* Bosma & Bronkhorst. Colours from their logo and the CSS of their old site, see ../BRAND.md */
:root {
  --navy: #003868;        /* old site menu bar and headings (CSS) */
  --navy-deep: #0f2b43;   /* dark B&B mark in the logo */
  --navy-hover: #002a4f;  /* shade of #003868 */
  --blue: #388ec2;        /* light blue of the web logo */
  --blue-soft: #8abedd;   /* light tint in the web logo */
  --sky: #e0edf7;         /* old site content background */
  --sky-2: #f1f6fb;       /* lighter tint of #e0edf7 */
  --white: #fff;
  --ink: #0f2b43;
  --text: #22313f;        /* neutral shade of the navy */
  --muted: #4f5f6e;
  --line: #cfdbe6;
  --line-dark: #0f2b43;

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
h3 { font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.tint { background: var(--sky-2); }
.dark { background: var(--navy-deep); color: #c9d6e2; }
.dark h2, .dark h3 { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--muted); }
.dark .lead, .dark p { color: #c9d6e2; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--white); padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
svg { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons: 2px radius, filled navy or 1px outline */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r); background: var(--navy); color: var(--white); border: 1px solid var(--navy); font: 600 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.on-navy .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.on-navy .btn:hover { background: var(--sky); border-color: var(--sky); }
.on-navy .btn.ghost, .dark .btn.ghost { background: transparent; color: var(--white); border-color: #7f9bb6; }
.on-navy .btn.ghost:hover, .dark .btn.ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Header: white, so the original logo sits on its own white ground */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 2px 10px rgba(15, 43, 67, .08); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.nav-list { display: flex; gap: 1.9rem; }
.nav-link { text-decoration: none; font-size: .98rem; font-weight: 500; color: var(--text); padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav-link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue); }
.menu-btn { display: none; }
.header-call { min-height: 44px; padding: .55rem 1rem; }
@media (max-width: 1100px) { .header-call .num { display: none; } }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .8rem; background: transparent; color: var(--navy); border: 1px solid var(--line); border-radius: var(--r); font: 500 .9rem var(--f-body); cursor: pointer; }
  .site-nav { order: 2; }
  .header-cta { order: 1; }
  .nav-list[popover] { inset: 76px 0 auto auto; margin: 0; width: min(320px, 100vw); flex-direction: column; gap: 0; padding: .5rem 0; background: var(--white); border: 0; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 43, 67, .12); }
  .nav-list[popover] .nav-link { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
  .nav-list:not([popover]), .nav-list[popover]:not(:popover-open) { display: none; }
}
@media (max-width: 480px) { .brand img { height: 22px; } .header-in { gap: .6rem; min-height: 68px; } .menu-label { display: none; } .nav-list[popover] { inset: 68px 0 auto auto; } }

/* Hero: navy band like their old header, own photo right */
.hero { background: var(--navy); color: #dbe6f0; }
.hero-grid { display: grid; gap: 2rem; padding-block: 2.75rem 0; }
.hero h1 { color: var(--white); margin-bottom: .4em; font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem); }
.hero-lead { font-size: 1.18rem; color: #dbe6f0; max-width: 35rem; }
.hero-text { padding-bottom: 1.5rem; }
.hero-media { margin: 0 -1.25rem; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }
.hero-media figcaption { font-size: .85rem; color: #a9c0d6; padding: .6rem 1.25rem 1rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 6fr 6fr; align-items: center; gap: 4rem; padding-block: 4.5rem; }
  .hero-text { padding-bottom: 0; }
  .hero-media { margin: 0; }
  .hero-media img { aspect-ratio: 5 / 4; }
  .hero-media figcaption { padding-inline: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: up .8s var(--ease) forwards; animation-delay: var(--d, .1s); }
  [data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  [data-aos].aos-animate { opacity: 1; transform: none; }
}
@keyframes up { to { opacity: 1; transform: none; } }

/* Facts: label/value columns with thin lines */
.facts { border-bottom: 1px solid var(--line); background: var(--white); }
.facts ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
.facts b { display: block; font: 600 1.9rem/1.1 var(--f-display); color: var(--navy); }
.facts span { font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; padding: 1.8rem 1.5rem; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* Section head: left aligned */
.head { max-width: 46rem; margin-bottom: 2.5rem; }
.head p { color: var(--muted); }
.dark .head p { color: #c9d6e2; }
.split-head { display: grid; gap: 1rem 4rem; margin-bottom: 2.5rem; }
.split-head h2 { margin: 0; }
.split-head p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .split-head { grid-template-columns: 5fr 6fr; align-items: end; } }

/* Services as a register: rows over the full width */
.register { border-top: 2px solid var(--line-dark); }
.register a { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1.5rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.register .r-name { font: 600 clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem)/1.1 var(--f-display); color: var(--ink); grid-column: 1; grid-row: 2; }
.register .r-note { font-size: .92rem; color: var(--muted); grid-column: 1; grid-row: 1; }
.register .r-go { grid-column: 2; grid-row: 1 / 3; color: var(--navy); transition: transform .2s var(--ease); }
.register a:hover .r-name { color: var(--navy); }
.register a:hover .r-go { transform: translateX(4px); }
@media (min-width: 900px) {
  .register a { grid-template-columns: 16rem 1fr auto; padding: 1.2rem 0; }
  .register .r-note { grid-row: 1; }
  .register .r-name { grid-column: 2; grid-row: 1; }
  .register .r-go { grid-column: 3; grid-row: 1; }
}

/* Detail: photo left, text right */
.detail { display: grid; gap: 2rem; align-items: start; }
.detail + .detail { margin-top: clamp(3.5rem, 2rem + 5vw, 6rem); }
.detail-media { margin: 0; }
.detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-media.tall img { aspect-ratio: 4 / 5; }
.detail-media.small { max-width: 520px; }
.detail-media figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.dark .detail-media figcaption { color: #a9c0d6; }
.rows { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.rows li { display: flex; gap: 1rem; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.rows li span:first-child { flex: none; font-weight: 500; color: var(--ink); }
.rows li span:last-child { color: var(--muted); text-align: right; }
.dark .rows, .dark .rows li { border-color: #2f4c66; }
.dark .rows li span:first-child { color: var(--white); }
.dark .rows li span:last-child { color: #a9c0d6; }
@media (max-width: 599px) {
  .rows li { flex-direction: column; gap: .1rem; }
  .rows li span:first-child { font-size: .95rem; }
  .rows li span:last-child { text-align: left; }
  .facts b { font-size: 1.5rem; }
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 11fr 10fr; gap: 4.5rem; }
  .detail.flip .detail-media { order: 2; }
  .detail.flip { grid-template-columns: 10fr 11fr; }
  .detail.center { align-items: center; }
}

/* Photo cards: title on the photo */
.cards { display: grid; gap: 1rem; }
.card { position: relative; margin: 0; overflow: hidden; background: var(--navy-deep); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card figcaption { position: absolute; inset: auto 0 0 0; padding: 3.5rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgba(15, 43, 67, .88)); color: var(--white); }
.card figcaption b { display: block; font: 600 1.6rem/1.1 var(--f-display); }
.card figcaption span { font-size: .93rem; color: #dbe6f0; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Credentials: logos and plain rows */
.creds { display: grid; gap: 2.5rem; }
.cred-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.75rem; padding-block: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-logos img { height: 52px; width: auto; }
.cred-logos img.tn { height: 40px; }
@media (min-width: 900px) { .creds { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; } }

/* Centred interlude: once per page */
.interlude { text-align: center; }
.interlude p { margin-inline: auto; color: var(--muted); }
.interlude .actions { justify-content: center; }

/* Page head for inner pages */
.page-head { background: var(--navy); color: #dbe6f0; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-head h1 { color: var(--white); font-size: clamp(2.5rem, 1.7rem + 3vw, 4rem); }
.page-head p { font-size: 1.15rem; color: #dbe6f0; max-width: 38rem; margin: 0; }
.crumbs { font-size: .9rem; color: #a9c0d6; margin-bottom: 1rem; }
.crumbs a { color: #dbe6f0; }

/* Timeline as rows: year left, text right */
.timeline { border-top: 2px solid var(--line-dark); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.timeline b { font: 600 1.6rem/1.1 var(--f-display); color: var(--navy); }
.timeline p { margin: 0; }
@media (min-width: 900px) { .timeline li { grid-template-columns: 9rem 1fr; } }

/* Archive gallery: their black-and-white photos */
.archive { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.archive figure { margin: 0; }
.archive img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); }
.archive figcaption { font-size: .88rem; color: #a9c0d6; padding-top: .5rem; }
.archive .wide { grid-column: span 2; }
.archive .wide img { aspect-ratio: 16 / 7; }
@media (min-width: 900px) { .archive { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* Contact rows: label left, value right */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.lv { border-top: 2px solid var(--line-dark); margin: 0; }
.lv > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.lv dt { font-weight: 600; font-size: .95rem; color: var(--ink); }
.lv dd { margin: 0; }
.lv dd a { text-decoration-color: var(--blue); text-underline-offset: 3px; }
.lv small { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 440px) { .lv > div { grid-template-columns: 1fr; gap: .15rem; } }

/* Form (demo) */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #a9b9c8; border-radius: var(--r); background: var(--white); color: var(--ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--navy); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.two { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-ok { padding: 2rem; background: var(--white); border-left: 3px solid var(--navy); }
.form-ok h3:focus { outline: none; }
.spinner { width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-panel { background: var(--sky-2); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 2px solid var(--navy); }

/* Footer with labelled groups, on the light blue of their old site */
.site-footer { background: var(--sky); color: var(--text); padding-block: 4rem 6rem; font-size: .98rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--muted); max-width: 23rem; }
.site-footer h2 { font: 600 .85rem/1 var(--f-body); color: var(--muted); margin: 0 0 1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ink); text-decoration: underline; text-decoration-color: #9fb6cb; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--navy); }
.site-footer .btn { color: var(--white); text-decoration: none; margin-top: .5rem; }
.f-gap { margin-top: 1.8rem !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #c2d3e3; color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 3fr 3fr 3fr; } .site-footer { padding-bottom: 3rem; } }
@media (max-width: 480px) { .footer-brand img { height: 22px; } }

/* Mobile call bar */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--navy-deep); transform: translateY(110%); transition: transform .3s var(--ease); }
.callbar.show { transform: none; }
.callbar .btn { justify-content: center; background: var(--white); color: var(--navy); border-color: var(--white); }
.callbar .btn.ghost { background: transparent; color: var(--white); border-color: #7f9bb6; }
@media (min-width: 900px) { .callbar { display: none; } }

.note { font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.dark .note { color: #a9c0d6; border-color: #2f4c66; }
.textlink { color: var(--navy); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--blue); }
.dark .textlink { color: var(--white); }
ol.timeline { list-style: none; margin: 0; padding: 0; }
@media (max-width: 599px) { .cred-logos { gap: 1.25rem 1.75rem; } .cred-logos img { height: 38px; } .cred-logos img.tn { height: 30px; } }
