/* The Neighbor: the front page (index.html) and the legal pages (privacy.html, terms.html). */
:root {
  --base: #102f33;
  --mid: #1f5254;
  --accent: #f4b98a;
  --paper: #f6efe3;
  --ink: #102f33;
  --err: #a3231b;
  --line: #d8ccb2;
  --field: #cbbfa6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: #fff; font: 300 18px/1.55 'Source Serif 4', Georgia, serif; }
h1, h2, h3, .logo { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }
.center { text-align: center; }

/* Demo bar (CONFIG.demo in js/booking-rules.js) */
.demo { background: #f2c14e; color: var(--base); font: 600 14px/1.4 'Source Serif 4', serif; padding: 6px 20px; text-align: center; }

/* Header and navigation */
header { position: sticky; top: 0; z-index: 5; background: var(--base); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-size: 30px; text-decoration: none; display: block; }
nav { display: flex; align-items: center; gap: 22px; font-size: 18px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav .pill { padding: 14px 22px; }

/* Buttons */
.pill { display: inline-block; background: var(--accent); color: var(--base) !important; font: 600 15px/1 'Source Serif 4', serif; letter-spacing: .06em; text-transform: uppercase; padding: 18px 32px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none !important; text-align: center; }
.pill:hover { filter: brightness(.95); }
.alt { background: transparent; color: var(--ink); border: 1.5px solid var(--base); border-radius: 99px; padding: 10px 18px; font: 600 16px 'Source Serif 4', serif; cursor: pointer; margin: 10px 8px 0 0; }
.lnk { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.box :focus-visible { outline-color: #1a6fe0; }

/* Front page */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero .lead { font-size: 20px; max-width: 32ch; margin: 18px 0 24px; }
.band { background: var(--mid); padding: 52px 0; }
.sec { padding: 56px 0; }
h2.t { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.sub { max-width: 56ch; font-size: 19px; margin: 0 0 24px; opacity: .9; }
.card { border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; padding: 26px; }
.price { font: 400 36px 'DM Serif Display', serif; margin: 6px 0; }
.narrow { max-width: 640px; margin: 40px auto 0; }
.faq { display: grid; gap: 12px; max-width: 820px; }
details.card { padding: 0; }
details.card summary { cursor: pointer; padding: 20px 26px; font: 400 22px 'DM Serif Display', serif; list-style: none; }
details.card p { padding: 0 26px 22px; margin: 0; }
summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; float: right; }
details[open] > summary::after { content: "−"; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.points li { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; font-size: 16px; }
.points b { display: block; font: 400 21px 'DM Serif Display', serif; }
.points span { display: block; }
.choose { display: grid; gap: 14px; }
.choose a { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 20px 24px; text-decoration: none; }
.choose a:hover, .prices a:hover { filter: brightness(.97); }
.choose b { display: block; font: 400 26px 'DM Serif Display', serif; }
.choose span { font-size: 16px; opacity: .8; }
.choose .go { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--base); color: #fff; display: grid; place-items: center; font-size: 22px; opacity: 1; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; list-style: none; padding: 0; margin: 0 0 4px; font-size: 16px; }
.flow li { background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 6px 14px; }
.flow li + li::before { content: "→"; margin: 0 10px 0 -4px; opacity: .6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.step { margin: 22px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 22px 'DM Serif Display', serif; }
.step small { font: 300 15px 'Source Serif 4', serif; opacity: .7; margin-left: 6px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.prices a { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 16px 18px; text-decoration: none; display: block; }
.prices b { display: block; font: 400 21px 'DM Serif Display', serif; }
.prices .price { font-size: 26px; margin: 2px 0; }
/* "Pris efter aftale": words, not a number, so smaller. */
.prices .price.soft { font-size: 21px; padding: 4px 0 2px; }
.prices a > span { font-size: 15px; opacity: .8; }
.quote { font: 400 clamp(24px, 3vw, 32px)/1.25 'DM Serif Display', serif; max-width: 30ch; margin: 0 0 12px; }

/* Language switch */
.lang { display: inline-flex; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 99px; overflow: hidden; }
.lang button { background: transparent; color: #fff; border: 0; padding: 6px 11px; font: 600 14px 'Source Serif 4', serif; cursor: pointer; }
.lang button[aria-pressed=true] { background: #fff; color: var(--base); }

/* Paper panels and forms */
.box { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px; }
.box .pill { width: 100%; margin-top: 14px; background: var(--base); color: #fff !important; }
.box h2 { font-size: 30px; margin-bottom: 4px; }
.box > p { font-size: 16px; margin: 0 0 6px; }
label, .lb { display: block; font-weight: 600; font-size: 16px; margin: 16px 0 6px; padding: 0; }
input[type=text], input[type=tel], select, textarea { width: 100%; font: 400 17px 'Source Serif 4', serif; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 12px; padding: 11px 14px; }
textarea[readonly] { font-size: 15px; background: #fbf8f2; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-row { grid-template-columns: 2fr 1fr; }
.err { color: var(--err); font-size: 15px; min-height: 20px; margin: 4px 0 0; }
.ok { background: #e3f1e7; border-left: 5px solid #2e8b57; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 16px; }
.note { background: #fff; border-left: 5px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 16px; }
.det { font-size: 16px; margin: 0; opacity: .9; }
.box p.det.center { margin-top: 8px; font-size: 14px; }
.chk { position: relative; display: block; margin: 8px 0; }
.chk input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chk span { display: block; padding: 12px 16px 12px 46px; border: 1.5px solid var(--field); border-radius: 14px; background: #fff; font-weight: 400; position: relative; }
.chk span small { display: block; opacity: .75; font-size: 14px; }
.chk span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--base); border-radius: 5px; }
.chk input:checked + span { background: var(--base); color: #fff; border-color: var(--base); }
.chk input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.chk input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid #1a6fe0; outline-offset: 2px; }
.acc { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 400 17px 'Source Serif 4', serif; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 12px; padding: 11px 14px; cursor: pointer; text-align: left; }
.acc::after { content: "▾"; transition: transform .2s; }
.acc[aria-expanded=true]::after { transform: rotate(180deg); }
#times { margin-top: 4px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.slot span { display: block; text-align: center; padding: 9px 2px; border: 1.5px solid var(--field); border-radius: 99px; background: #fff; font-size: 16px; }
.slot input:checked + span { background: var(--base); color: #fff; border-color: var(--base); }
.slots > p { grid-column: 1 / -1; margin: 4px 0; }

/* Date picker (js/datepicker.js): the field is a button; the calendar opens over the page below it. */
.datefield { position: relative; }
.cal { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; width: 340px; max-width: calc(100vw - 48px); background: #fff; border: 1.5px solid var(--field); border-radius: 18px; padding: 14px; box-shadow: 0 12px 32px rgba(5, 20, 22, .28); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { margin: 0; font: 600 18px 'Source Serif 4', serif; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--field); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
/* minmax(0, 1fr): columns stay equal whatever text is in them (a browser translating the page once
   turned "man" into "Monday" and pushed the weekend out of the box). */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: 13px; text-transform: capitalize; opacity: .65; padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cal-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 400 16px 'Source Serif 4', serif; cursor: pointer; }
.cal-day:not(:disabled):hover { background: var(--paper); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--field); }
.cal-day[aria-pressed=true] { background: var(--base); color: #fff; }
.cal-day:disabled { opacity: .3; cursor: default; }
.cal-day.closed { text-decoration: line-through; }
.cal-day:focus-visible, .cal-nav:focus-visible { outline: 3px solid #1a6fe0; outline-offset: 1px; }

/* Price page */
.cb { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 14px 0; cursor: pointer; }
.cb input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: #102f33; }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 17px; }
.tbl td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:last-child { text-align: right; white-space: nowrap; }
.tbl .tot td { font-weight: 600; font-size: 20px; border-bottom: 0; padding-top: 12px; }

/* Dialogs */
.dialog { position: fixed; inset: 0; z-index: 20; background: rgba(5, 20, 22, .82); display: grid; place-items: center; padding: 20px; overflow: auto; }
.dialog .box { max-width: 520px; width: 100%; }
.dialog li { font-size: 17px; margin: 8px 0; }

footer.compact { padding: 28px 0; font-size: 15px; opacity: .85; }
footer.compact .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer.compact a { margin-right: 14px; }

/* Privacy policy and terms (privacy.html, terms.html): one article per language; the page shows the
   one matching <html lang>, which i18n.js sets. */
.legal { max-width: 78ch; margin: 32px auto 48px; padding: 36px 40px; }
.legal h1 { font-size: 40px; margin-bottom: 6px; }
.legal h2 { font-size: 26px; margin: 30px 0 6px; }
.legal h3 { font: 600 18px 'Source Serif 4', serif; margin: 18px 0 4px; }
.legal p, .legal li { font-size: 17px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .meta { font-size: 15px; opacity: .75; margin: 0 0 18px; }
.legal .form { border: 1.5px dashed var(--line); border-radius: 14px; padding: 4px 18px; }
html[lang="da"] .legal[lang="en"], html[lang="en"] .legal[lang="da"] { display: none; }
/* Text the business owner still has to fill in or confirm before launch. */
mark.todo { background: #f2c14e; color: #102f33; padding: 0 4px; border-radius: 4px; }

@media (max-width: 1000px) { nav a:not(.pill) { display: none; } }
@media (max-width: 860px) {
  .hero, .row, .split, .prices { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 26px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .addr-row { grid-template-columns: 1fr; } .legal { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .acc::after { transition: none; } }
