@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* Van Rooijen Wonen. Colours from their own logo banner, site CSS (basis.css) and the red "Bestellen en betalen" block, see ../BRAND.md */
:root {
  --navy: #000056;       /* their logo banner and promo blocks */
  --navy-2: #191970;     /* midnightblue, their basis.css body and menu colour */
  --red: #ed1b24;        /* their red: h1/h2 in basis.css, "Bestellen en betalen" block */
  --red-dark: #c4121a;   /* shade of their red, white text AA */
  --ink: #14142b;        /* near black with a touch of their navy */
  --muted: #4d4f63;      /* neutral grey, AA on white and tint */
  --tint: #f2f2f6;       /* light tint of their navy (their old site used lightgrey panels) */
  --tint-2: #e3e3ee;
  --line: #d3d3e0;
  --white: #fff;

  --f-display: 'Source Serif 4', 'Times New Roman', serif;
  --f: 'Source Sans 3', Verdana, 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.65 var(--f); color: var(--ink); background: var(--white); -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-display); font-weight: 700; line-height: 1.12; margin: 0; color: var(--navy); text-wrap: balance; letter-spacing: -.005em; }
h3 { line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
::selection { background: var(--tint-2); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.navy :focus-visible, .site-header :focus-visible, .site-footer :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(--white); color: var(--navy); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 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(--navy); background: var(--navy); color: var(--white); font: 700 .95rem/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(--navy-2); border-color: var(--navy-2); }
.btn.red { background: var(--red-dark); border-color: var(--red-dark); }
.btn.red:hover { background: #a50f16; border-color: #a50f16; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.navy .btn.ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.navy .btn.ghost:hover { background: var(--white); color: var(--navy); }
.textlink { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header: navy like their logo banner, original logo */
.topline { background: var(--tint); color: var(--ink); font-size: .9rem; border-bottom: 1px solid var(--line); }
.topline .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .4rem 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.header-in { display: flex; align-items: center; gap: 1.75rem; min-height: 76px; }
.brand { display: block; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.6rem; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.nav-link { font-size: .98rem; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; color: #e9e9f3; }
.nav-link:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.4); }
.nav-link[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }
.menu-btn { display: none; }
.header-call { min-height: 42px; }

/* Navy sections */
.navy { background: var(--navy); color: #dcdcec; }
.navy h1, .navy h2, .navy h3 { color: var(--white); }

/* Hero */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; max-width: 35rem; color: #e4e4f1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.facts { list-style: none; border-top: 1px solid rgba(255,255,255,.2); max-width: 36rem; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: .98rem; }
.facts .k { font-weight: 700; color: var(--white); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.photo-cap { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.navy .photo-cap { color: #b5b5cf; }

/* Page intro (subpages) */
.intro { padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem); }
.intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 1rem; }
.intro p { font-size: 1.18rem; max-width: 42rem; color: #e4e4f1; }
.intro .jump { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin-top: 1.5rem; font-size: .98rem; }
.intro .jump a { color: var(--white); font-weight: 700; text-decoration-color: rgba(255,255,255,.5); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tint { background: var(--tint); }
.sec-head { max-width: 46rem; 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.08rem; margin: 0; }

/* Register list (REFS 1) */
.register { list-style: none; border-top: 1px solid var(--line); }
.register li { border-bottom: 1px solid var(--line); }
.register a, .register .row { display: grid; grid-template-columns: minmax(0, 19rem) 1fr auto; gap: 1.5rem; align-items: center; min-height: 76px; padding: .9rem 0; text-decoration: none; }
.register .desc { font-size: .95rem; color: var(--muted); }
.register .name { font: 700 clamp(1.4rem, 2.3vw, 1.9rem)/1.2 var(--f-display); color: var(--navy); }
.register svg { width: 22px; height: 22px; color: var(--navy); transition: transform .2s var(--ease); }
.register a:hover .name { color: var(--red-dark); }
.register a:hover svg { transform: translateX(4px); }
.register.info .row { grid-template-columns: minmax(0, 17rem) 1fr; align-items: baseline; }
.register.info .row h3 { font-size: 1.3rem; }
.register.info .row p { margin: 0; max-width: 40rem; }
.register.info .row p + p { margin-top: .6rem; }

/* Photo left, text right (REFS 2) */
.split { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: 1fr minmax(0, 560px); }
.split.flip > figure { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.split img.wide { aspect-ratio: 3 / 2; }
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.split p { max-width: 36em; }
.lines { list-style: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.lines li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.lines.plain li { grid-template-columns: 1fr; }
.lines .k { font-weight: 700; }
.lines .p { font-variant-numeric: tabular-nums; }
.split-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.small { font-size: .92rem; color: var(--muted); }

/* Photo cards, title on the photo (REFS 3) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; }
.card { position: relative; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.card a { text-decoration: none; display: block; }
.card .t { position: absolute; left: 0; right: 0; top: 0; padding: 1.1rem 1.2rem 3rem; color: var(--white); font: 700 1.55rem/1.15 var(--f-display); background: linear-gradient(rgba(0,0,40,.82) 35%, rgba(0,0,40,0)); border-radius: var(--r) var(--r) 0 0; }
.card p { margin: .7rem 0 0; font-size: .98rem; color: var(--muted); }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3.5rem; }
.brands .lines { margin: 0; }
.brands .lines li { grid-template-columns: 10rem 1fr; }

/* Band (REFS 4, once per page) */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .75rem; }
.band { background: var(--tint); }
.band p { max-width: 40rem; margin: 0 auto 1.75rem; color: var(--muted); }
.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; }
.contact-grid h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.rows .k { font-weight: 700; font-size: .98rem; }
.rows a { color: var(--navy); font-weight: 700; }
.rows .sub { display: block; color: var(--muted); font-size: .93rem; }
.hours { list-style: none; border-top: 1px solid var(--line); max-width: 32rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li span:last-child { text-align: right; }

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

/* Footer (labelled groups) */
.site-footer { background: var(--navy); color: #e2e2ea; 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: 24px; width: auto; }
.footer-top p { margin: 0; color: #c9c9dc; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2rem 0; }
.f-label { font-size: .85rem; color: #c9c9ee; 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: .92rem; color: #dcdcf4; 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: #c9c9ee; }
.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; }

.more { margin: 1.75rem 0 0; }
.gap-top { margin-top: 2.5rem; }

@media (max-width: 1100px) {
  .header-call .num { display: none; }
  .nav-list { gap: 1.2rem; }
  .brand img { height: 26px; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .split.flip, .contact-grid, .brands { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .split figure, .hero-photo { max-width: 600px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .register.info .row { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid rgba(255,255,255,.7); color: var(--white); border-radius: var(--r); padding: .5rem .75rem; font: 700 .95rem var(--f); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-list { flex-direction: column; gap: 0; position: fixed; inset: 76px 0 auto 0; margin: 0; width: 100%; padding: .5rem 1.25rem 1rem; background: var(--navy); border: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nav-list:not(:popover-open) { display: none; }
  .nav-link { display: block; padding: .9rem 0; font-size: 1.08rem; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav-link[aria-current="page"] { border-bottom-color: rgba(255,255,255,.15); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
  .header-call { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .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(--white); border-top: 1px solid var(--line); }
  .callbar .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topline .wrap { justify-content: center; text-align: center; }
  .topline .hide-s { display: none; }
  .brand img { height: auto; width: min(56vw, 230px); }
  .header-in { gap: .75rem; min-height: 66px; }
  .nav-list { inset: 66px 0 auto 0; }
  .facts li, .rows li, .lines li, .brands .lines li { grid-template-columns: 1fr; gap: .1rem; }
  .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; }
  .cards { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 4 / 3; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

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