/* Emitrix theme: tokens, base, header, footer, sections. Dark by default; light via [data-theme="light"]. */
:root {
	--emx-bg: #0B0D0C; --emx-surface: #121513; --emx-surface-2: #1A1E1B; --emx-line: #262B27; --emx-line-strong: #5C655E;
	--emx-text: #EDEFEC; --emx-text-muted: #9BA39D; --emx-accent: #5AFF00; --emx-accent-ink: #5AFF00; --emx-on-accent: #0B0D0C;
	--emx-night: #141816; --emx-focus: #5AFF00; --emx-danger: #FF6B5E;
	--emx-font-display: var(--wp--preset--font-family--display, Outfit, system-ui, sans-serif);
	--emx-font-body: var(--wp--preset--font-family--body, Geist, system-ui, sans-serif);
	--emx-font-mono: var(--wp--preset--font-family--mono, 'Geist Mono', ui-monospace, monospace);
	--emx-r-control: 999px; --emx-r-field: 12px; --emx-r-media: 16px; --emx-r-signature: 16px 64px 16px 16px;
	--emx-gutter: clamp(16px, 4vw, 40px); --emx-header-h: 72px;
	--emx-section: clamp(4rem, 2rem + 6vw, 8rem);
	--emx-ease-out: cubic-bezier(0.16, 1, 0.3, 1); --emx-ease-state: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (max-width: 767px) { :root { --emx-header-h: 64px; --emx-r-signature: 16px 40px 16px 16px; } }
:root[data-theme="light"] {
	--emx-bg: #F4F5F2; --emx-surface: #FBFBF9; --emx-surface-2: #E9ECE7; --emx-line: #D9DDD8; --emx-line-strong: #7C847E;
	--emx-text: #121513; --emx-text-muted: #535B55; --emx-accent: #141816; --emx-accent-ink: #2A6E00; --emx-on-accent: #5AFF00; --emx-focus: #2A6E00; --emx-danger: #B42318;
	--wp--preset--color--base: #F4F5F2; --wp--preset--color--surface: #FBFBF9; --wp--preset--color--surface-2: #E9ECE7; --wp--preset--color--line: #D9DDD8; --wp--preset--color--line-strong: #7C847E;
	--wp--preset--color--text: #121513; --wp--preset--color--text-muted: #535B55; --wp--preset--color--accent: #141816; --wp--preset--color--accent-ink: #2A6E00; --wp--preset--color--on-accent: #5AFF00; --wp--preset--color--focus: #2A6E00;
}
@media (prefers-contrast: more) { :root { --emx-text-muted: var(--emx-text); } }

html { scroll-padding-top: calc(var(--emx-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--emx-bg); color: var(--emx-text); font-family: var(--emx-font-body); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { hyphens: manual; }
p, li, dd { hyphens: auto; }
h1, h2, h3, h4, .wp-block-heading { font-family: var(--emx-font-display); color: var(--emx-text); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-weight: 600; }
p { text-wrap: pretty; }
:where(.wp-site-blocks) :where(p, li) { max-width: 65ch; }
a { color: var(--emx-accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--emx-accent); color: var(--emx-on-accent); }
:focus-visible { outline: 2px solid var(--emx-focus); outline-offset: 2px; box-shadow: 0 0 0 4px var(--emx-bg); border-radius: 4px; }
.emx-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--emx-accent); color: var(--emx-on-accent); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.emx-skip:focus { top: 12px; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- header ---------- */
.emx-site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; view-transition-name: site-header; }
.admin-bar { --emx-adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --emx-adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --emx-adminbar: 0px; } } /* WordPress stops fixing the admin bar here; it scrolls away. */
.admin-bar .emx-site-header { top: var(--emx-adminbar); }
/* 1.0.9: no backdrop blur. Behind a 95 % opaque bar it was invisible, but over the hero video it re-blurred the frame on every frame. */
.emx-header { background: color-mix(in srgb, var(--emx-bg) 96%, transparent); border-bottom: 1px solid var(--emx-line); transition: background-color 300ms, border-color 300ms; }
html.js .emx-front:not(.emx-scrolled) .emx-header { background: transparent; border-color: transparent; }
html.js .emx-front:not(.emx-scrolled) .emx-header, html.js .emx-front:not(.emx-scrolled) .emx-nav a { color: #EDEFEC; }
.emx-header__inner { max-width: 1400px; margin: 0 auto; height: var(--emx-header-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--emx-gutter); }
.emx-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--emx-text); }
/* Two classes so WooCommerce's `.woocommerce img { height: auto }` cannot enlarge the logo. */
.emx-logo .emx-logo__img { height: 40px; width: auto; max-width: none; display: block; }
@media (max-width: 767px) { .emx-logo .emx-logo__img { height: 34px; } }
.emx-logo__text { font-family: var(--emx-font-display); font-weight: 600; font-size: 1.375rem; }
.emx-nav { margin-left: auto; }
.emx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.emx-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--emx-text); text-decoration: none; font-weight: 500; font-size: .9375rem; border-radius: 8px; white-space: nowrap; }
.emx-nav a:hover { background: color-mix(in srgb, var(--emx-text) 8%, transparent); }
.emx-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--emx-accent-ink); border-radius: 0; }
.emx-header__utils { display: flex; align-items: center; gap: 4px; }
.emx-iconbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.emx-iconbtn:hover { background: color-mix(in srgb, var(--emx-text) 8%, transparent); }
.emx-cartcount[hidden] { display: none; }
.emx-cartcount { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--emx-accent); color: var(--emx-on-accent); font-size: .6875rem; font-weight: 700; display: grid; place-items: center; }
.emx-theme-light { display: none; }
[data-theme="light"] .emx-theme-dark { display: none; }
[data-theme="light"] .emx-theme-light { display: inline-flex; }
.emx-menubtn { display: none; }
@media (max-width: 1180px) { .emx-nav { display: none; } .emx-menubtn { display: inline-grid; } .emx-header__utils { margin-left: auto; } }
@media (max-width: 480px) { .emx-header__utils .emx-lang, .emx-header__utils [data-emx-search] { display: none; } }
.emx-menu { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 16px var(--emx-gutter) 32px; border: 0; background: var(--emx-bg); color: var(--emx-text); }
.emx-menu::backdrop { background: rgba(0,0,0,.6); }
.emx-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.emx-menu__list { list-style: none; margin: 0; padding: 0; }
.emx-menu__list a { display: block; padding: 14px 0; font-family: var(--emx-font-display); font-size: 1.75rem; font-weight: 500; color: var(--emx-text); text-decoration: none; border-bottom: 1px solid var(--emx-line); }
.emx-menu__minor { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.emx-menu__minor a { color: var(--emx-text-muted); }

/* ---------- main ---------- */
.emx-main { padding-top: calc(var(--emx-header-h) + 48px); padding-bottom: var(--emx-section); }
.emx-main--front { padding-top: 0; padding-bottom: 0; }
.emx-main--full { padding-top: var(--emx-header-h); padding-bottom: 0; }
.emx-page__title { margin-bottom: 24px; }
.emx-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }

