/* ============================================================================
   faq.css: questions before booking, the contact pop-up's sibling. Same night
   palette, frame, close control and motion as contact.css, one column: a head,
   the questions (each a native details row, one open at a time), and the free
   call pinned underneath. On a phone it becomes a bottom sheet, as contact
   does. faq.js owns open and closing; this file decides how they look.
   ========================================================================== */

html.is-faq-open { overflow: hidden; }

.faq {
  --f-surface: #1B1510;
  --f-raised: #231B14;
  --f-ink: #F4ECDF;
  --f-soft: #A79883;
  --f-body: #CDBFAB;
  --f-hair: color-mix(in oklab, var(--f-ink) 9%, transparent);
  --f-hair-2: color-mix(in oklab, var(--f-ink) 16%, transparent);
  --f-hair-3: color-mix(in oklab, var(--f-ink) 26%, transparent);
  --f-accent: #F2A93B;
  --f-accent-text: #F0B65E;
  --f-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-max-h: min(46rem, calc(100svh - 2.5rem));
  interpolate-size: allow-keywords;          /* lets an answer's height animate to auto */

  width: min(44rem, calc(100vw - 2 * var(--sc-gutter)));
  max-width: none; max-height: var(--f-max-h);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--f-surface); color: var(--f-ink);
  font-family: var(--sc-font-text);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--f-hair-2),
    inset 0 1px 0 color-mix(in oklab, var(--f-ink) 7%, transparent),
    0 50px 140px -30px rgba(0, 0, 0, .85),
    0 0 120px -40px rgba(242, 169, 59, .25);
}
.faq::backdrop {
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(242, 169, 59, .08), transparent 70%),
    rgba(8, 6, 4, .74);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.faq__inner { display: flex; flex-direction: column; max-height: var(--f-max-h); }

/* ---------- head ---------- */
.faq__head {
  position: relative; flex: none;
  padding: 2.2rem 2.4rem 1.6rem;
  border-bottom: 1px solid var(--f-hair);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(242, 169, 59, .09), transparent 60%),
    var(--f-surface);
}
.faq__kicker {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  font-family: var(--sc-font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--f-accent-text);
}
.faq__lamp {
  width: 7px; height: 7px; border-radius: 50%; background: var(--f-accent);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .16), 0 0 14px rgba(242, 169, 59, .6);
}
.faq__title { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.05; }
.faq__lede { margin: .6rem 0 0; color: var(--f-soft); font-size: var(--sc-t-sm); line-height: 1.5; max-width: 40ch; }
.faq__close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in oklab, var(--f-ink) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--f-hair-2); color: var(--f-soft);
  transition: background var(--sc-d-base) var(--sc-ease-out), color var(--sc-d-base) var(--sc-ease-out), rotate 380ms var(--f-ease);
}
.faq__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.faq__close:hover, .faq__close:focus-visible { background: color-mix(in oklab, var(--f-ink) 11%, transparent); color: var(--f-ink); rotate: 90deg; }
.faq__close:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; }

