/* HCS Site Polish (hudsoncreativestudio.com). Companion to hcs-site-polish.php / .js.
 * Every rule sits behind a feature class on <html>, so any one feature can be switched off without touching the
 * rest. The script sets hp-float, hp-motion, hp-ink and hp-teaser only after each starts cleanly. PHP sets the
 * CSS-only ones (hp-field, hp-touch, hp-finish, hp-buttons) in <head> and body.hp-quiet on form pages, so nothing
 * re-wraps, resizes or flashes after first paint. Nothing here changes the brand: no color, typeface or layout of the design moves. */

/* ── float: the floating Get Started button (footer builder element, phones only) ───────────────── */
body.hp-quiet footer .uk-position-fixed.uk-position-bottom-left{display:none !important}
html.hp-float footer .uk-position-fixed.uk-position-bottom-left{transition:opacity .16s ease-out,transform .16s ease-out}
html.hp-float.hp-typing footer .uk-position-fixed.uk-position-bottom-left{opacity:0;transform:translateY(8px);pointer-events:none}

/* ── field: 16px fields on touch screens, so iOS does not zoom the page on focus ─────────────────── */
@media (pointer:coarse){
	html.hp-field :is(.gform_wrapper,.js-form-newsletter,.hcsidv-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){font-size:16px !important}
}

/* ── touch: hit areas grow, nothing moves ─────────────────────────────────────────────────────────── */
@media (pointer:coarse){
	html.hp-touch :is(.hcs-hr-link,.hcs-ftc-hr,.hcs-ftc__bot a,.hcs-tpl-custom a,.hcs-fee__link,.hcs-ftc__g,.hcs-ftc__soc a,.hcs-ftc__links a,.hcs-tpl-dots button,.hcs-tpl-pro__play){position:relative}
	html.hp-touch .hcs-tpl-pro__play{position:absolute}
	html.hp-touch :is(.hcs-hr-link,.hcs-ftc-hr,.hcs-ftc__bot a)::after{content:"";position:absolute;inset:-11px -4px}
	html.hp-touch :is(.hcs-tpl-custom a,.hcs-fee__link,.hcs-ftc__g)::after{content:"";position:absolute;inset:-10px 0}
	/* footer rows sit 35px apart: 8px each way fills the row without two links sharing a tap */
	html.hp-touch .hcs-ftc__links a::after{content:"";position:absolute;inset:-8px -8px}
	html.hp-touch .hcs-ftc__soc a::after{content:"";position:absolute;inset:-3px}
	html.hp-touch .hcs-tpl-dots button::after{content:"";position:absolute;inset:-16px -4px}
	html.hp-touch .hcs-tpl-pro__play::after{content:"";position:absolute;inset:-4px 0}
	html.hp-touch .tm-header-mobile .uk-navbar-toggle{min-width:44px;justify-content:center;margin-right:-12px}
}

/* ── motion: loops pause off screen and under the reduced-motion setting ─────────────────────────── */
html.hp-motion .hp-off :is(.fs-marquee-items,.marquee__group,.hcs-tpl-thumb img,.hcs-cta__glow,.hcs-cta__accent){animation-play-state:paused !important}
@media (prefers-reduced-motion:reduce){
	html.hp-motion :is(.fs-marquee-items,.marquee__group,.hcs-tpl-thumb img,.hcs-cta__glow,.hcs-cta__accent){animation-play-state:paused !important}
	html.hp-float footer .uk-position-fixed.uk-position-bottom-left{transition:none}
}

/* ── ink: the lightest grey, one step darker (the script marks the text that uses it) ───────────── */
html.hp-ink .hp-ink3{color:#666678 !important}
html.hp-ink .hp-ink3b{color:#5f6686 !important}

/* ── teaser: the chat greeting card leaves quietly ────────────────────────────────────────────────── */
html.hp-teaser #wpreplai-greeting{transition:opacity .2s ease-out,transform .2s ease-out}
html.hp-teaser #wpreplai-greeting.hp-bye{opacity:0;transform:translateY(6px);pointer-events:none}
@media (prefers-reduced-motion:reduce){
	html.hp-teaser #wpreplai-greeting{transition:none}
}

/* ── finish: balanced headline wraps ──────────────────────────────────────────────────────────────── */
html.hp-finish .tm-page :is(h1,h2,h3){text-wrap:balance}

/* ── buttons: form submit buttons and the ID check button take the site button style ───────────── */
html.hp-buttons .gform_wrapper .gform_footer :is(input[type=submit],button).gform_button,
html.hp-buttons .hcsidv-form .hcsidv-form__button{
	-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;
	min-height:52px;padding:0 30px;border:2px solid #f43f5e !important;border-radius:999px !important;
	background:#f43f5e !important;color:#fff !important;
	font:600 15px/1.2 Poppins,sans-serif !important;letter-spacing:normal;text-transform:none;cursor:pointer;
	box-shadow:0 10px 24px rgba(244,63,94,.25);transition:transform .18s ease-out,box-shadow .18s ease-out;
}
html.hp-buttons .hcsidv-form .hcsidv-form__button{min-height:44px;padding:0 24px;box-shadow:none}
html.hp-buttons :is(.gform_wrapper .gform_footer .gform_button,.hcsidv-form .hcsidv-form__button):active{transform:scale(.98)}
html.hp-buttons :is(.gform_wrapper .gform_footer .gform_button,.hcsidv-form .hcsidv-form__button):focus-visible{outline:2px dotted #0d0a46;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
	html.hp-buttons :is(.gform_wrapper .gform_footer .gform_button,.hcsidv-form .hcsidv-form__button){transition:none}
	html.hp-buttons :is(.gform_wrapper .gform_footer .gform_button,.hcsidv-form .hcsidv-form__button):active{transform:none}
}