/* Sections authored with core/group + className emx-section. */
.emx-section { padding-block: var(--emx-section); }
.emx-section + .emx-section { border-top: 1px solid var(--emx-line); }
.emx-section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.emx-section--surface { background: var(--emx-surface); }
.emx-section--night { background: var(--emx-night); }
.emx-signature { border-radius: var(--emx-r-signature); }
.emx-panel { background: var(--emx-surface); border: 1px solid var(--emx-line); border-radius: var(--emx-r-media); padding: clamp(24px, 4vw, 48px); }

/* Buttons */
.wp-block-button__link, .emx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; white-space: nowrap; text-decoration: none !important; transition: transform 150ms var(--emx-ease-out), background-color 150ms; }
.emx-btn--primary { background: var(--emx-accent); color: var(--emx-on-accent); }
.wp-block-button__link:active, .emx-btn:active { transform: translateY(1px) scale(.98); }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { background: transparent !important; color: var(--emx-text) !important; border: 1px solid var(--emx-line-strong) !important; }
.wp-block-button__link:hover { filter: brightness(1.06); }

/* Lists and details (FAQ) */
.wp-block-details { border-bottom: 1px solid var(--emx-line); padding-block: 4px; }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; padding: 14px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--emx-font-mono); color: var(--emx-text-muted); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { color: var(--emx-text-muted); margin-bottom: 16px; }

/* Tables */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--emx-line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.wp-block-table thead { border-bottom: 1px solid var(--emx-line-strong); }
.emx-mono, .wp-block-table td.has-text-align-right { font-family: var(--emx-font-mono); }

/* Images and media */
.wp-block-image img { border-radius: var(--emx-r-media); }
.wp-block-image.alignfull img { border-radius: 0; }
.wp-block-image figcaption { font-size: .8125rem; color: var(--emx-text-muted); }
.wp-block-media-text { gap: 48px; }

/* Split layouts */
.emx-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .emx-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Spec tiles */
.emx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.emx-tile { background: var(--emx-surface); border: 1px solid var(--emx-line); border-radius: 16px; padding: 20px; }
.emx-tile strong { display: block; font-family: var(--emx-font-mono); font-size: 1.5rem; font-weight: 500; }
.emx-tile span { color: var(--emx-text-muted); font-size: .875rem; }

/* Forms (Contact Form 7) */
.wpcf7 form { display: grid; gap: 16px; max-width: 720px; }
.wpcf7 label { display: grid; gap: 6px; font-weight: 500; font-size: .9375rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea, .wp-block-search__input {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--emx-r-field); border: 1px solid var(--emx-line-strong); background: var(--emx-surface-2); color: var(--emx-text); font: inherit; }
.wpcf7 textarea { min-height: 140px; }
.wpcf7-submit { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--emx-accent); color: var(--emx-on-accent); font-weight: 600; cursor: pointer; justify-self: start; }
.wpcf7-not-valid-tip { color: var(--emx-danger); font-size: .875rem; }
.wpcf7 .wpcf7-list-item { margin: 0 16px 0 0; }
.wpcf7-response-output { border-radius: 12px; }

