/* FINCHER – WordPress additions on top of the design system (main.css) */

/* ---------- scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .hl { transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js .is-in > .block > .hl, html.js .is-in .hl, html.js .hl.is-in { transform: none; }
.curtain { transform-origin: top; transform: scaleY(1); transition: transform 1.2s var(--ease); }
.curtain.is-in { transform: scaleY(0); }
html:not(.js) .curtain { display: none; }
.viz-bar { transform-origin: 0 50%; transform: scaleX(var(--w, 1)); transition: transform 1.3s var(--ease); }
html.js [data-reveal]:not(.is-in) .viz-bar { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js .hl, .curtain, .viz-bar { transition: none !important; transform: none !important; opacity: 1 !important; }
  .curtain { display: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- header ---------- */
.fx-header { transition: box-shadow .5s, border-color .5s; }
.fx-header.is-scrolled, body.fx-menu-open .fx-header { border-color: rgba(11,42,91,.1); box-shadow: 0 8px 30px -12px rgba(11,42,91,.25); }
.admin-bar .fx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fx-header { top: 46px; } }
.fx-dd[hidden], .fx-mobile[hidden] { display: none !important; }
.fx-dd { animation: fxFade .25s var(--ease); }
.fx-mobile { animation: fxFade .25s var(--ease); }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }
[data-dd].is-open [data-dd-toggle] svg { transform: rotate(180deg); }
body.fx-menu-open { overflow: hidden; }
.admin-bar .fx-mobile { padding-top: 7.5rem; }

/* ---------- accordion ---------- */
.fx-acc-panel[hidden] { display: none; }
[data-acc-item][data-state="open"] [data-acc-trigger] svg { transform: rotate(180deg); }
[data-acc-item][data-state="open"] .fx-acc-panel { animation: accordion-down .2s ease-out; }

/* ---------- forms (Contact Form 7) ---------- */
.wpcf7 form .fx-field, .fx-field {
  display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(11,42,91,.25); border-radius: 0;
  background: transparent; padding: .75rem 0; font-size: 1rem; line-height: 1.5; font-family: inherit; color: var(--ink);
  outline: none; box-shadow: none; transition: border-color .2s;
}
.fx-field:focus { border-bottom-color: var(--gold); }
.fx-field::placeholder { color: #8A90A0; }
textarea.fx-field { resize: none; min-height: 7.5rem; }
.wpcf7 form select.fx-field, select.fx-field { -webkit-appearance: none; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A5B' stroke-opacity='.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .1rem center / 1rem; padding-right: 1.5rem; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: .4rem; font-size: .8rem; color: #b42318; }
.wpcf7 form .wpcf7-response-output { margin: 1.75rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--gold); font-size: .9rem; color: var(--ink); background: var(--ivory); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--money); color: var(--money); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #b42318; color: #b42318; }
.wpcf7 form .wpcf7-response-output:empty, .wpcf7 form .wpcf7-response-output[aria-hidden="true"] { display: none; }
.wpcf7-spinner { margin: 0 0 0 .75rem; }
.wpcf7 form.submitting .wpcf7-submit { opacity: .6; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }

/* ---------- long-form text (legal pages, articles) ---------- */
.prose-f h2 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin: 2.5rem 0 1rem; color: var(--ink); }
.prose-f h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin: 2rem 0 .75rem; color: var(--ink); }
.prose-f > :first-child { margin-top: 0; }
.prose-f ul, .prose-f ol { margin: 0 0 1.5rem 1.25rem; padding: 0; font-size: 1.125rem; line-height: 1.75; color: #36463d; }
.prose-f ul { list-style: none; margin-left: 0; } .prose-f ol { list-style: decimal; }
.prose-f li { margin: .35rem 0; }
.prose-f a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose-f blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--gold); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.prose-f img { max-width: 100%; height: auto; border-radius: 2px; margin: 1.5rem 0; }
.prose-f figure { margin: 1.5rem 0; }

/* ---------- misc ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { max-width: 100%; height: auto; }
.wp-caption, .alignnone { max-width: 100%; }
[data-yt].is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
