/* Shared by every customer-site theme: reset, layout helpers, the request
   form's grid, the locked footer. Colours come from --site-* (set per tenant),
   fonts and everything visual from the theme's own stylesheet. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--site-bg); color: var(--site-text); line-height: 1.6; overflow-x: hidden; }
.site img { max-width: 100%; display: block; }
.site a { color: inherit; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.site-narrow { max-width: 720px; }
.site-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img { max-height: 44px; width: auto; }
.site-logo-text { font-weight: 700; letter-spacing: .02em; }

/* Buttons and links */
.site-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer; text-decoration: none; border: 0; font: inherit; font-weight: 700; padding: .9em 1.6em; background: var(--site-primary); color: var(--site-bg); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.site-btn:hover { transform: translateY(-1px); }
.site-btn:focus-visible, .site input:focus-visible, .site textarea:focus-visible, .site a:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 2px; }
.site-btn-block { width: 100%; }
.site-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* The request form */
.site-form { display: grid; gap: 1rem; }
.site-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.site-field { display: grid; gap: .35rem; font-size: .9rem; }
.site-field > span { opacity: .85; }
.site-field em { font-style: normal; opacity: .6; }
.site-field-wide { grid-column: 1 / -1; }
.site input, .site textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding: .75em .9em; border-radius: 0; }
.site textarea { resize: vertical; }
.site-fineprint { font-size: .8rem; opacity: .65; }
.site-alert { padding: .8em 1em; border: 1px solid currentColor; font-size: .9rem; }
.site-alert-error { border-color: #d33; }

/* Hero media */
.site-hero-media { margin: 0; position: relative; display: block; overflow: hidden; }
.site-hero-img { width: 100%; height: 100%; object-fit: cover; }
.site-hero-video { min-height: 240px; display: grid; place-items: center; text-decoration: none; background: color-mix(in srgb, var(--site-primary) 25%, var(--site-bg)); }
.site-play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--site-primary); color: var(--site-bg); font-size: 1.6rem; }
.site-hero-video-label { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; font-weight: 600; }

/* Footer: same words on every theme */
.site-footer { padding: 3rem 16px 2.5rem; text-align: center; font-size: .8rem; opacity: .75; max-width: 820px; margin: 0 auto; }
.site-footer p + p { margin-top: .6rem; }
.site-preview-bar { position: sticky; top: 0; z-index: 50; background: #111; color: #fff; text-align: center; font: 600 13px/1.4 system-ui, sans-serif; padding: 8px 16px; }
.site-preview-bar a { color: #ffd54a; }

@media (max-width: 640px) {
    .site-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
}

/* Thank-you page (every theme) */
.site-thanks-top { padding-top: 24px; padding-bottom: 24px; }
.site-thanks { text-align: center; padding-top: 48px; padding-bottom: 24px; display: grid; gap: 1.2rem; justify-items: center; }
.site-thanks h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.site-thanks-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--site-primary); color: var(--site-bg); font-size: 1.8rem; }

/* Signature themes' shared motion hooks (public/js/sites/fx.js). Without JS
   or with reduced motion, everything simply shows. */
.fx-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.fx-on [data-reveal].is-in { opacity: 1; transform: none; }
.fx-word { display: inline-block; white-space: nowrap; }
.fx-char { display: inline-block; }
.fx-settled .fx-char { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
[data-tilt] { transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }
[data-magnetic] { transition: transform .2s ease-out; }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.fx-corners { position: relative; }
.fx-corners::before, .fx-corners::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--site-primary); pointer-events: none; }
.fx-corners::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.fx-corners::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