/* ---------- the questions ---------- */
.faq__list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: .4rem 2.4rem;
  scrollbar-width: thin; scrollbar-color: var(--f-hair-3) transparent;
}
.faq__item { border-bottom: 1px solid var(--f-hair); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1.5rem; align-items: baseline; gap: .75rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  border-radius: 6px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 4px; }
.faq__n { font-family: var(--sc-font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--f-soft); transition: color .3s var(--sc-ease-out); }
.faq__q { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.35; color: var(--f-body); transition: color .3s var(--sc-ease-out); }
.faq__item summary:hover .faq__q, .faq__item[open] .faq__q { color: var(--f-ink); }
.faq__item[open] .faq__n { color: var(--f-accent-text); }
/* a plus that becomes a minus */
.faq__icon { position: relative; align-self: center; width: 12px; height: 12px; justify-self: end; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.5px; margin-top: -.75px;
  border-radius: 1px; background: var(--f-soft); transition: transform .4s var(--f-ease), background .3s var(--sc-ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--f-accent-text); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a p { margin: 0; padding: 0 2.25rem 1.3rem 2.75rem; color: var(--f-body); font-size: var(--sc-t-sm); line-height: 1.65; max-width: 58ch; }

/* The answer opens to its height where the browser can animate to auto
   (Chrome, Edge); elsewhere it simply appears, which is fine. */
.faq__item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .42s var(--f-ease), content-visibility .42s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* ---------- the way out: the call ---------- */
.faq__foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem;
  padding: 1.25rem 2.4rem calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--f-hair); background: var(--f-raised);
}
.faq__foot p { margin: 0; color: var(--f-soft); font-size: var(--sc-t-sm); }
.faq__call {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.3rem;
  border-radius: 10px; text-decoration: none; white-space: nowrap;
  font-family: var(--sc-font-display); font-weight: 600; font-size: .95rem; color: #14100C;
  background: linear-gradient(180deg, #FFBE55, var(--f-accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 30px -12px rgba(242,169,59,.7);
  transition: transform .25s var(--f-ease), box-shadow .25s var(--f-ease);
}
.faq__call:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 36px -12px rgba(242,169,59,.85); }
.faq__call:active { transform: scale(.97); }
.faq__call:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; }

/* ---------- motion, as contact's ---------- */
.faq[open] { animation: faq-in 520ms var(--f-ease); }
.faq[open]::backdrop { animation: faq-fade 360ms var(--sc-ease-out); }
.faq[open] .faq__item { animation: faq-rise 520ms var(--f-ease) backwards; }
.faq[open] .faq__item:nth-child(1) { animation-delay: 80ms; }
.faq[open] .faq__item:nth-child(2) { animation-delay: 110ms; }
.faq[open] .faq__item:nth-child(3) { animation-delay: 140ms; }
.faq[open] .faq__item:nth-child(4) { animation-delay: 170ms; }
.faq[open] .faq__item:nth-child(5) { animation-delay: 200ms; }
.faq[open] .faq__item:nth-child(6) { animation-delay: 230ms; }
.faq[open] .faq__item:nth-child(n+7) { animation-delay: 260ms; }
.faq.is-closing { animation: faq-out 220ms var(--sc-ease-out) forwards; }
.faq.is-closing::backdrop { animation: faq-fade-out 220ms var(--sc-ease-out) forwards; }
@keyframes faq-in { from { opacity: 0; transform: translateY(18px) scale(.975); filter: blur(6px); } }
@keyframes faq-out { to { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(3px); } }
@keyframes faq-fade { from { opacity: 0; } }
@keyframes faq-fade-out { to { opacity: 0; } }
@keyframes faq-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- phone: bottom sheet ---------- */
@media (max-width: 760px) {
  .faq {
    --f-max-h: calc(100svh - 1.5rem);
    width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0;
  }
  .faq__head { padding: 1.6rem 1.35rem 1.25rem; }
  .faq__close { top: 1rem; right: 1rem; }
  .faq__list { padding: .2rem 1.35rem; }
  .faq__item summary { grid-template-columns: 1.7rem minmax(0, 1fr) 1.25rem; gap: .6rem; padding: 1rem 0; }
  .faq__q { font-size: 1rem; }
  .faq__a p { padding: 0 .5rem 1.15rem 2.3rem; }
  .faq__foot { padding: 1rem 1.35rem calc(1.1rem + env(safe-area-inset-bottom)); }
  .faq__foot p { display: none; }
  .faq__call { flex: 1 1 100%; }
  .faq[open] { animation-name: faq-sheet-in; }
  .faq.is-closing { animation-name: faq-sheet-out; }
  @keyframes faq-sheet-in { from { transform: translateY(40%); opacity: 0; } }
  @keyframes faq-sheet-out { to { transform: translateY(30%); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .faq[open], .faq[open]::backdrop, .faq[open] .faq__item, .faq.is-closing, .faq.is-closing::backdrop { animation: none; }
  .faq__item::details-content { transition: none; }
}
