/* =====================================================
   Home flow v2: the cards that stay (SITE-v2.md): the
   brands card, the FAQ accordion, the booking form and
   the footer card. Layout of a .panel: css/panels.css.
   ===================================================== */
.zone {
  position: relative;
}

/* no JS / reduced motion: zones read as a column over the still pose */
:root:not(.film-on) .zone,
.reduced .zone {
  padding: 18vh 16px 10vh;
}

:root:not(.film-on) .film-copy,
.reduced .film-copy {
  max-width: 680px;
  margin: 0 auto 6vh;
  padding: 28px;
  border-radius: 6px;
  background: rgba(11, 7, 6, 0.72);
  color: var(--pearl);
  font: 400 17px/1.6 var(--ff-sans);
}

.film-copy .stats {
  list-style: none;
  display: grid;
  gap: 12px;
}

/* ---- FAQ accordion ------------------------------------------------------ */
.faq-badge {
  margin-bottom: 10px;
  font: 500 11px/1.4 var(--ff-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-badge a {
  color: inherit;
  text-decoration: none;
}

.faq-badge .badge__stars {
  color: #a88c45;
  letter-spacing: 0.1em;
}

.qa__h {
  margin: 0;
  font: inherit;
}

.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 16px/1.3 var(--ff-serif);
  text-align: left;
  cursor: pointer;
}

.qa__q:focus-visible,
.faq-maps:focus-visible {
  outline: 2px solid #a88c45;
  outline-offset: 2px;
}

.qa__q .qa__icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.qa__q .qa__icon::before,
.qa__q .qa__icon::after {
  top: 5.25px;
  width: 12px;
}

.is-enhanced .qa.is-open .qa__icon::after {
  transform: rotate(90deg) scaleX(0);
}

.qa__a[hidden] {
  display: none;
}

/* faq.js: the button to Roman Royss on Google Maps */
.faq-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(168, 140, 69, 0.75);
  border-radius: 999px;
  background: rgba(239, 226, 176, 0.35);
  color: var(--paper-ink);
  font: 500 11px/1 var(--ff-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.faq-maps:hover {
  background: rgba(239, 226, 176, 0.8);
  border-color: #a88c45;
}

.faq-maps svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---- the FAQ card over the reviews (film on) ----------------------------
   The panel is a sticky, viewport-tall column on the right: its compact
   card (faq.js wraps .faq-card) stays vertically centred while the story
   holds at 1,000+. Its layout height (100vh) sets the hold; home-ui.js
   still slides it in and out (transform, opacity). */
.film-on:not(.reduced) .panel--faq {
  position: sticky;
  top: 0 !important; /* home-layout writes the absolute top inline */
  right: auto;
  left: auto;
  display: flex;
  align-items: center;
  width: min(404px, 36vw);
  min-width: 340px;
  max-width: none;
  height: 100vh;
  height: 100svh;
  margin: 0 4vw 0 auto;
  padding: 92px 0 28px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

.panel--faq::before {
  display: none;
}

.panel--faq .faq-card {
  position: relative;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: auto; /* at its end the page takes the gesture over */
  scrollbar-width: thin;
  padding: 24px 26px 22px;
  border-radius: var(--card-radius);
  background: var(--tex-card-paper, linear-gradient(180deg, #efe8da, #e6dcc8));
  background-color: #efe8da;
  color: var(--paper-ink);
  font: 400 14px/1.55 var(--ff-sans);
  text-align: left;
  box-shadow: 0 24px 60px rgba(10, 2, 3, 0.42), 0 2px 8px rgba(10, 2, 3, 0.28);
  pointer-events: auto;
}

.panel--faq .faq-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  pointer-events: none;
}

.panel--faq .faq-card h3 {
  margin: 0 0 4px;
  font: 500 22px/1.15 var(--ff-serif);
  letter-spacing: 0.01em;
  color: var(--paper-ink);
}

.panel--faq .faq {
  margin-top: 4px;
  border-top: 1px solid rgba(168, 140, 69, 0.45);
}

.panel--faq .qa,
.panel--faq .qa:last-child {
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(168, 140, 69, 0.35);
}

.panel--faq .qa__h {
  margin: 0;
}

.panel--faq .faq-badge {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.panel--faq .qa__a {
  padding: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper-ink-soft);
}

.panel--faq .faq-maps {
  width: 100%;
}

/* phones: the card floats in the lower part of the frame, clear of the
   fixed Book button, and scrolls inside itself if it must */
.is-portrait.film-on:not(.reduced) .panel--faq {
  align-items: flex-end;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 76px 12px 74px; /* the cue and the Book button share this foot */
  border-radius: 0;
  box-shadow: none;
}

.is-portrait .panel--faq .faq-card {
  /* phones: never a scroll container. A card with its own scroll took every
     swipe that started on it, so the page could not move past the FAQ.
     The answers start closed (lib/faq.js), so the card fits as it is. */
  max-height: none;
  overflow: visible;
  padding: 14px 16px 12px; /* compact: the FAQ stop keeps "Reviews on Google" in view */
}

/* the film shows the stars right above; the Maps button keeps the link */
.is-portrait .panel--faq .faq-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-portrait .panel--faq .qa__q {
  font-size: 15px;
  line-height: 1.25;
  padding: 4px 0;
}

.is-portrait .panel--faq .faq-maps {
  margin-top: 8px;
}

.is-portrait.film-on:not(.reduced) .book-scroll {
  padding-top: 12px; /* the "Test mode" badge rides on the card's top edge */
}

.is-portrait .panel--faq .faq-card h3 {
  font-size: 20px;
}

/* ---- booking: the card scrolls inside itself while pinned -------------- */
.film-on:not(.reduced) .book-scroll {
  max-height: calc(100vh - 104px);
  max-height: calc(100svh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(211, 193, 129, 0.6) transparent;
}

.panel--book .book-h {
  color: var(--gold-hi);
  font: 400 clamp(28px, 2.6vw, 40px) / 1.1 var(--ff-display);
  color: var(--gold-hi);
  margin-bottom: 8px;
}

.panel--book.is-pinned {
  filter: drop-shadow(0 0 22px rgba(239, 226, 176, 0.18));
}

/* ---- booking, compact: the whole form fits one screen ------------------
   (1440x900, 390x844, 375x667). booking.css loads after this file, so
   every rule here is scoped under the film-on booking panel. */
.film-on:not(.reduced) .panel--book .book-intro {
  margin: 0 auto 14px;
  max-width: 38em;
}

.film-on:not(.reduced) .panel--book .book-h {
  margin-bottom: 4px;
  font-size: clamp(24px, 2.1vw, 30px);
}

.film-on:not(.reduced) .panel--book .book-intro p {
  font-size: 14px;
  line-height: 1.45;
}

.film-on:not(.reduced) .panel--book .bk {
  width: min(100%, 620px);
  padding: 30px 44px 22px;
}

.film-on:not(.reduced) .panel--book .bk::before {
  inset: 10px;
}

.film-on:not(.reduced) .panel--book .bk-head {
  margin-bottom: 12px;
}

.film-on:not(.reduced) .panel--book .bk-kicker {
  font-size: 10px;
}

.film-on:not(.reduced) .panel--book .bk-title {
  margin: 8px 0 0;
  font-size: 34px;
}

.film-on:not(.reduced) .panel--book .bk-sig {
  font-size: 28px;
  line-height: 1.1;
}

.film-on:not(.reduced) .panel--book .bk-lede {
  margin-top: 4px;
  font-size: 15px;
}

.film-on:not(.reduced) .panel--book .bk-grid {
  column-gap: 28px;
}

.film-on:not(.reduced) .panel--book .bk-label {
  font-size: 10px;
  letter-spacing: 0.26em;
}

.film-on:not(.reduced) .panel--book .bk-hint {
  font-size: 13px;
}

.film-on:not(.reduced) .panel--book .bk-input {
  min-height: 36px;
  padding: 4px 4px 3px;
  font-size: 18px;
}

.film-on:not(.reduced) .panel--book .bk-input--area {
  height: 50px;
  min-height: 50px;
  font-size: 16px;
  resize: none;
}

.film-on:not(.reduced) .panel--book .bk-error {
  min-height: 0;
  margin: 3px 0 8px;
  font-size: 12px;
}

.film-on:not(.reduced) .panel--book .bk-actions {
  gap: 8px;
  margin-top: 8px;
}

.film-on:not(.reduced) .panel--book .bk-send {
  min-width: 180px;
  min-height: 44px;
}

.film-on:not(.reduced) .panel--book .bk-fine {
  font-size: 12px;
  line-height: 1.45;
}

/* phones: the Book button hides over the pinned form; the intro, the lede
   and the field hints are read by screen readers only, and the fields sit
   two to a row, so the card fits under the header in one screen */
.is-portrait.film-on:not(.reduced) .panel--book {
  padding-bottom: 12px;
}

.is-portrait.film-on:not(.reduced) .book-scroll {
  max-height: calc(100vh - 84px);
  max-height: calc(100svh - 84px);
}

.is-portrait.film-on:not(.reduced) .panel--book :is(.book-intro, .bk-lede, .bk-hint) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk {
  padding: 26px 20px 16px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-head {
  margin-bottom: 6px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-title {
  margin-top: 6px;
  font-size: 28px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-sig {
  font-size: 24px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-label {
  letter-spacing: 0.2em;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-input {
  min-height: 34px;
  font-size: 16px; /* 16 px or more: iOS does not zoom into the field */
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-input--area {
  height: 44px;
  min-height: 44px;
}

.is-portrait.film-on:not(.reduced) .panel--book .bk-send {
  width: 100%;
}

/* the footer inside the r11 finale picture: css/footer.css (.site-foot--film) */

/* booked: the film's own thank-you is the visible one (no duplicate card) */
.film-on:not(.reduced) .panel--book.is-booked > * {
  opacity: 0;
  pointer-events: none;
}

.film-on.is-booked #scrim {
  opacity: 0 !important;
}

/* the Book button is redundant over the pinned form */
.book-pinned .book-btn {
  opacity: 0;
  pointer-events: none;
}

/* the film's own "Book the date" card (s7) is never part of the scroll
   story: the HTML form stands in for it. It shows only while book.js
   plays the send sequence (html.book-sending: the fold, the envelope,
   the seal); by the thank-you it is gone inside the film itself. */
.film-on:not(.book-sending) [data-id="s7-book"] :is(.card-wrap, .card-shadow),
:root:not(.film-on) [data-id="s7-book"] :is(.card-wrap, .card-shadow) {
  visibility: hidden !important;
}

/* the envelope sequence plays undimmed */
.film-on.book-sending #scrim {
  opacity: 0 !important;
  transition: opacity 0.45s ease;
}

/* reduced motion: the footer card scrolls up past the film's finale title,
   which stays readable at the end of the page */
.reduced #contact {
  padding-bottom: 85vh;
}

/* phones: the brands card is a short sheet docked at the screen foot, the
   logo rows stay in view above it; its text scrolls inside the card while
   the heading and the foot stay put (lib/home.js gives that scroll the swipe) */
.is-portrait.film-on:not(.reduced) [data-panel="clients"] {
  display: flex;
  flex-direction: column;
  max-height: 36svh;
  padding-top: 24px;
  padding-bottom: 72px; /* the cue and the Book button share this foot */
  overflow: hidden;
}

.is-portrait.film-on:not(.reduced) [data-panel="clients"] .panel__text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 16px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
}

.is-portrait.film-on:not(.reduced) [data-panel="clients"] .panel__text > p:last-child {
  margin-bottom: 0;
}

/* the FAQ badge: the stars on their own line, the rating under them */
.panel--faq .faq-badge .badge__stars {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

