/* layouts/base.css — the ground every product layout („styl“) stands on,
   linked before layouts/<key>.css on a site with "layout" in site.json (the
   classic page links site.css instead and never this file). Each layout sets
   the tokens below in its own file; /theme.css (linked last) sets --accent
   from the site's theme.accent. */
:root {
  --bg: #fff; --ink: #1d1d1d; --muted: #5c5c5c; --line: #dedede; --bg-alt: #f5f5f5;
  --accent: #1f6feb; --ground: #1d1d1d; --focus: #1f6feb;
  --max: 1080px; --gutter: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.icon { width: 1.5rem; height: 1.5rem; flex: none; display: inline-block; vertical-align: middle; }
.note { color: var(--muted); font-size: .9rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* opening hours and questions (shared partials l-hours, l-faq) */
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1.25rem; width: 48%; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; max-width: 46rem; color: var(--muted); }

/* contact block (partial l-contact) */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0 0 .35rem; }
.contact-list a, address { overflow-wrap: anywhere; } /* a long e-mail or web address must not widen a phone page */
.contact-list .label { display: inline-block; min-width: 4.5rem; color: var(--muted); font-size: .9rem; }
address { font-style: normal; }
.extras { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; }
.qr-figure { margin: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.qr { display: block; margin: 0 auto .25rem; border-radius: 6px; }
.social { font-weight: 600; }

/* the contact form of a client site (partial l-form); a demo shows .demo-form */
.contact-form label { display: block; margin-bottom: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; font-weight: 400; color: #1d1d1d; background: #fff; border: 1px solid #767676; border-radius: 6px; }
.contact-form button { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 6px; padding: .75rem 1.5rem; color: var(--ground); background: var(--accent); }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-form .note { margin: .75rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.banner { padding: .7rem .9rem; border-radius: 6px; border: 1px solid #c9c9c9; background: #f4f4f4; color: #1d1d1d; }
.banner.ok { border-color: #8bc48b; background: #eef8ee; }
.banner.err { border-color: #e0a0a0; background: #fbeeee; }

/* HTML sections (pages/*.html) on a layout: the classic page's fragment classes */
.frag { padding: 3rem 0; display: flow-root; }
.frag h2 { clear: both; }
.frag .lead { font-size: 1.1rem; max-width: 42rem; }
.frag .cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.frag .button { display: inline-block; padding: .65rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ground); background: var(--accent); }
.frag .img-left, .frag .img-right { display: block; margin: 0 auto 1rem; border-radius: 6px; }
@media (min-width: 600px) {
  .frag .img-left { float: left; margin: .25rem 1.25rem 1rem 0; max-width: 45%; }
  .frag .img-right { float: right; margin: .25rem 0 1rem 1.25rem; max-width: 45%; }
}
.frag .cols { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.frag .col-img img { border-radius: 6px; display: block; }
.frag .col-text > :first-child { margin-top: 0; }
@media (min-width: 720px) { .frag .cols { grid-template-columns: 1fr 2fr; align-items: start; } }
.frag .table-wrap { overflow-x: auto; }
.frag table { border-collapse: collapse; width: 100%; }
.frag td, .frag th { border: 1px solid var(--line); padding: .5rem .75rem; vertical-align: top; text-align: left; }
.frag .price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.frag .price-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--line); }
.frag .price-list li > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }
.frag .price { font-weight: 700; white-space: nowrap; }
.frag blockquote { border-left: 4px solid var(--accent); padding: .75rem 1rem; background: var(--bg-alt); }
.frag .quotes { display: grid; gap: 1rem; }
@media (min-width: 720px) { .frag .quotes { grid-template-columns: 1fr 1fr; } }
.frag .more summary { cursor: pointer; font-weight: 600; margin: .5rem 0 1rem; }

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