@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Zilla+Slab:wght@500;600&display=swap');

/* Burbri antiek. Colours from their own site: black header and footer (#000 / #0b0b0b / #222 in the page styles),
   white logo, greys #444 #ddd #eee #f3f3f3 from style.css. Body font Open Sans = their own site font. See ../BRAND.md */
:root {
  --black: #000;        /* their header and footer */
  --ink: #0b0b0b;       /* their near black */
  --char: #222;         /* their dark grey */
  --grey: #444;         /* their body grey */
  --muted: #555;
  --line: #ddd;         /* their rule grey */
  --tint: #f3f3f3;      /* their light background */
  --white: #fff;
  --on-dark: #cfcfcf;
  --line-dark: rgba(255, 255, 255, .18);

  --f: 'Open Sans', Arial, sans-serif;
  --f-head: 'Zilla Slab', Georgia, serif;  /* slab letters echo the typewriter "ANTIEK" in their logo */
  --r: 3px;
  --wrap: 1220px;
}

*, *::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(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
::selection { background: var(--char); color: var(--white); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :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(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Buttons: small radius, filled black or outlined */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: var(--white); font: 600 .9rem/1.2 var(--f); letter-spacing: .03em; 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(--grey); border-color: var(--grey); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.dark .btn, .site-header .btn { background: var(--white); border-color: var(--white); color: var(--black); }
.dark .btn:hover, .site-header .btn:hover { background: var(--line); border-color: var(--line); }
.dark .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.dark .btn.ghost:hover { background: var(--white); color: var(--black); }

/* Header: black band with their white logo, menu in spaced capitals like the old site */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); border-bottom: 1px solid #222; }
.header-in { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand { display: block; flex: none; padding: 8px 0; }
.brand img { width: 62px; height: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.9rem; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.nav-link { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; color: #bdbdbd; }
.nav-link:hover { color: var(--white); border-bottom-color: #777; }
.nav-link[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.menu-btn { display: none; }
.header-call { min-height: 42px; }
.header-call .num { white-space: nowrap; }

.dark { background: var(--black); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.tint { background: var(--tint); }

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.intro { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.intro h2 { margin-bottom: 1rem; }
.intro p { color: var(--muted); font-size: 1.1rem; }
.dark .intro p { color: var(--on-dark); }

/* Home hero: text on black, their own loods photo underneath */
.hero { padding: clamp(2.75rem, 6vw, 5rem) 0 0; }
.hero-grid { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin-bottom: 1.3rem; max-width: 15ch; }
.hero-lead { font-size: 1.18rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-photo img { width: 100%; aspect-ratio: 1800 / 720; object-fit: cover; object-position: 50% 60%; }
.cap { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.dark .cap { color: #a9a9a9; }

/* Facts as label/value rows */
.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts b { font-weight: 700; }
.dark .facts { border-color: var(--line-dark); }
.dark .facts li { border-color: var(--line-dark); }
.dark .facts b { color: var(--white); }

/* Register list (assortment and services as rows) */
.register { list-style: none; border-top: 1px solid var(--line); }
.register li { border-bottom: 1px solid var(--line); }
.register a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 28px; gap: 1.5rem; align-items: center; padding: 1.3rem 0; text-decoration: none; }
.register .name { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.register .desc { font-size: .97rem; color: var(--muted); }
.register svg { width: 22px; height: 22px; color: var(--grey); transition: transform .2s; }
.register a:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.register a:hover svg { transform: translateX(4px); }
.dark .register, .dark .register li { border-color: var(--line-dark); }
.dark .register .desc { color: #a9a9a9; }
.dark .register svg { color: var(--white); }

/* Split: photo left, text right */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { width: 100%; }
.split h2 { margin-bottom: 1rem; }
.split p { color: var(--muted); }
.dark .split p { color: var(--on-dark); }

/* Photo cards with the title on the photo */
.cards { display: grid; gap: 1rem; list-style: none; }
.card { position: relative; display: block; color: var(--white); text-decoration: none; overflow: hidden; background: var(--char); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
.card .t { position: absolute; left: 1.1rem; top: .95rem; right: 1.1rem; z-index: 1; font-family: var(--f-head); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.card-line { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.card:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* Assortment detail blocks */
.cat { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.cat:first-of-type { border-top: 0; padding-top: 0; }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat h2 { margin-bottom: .9rem; }
.cat p { color: var(--muted); }
.sub { list-style: none; border-top: 1px solid var(--line); margin: 1.25rem 0 1.5rem; }
.sub li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* Price table and rate rows */
.rates { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .98rem; }
.rates th, .rates td { text-align: left; padding: .65rem .5rem .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates th { font-weight: 700; }
.rates td:last-child, .rates th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.rates thead th { font-size: .9rem; color: var(--muted); border-bottom-color: var(--ink); }
.small { font-size: .92rem; color: var(--muted); }

/* Page head for subpages */
.page-head { padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-head p { max-width: 40rem; font-size: 1.15rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin-top: 1.75rem; }
.jump a { color: var(--white); font-size: .95rem; font-weight: 600; }

/* Services detail */
.service { display: grid; gap: clamp(1.75rem, 4vw, 4rem); padding: clamp(2.75rem, 5vw, 4.25rem) 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service h2 { margin-bottom: 1rem; }
.service h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.service p, .service li { color: var(--muted); }
.service ul.plain { list-style: none; border-top: 1px solid var(--line); margin: .75rem 0 1rem; }
.service ul.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.service figure img { width: 100%; }

/* Centered heading with buttons, once per page */
.cta { text-align: center; }
.cta h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta p { max-width: 36rem; margin: 0 auto; }
.cta .actions { justify-content: center; }

/* Contact rows */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 700; }
.rows a { font-weight: 600; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.hours .closed { color: var(--muted); }
.route ol { padding-left: 1.2rem; color: var(--muted); }
.route li { margin-bottom: .5rem; }
.note { border-left: 2px solid var(--ink); padding: .2rem 0 .2rem 1rem; color: var(--grey); }

/* Demo form */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #bbb; border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-note { padding: .9rem 1rem; background: var(--tint); border: 1px solid var(--line); }
.form-note[hidden] { display: none; }
.two { display: grid; gap: 1rem; }

/* Footer: labelled groups */
.site-footer { background: var(--black); color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 6rem; }
.footer-top { display: grid; gap: 1.5rem; align-items: start; }
.footer-top img { width: 96px; }
.footer-top p { max-width: 30rem; }
.footer-grid { display: grid; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.f-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; margin-bottom: .7rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--white); }
.f-small { font-size: .9rem; color: #a9a9a9; margin-top: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .88rem; color: #9a9a9a; }
.footer-bottom a { color: #cfcfcf; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--black); border-top: 1px solid #333; display: none; }
.callbar .btn { width: 100%; justify-content: center; background: var(--white); color: var(--black); border-color: var(--white); }

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

@media (min-width: 861px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .split.flip > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .cat:nth-of-type(even) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .cat:nth-of-type(even) > img { order: 2; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .footer-top { grid-template-columns: auto minmax(0, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) { .header-call .num { display: none; } }

@media (max-width: 960px) {
  .header-in { gap: 1rem; min-height: 70px; }
  .brand img { width: 50px; }
  .menu-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid #555; border-radius: var(--r); background: transparent; color: var(--white); font: 600 .9rem var(--f); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-list { display: none; }
  .nav-list:popover-open { display: grid; gap: 0; position: fixed; inset: 70px 0 auto 0; margin: 0; width: 100%; padding: .5rem 1.25rem 1.25rem; background: var(--black); border-bottom: 1px solid #333; }
  .nav-list:popover-open .nav-link { display: block; padding: .95rem 0; font-size: .9rem; border-bottom: 1px solid #222; }
  .header-call { display: none; }
  .callbar { display: block; }
}

@media (max-width: 860px) {
  .register a { grid-template-columns: minmax(0, 1fr) 24px; gap: .35rem 1rem; padding: 1.1rem 0; }
  .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; }
  .facts li, .rows li { grid-template-columns: 7rem minmax(0, 1fr); }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .cat img { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.facts + .small { margin-top: 1rem; }
.dark .register .name { color: var(--white); }
.service:first-child { padding-top: 0; }
.split.top { align-items: start; }
.fig-small { max-width: 380px; }
.rates th:last-child { white-space: normal; }
@media (min-width: 861px) { .cat > img { position: sticky; top: 110px; } }
