/* resXtech website styles. Built on brand system v1.2 tokens (resxtech-tokens.css). Arial only. */
:root {
  --rx-black: #000000;
  --rx-navy: #003B84;
  --rx-signal: #0059C7;
  --rx-signal-dark: #0048A4;
  --rx-steel: #8DA8CB;
  --rx-ink: #0E1420;
  --rx-slate: #4A5566;
  --rx-mist: #E4EAF2;
  --rx-cloud: #F5F7FA;
  --rx-sky: #5FA8FF;
  --rx-white: #FFFFFF;
  --rx-on-ink: #C9D4E3;
  --rx-cross: linear-gradient(90deg, #8DA8CB 0%, #8DA8CB 30%, #0059C7 45%, #0048A4 65%, #003B84 100%);
  --rx-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --rx-radius: 3px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Theme tokens (light). Dark values are below. Components use these, not the raw brand colors. */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --surface: #FFFFFF;
  --header-bg: #FFFFFF;
  --line: #E4EAF2;
  --line-strong: #8DA8CB;
  --text: #0E1420;
  --muted: #4A5566;
  --accent: #0059C7;
  --accent-hover: #003B84;
  --accent-strong: #003B84;
  --field-bg: #FFFFFF;
  --field-border: #7C8797;
  --shadow: rgba(14, 20, 32, .08);
  --err-bg: #FDECEC; --err-text: #8A1C1C; --err-line: #F3C2C2;
  --ok-bg: #E8F1FC; --ok-text: #003B84; --ok-line: #BFD5F3;
  --map-text: #0E1420; --map-muted: #4A5566; --map-pin: #003B84;
  color-scheme: light;
}

/* Dark theme. data-theme is set before first paint by the inline script in each page
   (saved choice, else the device setting). The media query covers visitors without JS. */
:root[data-theme="dark"] {
  --bg: #121A27;
  --bg-alt: #0E1420;
  --surface: #1A2433;
  --header-bg: #0E1420;
  --line: #2B3749;
  --line-strong: #5A6B82;
  --text: #F2F5F9;
  --muted: #B4C0D0;
  --accent: #5FA8FF;
  --accent-hover: #9CC8FF;
  --accent-strong: #5FA8FF;
  --field-bg: #0E1420;
  --field-border: #6B788C;
  --shadow: rgba(0, 0, 0, .45);
  --err-bg: #3A1A1D; --err-text: #FFC9C9; --err-line: #7A2E33;
  --ok-bg: #12294A; --ok-text: #CFE3FF; --ok-line: #2A4F80;
  --map-text: #F2F5F9; --map-muted: #B4C0D0; --map-pin: #5FA8FF;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121A27;
    --bg-alt: #0E1420;
    --surface: #1A2433;
    --header-bg: #0E1420;
    --line: #2B3749;
    --line-strong: #5A6B82;
    --text: #F2F5F9;
    --muted: #B4C0D0;
    --accent: #5FA8FF;
    --accent-hover: #9CC8FF;
    --accent-strong: #5FA8FF;
    --field-bg: #0E1420;
    --field-border: #6B788C;
    --shadow: rgba(0, 0, 0, .45);
    --err-bg: #3A1A1D; --err-text: #FFC9C9; --err-line: #7A2E33;
    --ok-bg: #12294A; --ok-text: #CFE3FF; --ok-line: #2A4F80;
    --map-text: #F2F5F9; --map-muted: #B4C0D0; --map-pin: #5FA8FF;
    color-scheme: dark;
  }
}

/* Logo: color wordmark on light, on-dark wordmark on dark */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

