/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, the call bar, the stop icon, and each section pattern, card, form box and call-to-action block as the
   home page built them. Every page loads it (the build copies it to site\assets\css\components.css). Every page uses these
   classes as they are; a page's own CSS only places and sizes its parts, with the tokens of system.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { overflow-x: clip; }
main { display: block; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.section--alt { background: var(--c-paper-alt); }
.section--tight-top { padding-top: calc(var(--section-y) * 0.55); }

/* ---------- the motif: the split circle ---------- */
.split { display: block; overflow: visible; }
.split__your { fill: var(--c-accent); }
.split__our { fill: var(--c-brand); }
.split--pale .split__your { fill: color-mix(in srgb, var(--c-accent) 24%, var(--c-paper)); }
.split--pale .split__our { fill: color-mix(in srgb, var(--c-brand) 13%, var(--c-paper)); }
.split--grey .split__your { fill: color-mix(in srgb, var(--c-ink) 18%, var(--c-paper)); }
.split--grey .split__our { fill: color-mix(in srgb, var(--c-ink) 34%, var(--c-paper)); }
.frame-motif { position: absolute; z-index: 0; pointer-events: none; }

/* ---------- the framed picture ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--c-paper-alt); isolation: isolate; }
.frame > video, .frame > img, .frame > .frame__fill { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  font: 700 var(--fs-body)/1.1 var(--font-ui); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--main { background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c-brand) 70%, transparent); }
.btn--main:hover { background: var(--c-brand-dark); }
.btn--main:active { transform: translateY(1px); }
.btn--ghost { background: var(--c-paper); color: var(--c-brand-text); box-shadow: inset 0 0 0 2px var(--c-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--c-brand); }
.btn__arrow { width: 20px; height: 20px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-body)/1.2 var(--font-ui); color: var(--c-brand-text); text-decoration: none; }
.link-more .btn__arrow { width: 18px; height: 18px; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-row { display: grid; justify-items: center; gap: 10px; margin-top: var(--space-5); text-align: center; }
.cta-row__line { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- the header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-3);
  height: 78px; padding: 0 var(--gutter);
  background: var(--c-paper); box-shadow: 0 1px 0 var(--c-line);
}
.site-header__logo { display: flex; align-items: center; margin-right: auto; border-radius: var(--radius-s); }
.logo { display: block; overflow: hidden; aspect-ratio: 1288 / 432; }
.logo img { display: block; width: calc(100% * 1372 / 1288); max-width: none; height: auto; margin-left: calc(-100% * 40 / 1288); margin-top: calc(-100% * 37 / 1288); }
.logo--header { height: 52px; }
.logo--footer { height: 56px; }
.logo--popup { height: 40px; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item a { display: block; padding: 10px 14px; border-radius: var(--radius-pill); color: var(--c-ink); font: 600 var(--fs-ui)/1.2 var(--font-ui); text-decoration: none; }
.nav__item a:hover { background: var(--c-paper-alt); color: var(--c-brand-text); }
.nav__item a[aria-current="page"] { color: var(--c-brand-text); }
.site-header__cta {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; margin-left: var(--space-2);
  border-radius: var(--radius-pill); background: var(--c-brand); color: var(--c-on-brand);
  font: 700 var(--fs-ui)/1 var(--font-ui); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.site-header__cta:hover { background: var(--c-brand-dark); }
.site-header__menu { display: none; }
@media (max-width: 980px) {
  .site-header { height: 66px; }
  .logo--header { height: 40px; }
  .site-header__menu {
    position: relative; order: 3; display: inline-block; flex: none; width: 46px; height: 46px; padding: 0; border: 0;
    border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); font-size: 0; cursor: pointer;
  }
  .site-header__menu::before, .site-header__menu::after { content: ""; position: absolute; left: 13px; top: 21.75px; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out); }
  .site-header__menu::before { transform: translateY(-6px); box-shadow: 0 6px 0 currentColor; }
  .site-header__menu::after { transform: translateY(6px); }
  .site-header[data-open] .site-header__menu::before { transform: rotate(45deg); box-shadow: none; }
  .site-header[data-open] .site-header__menu::after { transform: rotate(-45deg); }
  .site-header__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: var(--space-3) var(--gutter) var(--space-4); background: var(--c-paper); box-shadow: var(--shadow-m); }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item a { padding: 14px 12px; font-size: var(--fs-body); }
  .site-header__cta { min-height: 42px; padding: 0 16px; font-size: var(--fs-label); }
}
@media (max-width: 359px) { .site-header__cta { display: none; } }

/* ---------- the footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4);
  padding: var(--space-6) max(var(--gutter), (100% - var(--max-w)) / 2) var(--space-4);
  background: var(--c-paper-alt);
}
.site-footer::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 14%, var(--c-paper-alt)); pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }
.site-footer__logo { display: inline-block; }
.site-footer__line { max-width: 32ch; margin: var(--space-3) 0 0; color: var(--c-ink-soft); font-size: var(--fs-body); }
.site-footer__title { margin: 0; font: 800 var(--fs-label)/1.2 var(--font-ui); color: var(--c-ink); }
.site-footer__col ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-footer__col a { color: var(--c-ink-soft); font-weight: 600; text-decoration: none; }
.site-footer__col a:hover { color: var(--c-brand-text); }
.site-footer__contact:not(:has(a, address)) { display: none; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: var(--space-4); border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-soft); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__legal a { color: var(--c-ink-soft); }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr 1fr; padding-bottom: calc(var(--space-4) + 84px); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- the stop icon ---------- */
.stop {
  position: absolute; z-index: 8; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.stop:hover { color: var(--c-brand-text); transform: scale(1.06); }
.stop[aria-pressed="true"] { color: var(--c-brand-text); }

/* ---------- the part's head ---------- */
.head { display: grid; gap: 14px; max-width: 760px; margin: 0 0 var(--space-5); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head__title { margin: 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.018em; }
.head__line { margin: 0; max-width: 58ch; font-size: var(--fs-lead); color: var(--c-ink-soft); }

/* ---------- the clients picker ---------- */
.picker { display: grid; gap: 14px; width: 100%; max-width: 480px; padding: 22px 22px 18px; background: var(--c-paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.picker--flat { padding: 0; box-shadow: none; background: transparent; border-radius: 0; }
.picker__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker__legend { padding: 0; margin-bottom: 10px; font: 700 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-ink); }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.picker__choice { position: relative; display: block; }
.picker__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span {
  display: grid; place-items: center; height: 48px; border-radius: var(--radius-pill);
  background: var(--c-paper-alt); box-shadow: inset 0 0 0 1.5px var(--c-line);
  font: 600 1.0625rem/1 var(--font-display); color: var(--c-ink);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.picker__choice:hover span { box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.picker__choice input:checked + span { background: var(--c-brand); color: var(--c-on-brand); box-shadow: none; }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.picker__go { width: 100%; }
.picker__line { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- the booking card ---------- */
.book {
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(340px, 100%);
  padding: 12px 18px 12px 12px; background: var(--c-paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
}
.book__tick { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); }
.book__tick svg { width: 20px; height: 20px; }
.book__text { min-width: 0; }
.book__title { display: block; font: 700 var(--fs-ui)/1.25 var(--font-ui); color: var(--c-ink); }
.book__sub { display: block; margin-top: 2px; font: 500 var(--fs-label)/1.3 var(--font-ui); color: var(--c-ink-soft); }

/* ---------- cards ---------- */
.card { background: var(--c-paper); border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.card--line { box-shadow: inset 0 0 0 1px var(--c-line); }

/* ---------- the FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--c-paper); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow var(--dur-fast) var(--ease-out); }
.faq-item[open] { box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-s); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; font: 600 var(--fs-lead)/1.35 var(--font-display); color: var(--c-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-paper-alt); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2.5px; margin: -1.25px 0 0 -6.5px; border-radius: 2px; background: var(--c-brand); transition: transform var(--dur-fast) var(--ease-out); }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--c-brand-light); }
.faq-item[open] .faq-item__icon::after { transform: rotate(90deg) scaleX(0); }
.faq-item__answer { padding: 0 22px 22px; color: var(--c-ink-soft); }
.faq-item__answer p { margin: 0; max-width: 64ch; }
.faq-item__answer a { font-weight: 700; }

/* ---------- the closing band ---------- */
.close { position: relative; padding-block: var(--section-y); overflow: clip; }
.close__inner { position: relative; }
.close__band { min-height: clamp(520px, 44vw, 620px); }
.close__box {
  position: absolute; z-index: 2; left: clamp(20px, 4vw, 56px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 16px; width: min(500px, 46%); padding: clamp(26px, 3vw, 38px);
  background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l);
}
.close__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
.close__line { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-body); }
.close .picker { padding: 0; box-shadow: none; max-width: none; }
.close__motif { position: absolute; right: -60px; top: -80px; width: clamp(220px, 26vw, 360px); height: auto; }
@media (max-width: 860px) {
  .close__band { min-height: 0; aspect-ratio: 4 / 3; }
  .close__box { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -64px 12px 0; }
  .close__motif { top: -50px; right: -50px; width: 190px; }
}

/* ---------- the exit popup ---------- */
.exit { width: min(780px, calc(100% - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: visible; }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 58%, transparent); }
html[data-kit-modal] { overflow: hidden; }
.exit__in { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); overflow: hidden; background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.exit[data-kit-on] .exit__in { animation: exit-in var(--dur-med) var(--ease-out); }
@keyframes exit-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.exit__art { display: grid; align-content: center; justify-items: center; gap: 22px; padding: 34px 26px; background: var(--c-paper-alt); }
.exit__split { width: 150px; height: 150px; }
.exit__split-words { margin: 0; max-width: 18ch; text-align: center; font: 600 var(--fs-body)/1.35 var(--font-display); color: var(--c-ink); }
.exit__body { display: grid; gap: 14px; padding: 34px 38px 30px; }
.exit__logo { display: block; }
.exit__title { margin: 6px 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -0.015em; }
.exit__line { margin: 0; color: var(--c-ink-soft); }
.exit__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); font: 400 26px/1 var(--font-ui); cursor: pointer; }
.exit__close:hover { background: var(--c-brand-light); }
/* the dialog itself takes focus as it opens: no ring around the whole popup (its controls keep theirs) */
.exit:focus, .exit:focus-visible { outline: none; }
@media (max-width: 700px) {
  .exit__in { grid-template-columns: 1fr; }
  .exit__art { display: none; }
  .exit__body { padding: 28px 22px 22px; }
}

/* ---------- the call bar on the phone ---------- */
.callbar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px; padding: 7px;
  background: var(--c-paper); border-radius: var(--radius-pill); box-shadow: var(--shadow-l);
  transform: translateY(150%); transition: transform var(--dur-med) var(--ease-out);
}
.callbar[data-kit-on] { transform: none; }
.callbar a { display: grid; place-items: center; min-height: 50px; padding: 0 12px; border-radius: var(--radius-pill); font: 700 var(--fs-ui)/1.1 var(--font-ui); text-align: center; text-decoration: none; }
.callbar__call { color: var(--c-brand-text); box-shadow: inset 0 0 0 2px var(--c-line); }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- the thank-you page ---------- */
.thanks { position: relative; display: grid; place-items: center; min-height: 72vh; padding: var(--section-y) var(--gutter); overflow: hidden; background: var(--c-paper-alt); }
.thanks__split { position: absolute; right: -8vw; top: 50%; width: min(70vw, 760px); height: auto; transform: translateY(-50%); }
.thanks__card { position: relative; display: grid; justify-items: center; gap: 18px; max-width: 640px; padding: clamp(30px, 5vw, 56px); text-align: center; background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.thanks__mark { width: 64px; height: 64px; }
.thanks__headline { margin: 0; font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
.thanks__body { margin: 0; max-width: 46ch; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.thanks__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn__arrow, .stop, .callbar, .faq-item__icon::before, .faq-item__icon::after { transition: none; }
  .exit[data-kit-on] .exit__in { animation: none; }
}
