/* Tresor — extra styles for the contact, off-market and QR pages. Loaded after style.css. */

/* Elements with the hidden attribute stay hidden, even when a class gives them a display value */
[hidden] { display: none !important; }

/* ---------- off-market sign-up */
.form-head { display: flex; flex-direction: column; gap: 10px; }
.form-head p { font-size: 17px; line-height: 1.6; color: var(--text); }
.contact-split--om .contact-photo .scrim { background: linear-gradient(180deg, rgba(16,22,28,0.62) 0%, rgba(16,22,28,0.72) 50%, rgba(16,22,28,0.86) 100%); }
.loc__label { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.loc__select { position: relative; }
.loc__select summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 18px; font-weight: 300; color: var(--ink); border-bottom: 1px solid var(--line-2); padding: 10px 2px 12px 0;
}
.loc__select summary::-webkit-details-marker { display: none; }
.loc__select summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.loc__select[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.loc__select summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.loc__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc__value.is-empty { color: var(--caption); }
.field[aria-invalid="true"] .loc__select summary { border-bottom-color: #A3361F; }
.loc__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #FFFFFF;
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(16,22,28,0.14); padding: 6px 0 0;
}
.loc__opt { display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-size: 16px; line-height: 1.3; cursor: pointer; }
.loc__opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.loc__opt:has(input:checked) { background: #FAFAF8; }
.loc__done {
  display: block; width: calc(100% - 36px); margin: 8px 18px 14px; padding: 13px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0.06em;
}
.wa { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* Dark green so the WhatsApp button stands out, also on a phone in a dim restaurant or bar */
.btn--wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #146C43; color: #FFFFFF; }
.btn--wa:hover, .btn--wa:active { background: #0F5534; color: #FFFFFF; }
.btn--wa:focus-visible { outline: 2px solid #146C43; outline-offset: 3px; }
.wa-icon { width: 20px; height: 20px; flex: none; }
.wa small { font-size: 13px; letter-spacing: 0.04em; line-height: 1.6; color: var(--caption); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: 0; }

/* Typeform-style steps: one question at a time (only when JavaScript runs; otherwise all steps show as one form) */
.om-progress { font-size: 13px; letter-spacing: 0.08em; color: var(--caption); }
.om-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.om.is-stepped .om-step:not(.is-current) { display: none; }
.om.is-stepped .om-step.is-current { animation: om-in .25s ease-out; }
@keyframes om-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.field > label.om-q { font-family: var(--serif); font-size: clamp(30px, 8vw, 40px); line-height: 1.08; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.om .field[data-field="naam"] input, .om .field[data-field="email"] input, .om .field[data-field="bedrijf"] input { font-size: 22px; }
.om-hint { font-size: 14px; line-height: 1.5; color: var(--caption); margin-top: 6px; }
.om-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.om-link {
  background: none; border: 0; border-radius: 0; padding: 8px 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 400;
  letter-spacing: 0.06em; color: var(--muted); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.om-link:hover { color: var(--ink); }
.om-plain { color: var(--ink); }
.om-legal { font-size: 13px; letter-spacing: 0.04em; line-height: 1.6; color: var(--caption); }
/* Off-market: easy to read in a dim restaurant or bar (bigger letters, dark text, no thin weights) */
.om-mark { width: 44px; height: 44px; color: #FFFFFF; --disc: rgba(16,22,28,0.45); border-radius: 50%; flex: none; }
@media (min-width: 1000px) { .om-mark { width: 60px; height: 60px; } }
.contact-split--om .contact-form-col { font-weight: 400; }
.contact-split--om .form-head p { font-size: 18px; line-height: 1.5; color: var(--ink); }
/* Step 1 asks its question as big as the later steps do */
.contact-split--om .loc__label { font-family: var(--serif); font-size: clamp(30px, 8vw, 40px); line-height: 1.08; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.contact-split--om .loc__select summary { font-size: 19px; font-weight: 400; border-bottom: 1.5px solid var(--ink); }
.contact-split--om .loc__value.is-empty { color: var(--muted); }
.contact-split--om .loc__opt { font-size: 17px; }
.contact-split--om .consent { font-size: 16px; color: var(--ink); }
.contact-split--om .field input[type="text"], .contact-split--om .field input[type="email"] { font-weight: 400; border-bottom: 1.5px solid var(--ink); }
.contact-split--om .om-progress { font-size: 14px; color: var(--muted); }
.contact-split--om .om-hint { font-size: 15px; color: var(--muted); }
.contact-split--om .om-link { font-size: 16px; color: var(--ink); }
.contact-split--om .om-legal, .contact-split--om .wa small { font-size: 14px; color: var(--muted); }
.contact-split--om .btn { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .om.is-stepped .om-step.is-current { animation: none; } }
@media (max-width: 599px) {
  .btn--wa { width: 100%; }
  .om-nav { flex-direction: column; align-items: stretch; text-align: center; }
  .contact-split--om .contact-photo { min-height: 9.5rem; }
  .contact-split--om .form-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact-split--om .contact-photo__content { padding-top: 24px; padding-bottom: 22px; gap: 10px; }
  .contact-split--om .contact-photo h1 { font-size: 2.6rem; }
  .contact-split--om .contact-photo .lead { font-size: 17px; line-height: 1.5; }
  .contact-split--om .contact-form-col { padding-top: 26px; }
  .contact-split--om .form { gap: 22px; }
  .contact-split--om .form-head p { font-size: 18px; line-height: 1.5; }
}
@media (min-width: 1000px) {
  .contact-split--om .contact-photo .photo { top: 0; height: 100%; object-position: center 45%; }
}

/* ---------- QR page: a home-screen app on Hans's phone, shown to someone who scans the code */
.qr-page { background: var(--ink); color: #FFFFFF; min-height: 100svh; }
.qr {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 24px; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
}
.qr__top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr__mark { width: 56px; height: 56px; color: #FFFFFF; }
.qr__top p { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.qr__body { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.qr h1 { font-size: clamp(36px, 10vw, 52px); line-height: 1; color: #FFFFFF; }
.qr__places { font-size: 13px; letter-spacing: 0.06em; color: rgba(255,255,255,0.72); }
.qr__card { position: relative; margin: 14px 0 6px; background: #FFFFFF; padding: 14px; width: min(82vw, 380px); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.qr__code { display: block; width: 100%; height: auto; aspect-ratio: 1; }
/* The Tresor badge in the middle; the code has enough spare data (level H) to still scan with it */
.qr__logo {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: #FFFFFF; border-radius: 50%; padding: 3%; box-sizing: border-box;
}
.qr__logo-mark { width: 100%; height: 100%; color: var(--ink); --disc: #E7E0DB; }
.qr__hint { font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.86); }
.qr__foot { font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }
@media (min-height: 760px) { .qr__card { margin-top: 22px; } }

/* Rehearsal of Death hero: darker on the left so the text stays readable over the pale horizon */
.page-hero--rod .scrim { background: linear-gradient(90deg, rgba(16,22,28,0.58) 0%, rgba(16,22,28,0.3) 55%, rgba(16,22,28,0.12) 100%), linear-gradient(180deg, rgba(16,22,28,0.35) 0%, rgba(16,22,28,0) 30%, rgba(16,22,28,0.5) 100%); }
@media (max-width: 699px) { .page-hero--rod .scrim { background: rgba(16,22,28,0.5); } }