/* Theme toggle (Device, Light, Dark) */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; justify-content: center; padding: 0; cursor: pointer; color: var(--muted); flex: none; }
.theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
.theme-toggle[data-mode="system"] .ti-system, .theme-toggle[data-mode="light"] .ti-light, .theme-toggle[data-mode="dark"] .ti-dark { display: block; }
.theme-toggle .tt-label { display: none; }
.no-js .theme-toggle { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font: 400 16px/26px var(--rx-font);
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: inherit; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--rx-sky); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--accent-strong); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.label {
  font: 700 12px/16px var(--rx-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.on-ink .label { color: var(--rx-sky); }
.h-display { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.h-display span { font-weight: 400; }
.h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: clamp(24px, 3vw, 28px); line-height: 34px; }
.h3 { font-size: 20px; line-height: 26px; }
.lead { font-size: 18px; line-height: 30px; color: var(--muted); max-width: 60ch; }
.on-ink .lead { color: var(--rx-on-ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 700 16px/20px var(--rx-font);
  text-decoration: none; border: 0; border-radius: var(--rx-radius);
  background: var(--rx-signal); color: var(--rx-white);
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--rx-navy); color: var(--rx-white); }
.btn-ghost { background: transparent; color: var(--rx-white); box-shadow: inset 0 0 0 1.5px var(--rx-steel); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { background: transparent; color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
.btn-outline:hover { background: var(--rx-navy); color: var(--rx-white); }
.btn-white { background: var(--rx-white); color: var(--rx-navy); }
.btn-white:hover { background: var(--rx-mist); color: var(--rx-navy); }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 168px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-login { display: inline-flex; align-items: center; gap: 6px; font-size: 15px !important; color: var(--muted) !important; padding-left: 24px !important; border-left: 1px solid var(--line); }
.nav-login svg { flex: none; }
.nav-login:hover { color: var(--accent) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .site-header .wrap { min-height: 68px; }
  .brand img { width: 140px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav-login { display: flex !important; padding-left: 0 !important; border-left: 0; }
  .theme-toggle { width: auto; height: auto; border: 0; border-radius: 0; justify-content: flex-start; padding: 14px 0; font: 400 15px/20px var(--rx-font); border-bottom: 1px solid var(--line); }
  .theme-toggle .tt-label { display: inline; }
  .no-js .nav { display: flex; position: static; padding: 0 0 16px; }
  .no-js .nav-toggle { display: none; }
}

/* Hero */
.hero { background: var(--rx-ink); color: var(--rx-white); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); min-height: 560px; }
.hero-copy { padding: 88px 0 96px; display: grid; gap: 24px; align-content: center; position: relative; z-index: 1; }
.hero-copy .lead { max-width: 46ch; }
.hero-art { position: relative; }
.hero-art .hero-x { position: absolute; right: -14%; top: -8%; height: 118%; width: auto; max-width: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px 0 64px; }
  .hero-art { display: none; }
}

/* Page header (inner pages) */
.page-head { background: var(--rx-ink); color: var(--rx-white); position: relative; overflow: hidden; }
.page-head .wrap { padding-top: 72px; padding-bottom: 72px; display: grid; gap: 16px; position: relative; z-index: 1; }
.page-head .lead { max-width: 56ch; }
.page-head .deco { position: absolute; right: -60px; top: -40%; height: 180%; width: auto; max-width: none; }
@media (max-width: 860px) { .page-head .deco { display: none; } .page-head .wrap { padding-top: 48px; padding-bottom: 48px; } }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-cloud { background: var(--bg-alt); }
.section-head { display: grid; gap: 12px; margin-bottom: 48px; max-width: 720px; }
@media (max-width: 860px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* Gradient rule (thin elements only) */
.rule { display: block; width: 44px; height: 4px; background: var(--rx-signal); border-radius: 1px; }
.cross-bar { height: 4px; background: var(--rx-cross); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--rx-radius); background: var(--surface); }
.card { padding: 40px 32px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); }
.card:first-child { border-left: 0; }
.card p { color: var(--muted); }
.card a { font-weight: 700; text-decoration: none; margin-top: 4px; }
.card a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(3) { border-left: 0; }
  .card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-left: 0; padding: 28px 24px; }
  .card + .card { border-top: 1px solid var(--line); }
}

