/* custom.css: site-wide additions (moved from Webflow's head code) plus styles
   for the pieces that replace the Webflow runtime. Loaded after webflow.css. */

/* ---- from Webflow site settings (head code) ---- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Page preloader stays hidden */
.pageloader { display: none !important; }
/* Theme switch lives in the footer; the floating toggle stays as the hidden trigger */
.toggle-color { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }
/* Dark mode text colors */
.hn-dark .cs-card-num, .hn-dark .hl-num, .hn-dark .hx-num { color: #FFC531; }
.hn-dark .cs-card-num.cs-metric { color: #ffffff; }
.hn-dark .cs-card { background-color: rgba(255,255,255,0.06); }
.hn-dark .pr-quote { border-left-color: #FFC531; }
/* Links keep their color on hover (template forced a dark hover color) */
.ft-link:hover, .ft-copy-link:hover, .ct-val:hover, .ab-link:hover, .wk-cta:hover, .hx-link:hover, .th-row:hover, .wk-row a:hover, .pr-link:hover, .ft-name:hover { color: inherit; }
.pr-link { text-underline-offset: 3px; transition: opacity 0.2s ease; }
.pr-link:hover { opacity: 0.7; }
.ab-btn:hover { color: #0e1011; }
/* Text links: underline slides in on hover, like the main navigation */
.ft-link, .ft-copy-link, .ct-val, .ft-name {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 0.3s ease, opacity 0.2s ease;
}
.ft-name { display: inline-block !important; width: auto !important; max-width: max-content; align-self: flex-start; }
.ft-link:hover, .ft-copy-link:hover, .ct-val:hover, .ft-name:hover { background-size: 100% 2px; }
.ft-copy-link:hover { opacity: 1; }

/* ---- remembered dark mode: correct logos before the scripts run ---- */
html.hn-dark-init .light-mode { display: none; }
html.hn-dark-init .dark-mode { display: block; }

/* ---- footer: icon buttons, one row on every width ---- */
.ft-bottom { flex-wrap: nowrap; }
.ft-copy { white-space: nowrap; }
.ft-actions { display: flex; align-items: center; gap: 0.25rem; margin-right: -10px; }
.ft-copy-link.ft-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background-image: none; transition: opacity 0.2s ease; }
.ft-copy-link.ft-icon:hover { opacity: 1; }
.ft-icon svg { width: 20px; height: 20px; display: block; }
.ft-theme .i-sun { display: none; }
html.hn-dark .ft-theme .i-sun { display: block; }
html.hn-dark .ft-theme .i-moon { display: none; }

/* ---- footer colors: light gray in light mode, near-black in dark mode ---- */
/* Light mode: Background Muted #2 (#eee). Dark mode: Background Primary Muted #2 (#1f2122). */
.footer { background-color: #eeeeee !important; color: #0e1011 !important; }
.footer :is(.ft-name, .ft-role, .ft-link, .ft-copy, .ft-copy-link) { color: inherit !important; }
html.hn-dark .footer, html.hn-dark-init .footer { background-color: #1f2122 !important; color: #ffffff !important; }

/* ---- contact form (Web3Forms) ---- */
.form .h-captcha { margin: 0 0 1rem; min-height: 78px; }
/* Disabled "Send Message": readable text (contrast ≥ 4.5:1 on the dimmed button) */
.submit-button.disabled { color: #ffffff !important; }
.form .botcheck { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- lightbox (replaces w-lightbox) ---- */
.lb { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.9); padding: 4vh 4vw; }
.lb.is-open { display: flex; }
.lb-inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 92vw; max-height: 84vh; object-fit: contain; display: block; }
.lb-figure figcaption { color: #fff; opacity: 0.8; margin-top: 0.75rem; font-size: 14px; text-align: center; }
.lb-video { width: min(92vw, 1200px); aspect-ratio: 16 / 9; }
.lb-video iframe { width: 100%; height: 100%; border: 0; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: 0.8; }
.lb button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
html.lb-lock { overflow: hidden; }

/* ---- motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  [data-w-id] { transform: none !important; opacity: 1 !important; }
}
