/* Pàgina pública de reserves: primer el mòbil. Clar i fosc segons el telèfon. */
:root {
  --fons: #f7f3ec;
  --carta: #ffffff;
  --text: #1d1a16;
  --suau: #6b6258;
  --vora: #ded5c7;
  --or: #875c15;
  --or-text: #ffffff;
  --avis: #fdf1dc;
  --avis-text: #6b4508;
  --error: #a3271c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fons: #14120f;
    --carta: #1f1c18;
    --text: #f2ece3;
    --suau: #b3a898;
    --vora: #3a342c;
    --or: #d9a548;
    --or-text: #1a1408;
    --avis: #2d2416;
    --avis-text: #f0cf8f;
    --error: #ff8a7a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fons);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vora);
}
.marca { display: flex; flex-direction: column; line-height: 1.1; }
.logo { font: 600 26px/1 Georgia, 'Times New Roman', serif; letter-spacing: .5px; }
.logo b { color: var(--or); font-weight: 600; }
.sub { font-size: 12px; color: var(--suau); letter-spacing: 1.5px; text-transform: uppercase; }
select, input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--carta);
  border: 1px solid var(--vora);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}
main { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
h1 { font: 600 28px/1.2 Georgia, serif; margin: 16px 0 8px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 14px; color: var(--suau); text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 8px; }
section, form { margin: 20px 0; }
.botons { display: flex; flex-wrap: wrap; gap: 8px; }
button {
  font: inherit;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--vora);
  background: var(--carta);
  color: var(--text);
  cursor: pointer;
}
.botons button { min-width: 52px; padding: 6px 12px; font-weight: 600; }
.hores button { min-width: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.hores button small { font-size: 12px; font-weight: 400; }
button[aria-pressed='true'] { background: var(--or); border-color: var(--or); color: var(--or-text); }
button:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--or); outline-offset: 2px;
}
input[type='date'] { width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; font-size: 15px; }
label span { color: var(--suau); }
label.casella { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
label.casella input { min-height: 0; width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--or); }
label.casella span { color: var(--text); }
details { margin: 4px 0 16px; font-size: 14px; color: var(--suau); }
summary { cursor: pointer; text-decoration: underline; padding: 12px 0; }
#turnstile { margin: 12px 0; min-height: 65px; }
.principal { width: 100%; background: var(--or); border-color: var(--or); color: var(--or-text); font-weight: 700; font-size: 17px; min-height: 52px; }
.principal:disabled { text-decoration: none; }
.nota { color: var(--suau); font-size: 14px; }
.avis { background: var(--avis); color: var(--avis-text); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
#error { color: var(--error); background: transparent; border: 1px solid var(--error); }
.destacat { font-weight: 600; }
.resum { font-size: 20px; font-weight: 600; }
#fet button { margin-top: 12px; padding: 0 16px; }
footer { text-align: center; padding: 16px; border-top: 1px solid var(--vora); }
footer a { color: var(--or); font-weight: 600; text-decoration: none; }
[hidden] { display: none !important; }