/* Proof figures */
.proof { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: baseline; }
.proof div { display: flex; align-items: baseline; gap: 10px; }
.proof b { font-size: 36px; line-height: 1; color: var(--accent-strong); letter-spacing: -0.02em; }
.proof span { color: var(--muted); font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); font-weight: 700; color: var(--accent); letter-spacing: .08em; font-size: 14px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent-strong); border-radius: var(--rx-radius); padding: 32px 28px; display: grid; gap: 16px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 28px; }
.quote figcaption { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--rx-navy); color: var(--rx-white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band p { color: var(--rx-white); opacity: .9; margin-top: 8px; }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-detail:first-of-type { border-top: 0; padding-top: 0; }
.svc-detail .intro { display: grid; gap: 16px; align-content: start; }
.svc-detail .intro p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--rx-radius); align-self: start; }
.checks li { padding: 16px 20px 16px 52px; position: relative; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 4px; margin-top: -2px; background: var(--rx-signal); border-radius: 1px; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; } }

/* Values and two-column blocks */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rx-radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.value p { color: var(--muted); }
.prose { display: grid; gap: 18px; max-width: 66ch; align-content: start; }
.prose p { color: var(--muted); font-size: 17px; line-height: 28px; }
@media (max-width: 860px) { .grid-2, .values { grid-template-columns: 1fr; gap: 24px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.field input, .field textarea, .field select {
  font: 400 16px/24px var(--rx-font); color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: var(--rx-radius);
  background: var(--field-bg); width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 3px solid rgba(0, 89, 199, .2); outline-offset: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--rx-radius); font-size: 15px; }
.alert[hidden] { display: none; }
.alert-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-line); }
.alert-ok { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-line); }
.info { display: grid; gap: 28px; align-content: start; }
.info-block { display: grid; gap: 6px; padding-top: 20px; border-top: 2px solid var(--line); }
.info-block a { color: var(--text); font-weight: 700; text-decoration: none; font-size: 17px; }
.info-block a:hover { color: var(--accent); }
.info-block p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--rx-ink); color: var(--rx-on-ink); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font: 700 12px/16px var(--rx-font); letter-spacing: .12em; text-transform: uppercase; color: var(--rx-steel); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--rx-white); text-decoration: none; }
.site-footer a:hover { color: var(--rx-sky); text-decoration: underline; }
.foot-brand img { width: 160px; margin-bottom: 18px; }
.foot-brand p { max-width: 32ch; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(141, 168, 203, .25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Simple centered message pages (thank-you, 404) */
.message { min-height: 56vh; display: grid; align-content: center; gap: 20px; padding: 96px 0; max-width: 640px; }

/* Turnstile: full width of the form, hidden unless Cloudflare needs an interaction */
.cf-turnstile { width: 100%; }

/* Breadcrumbs (service pages) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--rx-on-ink); }
.crumbs a { color: var(--rx-white); text-decoration: none; }
.crumbs a:hover { color: var(--rx-sky); text-decoration: underline; }
.crumbs [aria-hidden] { color: var(--rx-steel); }

/* "What's included" list with a title and a description per item */
.checks-detail li { display: grid; gap: 4px; }
.checks-detail li::before { top: 27px; margin-top: 0; }
.checks-detail b { font-size: 16px; }
.checks-detail span { color: var(--muted); font-size: 15px; line-height: 24px; }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 700; font-size: 17px; line-height: 26px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { color: var(--muted); padding: 0 48px 22px 0; max-width: 72ch; }

/* Links to the service pages */
.svc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-links-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-link { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rx-radius); text-decoration: none; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.svc-link b { font-size: 17px; }
.svc-link span:last-child { color: var(--muted); font-size: 15px; line-height: 24px; }
.svc-link:hover { color: var(--text); border-color: var(--line-strong); box-shadow: 0 10px 24px var(--shadow); }
.svc-link:hover b { color: var(--accent); }
.svc-link .rule { transition: width .3s ease; }
.svc-link:hover .rule { width: 72px; }
@media (max-width: 1000px) { .svc-links-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .svc-links, .svc-links-4 { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; line-height: 30px; margin-top: 18px; }
.legal ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; font-size: 17px; line-height: 28px; }
.legal .updated { font-size: 14px; color: var(--muted); }

/* Contact: service area illustration */
.area { align-items: center; }
.area-map { margin: 0; display: grid; gap: 8px; }
.area-map svg { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rx-radius); }
.area-map .m-text { fill: var(--map-text); }
.area-map .m-muted { fill: var(--map-muted); }
.area-map .m-pin { fill: var(--map-pin); }
.area-map .m-line { stroke: var(--map-pin); }
.area-map .m-hole { fill: var(--surface); }
.area-map figcaption { font-size: 13px; color: var(--muted); }
.link-arrow { display: inline-block; margin-top: 6px; font-size: 15px !important; color: var(--accent) !important; }
.link-arrow::after { content: " \203A"; }

/* ---------- Effects ----------
   Motion only runs for visitors without "reduce motion". The inline script in each
   page adds .fx to <html> when motion is allowed; site.js adds .fx-ready. If site.js
   never loads, .fx is removed after 3s so nothing stays hidden. */

/* Hero dot grid texture (static) */
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(141, 168, 203, .22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
}

/* Header: logo eases down and a shadow appears after scrolling (height stays fixed, so nothing shifts) */
.site-header { transition: box-shadow .25s ease, border-color .25s ease; }
.brand img { transform-origin: left center; transition: transform .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px var(--shadow); border-bottom-color: transparent; }
.site-header.is-scrolled .brand img { transform: scale(.88); }

/* Button arrow: text nudges left, arrow fades in inside the existing padding (no width change) */
.btn-arrow { position: relative; }
.btn-arrow::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateX(-6px) rotate(45deg); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.btn-arrow { transition: background .15s ease, padding .2s ease; }
.btn-arrow:hover, .btn-arrow:focus-visible { padding-left: 16px; padding-right: 32px; }
.btn-arrow:hover::after, .btn-arrow:focus-visible::after { opacity: 1; transform: translateX(0) rotate(45deg); }

/* Service cards: lift, and the accent line grows into the brand gradient */
.card { position: relative; transition: transform .25s ease, box-shadow .25s ease; background: var(--surface); }
.card .rule { transition: width .35s ease, background .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px var(--shadow); z-index: 1; }
.card:hover .rule { width: 100%; background: var(--rx-cross); }

/* Proof figures keep their final width while counting */
.proof b { font-variant-numeric: tabular-nums; display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: copy rises in, X strokes slide in and cross */
  .hero-copy > * { animation: fx-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-x { will-change: transform; transform: translate3d(0, var(--hx-shift, 0px), 0); }
  .hero-x .hx-rise { animation: fx-rise-stroke 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .hero-x .hx-solid { animation: fx-solid-stroke 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }

  /* Scroll reveals (only while .fx is on). Keep this list in sync with REVEAL in site.js */
  .fx :is(.section-head, .card, .steps li, .quote, .value, .svc-detail, .proof > div, .info-block, .prose, .cta-band .wrap > *, .svc-link, .faq, .area-map) { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
  .fx :is(.section-head, .card, .steps li, .quote, .value, .svc-detail, .proof > div, .info-block, .prose, .cta-band .wrap > *, .svc-link, .faq, .area-map).is-visible { opacity: 1; transform: none; }
  /* After a card is revealed, hover lift wins over the reveal transform */
  .fx .card.is-visible:hover { transform: translateY(-4px); transition-delay: 0s; }
}

@keyframes fx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fx-rise-stroke { from { opacity: 0; transform: translate(-420px, 560px); } to { opacity: 1; transform: none; } }
@keyframes fx-solid-stroke { from { opacity: 0; transform: translate(-380px, -480px); } to { opacity: 1; transform: none; } }
