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

/* Thejo's Bloemen. Colours from their own site CSS (thejosbloemen.nl/css/style.css), see ../BRAND.md */
:root {
  --blue: #239cc5;       /* their header and link blue */
  --blue-deep: #00719d;  /* their darker blue, AA with white text */
  --blue-mid: #067aa7;   /* their hover blue */
  --sky: #dbeef3;        /* their light blue tint */
  --sky-line: #b6dde7;   /* their border tint */
  --ink: #2d2d2d;        /* their heading colour */
  --muted: #5a6b70;      /* darker shade of their #6b848a, AA on white */
  --paper: #fcfcff;      /* their page background */
  --white: #fff;

  --f: 'Ubuntu', 'Segoe UI', system-ui, sans-serif;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--f); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--f); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -.01em; }
h3 { line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure, blockquote { margin: 0; }
::selection { background: var(--sky); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.site-header :focus-visible, .on-blue :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--r); border: 1px solid var(--blue-deep); background: var(--blue-deep); color: var(--white); font: 500 .9rem/1.2 var(--f); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--blue-deep); }
.btn.ghost:hover { background: var(--blue-deep); color: var(--white); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--blue-deep); }
.btn.light:hover { background: var(--sky); border-color: var(--sky); }
.on-blue .btn.ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.on-blue .btn.ghost:hover { background: var(--white); color: var(--blue-deep); }
.textlink { color: var(--blue-deep); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header: their blue band, logo is white */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue-deep); color: var(--white); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand img { height: 52px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.75rem; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.nav-link { font-size: .95rem; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; color: var(--white); }
.nav-link:hover { border-bottom-color: rgba(255,255,255,.6); }
.nav-link[aria-current="page"] { border-bottom-color: var(--white); }
.menu-btn { display: none; }
.header-call { min-height: 42px; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; color: var(--ink); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.facts { list-style: none; border-top: 1px solid var(--sky-line); max-width: 34rem; }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--sky-line); font-size: .95rem; }
.facts .k { font-weight: 700; }
.hero-photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: .75rem; align-items: end; }
.hero-photos img { width: 100%; object-fit: cover; border-radius: var(--r); }
.hero-photos .tall { aspect-ratio: 3 / 4.4; }
.hero-photos .short { aspect-ratio: 3 / 4; }
.hero-photos figcaption, .photo-cap { font-size: .82rem; color: var(--muted); margin-top: .5rem; }

/* Page intro (subpages) */
.intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.intro p { font-size: 1.15rem; max-width: 42rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tint { background: var(--sky); }
.sec-head { max-width: 44rem; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .75rem; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Register list (REFS 1) */
.register { list-style: none; border-top: 1px solid var(--sky-line); }
.register li { border-bottom: 1px solid var(--sky-line); }
.register a, .register .row { display: grid; grid-template-columns: minmax(0, 15rem) 1fr auto; gap: 1.5rem; align-items: center; min-height: 76px; padding: .9rem 0; text-decoration: none; }
.register .desc { font-size: .9rem; color: var(--muted); }
.register .name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }
.register svg { width: 22px; height: 22px; color: var(--blue-deep); transition: transform .2s var(--ease); }
.register a:hover .name { color: var(--blue-deep); }
.register a:hover svg { transform: translateX(4px); }
.tint .register, .tint .register li { border-color: #bcdbe4; }

/* Photo left, text right (REFS 2) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.split .lines { list-style: none; border-top: 1px solid var(--sky-line); margin: 1.5rem 0; }
.split .lines li { padding: .7rem 0; border-bottom: 1px solid var(--sky-line); }
.split-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Quote from their own site */
.quote { margin: 0; max-width: 50rem; }
.quote p { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.4; font-weight: 400; margin-bottom: 1rem; }
.quote footer { color: var(--muted); font-size: .95rem; }

/* Photo grid */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.photos .wide { grid-column: span 2; }
.photos .wide img { aspect-ratio: auto; height: 100%; max-height: none; }

/* Service detail blocks (bloemen, planten) */
.detail { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--sky-line); }
.detail:first-of-type { border-top: 0; }
.detail .split img { aspect-ratio: 4 / 5; }

/* Blue band (REFS 4, once per page) */
.band { background: var(--blue-deep); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .75rem; }
.band p { max-width: 36rem; margin: 0 auto 1.75rem; color: #e4f2f7; }
.band .btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Contact rows */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rows { list-style: none; border-top: 1px solid var(--sky-line); }
.rows li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sky-line); }
.rows .k { font-weight: 700; font-size: .95rem; }
.rows a { color: var(--blue-deep); }
.contact-photo { margin: 2rem 0 0; }

.contact-sec { padding-top: 1rem; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }

/* Form */
.form { background: var(--white); border: 1px solid var(--sky-line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.form h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.form > p { color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 500; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #9fc3cd; border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-deep); outline-offset: 0; border-color: var(--blue-deep); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: 1rem; padding: .85rem 1rem; background: var(--sky); border-radius: var(--r); font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }

/* Footer (labelled groups) */
.site-footer { background: var(--ink); color: #e9eef0; padding: 3.5rem 0 6rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-top img { height: 60px; width: auto; }
.footer-top p { margin: 0; color: #c9d3d6; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2rem 0; }
.f-label { font-size: .82rem; color: #a9b8bc; margin-bottom: .6rem; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-color: currentColor; }
.f-small { font-size: .9rem; color: #c9d3d6; margin-top: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: #a9b8bc; }
.callbar { display: none; }

/* Reveal */
.reveal.pre { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split img { aspect-ratio: 4 / 3; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white); border-radius: var(--r); padding: .5rem .75rem; font: 500 .9rem var(--f); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-list { flex-direction: column; gap: 0; position: fixed; inset: 78px 0 auto 0; margin: 0; width: 100%; padding: .5rem 1.25rem 1rem; background: var(--blue-deep); border: 0; }
  .nav-list:not(:popover-open) { display: none; }
  .nav-link { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.2); }
  .header-call .num { display: none; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--sky-line); }
  .callbar .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { height: 42px; }
  .header-in { gap: .75rem; min-height: 68px; }
  .nav-list { inset: 68px 0 auto 0; }
  .header-call { display: none; }
  .facts li, .rows li { grid-template-columns: 1fr; gap: .15rem; }
  .register a, .register .row { grid-template-columns: 1fr auto; gap: .25rem 1rem; }
  .register .desc { grid-column: 1; grid-row: 1; }
  .register .name { grid-column: 1; grid-row: 2; }
  .register svg { grid-column: 2; grid-row: 1 / span 2; }
  .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .photos .wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