/* ---------- footer ---------- */
.emx-site-footer { margin-top: 0; }
.emx-footer { background: var(--emx-bg); border-top: 1px solid var(--emx-line); color: var(--emx-text); }
.emx-footer__band { position: relative; height: clamp(160px, 22vw, 320px); overflow: hidden; }
.emx-footer__band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emx-footer__inner { max-width: 1400px; margin: 0 auto; padding: 56px var(--emx-gutter) 32px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .emx-footer__inner { grid-template-columns: 1.1fr 2fr; } }
.emx-footer__tag { color: var(--emx-text-muted); margin: 16px 0; }
.emx-footer__facts { font-style: normal; line-height: 1.7; }
.emx-footer__facts a { color: var(--emx-text); }
.emx-footer__hours { color: var(--emx-text-muted); font-size: .9375rem; }
.emx-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.emx-footer__h { font-size: .875rem !important; font-family: var(--emx-font-body) !important; font-weight: 600; color: var(--emx-text-muted); margin: 0 0 12px; letter-spacing: 0; }
.emx-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.emx-footer__nav a { color: var(--emx-text); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.emx-footer__nav a:hover { text-decoration: underline; }
.emx-footer__controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; grid-column: 1 / -1; }
.emx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--emx-line-strong); background: transparent; color: var(--emx-text); font: inherit; font-size: .9375rem; cursor: pointer; }
.emx-chip[aria-pressed="true"] { background: var(--emx-surface-2); }
.emx-footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 0 auto; padding: 0; }
.emx-footer__social a { color: var(--emx-text-muted); }
.emx-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--emx-line); padding-top: 20px; font-size: .8125rem; color: var(--emx-text-muted); }
.emx-footer__legal p { margin: 0; }

/* ---------- reveals (headings and media only) ---------- */
html.motion-ok .emx-reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.motion-ok .emx-reveal { transition: opacity 600ms var(--emx-ease-out), transform 600ms var(--emx-ease-out); }

/* ---------- light theme adjustments ---------- */
[data-theme="light"] .emx-section--night, [data-theme="light"] .emx-colors__item { background: #141816; color: #EDEFEC; --emx-text: #EDEFEC; --emx-text-muted: #9BA39D; --emx-accent: #5AFF00; --emx-accent-ink: #5AFF00; --emx-on-accent: #0B0D0C; --emx-line: #262B27; --emx-line-strong: #5C655E; --emx-focus: #5AFF00; }
[data-theme="light"] .emx-hero .wp-block-button__link { background: #141816; color: #5AFF00; }

/* ---------- print ---------- */
@media print { .emx-site-header, .emx-site-footer, .emx-switch, video { display: none !important; } body { background: #fff; color: #000; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (forced-colors: active) { .emx-switch__thumb { forced-color-adjust: none; background: CanvasText; } .emx-badge, .emx-chip, .emx-switch { border: 1px solid CanvasText; } }
.wp-block-image.emx-aurora { margin-top: 32px; }
.wp-block-image.emx-aurora img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--emx-r-media, 16px); }
@media (max-width: 767px) { .wp-block-image.emx-aurora img { aspect-ratio: 4 / 3; } }

/* ---------- 1.0.9: phones (Emitrix Core 1.3.0 phone pass) ---------- */
/* Form fields never set the page width (Contact Form 7 fields carry size="40"). */
.wpcf7 form, .wpcf7 label { grid-template-columns: minmax(0, 1fr); }
.wpcf7 input, .wpcf7 select, .wpcf7 textarea { max-width: 100%; box-sizing: border-box; }
.wpcf7 input[type="file"] { min-height: 44px; padding: 8px 0; font: inherit; }
.wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"], .woocommerce input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--emx-accent); }
.wpcf7 label { font-size: 1rem; }
/* Touch targets: at least 44 px for links and buttons that stand on their own. */
.emx-logo { min-height: 44px; }
.emx-footer__nav a { min-height: 44px; }
.emx-footer__social a { display: inline-flex; align-items: center; min-height: 44px; }
@media (pointer: coarse) { .emx-footer__facts a { display: inline-flex; align-items: center; min-height: 44px; } }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce div.product .product_meta a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce .show-password-input { width: 44px; height: 44px; }
.woocommerce-LostPassword a, .woocommerce form .lost_password a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wp-block-post-title a, .wp-block-query .wp-block-post-title a { display: inline-block; padding-block: 6px; min-height: 44px; box-sizing: border-box; }
/* Body copy on phones is at least 16 px. */
@media (max-width: 767px) {
	.emx-maker, .woocommerce div.product .product_meta { font-size: 1rem; }
	.wp-block-table td, .wp-block-table th { font-size: 1rem; }
}
.emx-logo { min-width: 44px; }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a, .woocommerce div.product .product_meta a { min-width: 44px; justify-content: center; }
main li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) { .woocommerce form .form-row label, .woocommerce .emx-maker { font-size: 1rem; } }
.emx-footer__nav a { min-width: 44px; }
.wp-block-post-title a, .woocommerce-breadcrumb a, .wc-block-breadcrumbs a, .emx-menu nav a, .emx-footer nav a { min-width: 44px; }
