/* wirelesselevatorcamera.com: one stylesheet, light and dark, LTR and RTL. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --surface: #ffffff;
  --ink: #102233;
  --ink-soft: #4a5d70;
  --line: #d9e1e8;
  --brand: #0f2a44;
  --brand-ink: #ffffff;
  --accent: #1f8a5b;
  --accent-ink: #ffffff;
  --accent-soft: #e3f3eb;
  --focus: #2f7de1;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 34 51 / 6%), 0 6px 20px rgb(16 34 51 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
:lang(ar) { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }
:lang(zh) { --font: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1724;
    --bg-alt: #102030;
    --surface: #13263a;
    --ink: #e6edf3;
    --ink-soft: #a7b6c5;
    --line: #23384d;
    --brand: #0a1d30;
    --accent: #3cc286;
    --accent-ink: #062016;
    --accent-soft: #123a2a;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.big { font-size: 1.12rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.nowrap { white-space: nowrap; }
.icon { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn .icon { width: 20px; height: 20px; color: currentColor; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5em 1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.link-arrow { font-weight: 650; }
.link-arrow::after { content: " →"; }
[dir="rtl"] .link-arrow::after { content: " ←"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong { display: block; font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 1320px) { .site-header .brand small { display: none; } }
.brand small { display: block; color: var(--ink-soft); font-size: .78rem; }
.logo-mark { width: 34px; height: 34px; color: var(--ink); }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.site-nav > ul { display: flex; gap: 18px; }
.site-nav > ul a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .96rem; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav > ul a:hover, .site-nav > ul a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font: inherit; color: var(--ink); cursor: pointer; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; padding: .4em .8em; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::before { content: "🌐 "; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; z-index: 60; }
.lang-menu li a { display: block; padding: .45em .8em; border-radius: 6px; color: var(--ink); text-decoration: none; }
.lang-menu li a:hover, .lang-menu li a[aria-current="true"] { background: var(--accent-soft); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 4px; }
  .site-nav > ul a { display: block; padding: .5em 0; font-size: 1.05rem; }
  .lang-menu ul { position: static; box-shadow: none; margin-top: 6px; }
  .brand small { display: none; }
}

/* hero */
.hero { padding: 56px 0 28px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 999px; margin-bottom: 1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { width: 100%; max-height: 420px; }
.ha-building { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.ha-floor { stroke: var(--line); }
.ha-shaft { fill: var(--bg-alt); stroke: var(--line); }
.ha-car { fill: var(--brand); }
.ha-cam { fill: var(--accent); }
.ha-wave { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; animation: pulse 2.4s ease-in-out infinite; }
.ha-wave2 { animation-delay: 1.2s; }
.ha-rx { fill: var(--accent); }
.ha-link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; }
.ha-screen { fill: var(--brand); }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ha-wave { animation: none; } html { scroll-behavior: auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.trust .icon { width: 18px; height: 18px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-height: 260px; } }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.page-head { padding: 52px 0 12px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.crumb { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.crumb .icon { width: 18px; height: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 20px 0; counter-reset: s; }
.steps > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.steps-vertical { grid-template-columns: 1fr; margin: 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; }
.callout h2 { font-size: 1.3rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* diagram */
.diagram-wrap { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.diagram { width: 100%; height: auto; }
.dg-shaft { fill: var(--bg-alt); stroke: var(--line); stroke-width: 2; }
.dg-car { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 2; }
.dg-dev { fill: var(--brand); }
.dg-accent { fill: var(--accent); }
.dg-dot { fill: var(--accent); }
.dg-wave { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.dg-box { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.dg-line { stroke: var(--ink-soft); stroke-width: 2; fill: none; }
.dg-arrowhead { fill: var(--ink-soft); }
.dg-label { fill: var(--ink); font: 600 17px var(--font); }
.dg-small { fill: var(--ink-soft); font: 15px var(--font); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.product .btn { margin-top: auto; align-self: flex-start; }
.product .ticks { margin-bottom: 18px; }
.product-model { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--bg-alt); font-size: .9rem; }
.table tr:last-child > * { border-bottom: 0; }
.compare .hl { background: var(--accent-soft); font-weight: 600; }

/* installations and locations */
.install-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.install-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.install-card strong { display: block; }
.install-card span { display: block; color: var(--ink-soft); font-size: .93rem; }
.install-card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: .15em .6em; border-radius: 999px; }
.install-card.is-pending { border-style: dashed; }
.pending-note { display: block; margin-top: 6px; color: #b4561c; font-size: .78rem; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.loc-country { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.loc-card li a { display: block; padding: 3px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.chip .icon { width: 18px; height: 18px; }
.chip:hover { border-color: var(--accent); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.req { color: #c2410c; margin-inline-start: 3px; }
.hint { display: block; margin-top: 4px; font-size: .82rem; color: var(--ink-soft); }
.quote-form input[type="number"] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .65em .8em; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"], .quote-form select, .quote-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .65em .8em;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-thanks { background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.product-photo { width: 100%; height: 200px; object-fit: contain; background: #fff; border-radius: 10px; margin-bottom: 14px; }
.install-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.diagram-wrap img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.form-missing { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; color: var(--ink-soft); text-align: center; }
.contact-aside .callout { margin-top: 24px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* cta band */
.cta-band { background: var(--brand); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p { color: #c8d6e3; margin: 0; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 35%); }

/* footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.brand-footer { margin-bottom: 10px; }
.footer-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* floating WhatsApp + chat */
.wa-float { position: fixed; inset-inline-start: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 22%); z-index: 70; }
.wa-float svg { width: 30px; height: 30px; }
.chat-launcher { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / 22%); }
.chat-launcher .icon { width: 22px; height: 22px; color: currentColor; }
.chat-panel { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgb(0 0 0 / 28%); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--brand); color: #fff; }
.chat-head strong { display: block; }
.chat-head small { display: block; color: #c8d6e3; font-size: .8rem; }
.chat-close { margin-inline-start: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .96rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin: 0; }
.msg ul { list-style: disc; padding-inline-start: 1.2em; margin: 0 0 .5em; }
.msg-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-end-end-radius: 4px; }
.msg-typing { color: var(--ink-soft); font-style: italic; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; background: var(--bg-alt); }
.chat-actions a { font-size: .85rem; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .96rem; background: var(--bg); color: var(--ink); max-height: 120px; }
.chat-form button { border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 0 16px; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-note { padding: 0 14px 10px; font-size: .75rem; color: var(--ink-soft); background: var(--surface); }
@media (max-width: 520px) {
  .chat-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .chat-launcher span { display: none; }
}
@media print { .site-header, .chat-launcher, .wa-float, .cta-band { display: none; } }
